support Mockingboard 4C in slot 5

This commit is contained in:
Peter Ferrie 2024-08-24 08:22:11 -07:00
parent a64aa9cba7
commit 7e38d5b9e7

View File

@ -56,8 +56,18 @@ GetMockingboardStuff
sta MAGIC_Z80_LOCATION, x
dex
bpl -
stx $C403 ; enable Mockingboard 4C support
lda $C405
cmp #$38
bne not_mouse
lda $C407
cmp #$18
beq + ; looks like the mouse
stx $C403 ; enable Mockingboard 4C support in slot 4
stx $C404
bne @not_iic ; always
+ stx $C503 ; try enable Mockingboard 4C support in slot 5 instead
stx $C504
@not_iic
lda #$00