drz80: drop fast_sp for compatibility

no measurable improvement in most cases anyway
This commit is contained in:
notaz
2017-08-11 02:12:57 +03:00
committed by twinaphex
parent a765263b80
commit 49c8aa78d9
2 changed files with 20 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
.global DrZ80Ver
.equiv INTERRUPT_MODE, 0 ;@0 = Use internal int handler, 1 = Use Mames int handler
.equiv FAST_Z80SP, 1 ;@0 = Use mem functions for stack pointer, 1 = Use direct mem pointer
.equiv FAST_Z80SP, 0 ;@0 = Use mem functions for stack pointer, 1 = Use direct mem pointer
.equiv UPDATE_CONTEXT, 0
.equiv DRZ80_XMAP, 1
.equiv DRZ80_XMAP_MORE_INLINE, 1
@@ -212,6 +212,7 @@ z80_bad_jump:
mov z80pc,r0
ldmfd sp!,{r3,r12,pc}
.if FAST_Z80SP
z80_xmap_rebase_sp:
ldr r1,[cpucontext,#z80_read8]
sub r2,r0,#1
@@ -228,6 +229,7 @@ z80_xmap_rebase_sp:
ldr pc,[cpucontext,#z80_rebaseSP]
mov z80sp,r0
ldmfd sp!,{r3,r12,pc}
.endif @ FAST_Z80SP
.endif @ DRZ80_XMAP