mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
8639fcd29b
Besides making predefs convenient, naming a predef no longer requires adding or renaming a predef constant. This also lets predefs be rearranged at will.
40 lines
514 B
NASM
40 lines
514 B
NASM
SetSeenAndCaughtMon:: ; 3380
|
|
push af
|
|
ld c, a
|
|
ld hl, PokedexCaught
|
|
ld b, SET_FLAG
|
|
call PokedexFlagAction
|
|
pop af
|
|
; fallthrough
|
|
; 338b
|
|
|
|
SetSeenMon:: ; 338b
|
|
ld c, a
|
|
ld hl, PokedexSeen
|
|
ld b, SET_FLAG
|
|
jr PokedexFlagAction
|
|
; 3393
|
|
|
|
CheckCaughtMon:: ; 3393
|
|
ld c, a
|
|
ld hl, PokedexCaught
|
|
ld b, CHECK_FLAG
|
|
jr PokedexFlagAction
|
|
; 339b
|
|
|
|
CheckSeenMon:: ; 339b
|
|
ld c, a
|
|
ld hl, PokedexSeen
|
|
ld b, CHECK_FLAG
|
|
; fallthrough
|
|
; 33a1
|
|
|
|
PokedexFlagAction:: ; 33a1
|
|
ld d, 0
|
|
predef FlagPredef
|
|
ld a, c
|
|
and a
|
|
ret
|
|
; 33ab
|
|
|