summaryrefslogtreecommitdiff
path: root/opcodes.asm
diff options
context:
space:
mode:
authorDuncan Smith2010-06-26 13:44:07 -0700
committerDuncan Smith2010-06-26 13:44:07 -0700
commit5e36765df09585ec20587299f3cd2f6b3c93a443 (patch)
treee391a47b025a1b82b831eba277730eacb8115cb1 /opcodes.asm
parentc51068dad4d141463c17dc32a3c096c2be1bfec0 (diff)
Parted out ADD macro-instruction
Diffstat (limited to 'opcodes.asm')
-rw-r--r--opcodes.asm10
1 files changed, 4 insertions, 6 deletions
diff --git a/opcodes.asm b/opcodes.asm
index fca259c..9154ec4 100644
--- a/opcodes.asm
+++ b/opcodes.asm
@@ -1222,12 +1222,10 @@ emu_op_7f:
;; XXX check this
;; XXX make it shorter ... D:
F_ADD_B MACRO ; 14 bytes?
- move.b \1,f_tmp_src_b ; preserve operands for flag work
- move.b \2,f_tmp_dst_b
- move.b #1,(f_tmp_byte-flag_storage)(a3)
- add \1,\2
- move sr,(f_host_sr-flag_storage)(a3)
- move.w #0202,(flag_byte-flag_storage)(a3)
+ move.b \2,d1
+ move.b \1,d0
+ bsr alu_add
+ move.b d1,\2
ENDM
START