pokecrystal-board/engine/battle/read_trainer_dvs.asm
2018-06-24 16:13:22 +02:00

20 lines
221 B
NASM

GetTrainerDVs:
; Return the DVs of wOtherTrainerClass in bc
push hl
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