Skip to content

Instantly share code, notes, and snippets.

@mach-kernel
Created February 19, 2018 02:18
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 mach-kernel/7e6ed292891afe0f28a3bd228fddbaa6 to your computer and use it in GitHub Desktop.
Save mach-kernel/7e6ed292891afe0f28a3bd228fddbaa6 to your computer and use it in GitHub Desktop.
up cpy #0
beq ping
dey
jmp finkey
down cpy #22
beq ping
iny
jmp finkey
left cpx #0
beq ping
dex
jmp finkey
right cpx #39
beq ping
jmp *+2
colinc cpx #39
beq :rolcol
inx
jmp finkey
:rolcol ldx #0
jmp down
return ldx #0
jmp down
backspace lda #$A0
cpx #0
beq :contbs
dex
:contbs jsr drawchar
jmp finkey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment