ba

Branch Absolute

ba target_addr

Unconditionally branches to an absolute address.

Details

The Branch Absolute instruction unconditionally branches to a specified target address. The AA bit is set to 1, indicating that the target address is an absolute address.

Pseudocode Operation

NIA <- EXTS(LI || 00)

Programming Note

When LK=1, the address of the next sequential instruction is placed in LR, making this a subroutine call. Use blr to return.

Example

ba 0x1000

Encoding

Binary Layout
18
0
LI
6
1
30
LK
31
 
Format I-form
Opcode 0x48000002
Extension Base

Operands

  • LI
    24-bit Signed Immediate (Address / 4)