Skip to content

Instantly share code, notes, and snippets.

@ahirschberg
Created April 24, 2015 01:05
Show Gist options
  • Select an option

  • Save ahirschberg/8ffe6341ac2c509a513b to your computer and use it in GitHub Desktop.

Select an option

Save ahirschberg/8ffe6341ac2c509a513b to your computer and use it in GitHub Desktop.
LDX #$00 ; load #00 into x
LDY #$01
loop:
INX ; increment X
STX $0200 ; draw a pixel of color x to screen at top left corner
BCS done
BNE loop ; any way to loop without checking anything?
done:
BRK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment