bra
Branch always
Branches to the specified address unconditionally.
Sizes .b .s .w .l
Used in
- Compare and branchM68K assembly
- Loops and dbraM68K assembly
- Arithmetic, logic and bitsM68K assembly
- Arrays, strings and (a0)+M68K assembly
- bsr, rts, link and unlkM68K assembly
- The screen, keyboard and mouse through trapsM68K assembly
- Exceptions and the vector tableM68K assembly
- Interrupts and cyclesM68K assembly
- The bigger of two numbersM68K assembly
- Length of a stringM68K assembly
XNZVC –––––
- Leaves every flag unchanged
Forms
bra
Operands
label- A branch target, written as a label or address. The assembler calculates the relative displacement. More
The size sets the branch’s reach: about 128 bytes in either direction for .s (or .b), and 32 KB for .w. With no size, the assembler chooses .s for a known target when the short encoding can reach it. On the 68020, it chooses .l for a known target beyond .w reach. All other cases use .w, including forward references. On the 68020, .l reaches anywhere in memory. See long branches. On the 68000 and 68010, .l is treated as .w, as in EASy68K.
move.l #1, d0
bra skip
move.l #$DEAD, d0 ; never reached
skip:
move.l #$FF, d1