diff options
| author | Duncan Smith | 2010-06-26 14:54:38 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-06-26 14:54:38 -0700 |
| commit | e9b9990833bfd1de7e8ed726a686076b2fb0e512 (patch) | |
| tree | e2c267c36143c0abdbb4eb6e637e8c7327313b52 /flags.asm | |
| parent | 2a7bd0bf373f264c3e8878fba93e4df7aa5f4af7 (diff) | |
Corrected address error when accessing f_host_ccr.
Diffstat (limited to 'flags.asm')
| -rw-r--r-- | flags.asm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
