mirror of
https://github.com/pret/pokeyellow.git
synced 2026-03-22 01:44:23 -05:00
26 lines
402 B
NASM
26 lines
402 B
NASM
SetMapSpecificScriptFlagsOnMapReload::
|
|
ld a, [wCurMap]
|
|
cp VERMILION_GYM
|
|
jr z, .vermilion_gym
|
|
ld c, a
|
|
ld hl, Bit5Maps
|
|
.search_loop
|
|
ld a, [hli]
|
|
cp c
|
|
jr z, .in_list
|
|
cp $ff
|
|
jr nz, .search_loop
|
|
ret
|
|
|
|
.vermilion_gym
|
|
ld hl, wCurrentMapScriptFlags
|
|
set BIT_CUR_MAP_LOADED_2, [hl]
|
|
ret
|
|
|
|
.in_list
|
|
ld hl, wCurrentMapScriptFlags
|
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
|
ret
|
|
|
|
INCLUDE "data/maps/bit_5_maps.asm"
|