RosettaCodeData/Task/Conditional-structures/68000-Assembly/conditional-structures-2.68000

4 lines
177 B
Plaintext

BTST #7,D0 ;test bit 7 of D0, i.e. the leftmost bit in the rightmost byte.
BNE goHere ;if that bit is 1, branch to "goHere"
BEQ goThere ;if that bit is 0, branch to "goThere"