From d6709af5a8ec03fc4e6a8689456c2b12c674a92a Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Sat, 26 Jun 2010 13:44:07 -0700 Subject: Parted out ADD macro-instruction --- alu.asm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'alu.asm') diff --git a/alu.asm b/alu.asm index 22217bb..8fa4271 100644 --- a/alu.asm +++ b/alu.asm @@ -1,6 +1,20 @@ ;; Parting out the big math/logic routines from the ;; instruction dispatch table. +alu_add: + ;; ADD instruction + ;; ADD d1,d0 + ;; d1 + d0 -> d1 + move.b d0,f_tmp_src_b ; preserve operands for flag work + move.b d1,f_tmp_dst_b + move.b #1,(f_tmp_byte-flag_storage)(a3) + add d0,d1 + move sr,(f_host_sr-flag_storage)(a3) + move.w #0202,(flag_byte-flag_storage)(a3) + rts + +alu_adc: + alu_sbc: ;; SBC instruction ;; SBC d1,d0 -- cgit v1.2.3