hQuotient is a four-byte buffer (fixes #558)

This commit is contained in:
Rangi
2018-08-26 13:49:38 -04:00
parent cb32c895e4
commit 557ce82073
22 changed files with 107 additions and 110 deletions

View File

@@ -58,12 +58,12 @@ CalcExpAtLevel:
ld b, 4
call Divide
; Push the cubic term to the stack
ldh a, [hQuotient + 0]
push af
ldh a, [hQuotient + 1]
push af
ldh a, [hQuotient + 2]
push af
ldh a, [hQuotient + 3]
push af
; Square the level and multiply by the lower 7 bits of c
call .LevelSquared
ld a, [hl]