diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-24 08:38:12 -0700 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-24 08:38:12 -0700 |
commit | 3dedf4c109b6883c8731918a8e59cb21b2bbec26 (patch) | |
tree | 0e7a8167c809e1c97162c0fd250029d386039085 /home/pokedex_flags.asm | |
parent | d536990828adee8a47e71f24ec45900ea783cd7a (diff) | |
parent | f6a5d7b2f2bce987ae7d5e291e80e830516c2965 (diff) |
Merge pull request #204 from yenatch/master
Some uncommented code.
Diffstat (limited to 'home/pokedex_flags.asm')
-rw-r--r-- | home/pokedex_flags.asm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/home/pokedex_flags.asm b/home/pokedex_flags.asm new file mode 100644 index 000000000..bcd0f2afa --- /dev/null +++ b/home/pokedex_flags.asm @@ -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 + |