support Mockingboard 4C in slot 5

This commit is contained in:
Peter Ferrie 2025-01-04 11:08:44 -08:00
parent bb6b388c16
commit 81fce4c7bc

View File

@ -56,8 +56,22 @@ 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 @use_slot5 ; looks like the mouse
@not_mouse
stx $C403 ; enable Mockingboard 4C support in slot 4
stx $C404
bne @not_iic ; always
@use_slot5
stx $C503 ; try enable Mockingboard 4C support in slot 5 instead
stx $C504
@not_iic
lda #$00