pokecrystal-board/engine/events/poisonstep_pals.asm

27 lines
418 B
NASM
Raw Normal View History

2018-06-24 07:09:41 -07:00
LoadPoisonBGPals:
call .LoadPals
2020-11-17 08:09:02 -08:00
ret
2018-06-24 07:09:41 -07:00
.LoadPals:
ldh a, [rSVBK]
push af
ld a, BANK(wBGPals2)
ldh [rSVBK], a
2018-01-01 06:08:21 -08:00
ld hl, wBGPals2
2018-01-01 05:47:16 -08:00
ld c, 4 palettes
.loop
ld a, LOW(palred 28 + palgreen 21 + palblue 31)
ld [hli], a
ld a, HIGH(palred 28 + palgreen 21 + palblue 31)
ld [hli], a
dec c
jr nz, .loop
pop af
ldh [rSVBK], a
2020-08-03 14:41:01 -07:00
ld a, TRUE
ldh [hCGBPalUpdate], a
ld c, 4
call DelayFrames
2017-12-24 09:47:30 -08:00
farcall _UpdateTimePals
ret