PALETTE_SIZE

This commit is contained in:
Rangi 2018-01-22 19:57:35 -05:00
parent a73c532738
commit 14ef9d3066
4 changed files with 6 additions and 5 deletions

View File

@ -4,6 +4,7 @@ LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes
NUM_PAL_COLORS EQU 4
PAL_COLOR_SIZE EQU 2
PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE
PALRGB_WHITE EQUS "palred 31 + palgreen 31 + palblue 31" ; $7fff

View File

@ -497,7 +497,7 @@ LoadHLPaletteIntoDE:
push af
ld a, BANK(wOBPals1)
ld [rSVBK], a
ld c, $8
ld c, PALETTE_SIZE
.loop
ld a, [hli]
ld [de], a

View File

@ -280,7 +280,7 @@ CopyPals:: ; d50
jr nz, .loop
; de += 8 (next pal)
ld a, NUM_PAL_COLORS * PAL_COLOR_SIZE
ld a, PALETTE_SIZE
add e
jr nc, .ok
inc d

View File

@ -11,9 +11,9 @@ palred EQUS "(1 << 0) *"
palgreen EQUS "(1 << 5) *"
palblue EQUS "(1 << 10) *"
palettes EQUS "* 8"
palette EQUS "+ 8 *"
color EQUS "+ 2 *"
palettes EQUS "* PALETTE_SIZE"
palette EQUS "+ PALETTE_SIZE *"
color EQUS "+ PAL_COLOR_SIZE *"
tiles EQUS "* LEN_2BPP_TILE"
tile EQUS "+ LEN_2BPP_TILE *"