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
Comments
0 B
|👍
/👎
0 B
|👍
/👎