mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
34 lines
455 B
NASM
34 lines
455 B
NASM
SetSeenAndCaughtMon::
|
|
push af
|
|
ld c, a
|
|
ld hl, wPokedexCaught
|
|
ld b, SET_FLAG
|
|
call PokedexFlagAction
|
|
pop af
|
|
; fallthrough
|
|
|
|
SetSeenMon::
|
|
ld c, a
|
|
ld hl, wPokedexSeen
|
|
ld b, SET_FLAG
|
|
jr PokedexFlagAction
|
|
|
|
CheckCaughtMon::
|
|
ld c, a
|
|
ld hl, wPokedexCaught
|
|
ld b, CHECK_FLAG
|
|
jr PokedexFlagAction
|
|
|
|
CheckSeenMon::
|
|
ld c, a
|
|
ld hl, wPokedexSeen
|
|
ld b, CHECK_FLAG
|
|
; fallthrough
|
|
|
|
PokedexFlagAction::
|
|
ld d, 0
|
|
predef SmallFarFlagAction
|
|
ld a, c
|
|
and a
|
|
ret
|