summaryrefslogtreecommitdiff
path: root/engine/battle/core.asm
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2020-02-21 15:56:47 +0100
committermid-kid <esteve.varela@gmail.com>2020-02-21 21:10:55 +0100
commit2a8c969bc7b10d9cc4c29f6660726ce1c943a597 (patch)
treec2db3e1ae0ef0ae40a9ce4b546d0589715aec97b /engine/battle/core.asm
parent345b585a788919d6f40a2a2ec3400c52ff285661 (diff)
Fix some comments and inmediates
Diffstat (limited to 'engine/battle/core.asm')
-rw-r--r--engine/battle/core.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index 1d5bbc769..f8d99b24e 100644
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -1821,10 +1821,10 @@ SubtractHP:
GetSixteenthMaxHP:
call GetQuarterMaxHP
- ; quarter result
+; quarter result
srl c
srl c
- ; round up
+; at least 1
ld a, c
and a
jr nz, .ok
@@ -1838,7 +1838,7 @@ GetEighthMaxHP:
; assumes nothing can have 1024 or more hp
; halve result
srl c
-; round up
+; at least 1
ld a, c
and a
jr nz, .end
@@ -1857,7 +1857,7 @@ GetQuarterMaxHP:
rr c
; assumes nothing can have 1024 or more hp
-; round up
+; at least 1
ld a, c
and a
jr nz, .end
@@ -1873,7 +1873,7 @@ GetHalfMaxHP:
srl b
rr c
-; floor = 1
+; at least 1
ld a, c
or b
jr nz, .end