mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
d3cc861d33
Renamed a bunch of files, most of them one-off functions, to better fit the general snake_case naming scheme. Also renamed some awfully long filenames.
26 lines
328 B
NASM
26 lines
328 B
NASM
KnowsMove: ; f9ea
|
|
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, .Text_knows
|
|
call PrintText
|
|
scf
|
|
ret
|
|
|
|
.Text_knows: ; 0xfa06
|
|
; knows @ .
|
|
text_jump UnknownText_0x1c5ea8
|
|
db "@"
|