mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
21 lines
235 B
NASM
21 lines
235 B
NASM
|
GetTrainerDVs: ; 270c4
|
||
|
; Return the DVs of OtherTrainerClass in bc
|
||
|
|
||
|
push hl
|
||
|
ld a, [OtherTrainerClass]
|
||
|
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
|
||
|
; 270d6
|