mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
14 lines
232 B
NASM
Executable File
14 lines
232 B
NASM
Executable File
; return field e in player a
|
|
; for one-byte field: in a
|
|
; for two-byte field: in hl
|
|
GetPlayerField::
|
|
ld hl, Players
|
|
ld bc, PLAYERDATA_LENGTH
|
|
call AddNTimes
|
|
ld d, 0
|
|
add hl, de
|
|
ld a, BANK(Players)
|
|
call GetFarWord
|
|
ld a, l
|
|
ret
|