pokecrystal-board/engine/routines/unreferenced_getgen1trainerclassname.asm
2018-01-23 17:39:09 -05:00

22 lines
318 B
NASM

Unreferenced_GetGen1TrainerClassName: ; 50a28
ld hl, Gen1TrainerClassNames
ld a, [wTrainerClass]
dec a
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a
ld de, wStringBuffer1
.copy
ld a, [hli]
ld [de], a
inc de
cp "@"
jr nz, .copy
ret
INCLUDE "data/unused/gen_1_trainer_names.asm"