Bug fix to Mockingboard amplitude. Turn off noise!

This commit is contained in:
Bobbi Webber-Manners 2022-11-19 00:39:38 -05:00
parent 77b47d5386
commit 698f03ecdb
1 changed files with 6 additions and 2 deletions

View File

@ -88,6 +88,9 @@ MOCKSILENT LDX #13 ; Clear all 14 AY-3 regs
:L0 JSR MOCKWRT
DEX
BPL :L0
LDA #$38 ; Turn off noise
LDX #07
JSR MOCKWRT
RTS
@ -133,8 +136,9 @@ MOCKAMP PHX
CLC
ADC #7
TAX
TYA ; Amplitude 0..127
LSR ; Divide by 8
TYA ; Amplitude 0..255
LSR ; Divide by 16
LSR
LSR
LSR ; Now 0..15
JSR MOCKWRT ; Write value to AY-3 register