Identify more unnamed labels

This commit is contained in:
Rangi
2020-10-05 16:15:57 -04:00
parent ff2d850219
commit 6b7ade66da
13 changed files with 43 additions and 30 deletions

View File

@@ -758,7 +758,14 @@ EnemyUsedDireHit:
ld a, DIRE_HIT
jp PrintText_UsedItemOn_AND_AIUpdateHUD
Function3851e: ; unreferenced
AICheckEnemyFractionMaxHP: ; unreferenced
; Input: a = divisor
; Work: bc = [wEnemyMonMaxHP] / a
; Work: de = [wEnemyMonHP]
; Output:
; - c, nz if [wEnemyMonHP] > [wEnemyMonMaxHP] / a
; - nc, z if [wEnemyMonHP] = [wEnemyMonMaxHP] / a
; - nc, nz if [wEnemyMonHP] < [wEnemyMonMaxHP] / a
ldh [hDivisor], a
ld hl, wEnemyMonMaxHP
ld a, [hli]

View File

@@ -826,9 +826,9 @@ ENDM
jr nz, .row
ret
Function8c7c9: ; unreferenced
UnusedWaitBGMapOnce: ; unreferenced
ld a, 1
ldh [hBGMapMode], a
ldh [hBGMapMode], a ; redundant
call WaitBGMap
xor a
ldh [hBGMapMode], a

View File

@@ -8201,7 +8201,7 @@ InitEnemyWildmon:
predef PlaceGraphic
ret
Function3f662: ; unreferenced
FillEnemyMovesFromMoveIndicesBuffer: ; unreferenced
ld hl, wEnemyMonMoves
ld de, wListMoves_MoveIndicesBuffer
ld b, NUM_MOVES