pokecrystal-board/engine/battle/read_trainer_dvs.asm

22 lines
254 B
NASM
Raw Normal View History

2018-06-24 07:09:41 -07:00
GetTrainerDVs:
2018-01-23 14:39:09 -08:00
; Return the DVs of wOtherTrainerClass in bc
push hl
2018-01-23 14:39:09 -08:00
ld a, [wOtherTrainerClass]
dec a
ld c, a
ld b, 0
ld hl, TrainerClassDVs
add hl, bc
add hl, bc
ld a, [hli]
ld b, a
ld c, [hl]
pop hl
ret
INCLUDE "data/trainers/dvs.asm"