Last active
January 22, 2023 22:00
-
-
Save Cyanne/fb50bd7f008ff490b7cd0ea862767c1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LDX $00 ; Initialize X: Drawing position | |
loop: | |
LDA $ff ; Load key register. | |
CMP $00 ; ╮ Loop back on no input. | |
BEQ loop ; ╯ | |
STA $0200,X ; Draw dot for key input color | |
LDA #$00 ; ╮ Polling done, reinitialize | |
STA $ff ; ╯ input register. | |
INX ; Increment drawing position | |
JMP loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment