only need Z80 patch on IIc

This commit is contained in:
Peter Ferrie 2022-11-09 15:36:58 -08:00
parent c0a282c00d
commit 295e661047
1 changed files with 7 additions and 8 deletions

View File

@ -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