2018-08-25 11:28:22 -07:00
|
|
|
SECTION "HRAM", HRAM
|
|
|
|
|
|
|
|
hTransferVirtualOAM:: ds 10 ; ff80
|
|
|
|
|
|
|
|
hROMBankBackup:: db ; ff8a
|
2020-04-06 09:52:46 -07:00
|
|
|
hFarByte::
|
2020-04-06 10:02:23 -07:00
|
|
|
hTempBank:: db ; ff8b
|
2019-11-23 17:56:22 -08:00
|
|
|
hSRAMBank:: db ; ff8c
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
hRTCDayHi:: db ; ff8d
|
|
|
|
hRTCDayLo:: db ; ff8e
|
|
|
|
hRTCHours:: db ; ff8f
|
|
|
|
hRTCMinutes:: db ; ff90
|
|
|
|
hRTCSeconds:: db ; ff91
|
|
|
|
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
hHours:: db ; ff94
|
|
|
|
ds 1
|
|
|
|
hMinutes:: db ; ff96
|
|
|
|
ds 1
|
|
|
|
hSeconds:: db ; ff98
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
hVBlankCounter:: db ; ff9b
|
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
hROMBank:: db ; ff9d
|
|
|
|
hVBlank:: db ; ff9e
|
|
|
|
hMapEntryMethod:: db ; ff9f
|
|
|
|
hMenuReturn:: db ; ffa0
|
|
|
|
|
2020-04-16 06:30:50 -07:00
|
|
|
hUnusedFFA1:: db ; ffa1
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
hJoypadReleased:: db ; ffa2
|
|
|
|
hJoypadPressed:: db ; ffa3
|
|
|
|
hJoypadDown:: db ; ffa4
|
|
|
|
hJoypadSum:: db ; ffa5
|
|
|
|
hJoyReleased:: db ; ffa6
|
|
|
|
hJoyPressed:: db ; ffa7
|
|
|
|
hJoyDown:: db ; ffa8
|
|
|
|
hJoyLast:: db ; ffa9
|
|
|
|
|
|
|
|
hInMenu:: db ; ffaa
|
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
hPrinter:: db ; ffac
|
|
|
|
hGraphicStartTile:: db ; ffad
|
|
|
|
hMoveMon:: db ; ffae
|
|
|
|
|
|
|
|
UNION ; ffaf
|
|
|
|
hMapObjectIndexBuffer:: db ; ffaf
|
|
|
|
hObjectStructIndexBuffer:: db ; ffb0
|
|
|
|
NEXTU ; ffaf
|
|
|
|
hConnectionStripLength:: db ; ffaf
|
|
|
|
hConnectedMapWidth:: db ; ffb0
|
|
|
|
ENDU ; ffb1
|
|
|
|
|
|
|
|
hEnemyMonSpeed:: dw ; ffb1
|
|
|
|
|
|
|
|
UNION ; ffb3
|
2018-08-26 11:37:42 -07:00
|
|
|
; math-related values
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2018-08-26 11:37:42 -07:00
|
|
|
UNION ; ffb3
|
2018-08-25 18:49:26 -07:00
|
|
|
; inputs to Multiply
|
2018-08-26 13:15:43 -07:00
|
|
|
ds 1
|
2018-08-25 18:49:26 -07:00
|
|
|
hMultiplicand:: ds 3 ; ffb4
|
2018-08-26 11:37:42 -07:00
|
|
|
hMultiplier:: db ; ffb7
|
2018-08-25 18:49:26 -07:00
|
|
|
NEXTU ; ffb3
|
|
|
|
; result of Multiply
|
2018-08-26 11:37:42 -07:00
|
|
|
hProduct:: ds 4 ; ffb3
|
2018-08-25 18:49:26 -07:00
|
|
|
NEXTU ; ffb3
|
|
|
|
; inputs to Divide
|
2018-08-26 11:37:42 -07:00
|
|
|
hDividend:: ds 4 ; ffb3
|
|
|
|
hDivisor:: db ; ffb7
|
2018-08-25 11:28:22 -07:00
|
|
|
NEXTU ; ffb3
|
2018-08-25 18:49:26 -07:00
|
|
|
; results of Divide
|
2018-08-26 11:37:42 -07:00
|
|
|
hQuotient:: ds 4 ; ffb3
|
|
|
|
hRemainder:: db ; ffb7
|
|
|
|
ENDU ; ffb8
|
2018-08-25 12:09:57 -07:00
|
|
|
|
2018-08-25 11:28:22 -07:00
|
|
|
hMathBuffer:: ds 5 ; ffb8
|
|
|
|
|
|
|
|
NEXTU ; ffb3
|
2018-08-25 18:49:26 -07:00
|
|
|
; PrintNum scratch space
|
|
|
|
hPrintNumBuffer:: ds 10 ; ffb3
|
2018-08-26 11:37:42 -07:00
|
|
|
|
|
|
|
NEXTU ; ffb3
|
|
|
|
; miscellaneous
|
|
|
|
ds 9
|
|
|
|
hMGStatusFlags:: db ; ffbc
|
2018-08-25 11:28:22 -07:00
|
|
|
ENDU ; ffbd
|
|
|
|
|
2020-04-18 14:31:51 -07:00
|
|
|
UNION
|
2018-08-25 11:28:22 -07:00
|
|
|
hUsedSpriteIndex:: db ; ffbd
|
|
|
|
hUsedSpriteTile:: db ; ffbe
|
2020-04-18 14:31:51 -07:00
|
|
|
NEXTU
|
|
|
|
hCurSpriteXCoord:: db ; ffbd
|
|
|
|
hCurSpriteYCoord:: db ; ffbe
|
|
|
|
hCurSpriteXPixel:: db ; ffbf
|
|
|
|
hCurSpriteYPixel:: db ; ffc0
|
|
|
|
hCurSpriteTile:: db ; ffc1
|
|
|
|
hCurSpriteOAMFlags:: db ; ffc2
|
|
|
|
ENDU
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
UNION ; ffc3
|
|
|
|
hMoneyTemp:: ds 3 ; ffc3
|
|
|
|
NEXTU ; ffc3
|
|
|
|
hMGJoypadPressed:: db ; ffc3
|
|
|
|
hMGJoypadReleased:: db ; ffc4
|
2020-04-16 06:30:50 -07:00
|
|
|
hMGPrevTIMA:: db ; ffc5
|
2018-08-25 11:28:22 -07:00
|
|
|
ENDU ; ffc6
|
|
|
|
|
|
|
|
hLCDCPointer:: db ; ffc6
|
|
|
|
hLYOverrideStart:: db ; ffc7
|
|
|
|
hLYOverrideEnd:: db ; ffc8
|
|
|
|
|
|
|
|
hMobileReceive:: db ; ffc9
|
|
|
|
hSerialReceivedNewData:: db ; ffca
|
|
|
|
hSerialConnectionStatus:: db ; ffcb
|
|
|
|
hSerialIgnoringInitialData:: db ; ffcc
|
|
|
|
hSerialSend:: db ; ffcd
|
|
|
|
hSerialReceive:: db ; ffce
|
|
|
|
|
|
|
|
hSCX:: db ; ffcf
|
|
|
|
hSCY:: db ; ffd0
|
|
|
|
hWX:: db ; ffd1
|
|
|
|
hWY:: db ; ffd2
|
|
|
|
hTilesPerCycle:: db ; ffd3
|
|
|
|
hBGMapMode:: db ; ffd4
|
|
|
|
hBGMapThird:: db ; ffd5
|
2018-10-11 02:37:19 -07:00
|
|
|
hBGMapAddress:: dw ; ffd6
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
hOAMUpdate:: db ; ffd8
|
|
|
|
|
|
|
|
hSPBuffer:: dw ; ffd9
|
|
|
|
|
|
|
|
hBGMapUpdate:: db ; ffdb
|
|
|
|
hBGMapTileCount:: db ; ffdc
|
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
hMapAnims:: db ; ffde
|
|
|
|
hTileAnimFrame:: db ; ffdf
|
|
|
|
|
|
|
|
hLastTalked:: db ; ffe0
|
|
|
|
|
|
|
|
hRandom::
|
|
|
|
hRandomAdd:: db ; ffe1
|
|
|
|
hRandomSub:: db ; ffe2
|
|
|
|
|
2020-04-04 12:38:44 -07:00
|
|
|
hUnusedBackup:: db ; ffe3
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
hBattleTurn:: ; ffe4
|
|
|
|
; Which trainer's turn is it? 0: player, 1: opponent trainer
|
|
|
|
db
|
|
|
|
|
|
|
|
hCGBPalUpdate:: db ; ffe5
|
|
|
|
hCGB:: db ; ffe6
|
|
|
|
hSGB:: db ; ffe7
|
|
|
|
|
|
|
|
hDMATransfer:: db ; ffe8
|
|
|
|
hMobile:: db ; ffe9
|
|
|
|
hSystemBooted:: db ; ffea
|
|
|
|
hClockResetTrigger:: db ; ffeb
|