CHAPTER 9. INSTRUCTION SET

9.4.9Branch Instructions

BR addr

Function: PC10 to PC0 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: PC10 to PC0 caddr; caddr = A10 to A0 : 000H to 77FH

Branches to the address addressed by 11-bit immediate data caddr (A10 to A0 ).

171

Page 182
Image 182
NEC PD75P402, PD75402A user manual BR addr, 171