summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-08-07 04:24:06 -0700
committerYamaArashi <shadow962@live.com>2015-08-07 04:24:06 -0700
commit525f1b96f390a7b7625574405cad56277f200ef3 (patch)
treea715da91e46ebd5ba8a2e5eb808f49cf7ff854a2 /home.asm
parent8d30191707758a36b513c4368b9fdb7705730865 (diff)
named CountSetBits output variable
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/home.asm b/home.asm
index 2753307b..b33fbd4a 100644
--- a/home.asm
+++ b/home.asm
@@ -1292,7 +1292,7 @@ INCLUDE "engine/menu/start_menu.asm"
; hl = address of string of bytes
; b = length of string of bytes
; OUTPUT:
-; [wd11e] = number of set bits
+; [wNumSetBits] = number of set bits
CountSetBits:: ; 2b7f (0:2b7f)
ld c,0
.loop
@@ -1309,7 +1309,7 @@ CountSetBits:: ; 2b7f (0:2b7f)
dec b
jr nz,.loop
ld a,c
- ld [wd11e],a ; store number of set bits
+ ld [wNumSetBits],a
ret
; subtracts the amount the player paid from their money