From 5f95387f149ea59eb800e22f8d593ce9140ad922 Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Sat, 26 Jun 2010 14:54:38 -0700 Subject: Corrected address error when accessing f_host_ccr. --- flags.asm | 6 +++--- 1 file 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 -- cgit v1.2.3