All I want to do redefine a single colour so I can do a simple colour cycling animation, but I can't get it to work.
The palette index of that colour is $80 (dark red), and for the sake of this question let's say I want to redefine it to white (%111 111 11), and let's assume $80 will never appear anywhere else on that screen.
I'm trying this, and several other variations, but none of them work. I'm missing something obvious! How do I do it?
Code: Select all
ld bc, $43 ; (R/W) 0x43 (67) => Palette Control ld a, %x 110 xxxx ; 010 = Sprites first palette, %x 110 xxxx = 96 out (c), a ld bc, $40 ; (R/W) 0x40 (64) => Palette Index ld a, $80 ; $80 = default dark red out (c), a inc c ; (R/W) 0x41 (65) => Palette Value (8 bit colour) ld a, %11111111 ; %11111111 = RRRGGGBB white out (c), a