BTST #0,D2 ;Testing the LSB bit in data register 0
BEQ LabelForZSet
;Code for Z clear
于 2012-10-10T13:05:33.853 回答
This answer is useful
1
Z-Flag 上的分支:
btst #0,d2
beq bitIsCleared
; or
bne bitIsSet
Z-Flag 注册:
btst #0,d2
sne d0
; d0 (byte only) will now be 0xFF if bit was set, 0x00 otherwise)
; if a word is required add ext.w d0
; if a long is required add also ext.l d0