CHAPTER 11 INSTRUCTION SET
279
Users Manual U10676EJ3V0UM
11.4.10 Branch instructions
BR addr
Function: PC11-0 addr
addr = 0000H to 0FFFH
Branches to an address specified by immediate data addr.
This instruction is an assembler directive and is replaced by the assembler at assembly time with the optimum
instruction from the BR !addr, BRCB !caddr, and BR $addr instructions.
BR addr1
Function: PC11-0 addr1
addr1 = 0000H to 0FFFH
Branches to an address specified by immediate data addr1.
This instruction is an assembler directive and is replaced by the assembler at assembly time with the optimum
instruction from the BRA !addr1, BR !addr, BRCB !caddr, and BR $addr instructions.
BRA !addr1
Function: PC11-0 addr1
BR !addr
Function: PC11-0 addr
addr = 0000H to 0FFFH
Transfers immediate data addr to the program counter (PC) and branches to an address specified by the PC.
BR $addr
Function: PC11-0 addr
addr = (PC15) to (PC1), (PC+2) to (PC+16)
This is a relative branch instruction that has a branch range of (15 to 1) and (+2 to +16) from the current address.
It is not affected by a page boundary or block boundary.
I
II
II