Branching Instructions - Renesas H8 Series Hardware Manual

8-bit single-chip microcomputer
Hide thumbs Also See for H8 Series:
Table of Contents

Advertisement

Section 2 CPU
2.5.6

Branching Instructions

Table 2.9 describes the branching instructions. Figure 2.8 shows their object code formats.
Table 2.9
Branching Instructions
Instruction
Size
Bcc
JMP
BSR
JSR
RTS
Rev. 7.00 Mar 10, 2005 page 50 of 652
REJ09B0042-0700
Function
Branches to the designated address if condition cc is true. The
branching conditions are given below.
Mnemonic
Description
BRA (BT)
Always (true)
BRN (BF)
Never (false)
BHI
High
BLS
Low or same
BCC (BHS)
Carry clear (high or same)
BCS (BLO)
Carry set (low)
BNE
Not equal
BEQ
Equal
BVC
Overflow clear
BVS
Overflow set
BPL
Plus
BMI
Minus
BGE
Greater or equal
BLT
Less than
BGT
Greater than
BLE
Less or equal
Branches unconditionally to a specified address
Branches to a subroutine at a specified address
Branches to a subroutine at a specified address
Returns from a subroutine
Condition
Always
Never
C ∨ Z = 0
C ∨ Z = 1
C = 0
C = 1
Z = 0
Z = 1
V = 0
V = 1
N = 0
N = 1
N ⊕ V = 0
N ⊕ V = 1
Z ∨ (N ⊕ V) = 0
Z ∨ (N ⊕ V) = 1

Advertisement

Table of Contents
loading

Table of Contents