mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
PALETTE_SIZE
This commit is contained in:
parent
a73c532738
commit
14ef9d3066
@ -4,6 +4,7 @@ LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes
|
|||||||
|
|
||||||
NUM_PAL_COLORS EQU 4
|
NUM_PAL_COLORS EQU 4
|
||||||
PAL_COLOR_SIZE EQU 2
|
PAL_COLOR_SIZE EQU 2
|
||||||
|
PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE
|
||||||
|
|
||||||
PALRGB_WHITE EQUS "palred 31 + palgreen 31 + palblue 31" ; $7fff
|
PALRGB_WHITE EQUS "palred 31 + palgreen 31 + palblue 31" ; $7fff
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ LoadHLPaletteIntoDE:
|
|||||||
push af
|
push af
|
||||||
ld a, BANK(wOBPals1)
|
ld a, BANK(wOBPals1)
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ld c, $8
|
ld c, PALETTE_SIZE
|
||||||
.loop
|
.loop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [de], a
|
ld [de], a
|
||||||
|
@ -280,7 +280,7 @@ CopyPals:: ; d50
|
|||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
|
|
||||||
; de += 8 (next pal)
|
; de += 8 (next pal)
|
||||||
ld a, NUM_PAL_COLORS * PAL_COLOR_SIZE
|
ld a, PALETTE_SIZE
|
||||||
add e
|
add e
|
||||||
jr nc, .ok
|
jr nc, .ok
|
||||||
inc d
|
inc d
|
||||||
|
@ -11,9 +11,9 @@ palred EQUS "(1 << 0) *"
|
|||||||
palgreen EQUS "(1 << 5) *"
|
palgreen EQUS "(1 << 5) *"
|
||||||
palblue EQUS "(1 << 10) *"
|
palblue EQUS "(1 << 10) *"
|
||||||
|
|
||||||
palettes EQUS "* 8"
|
palettes EQUS "* PALETTE_SIZE"
|
||||||
palette EQUS "+ 8 *"
|
palette EQUS "+ PALETTE_SIZE *"
|
||||||
color EQUS "+ 2 *"
|
color EQUS "+ PAL_COLOR_SIZE *"
|
||||||
|
|
||||||
tiles EQUS "* LEN_2BPP_TILE"
|
tiles EQUS "* LEN_2BPP_TILE"
|
||||||
tile EQUS "+ LEN_2BPP_TILE *"
|
tile EQUS "+ LEN_2BPP_TILE *"
|
||||||
|
Loading…
Reference in New Issue
Block a user