From 295e6610475216361a01a5bfb19883feaad3281e Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Wed, 9 Nov 2022 15:36:58 -0800 Subject: [PATCH] only need Z80 patch on IIc --- src/hw.mockingboard.a | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/hw.mockingboard.a b/src/hw.mockingboard.a index 18a6680fc..0db8b99a7 100644 --- a/src/hw.mockingboard.a +++ b/src/hw.mockingboard.a @@ -32,6 +32,12 @@ MAGIC_Z80_LOCATION=$FFD GetMockingboardStuff +ST16 @callback+1 + lda ROM_MACHINEID + cmp #$06 + bne @not_iic + ldx ROM_MACHINE2C + bne @not_iic + ; from mgcaret ; https://github.com/a2-4am/4cade/issues/483 ; the Mockingboard init can accidentally enable the Softcard Z80 @@ -48,14 +54,7 @@ GetMockingboardStuff sta MAGIC_Z80_LOCATION, x dex bpl - - - lda ROM_MACHINEID - cmp #$06 - bne @not_iic - ldx ROM_MACHINE2C - bne @not_iic - dex ; enable Mockingboard 4C support - stx $C403 + stx $C403 ; enable Mockingboard 4C support stx $C404 @not_iic