Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

3.6.  Detailed Descriptions of 16-bit Branch/Jump Instructions

3.6.1. BRA: Relative Branch
3.6.2. BAL: Relative Branch and Link
3.6.3. BEQ: Relative Branch if Equal
3.6.4. BNE: Relative Branch if Not Equal
3.6.5. BLTS: Relative Branch if Signed Less Than
3.6.6. BGTS: Relative Branch if Signed Greater Than
3.6.7. BLTU: Relative Branch if Unsigned Less Than
3.6.8. BGTU: Relative Branch if Unsigned Greater Than
3.6.9. JMP: Absolute Jump
3.6.10. JAL: Absolute Jump and Link
3.6.11. JEQ: Absolute Jump if Equal
3.6.12. JNE: Absolute Jump if Not Equal
3.6.13. JLTS: Absolute Jump if Signed Less Than
3.6.14. JGTS: Absolute Jump if Signed Greater Than
3.6.15. JLTU: Absolute Jump if Unsigned Less Than
3.6.16. JGTU: Absolute Jump if Unsigned Greater Than
[Note]Note

The only branch/jump comparisons provided are for "equal", "not equal", "less than" and "greater than". Branch/jump comparisons for "less than or equal" and "greater than or equal" can be provided by using "greater than" and "less than" respectively in the opposite direction."

Purists will point out that this reduces the opportunity for branch prediction and pipeline preservation. However the limited instruction space means not all opcodes can be provided.

Embecosm divider strip