pokecrystal/home/pokedex_flags.asm

34 lines
455 B
NASM
Raw Normal View History

2018-06-24 14:09:41 +00:00
SetSeenAndCaughtMon::
push af
ld c, a
2018-01-23 22:39:09 +00:00
ld hl, wPokedexCaught
ld b, SET_FLAG
call PokedexFlagAction
pop af
; fallthrough
2018-06-24 14:09:41 +00:00
SetSeenMon::
ld c, a
2018-01-23 22:39:09 +00:00
ld hl, wPokedexSeen
ld b, SET_FLAG
jr PokedexFlagAction
2018-06-24 14:09:41 +00:00
CheckCaughtMon::
ld c, a
2018-01-23 22:39:09 +00:00
ld hl, wPokedexCaught
ld b, CHECK_FLAG
jr PokedexFlagAction
2018-06-24 14:09:41 +00:00
CheckSeenMon::
ld c, a
2018-01-23 22:39:09 +00:00
ld hl, wPokedexSeen
ld b, CHECK_FLAG
; fallthrough
2018-06-24 14:09:41 +00:00
PokedexFlagAction::
ld d, 0
predef SmallFarFlagAction
ld a, c
and a
ret