Identify more uses of wBuffer1-6

This commit is contained in:
Rangi
2020-11-03 19:53:07 -05:00
parent 826e070f04
commit c88c4a8340
29 changed files with 327 additions and 264 deletions

View File

@@ -635,7 +635,7 @@ LoadPinkPage:
call .CalcExpToNextLevel
hlcoord 13, 13
lb bc, 3, 7
ld de, wBuffer1
ld de, wExpToNextLevel
call PrintNum
ld de, .LevelUpStr
hlcoord 10, 12
@@ -679,18 +679,18 @@ LoadPinkPage:
ldh a, [hQuotient + 3]
sub [hl]
dec hl
ld [wBuffer3], a
ld [wExpToNextLevel + 2], a
ldh a, [hQuotient + 2]
sbc [hl]
dec hl
ld [wBuffer2], a
ld [wExpToNextLevel + 1], a
ldh a, [hQuotient + 1]
sbc [hl]
ld [wBuffer1], a
ld [wExpToNextLevel], a
ret
.AlreadyAtMaxLevel:
ld hl, wBuffer1
ld hl, wExpToNextLevel
xor a
ld [hli], a
ld [hli], a
@@ -732,11 +732,11 @@ LoadGreenPage:
call CopyBytes
hlcoord 8, 10
ld a, SCREEN_WIDTH * 2
ld [wBuffer1], a
ld [wListMovesLineSpacing], a
predef ListMoves
hlcoord 12, 11
ld a, SCREEN_WIDTH * 2
ld [wBuffer1], a
ld [wListMovesLineSpacing], a
predef ListMovePP
ret