Initialize backLayer.

The zeropage variable backLayer was uninitialized. The program only happened to work if $0090 happened to be $00 (or $01 ?) on startup.
This commit is contained in:
Oliver Schmidt 2020-01-11 14:55:13 +01:00 committed by GitHub
parent d785b58c26
commit 8274d0252b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,8 @@ store:
dex
bpl :-
sta backLayer ; set back layer to 0
ldx #((BitMasksEnd - BitMasks) - 1)
:
lda BitMasks, x