1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
;;; This program should test for a bug involving endianness.
start:
lda #$FF
sta $200 ; Put something on the screen, just to see
jmp second-pixel
brk
second-pixel:
lda #$E0 ; Red
sta $201
sta $220
sta $221 ; Draw a box around the white pixel
loop: ; Infinite loop
jmp loop