aboutsummaryrefslogtreecommitdiffstats
path: root/home/names.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2025-11-12 17:56:10 -0600
committerdannye <33dannye@gmail.com>2025-11-12 17:56:10 -0600
commit324ae167d15ae4eef3cda411e10201661e57d88d (patch)
tree86c2b73ce1262f12c1b3eb82874e8572e80e583f /home/names.asm
parentSeparate surfing Pikachu graphics from audio engine code (diff)
parentUse features of RGBDS 1.0.0 (#537) (diff)
downloadpokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.tar.gz
pokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.tar.xz
pokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'home/names.asm')
-rw-r--r--home/names.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/home/names.asm b/home/names.asm
index 5848cb19..4b6f6903 100644
--- a/home/names.asm
+++ b/home/names.asm
@@ -16,7 +16,7 @@ GetMonName::
ld bc, NAME_LENGTH - 1
call CopyData
ld hl, wNameBuffer + NAME_LENGTH - 1
- ld [hl], "@"
+ ld [hl], '@'
pop de
pop af
ldh [hLoadedROMBank], a
@@ -74,7 +74,7 @@ GetMachineName::
; now get the machine number and convert it to text
ld a, [wNamedObjectIndex]
sub TM01 - 1
- ld b, "0"
+ ld b, '0'
.FirstDigit
sub 10
jr c, .SecondDigit
@@ -87,11 +87,11 @@ GetMachineName::
ld [de], a
inc de
pop af
- ld b, "0"
+ ld b, '0'
add b
ld [de], a
inc de
- ld a, "@"
+ ld a, '@'
ld [de], a
pop af
ld [wNamedObjectIndex], a