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

@@ -62,7 +62,7 @@ Phone_FindOpenSlot:
GetRemainingSpaceInPhoneList:
xor a
ld [wBuffer1], a
ld [wRegisteredPhoneNumbers], a
ld hl, PermanentNumbers
.loop
ld a, [hli]
@@ -76,7 +76,7 @@ GetRemainingSpaceInPhoneList:
ld c, a
call _CheckCellNum
jr c, .permanent
ld hl, wBuffer1
ld hl, wRegisteredPhoneNumbers
inc [hl]
.permanent
pop hl
@@ -87,7 +87,7 @@ GetRemainingSpaceInPhoneList:
.done
ld a, CONTACT_LIST_SIZE
ld hl, wBuffer1
ld hl, wRegisteredPhoneNumbers
sub [hl]
ret