Skip to content

Instantly share code, notes, and snippets.

@Cyanne
Last active January 22, 2023 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cyanne/fb50bd7f008ff490b7cd0ea862767c1e to your computer and use it in GitHub Desktop.
Save Cyanne/fb50bd7f008ff490b7cd0ea862767c1e to your computer and use it in GitHub Desktop.
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