use PAL_COLOR_SIZE

This commit is contained in:
Rangi
2018-01-26 21:25:49 -05:00
parent ea480fa31e
commit 4d93741a54
2 changed files with 4 additions and 3 deletions

View File

@@ -253,7 +253,7 @@ CopyPals:: ; d50
; get pal color
ld a, b
and %11 ; color
maskbits 1 << PAL_COLOR_SIZE
; 2 bytes per color
add a
ld l, a
@@ -271,8 +271,9 @@ CopyPals:: ; d50
ld [hl], d
inc hl
; next pal color
rept PAL_COLOR_SIZE
srl b
srl b
endr
; source
pop de
; done pal?