pokecrystal-board/home/pokedex_flags.asm

34 lines
455 B
NASM
Raw Normal View History

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