I am dabbling with logones and I am having a bit of trouble understanding how the pallettes work. I am comfortable with .chr and nametable and I am using shirus nesST to edit both. The one thing which is tripping me up is the colors. As far as I can work out, the 4 pallets are defined in logones NOT in nesST. The relevant code is this part here
palette: ; palette data
; p1 p1 p1 p1 p2 p2 p2 p2 p3 p3 p3 p3 p4 p4 p4 p4
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 0 - aligns with pic0.nam below
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$0F,$0F,$00,$0F ; palette 1 - alings with pic1.nam below
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 2 - aligns with you know what below...
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 3
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 4
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 5
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 6
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 7
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 8
.byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 9
But the nametables dont always seem to use the palettes I expect after I complile the rom. As far as I can work out, each 16x16 square of tiles has some way to specify which of the 4 palettes it should use? Is that right? However when I am using nesST I cant quite nail down how to specify that. Also in logo nes. it is pallet 4 which color cycles?
Sorry if that is a bit specific but thanks to anyone who can help!