Working with Colours
Last updated
byte $00,$00,$00
byte $ff,$00,$00
byte $00,$ff,$00
byte $00,$00,$ff align $500 ; or org $500 lda #$5
sta COLORSinclude "64cube.inc"
org $200
sei
lda #$f
sta VIDEO
lda #$3
sta COLORS
; draw once to screen
Draw:
txa
; optional styling to
; fill the top few lines
and #$5f
lsr
lsr
lsr
lsr
sta $f000,x
dex
bne Draw
Loop:
jmp Loop
; set palette values
org $500
hex 000000 ff0000 00ff00 0000ff