mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-10-08 00:14:16 -04:00
75 lines
1.2 KiB
NASM
75 lines
1.2 KiB
NASM
SECTION "Sprite Buffers", SRAM
|
|
|
|
UNION
|
|
sScratch:: ds SCREEN_AREA
|
|
NEXTU
|
|
sSpriteBuffer0:: ds SPRITEBUFFERSIZE
|
|
sSpriteBuffer1:: ds SPRITEBUFFERSIZE
|
|
sSpriteBuffer2:: ds SPRITEBUFFERSIZE
|
|
ENDU
|
|
|
|
|
|
SECTION "Save Game Data", SRAM
|
|
|
|
sOptions:: ds wOptionsEnd - wOptions
|
|
sDebugFlags:: ds wDebugFlagsEnd - wDebugFlags
|
|
|
|
sGameData:: ds wGameDataEnd - wGameData
|
|
sGameDataEnd::
|
|
|
|
sGameData2:: ds wGameData2End - wGameData2
|
|
sGameData2End::
|
|
|
|
|
|
SECTION "Save Pokemon Data", SRAM
|
|
|
|
sPokemonData:: ds wPokemonDataEnd - wPokemonData
|
|
|
|
|
|
SECTION "SRAM Window Stack", SRAM
|
|
|
|
sWindowStackBottom::
|
|
ds $800 - 1
|
|
sWindowStackTop::
|
|
ds 1
|
|
|
|
; The PC boxes will not fit into one SRAM bank,
|
|
; so they use multiple SECTIONs
|
|
DEF box_n = 0
|
|
MACRO boxes
|
|
rept \1
|
|
DEF box_n += 1
|
|
sBox{d:box_n}:: box sBox{d:box_n}
|
|
endr
|
|
ENDM
|
|
|
|
|
|
SECTION "Boxes 1-5", SRAM
|
|
|
|
; sBox1 - sBox5
|
|
boxes 5
|
|
|
|
|
|
SECTION "Save Mail", SRAM
|
|
|
|
sPartyMail::
|
|
; sPartyMon1Mail - sPartyMon6Mail
|
|
for n, 1, PARTY_LENGTH + 1
|
|
sPartyMon{d:n}Mail:: mailmsg sPartyMon{d:n}Mail
|
|
endr
|
|
sPartyMailEnd::
|
|
|
|
|
|
SECTION "Boxes 6-10", SRAM
|
|
|
|
; sBox6 - sBox10
|
|
boxes 5
|
|
|
|
; All 10 boxes fit exactly within 2 SRAM banks
|
|
assert box_n == NUM_BOXES, \
|
|
"boxes: Expected {d:NUM_BOXES} total boxes, got {d:box_n}"
|
|
|
|
|
|
SECTION "Checksum", SRAM
|
|
sChecksum:: ds 3
|