You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Player management [Commit 1] (#38)
This commit is contained in:
13
home/player.asm
Executable file
13
home/player.asm
Executable file
@@ -0,0 +1,13 @@
|
||||
; 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
|
Reference in New Issue
Block a user