beautypg.com

10 branch instructions, Br addr, Br addr1 – NEC PD754144 User Manual

Page 279: Bra !addr1, Br !addr, Br $addr

background image

CHAPTER 11 INSTRUCTION SET

279

User’s Manual U10676EJ3V0UM

11.4.10 Branch instructions

BR addr

Function: PC

11-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: PC

11-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: PC

11-0

addr1

BR !addr

Function: PC

11-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: PC

11-0

← addr

addr = (PC–15) to (PC–1), (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

This manual is related to the following products: