SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
Direct Branch Using a 9-Bit Signed Constant Offset
B(cc) scst9
Functional unit = D
16 bit
15 | 7 | 6 | 0 |
scst9 | opcode |
9 | 7 |
Syntax | Opcode |
---|---|
B scst9 | 100 1010 |
BLT scst9 | 100 1011 |
BGT scst9 | 100 1110 |
BEQ scst9 | 100 1100 |
BLE scst9 | 100 1111 |
BGE scst9 | 101 0000 |
BNE scst9 | 100 1101 |
Performs a branch to the effective address formed by the signed addition of scst9 with the current PC value. The offset is considered as a halfword offset. Note that the PC always contains a halfword address.
This instruction has one delay slot. See Section 8.2.A.3.1 for restrictions on scheduling an instruction in this delay slot.
For conditional branches, if the associated conditional (cc) bit is set in the control status register (CSR), the branch is taken; otherwise, the PC is incremented by 1. Valid values for cc are:
None
if (cond) PC = (PC + scst9)
else PC = PC + 1