summaryrefslogtreecommitdiff
path: root/opcodes.asm
diff options
context:
space:
mode:
authorDuncan Smith2010-06-26 13:47:25 -0700
committerDuncan Smith2010-06-26 13:47:25 -0700
commit1fa0a81e756870d263d6c4f7ffa5dc71e2299d09 (patch)
tree3855a8a95261b6ec8d35c4d051dbb95fb35736a7 /opcodes.asm
parent5e36765df09585ec20587299f3cd2f6b3c93a443 (diff)
Parted out ADC macro-instruction
Diffstat (limited to 'opcodes.asm')
-rw-r--r--opcodes.asm14
1 files changed, 4 insertions, 10 deletions
diff --git a/opcodes.asm b/opcodes.asm
index 9154ec4..2301c71 100644
--- a/opcodes.asm
+++ b/opcodes.asm
@@ -1288,16 +1288,10 @@ emu_op_87:
;; Do an ADC \2,\1
F_ADC_B MACRO ; S34
- ;; XXX TOO BIG
- bsr flags_normalize
- move.b flag_byte(pc),d0
- andi.b #1,d0
- add.b \1,d0
- move.b d0,(f_tmp_src_b-flag_storage)(a3)
- move.b \2,(f_tmp_dst_b-flag_storage)(a3)
- add.b d0,\2
- move sr,(f_host_ccr-flag_storage)(a3)
- move.w #$0202,(flag_byte-flag_storage)(a3)
+ move.b \2,d1
+ move.b \1,d0
+ bsr alu_adc
+ move.b d1,\2
ENDM
START