summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstrid Smith2010-07-02 14:05:51 -0700
committerAstrid Smith2010-07-02 14:05:51 -0700
commite93c37cdd00300abc6b12c014bd910a71b7463ab (patch)
treec7f30ab9c698fb2fd60d0240a5402c9c449eaa0b
parent372e2ac5356de4e4c3b9ae931d19a9cf568bd2a6 (diff)
Temporary fixes for alignment issues
-rw-r--r--alu.asm3
-rw-r--r--flags.asm3
2 files changed, 4 insertions, 2 deletions
diff --git a/alu.asm b/alu.asm
index cc81491..4f89f52 100644
--- a/alu.asm
+++ b/alu.asm
@@ -43,7 +43,8 @@ alu_sbc:
move.b d1,(f_tmp_dst_b-flag_storage)(a3)
sub.b d2,d1
move sr,(f_host_sr-flag_storage)(a3)
- move.w #$0202,(flag_byte-flag_storage)(a3)
+ move.b #$02,(flag_byte-flag_storage)(a3)
+ move.b #$02,(flag_valid-flag_storage)(a3)
pop.l d2
rts
diff --git a/flags.asm b/flags.asm
index bc358e4..62e1631 100644
--- a/flags.asm
+++ b/flags.asm
@@ -193,6 +193,7 @@ flags_all:
bsr f_calc_carries
rts
+ EVEN
flag_storage:
;; 0 if the flag is already valid
;; 2 if tmp_???b is valid
@@ -215,7 +216,7 @@ f_tmp_result_w: dc.w 0
EVEN
;; DO NOT REARRANGE THESE
f_host_sr: dc.w 0
-f_host_ccr: dc.b 0
+f_host_ccr: dc.b 0 ;XXX make overlap somehow?
EVEN
;; DO NOT REARRANGE THESE.