summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstrid Smith2010-06-26 14:54:38 -0700
committerAstrid Smith2010-06-26 14:54:38 -0700
commit5f95387f149ea59eb800e22f8d593ce9140ad922 (patch)
tree5e901cf541cf7837c369828f916c952fc4d549c3
parentcf455eab07a202a5141d77fbb12f3ede08a00c93 (diff)
Corrected address error when accessing f_host_ccr.
-rw-r--r--flags.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/flags.asm b/flags.asm
index 19273d1..bc358e4 100644
--- a/flags.asm
+++ b/flags.asm
@@ -51,7 +51,7 @@ f_norm_c:
; d1 is destroyed in all cases, so you can use lsr and the C bit (same speed, smaller)
lsr.b #1,d1
bcs.s FNC_ok ; Bit is valid
- move.b f_host_ccr-flag_storage(a3),d1
+ move.b (f_host_sr+1)-flag_storage(a3),d1
andi.b #%00000001,d1
or.b d1,flag_byte-flag_storage(a3)
ori.b #%00000001,flag_valid-flag_storage(a3)
@@ -174,7 +174,7 @@ FNsign_ok:
;; Routine to turn 68k flags into z80 flags.
flags_normalize:
- move.b f_host_ccr(pc),d1 ; 8/4
+ move.b (f_host_sr+1)(pc),d1 ; 8/4
;; .w keeps d1 clean
andi.w #%00011111,d1 ; 8/4
move.b lut_ccr(pc,d1.w),d1 ; 10/4
@@ -214,7 +214,7 @@ f_tmp_result_w: dc.w 0
;; 000XNZVC
EVEN
;; DO NOT REARRANGE THESE
-f_host_sr: dc.b 0
+f_host_sr: dc.w 0
f_host_ccr: dc.b 0
EVEN