more MB fixes per TomCh

This commit is contained in:
Peter Ferrie 2020-05-18 08:21:16 -07:00
parent 606154ea7b
commit 2cec485cbd

View File

@ -53,10 +53,10 @@ GetMockingboardStuff
ldy #$0c ldy #$0c
sty @mb_smc1 + 1 sty @mb_smc1 + 1
iny iny
sty @mb_smc8 + 1 sty @mb_smc10 + 1
iny iny
sty @mb_smc5 + 1 sty @mb_smc5 + 1
sty @mb_smc12 + 1 sty @mb_smc14 + 1
+HIDE_NEXT_2_BYTES +HIDE_NEXT_2_BYTES
@foundII ;stereo @foundII ;stereo
@ -75,6 +75,8 @@ GetMockingboardStuff
sta @mb_smc10 + 2 sta @mb_smc10 + 2
sta @mb_smc11 + 2 sta @mb_smc11 + 2
sta @mb_smc12 + 2 sta @mb_smc12 + 2
sta @mb_smc13 + 2
sta @mb_smc14 + 2
; detect speech chip ; detect speech chip
@ -127,9 +129,12 @@ GetMockingboardStuff
lda #7 lda #7
@mb_smc7 @mb_smc7
sta $c402 sta $c402
@mb_smc8
sty $c483
@mb_smc9
sta $c482
lda $81 and $81
and #7
ora $82 ora $82
tax tax
lda #<Ignore lda #<Ignore
@ -138,6 +143,7 @@ GetMockingboardStuff
sta $ffff sta $ffff
iny iny
sty $80
tya tya
sta ($80),y sta ($80),y
lda #4 lda #4
@ -161,20 +167,20 @@ GetMockingboardStuff
@mb_irq @mb_irq
lda #2 lda #2
@mb_smc8 @mb_smc10
sta $c48d sta $c48d
lda #$80 lda #$80
@mb_smc9 @mb_smc11
sta $c443 sta $c443
lda #0 lda #0
@mb_smc10 @mb_smc12
sta $c440 sta $c440
lda #$70 lda #$70
@mb_smc11 @mb_smc13
sta $c443 sta $c443
sta $80 sta $80
lda #2 lda #2
@mb_smc12 @mb_smc14
sta $c48e sta $c48e
lda $45 lda $45
rti rti