From bc4b495632fef4ffd18c79fa99bf2d236a2f1ac1 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Mon, 10 Oct 2022 13:58:07 -0700 Subject: [PATCH] fix Z80 offset --- src/hw.mockingboard.a | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hw.mockingboard.a b/src/hw.mockingboard.a index b56477015..2c512abba 100644 --- a/src/hw.mockingboard.a +++ b/src/hw.mockingboard.a @@ -27,7 +27,7 @@ ; A/Y clobbered ;------------------------------------------------------------------------------ -MAGIC_Z80_LOCATION=$FFC +MAGIC_Z80_LOCATION=$FFD GetMockingboardStuff +ST16 @callback+1 @@ -36,10 +36,11 @@ GetMockingboardStuff ; https://github.com/a2-4am/4cade/issues/483 ; the Mockingboard init can accidentally enable the Softcard Z80 ; and can crash the machine - ; solved by loading a small Z80 routine at $0FFC (FFFCh in the Z80 space): - ; $32 $00 $E4 $C3 FC FF which is + ; solved by loading a small Z80 routine at $0FFD (FFFDh in the Z80 space): + ; $32 $00 $E4 $C3 FD FF which is + ; NOP ; LD (E400h),A ; card is at $E400 due to memory translation - ; JP FFFCh + ; JP FFFDh ; returns the system to 6502 mode and leaves it in the same state as the Z80 after RESET: ; ready to execute the instruction at 0000h (from the Z80 perspective) ldx #5