You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
split pokedex flag handling into home/pokedex_flags.asm
This commit is contained in:
40
home/pokedex_flags.asm
Normal file
40
home/pokedex_flags.asm
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
ld a, PREDEF_FLAG
|
||||
call Predef
|
||||
ld a, c
|
||||
and a
|
||||
ret
|
||||
; 33ab
|
||||
|
Reference in New Issue
Block a user