shithub: pokered

ref: 87ef75c173b5d5f227912860487600b6f53d1d1f
dir: /engine/battle/save_trainer_name.asm/

View raw version
SaveTrainerName::
	ld hl, TrainerNamePointers
	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, wcd6d
.CopyCharacter
	ld a, [hli]
	ld [de], a
	inc de
	cp "@"
	jr nz, .CopyCharacter
	ret

INCLUDE "text/trainer_name_pointers.asm"