mirror of
https://github.com/pret/pokegold.git
synced 2026-05-20 18:58:24 -05:00
32 lines
305 B
NASM
32 lines
305 B
NASM
InitString::
|
|
push hl
|
|
jr InitString_
|
|
|
|
InitName::
|
|
push hl
|
|
ld c, $a
|
|
InitString_::
|
|
push bc
|
|
.asm_2fbd
|
|
ld a, [hli]
|
|
cp $50
|
|
jr z, .asm_2fc9
|
|
cp $7f
|
|
jr nz, .asm_2fd4
|
|
dec c
|
|
jr nz, .asm_2fbd
|
|
.asm_2fc9
|
|
pop bc
|
|
ld l, e
|
|
ld h, d
|
|
pop de
|
|
ld b, $0
|
|
inc c
|
|
call CopyBytes
|
|
ret
|
|
|
|
.asm_2fd4
|
|
pop bc
|
|
pop hl
|
|
ret
|