fix typo and clarify comment

This commit is contained in:
4am 2020-11-09 19:44:53 -05:00
parent 68bb9e0454
commit 9e74cb1b6d

View File

@ -132,14 +132,14 @@ BlankSHR
stx SHADOW stx SHADOW
; VIDHD-SPECIFIC HACK HERE! ; 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 ; 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. ; 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 ; Since we can't read from SHADOW before writing to it (it returns random values on
; if we do that - ask us how we know), we have to balance the speaker access by ; 8-bit machines, which VidHD interprets as invalid graphic modes and crashes hard),
; accessing a speaker address explicitly because let's not make VIDHD angry. ; we instead balance the speaker access with a second write to the same speaker-
; Hence the write to SPEAKER. Do not remove. ; aliased softswitch. Do not remove.
stx SPEAKER stx SHADOW
lsr ; clear $2000..$9FFF in auxmem lsr ; clear $2000..$9FFF in auxmem
ldx #$80 ldx #$80