Move some more main.asm routines into individual files

This commit is contained in:
Remy Oukaour
2017-12-16 19:00:50 -05:00
parent 05d49f7d75
commit 25a3960646
21 changed files with 301 additions and 300 deletions

25
engine/knows_move.asm Normal file
View File

@@ -0,0 +1,25 @@
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 "@"