summaryrefslogtreecommitdiff
path: root/engine/events/treemons.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/events/treemons.asm')
-rw-r--r--engine/events/treemons.asm26
1 files changed, 13 insertions, 13 deletions
diff --git a/engine/events/treemons.asm b/engine/events/treemons.asm
index cd78421d6..d3c0b672a 100644
--- a/engine/events/treemons.asm
+++ b/engine/events/treemons.asm
@@ -242,34 +242,34 @@ GetTreeScore:
add hl, bc
ld a, h
- ld [hDividend], a
+ ldh [hDividend], a
ld a, l
- ld [hDividend + 1], a
+ ldh [hDividend + 1], a
ld a, 5
- ld [hDivisor], a
+ ldh [hDivisor], a
ld b, 2
call Divide
- ld a, [hQuotient + 1]
- ld [hDividend], a
- ld a, [hQuotient + 2]
- ld [hDividend + 1], a
+ ldh a, [hQuotient + 1]
+ ldh [hDividend], a
+ ldh a, [hQuotient + 2]
+ ldh [hDividend + 1], a
ld a, 10
- ld [hDivisor], a
+ ldh [hDivisor], a
ld b, 2
call Divide
- ld a, [hQuotient + 3]
+ ldh a, [hRemainder]
ret
.OTIDScore:
ld a, [wPlayerID]
- ld [hDividend], a
+ ldh [hDividend], a
ld a, [wPlayerID + 1]
- ld [hDividend + 1], a
+ ldh [hDividend + 1], a
ld a, 10
- ld [hDivisor], a
+ ldh [hDivisor], a
ld b, 2
call Divide
- ld a, [hQuotient + 3]
+ ldh a, [hRemainder]
ret