From 698f03ecdb6475f868da9dbb8e9d3c1083e8db53 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Sat, 19 Nov 2022 00:39:38 -0500 Subject: [PATCH] Bug fix to Mockingboard amplitude. Turn off noise! --- mainmem.mock.s | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mainmem.mock.s b/mainmem.mock.s index 81b9221..db156da 100644 --- a/mainmem.mock.s +++ b/mainmem.mock.s @@ -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