summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.