pokecrystal-board/home/player.asm

14 lines
232 B
NASM
Raw Normal View History

2024-03-08 09:56:26 -08:00
; 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