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フラグの分岐:
btst #0,d2
beq bitIsCleared
; or
bne bitIsSet
登録するZフラグ:
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