mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
81fff9bb80
I have no idea why this was a thing (do people store this repo on FAT32 flash drives or something?), but quite a bit of files had a permission of 755. This isn't really a problem, but it's inconsistent and weird.
50 lines
563 B
NASM
50 lines
563 B
NASM
CanLearnTMHMMove: ; 11639
|
|
ld a, [wCurPartySpecies]
|
|
ld [wCurSpecies], a
|
|
call GetBaseData
|
|
ld hl, wBaseTMHM
|
|
push hl
|
|
|
|
ld a, [wPutativeTMHMMove]
|
|
ld b, a
|
|
ld c, 0
|
|
ld hl, TMHMMoves
|
|
.loop
|
|
ld a, [hli]
|
|
and a
|
|
jr z, .end
|
|
cp b
|
|
jr z, .asm_11659
|
|
inc c
|
|
jr .loop
|
|
|
|
.asm_11659
|
|
pop hl
|
|
ld b, CHECK_FLAG
|
|
push de
|
|
ld d, 0
|
|
predef SmallFarFlagAction
|
|
pop de
|
|
ret
|
|
|
|
.end
|
|
pop hl
|
|
ld c, 0
|
|
ret
|
|
; 1166a
|
|
|
|
GetTMHMMove: ; 1166a
|
|
ld a, [wd265]
|
|
dec a
|
|
ld hl, TMHMMoves
|
|
ld b, 0
|
|
ld c, a
|
|
add hl, bc
|
|
ld a, [hl]
|
|
ld [wd265], a
|
|
ret
|
|
; 1167a
|
|
|
|
|
|
INCLUDE "data/moves/tmhm_moves.asm"
|