From 371539d66be8647b402c5b9821ad3de9c3fc5875 Mon Sep 17 00:00:00 2001 From: Duncan Smith Date: Mon, 14 Jun 2010 22:37:58 -0700 Subject: Removed LABEL-flag_storage(a3) business, as A68k was choking on it :( --- flags.asm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'flags.asm') diff --git a/flags.asm b/flags.asm index 928a6e7..a7c6c4b 100644 --- a/flags.asm +++ b/flags.asm @@ -17,15 +17,16 @@ F_CLEAR MACRO ;; Sets or clears the bit explicitly. ;; ;; Byte for which parity is calculated must be in \1. High - ;; byte of \1.w must be zero, using d0 is suggested. (d1 + ;; byte of \1.w must be zero, using d0 is suggested. (a0,d1 ;; destroyed) F_PAR MACRO - ori.b #%00000100,flag_valid-flag_storage(a3) ; ??/4 - move.b flag_byte-flag_storage(a3),d1 ; ??/2 - andi.b #%11111011,d1 ; ??/4 - or.b lut_parity-flag_storage(a3,\1.w),d1 ; ??/4 - move.b d1,flag_byte-flag_storage(a3) ; ??/2 + ori.b #%00000100,(flag_valid).w ; ??/4 + move.b (flag_byte).w,d1 ; ??/2 + andi.b #%11111011,d1 ; ??/4 + lea (lut_parity).w,a0 + or.b 0(a0,\1.w),d1 ; ??/4 + move.b d1,(flag_byte).w ; ??/2 ENDM ;xxx cycles (!) @@ -37,9 +38,9 @@ F_OVFL MACRO ;; Save the two operands from ADD \1,\2 F_ADD_SAVE MACRO - move.b \1,f_tmp_src_b-flag_storage(a3) - move.b \2,f_tmp_dst_b-flag_storage(a3) - move.b #$01,f_tmp_byte-flag_storage(a3) + move.b \1,(f_tmp_src_b).w + move.b \2,(f_tmp_dst_b).w + move.b #$01,(f_tmp_byte).w F_SET #% ENDM @@ -131,6 +132,7 @@ f_host_sr: ds.b 0 f_host_ccr: ds.b 0 EVEN + ;; DO NOT REARRANGE THESE. flag_byte: ds.b 0 ; Byte of all flags flag_valid: ds.b 0 ; Validity mask -- 1 if valid. -- cgit v1.2.3