Pinstripe/Display: Difference between revisions
m
→{{header|6502 Assembly}}
Puppydrum64 (talk | contribs) m (→{{header|6502 Assembly}}: changed it so that white stripes are first) |
Puppydrum64 (talk | contribs) |
||
Line 23:
lda color
and #$01
; this takes advantage of the fact that Easy6502 maps black to 0 and white to 1.
; Thus if we clear all but bit 0 the color will be either black or white, alternating infinitely regardless of the actual value
; of the color variable.
sta $0200,x
|