use ALTZP offset to avoid test/branch

This commit is contained in:
Aaron Culliney 2014-05-10 18:09:32 -07:00
parent 0c25ec25d6
commit 442fe390de

View File

@ -137,10 +137,10 @@
movb SN(cpu65_current)+4, X_Reg; \ movb SN(cpu65_current)+4, X_Reg; \
movb SN(cpu65_current)+5, Y_Reg; \ movb SN(cpu65_current)+5, Y_Reg; \
movb SN(cpu65_current)+6, SP_Reg_L; \ movb SN(cpu65_current)+6, SP_Reg_L; \
testl $SS_ALTZP, SN(softswitches); \ movl SN(base_stackzp), %eax; \
jz 9f; \ subl $SN(apple_ii_64k), %eax; \
orl $BANK2, SP_Reg; \ orl %eax, SP_Reg; \
9: xorl %eax, %eax;
#define BranchXCycles \ #define BranchXCycles \
incb DebugCycleCount; /* +1 branch taken */ \ incb DebugCycleCount; /* +1 branch taken */ \