shithub: pokecrystal

ref: 5e9de74735d09b2a43e8d1c6314f2a7839b6e55a
dir: /engine/battle/unreferenced_getgen1trainerclassname.asm/

View raw version
Unreferenced_GetGen1TrainerClassName:
	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/text/unused_gen1_trainer_names.asm"