Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GenderSpecificLookup:
- ; species index in a
- ; pointer table in hl (dbbw SPECIES, BANK(Pointer), Pointer)
- ; return pointer b:hl, sets carry if found
- ; carry flag cleared if not found, no useful pointer information is returned in that case
- ld de, 4
- call IsInArray
- jr nc, .nope
- call GetGender
- jr c, .nope
- jr nz, .nope
- ld a, [hli]
- ld b, a
- ld a, [hli]
- ld h, [hl]
- ld l, a
- scf
- ret
- .nope
- and a
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement