mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-23 11:31:41 +00:00
Refactoring: shifting to avoid stack hit
This commit is contained in:
parent
05e10b7eb8
commit
30cf264aa6
@ -82,7 +82,7 @@
|
||||
|
||||
#define BranchXCycles \
|
||||
incb DebugCycleCount; /* +1 branch taken */ \
|
||||
pushl %ebx; \
|
||||
shll $16, %ebx; \
|
||||
movw PC_Reg, %bx; \
|
||||
cbw; \
|
||||
addw %bx, %ax; \
|
||||
@ -90,7 +90,7 @@
|
||||
cmpb %ah, %bh; \
|
||||
je 9f; \
|
||||
incb DebugCycleCount; /* +1 branch new page */ \
|
||||
9: popl %ebx;
|
||||
9: shrl $16, %ebx;
|
||||
|
||||
#define FlagC lahf; \
|
||||
andb $C_Flag, %ah; \
|
||||
|
Loading…
Reference in New Issue
Block a user