pokecrystal/engine/battle/unreferenced_getgen1trainer...

22 lines
314 B
NASM
Raw Normal View History

2018-06-24 14:09:41 +00:00
Unreferenced_GetGen1TrainerClassName:
2018-01-21 22:45:56 +00:00
ld hl, Gen1TrainerClassNames
2018-01-23 22:39:09 +00:00
ld a, [wTrainerClass]
2018-01-21 22:45:56 +00:00
dec a
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a
2018-01-23 22:39:09 +00:00
ld de, wStringBuffer1
2018-01-21 22:45:56 +00:00
.copy
ld a, [hli]
ld [de], a
inc de
cp "@"
jr nz, .copy
ret
2018-01-22 22:33:52 +00:00
INCLUDE "data/text/unused_gen1_trainer_names.asm"