171
CHAPTER 9. INSTRUCTION SET
9.4.9
Branch Instructions
BR addr
Function: PC
10
to PC
0
←
addr; addr = 000H to 77FH
Branches to the address addressed by 11-bit immediate data addr.
This instruction is an assembler pseudo instruction. During assembly, the assembler automatically replaces
this instruction with the optimum instruction from among the BRCB !caddr and BR $addr instructions.
BR $addr
Function: PC
←
addr; addr = (PC-15) to (PC-1), (PC+2) to (PC+16)
This is a relative branch instruction with a branch range of (-15 to -1) and (+2 to +16) from the current address.
Page boundary and block boundary are not affected.
BRCB !caddr
Function: PC
10
to PC
0
caddr; caddr = A
10
to A
0
: 000H to 77FH
Branches to the address addressed by 11-bit immediate data caddr (A
10
to A
0
).