Quote:
Originally Posted by mcgeezer
Do you have any example code you can show?
BPLCON3 and BPLCON4 is primarily what controls these - did you look at their docs?
|
I only have the code to set the colors in the palettes, have not figured out how to assign palettes to playfields or sprites.
I do this to set the palette per bank
Code:
; Write palette to bank 0 hi and low order bits
; Bank 0 - Colors 0-31
dc.w $0106,$0000 ; First 12-bit color palette (LOCT=0)
dc.w $0180,$0F00
dc.w $0182,$00F0
dc.w $0184,$000F
.. For all colors in bank 0
dc.w $0106,$0200 ; Second 12-bit color palette (LOCT=1)
dc.w $0180,$0F00
dc.w $0182,$00F0
dc.w $0184,$000F
.. For all colors in bank 0
; Now I switch banks
; Bank 1 - Colors 32-63
dc.w $0106,$2000 ; First 12-bit color palette (LOCT=0)
dc.w $0180,$0F00
dc.w $0182,$00F0
dc.w $0184,$000F
.. For all colors in bank 1
dc.w $0106,$2200 ; Second 12-bit color palette (LOCT=1)
dc.w $0180,$0F00
dc.w $0182,$00F0
dc.w $0184,$000F
.. For all colors in bank 1
I want to use
Bank 0 - Color 0-15 for PF1
Bank 0 - Color 16-23 for PF2 - Or even 16-31 but currently i am keeping PF2 at 3 Bitplanes
Bank 1 - Color 0-15 for sprites