summaryrefslogtreecommitdiff
path: root/engine/battle/getgen1trainerclassname.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-06-21 16:27:43 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-06-21 16:27:43 -0400
commit91774f206e97d67cb8f16f5afeec03ce9c7e28ca (patch)
tree1a35d65d390633fa2d8c14618ecf99d97b776e59 /engine/battle/getgen1trainerclassname.asm
parent98af69691d8994b07c19ef4e86f3f903da6091ed (diff)
Replace "Unreferenced" labels with "; unreferenced" comments
Diffstat (limited to 'engine/battle/getgen1trainerclassname.asm')
-rw-r--r--engine/battle/getgen1trainerclassname.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/engine/battle/getgen1trainerclassname.asm b/engine/battle/getgen1trainerclassname.asm
new file mode 100644
index 000000000..78b543f12
--- /dev/null
+++ b/engine/battle/getgen1trainerclassname.asm
@@ -0,0 +1,21 @@
+GetGen1TrainerClassName: ; unreferenced
+ 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"