1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
|