mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
e3e0bcd653
Name a lot of text labels according to our conventions
25 lines
300 B
NASM
25 lines
300 B
NASM
KnowsMove:
|
|
ld a, MON_MOVES
|
|
call GetPartyParamLocation
|
|
ld a, [wPutativeTMHMMove]
|
|
ld b, a
|
|
ld c, NUM_MOVES
|
|
.loop
|
|
ld a, [hli]
|
|
cp b
|
|
jr z, .knows_move
|
|
dec c
|
|
jr nz, .loop
|
|
and a
|
|
ret
|
|
|
|
.knows_move
|
|
ld hl, .KnowsMoveText
|
|
call PrintText
|
|
scf
|
|
ret
|
|
|
|
.KnowsMoveText:
|
|
text_far _KnowsMoveText
|
|
text_end
|