From 9e74cb1b6d3f8ea5a1b32abb7dce97e44e62dcd7 Mon Sep 17 00:00:00 2001 From: 4am Date: Mon, 9 Nov 2020 19:44:53 -0500 Subject: [PATCH] fix typo and clarify comment --- src/ui.attract.shr.a | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ui.attract.shr.a b/src/ui.attract.shr.a index e862c2013..4c74d850c 100644 --- a/src/ui.attract.shr.a +++ b/src/ui.attract.shr.a @@ -132,14 +132,14 @@ BlankSHR stx SHADOW ; VIDHD-SPECIFIC HACK HERE! -; On the II/II+/IIe, all $C03x are aliases for $C030, i.e. the speaker. +; On the II/II+/IIe, all $C03x addresses are aliases for $C030, i.e. the speaker. ; Any single access of the speaker register requires a second access within a short ; time to balance the level if we want to avoid an audible click, which we do here. -; Since we can't read from SHADOW before writing to it (VidHD will crash the machine -; if we do that - ask us how we know), we have to balance the speaker access by -; accessing a speaker address explicitly because let's not make VIDHD angry. -; Hence the write to SPEAKER. Do not remove. - stx SPEAKER +; Since we can't read from SHADOW before writing to it (it returns random values on +; 8-bit machines, which VidHD interprets as invalid graphic modes and crashes hard), +; we instead balance the speaker access with a second write to the same speaker- +; aliased softswitch. Do not remove. + stx SHADOW lsr ; clear $2000..$9FFF in auxmem ldx #$80