diff --git a/tic_tac.asm b/tic_tac.asm index c8e47c4..e98b824 100644 --- a/tic_tac.asm +++ b/tic_tac.asm @@ -24,13 +24,13 @@ sep #%00100000 ldx #$0000 - lda UntitledPalette.l, x -sta $2122 +sta $2122 ; $2122 - data for CG RAM write inx cpx #8 bne - lda #33 -sta $2121 +sta $2121 ; address for CG RAM write lda.l Palette2 sta $2122 lda.l Palette2 + 1 @@ -154,7 +154,6 @@ sta $4200 - ;sep #$30 ; get 8-bit registers ;stz $2121 ; write to CGRAM from $0 ;lda #%10000000 ; this is @@ -208,6 +207,9 @@ UntitledData: .db $00, $00, $00, $00, $01, $00, $03, $00, $07, $00, $0F, $00, $1F, $00, $3F, $00 UntitledPalette: + ;color schema here is %0RRRRRBB BBBGGGGG + ; final 2 bytes seem to be grid + ;.db %00000000, %00000000, %11100000, %01111111, %00011111, %00000000, %00000011 %11111111 .db $00, $00, $E0, $7F, $1F, $00, $FF, $03 Palette2: .db $E0, $7F