summaryrefslogtreecommitdiff
path: root/home/pokedex_flags.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/pokedex_flags.asm')
-rw-r--r--home/pokedex_flags.asm38
1 files changed, 38 insertions, 0 deletions
diff --git a/home/pokedex_flags.asm b/home/pokedex_flags.asm
new file mode 100644
index 00000000..7aacd498
--- /dev/null
+++ b/home/pokedex_flags.asm
@@ -0,0 +1,38 @@
+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