2018-08-25 11:28:22 -07:00
|
|
|
SECTION "HRAM", HRAM
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hROMBankBackup:: db
|
2020-04-06 09:52:46 -07:00
|
|
|
hFarByte::
|
2020-06-20 20:03:40 -07:00
|
|
|
hTempBank:: db
|
|
|
|
hSRAMBank:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hRTCDayHi:: db
|
|
|
|
hRTCDayLo:: db
|
|
|
|
hRTCHours:: db
|
|
|
|
hRTCMinutes:: db
|
|
|
|
hRTCSeconds:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
ds 2
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hHours:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
ds 1
|
2020-06-20 20:03:40 -07:00
|
|
|
hMinutes:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
ds 1
|
2020-06-20 20:03:40 -07:00
|
|
|
hSeconds:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hVBlankCounter:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hROMBank:: db
|
|
|
|
hVBlank:: db
|
|
|
|
hMapEntryMethod:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-22 13:30:13 -07:00
|
|
|
hMenuReturn:: db
|
2020-10-28 10:35:39 -07:00
|
|
|
hUnusedByte:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hJoypadReleased:: db
|
|
|
|
hJoypadPressed:: db
|
|
|
|
hJoypadDown:: db
|
|
|
|
hJoypadSum:: db
|
|
|
|
hJoyReleased:: db
|
|
|
|
hJoyPressed:: db
|
|
|
|
hJoyDown:: db
|
|
|
|
hJoyLast:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hInMenu:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hPrinter:: db
|
|
|
|
hGraphicStartTile:: db
|
|
|
|
hMoveMon:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
UNION
|
2020-12-23 13:54:28 -08:00
|
|
|
hMapObjectIndex:: db
|
|
|
|
hObjectStructIndex:: db
|
2020-06-20 20:03:40 -07:00
|
|
|
NEXTU
|
|
|
|
hConnectionStripLength:: db
|
|
|
|
hConnectedMapWidth:: db
|
|
|
|
ENDU
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hEnemyMonSpeed:: dw
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
UNION
|
2018-08-26 11:37:42 -07:00
|
|
|
; math-related values
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
UNION
|
2018-08-25 18:49:26 -07:00
|
|
|
; inputs to Multiply
|
2018-08-26 13:15:43 -07:00
|
|
|
ds 1
|
2020-06-20 20:03:40 -07:00
|
|
|
hMultiplicand:: ds 3
|
|
|
|
hMultiplier:: db
|
|
|
|
NEXTU
|
2018-08-25 18:49:26 -07:00
|
|
|
; result of Multiply
|
2020-06-20 20:03:40 -07:00
|
|
|
hProduct:: ds 4
|
|
|
|
NEXTU
|
2018-08-25 18:49:26 -07:00
|
|
|
; inputs to Divide
|
2020-06-20 20:03:40 -07:00
|
|
|
hDividend:: ds 4
|
|
|
|
hDivisor:: db
|
|
|
|
NEXTU
|
2018-08-25 18:49:26 -07:00
|
|
|
; results of Divide
|
2020-06-20 20:03:40 -07:00
|
|
|
hQuotient:: ds 4
|
|
|
|
hRemainder:: db
|
|
|
|
ENDU
|
2018-08-25 12:09:57 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hMathBuffer:: ds 5
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
NEXTU
|
2018-08-25 18:49:26 -07:00
|
|
|
; PrintNum scratch space
|
2020-06-20 20:03:40 -07:00
|
|
|
hPrintNumBuffer:: ds 10
|
2018-08-26 11:37:42 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
NEXTU
|
2020-10-27 10:22:27 -07:00
|
|
|
; Mystery Gift
|
|
|
|
hMGExchangedByte:: db
|
|
|
|
hMGExchangedWord:: dw
|
|
|
|
hMGNumBits:: db
|
|
|
|
hMGChecksum:: dw
|
|
|
|
ds 1
|
|
|
|
hMGUnusedMsgLength:: db
|
|
|
|
hMGRole:: db
|
2020-06-20 20:03:40 -07:00
|
|
|
hMGStatusFlags:: db
|
|
|
|
ENDU
|
|
|
|
|
|
|
|
UNION
|
|
|
|
hUsedSpriteIndex:: db
|
|
|
|
hUsedSpriteTile:: db
|
|
|
|
NEXTU
|
|
|
|
hCurSpriteXCoord:: db
|
|
|
|
hCurSpriteYCoord:: db
|
|
|
|
hCurSpriteXPixel:: db
|
|
|
|
hCurSpriteYPixel:: db
|
|
|
|
hCurSpriteTile:: db
|
|
|
|
hCurSpriteOAMFlags:: db
|
|
|
|
ENDU
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-04-18 14:31:51 -07:00
|
|
|
UNION
|
2020-06-20 20:03:40 -07:00
|
|
|
hMoneyTemp:: ds 3
|
2020-04-18 14:31:51 -07:00
|
|
|
NEXTU
|
2020-06-20 20:03:40 -07:00
|
|
|
hMGJoypadPressed:: db
|
|
|
|
hMGJoypadReleased:: db
|
|
|
|
hMGPrevTIMA:: db
|
2020-04-18 14:31:51 -07:00
|
|
|
ENDU
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hLCDCPointer:: db
|
|
|
|
hLYOverrideStart:: db
|
|
|
|
hLYOverrideEnd:: db
|
|
|
|
|
|
|
|
hMobileReceive:: db
|
|
|
|
hSerialReceivedNewData:: db
|
|
|
|
hSerialConnectionStatus:: db
|
|
|
|
hSerialIgnoringInitialData:: db
|
|
|
|
hSerialSend:: db
|
|
|
|
hSerialReceive:: db
|
|
|
|
|
|
|
|
hSCX:: db
|
|
|
|
hSCY:: db
|
|
|
|
hWX:: db
|
|
|
|
hWY:: db
|
|
|
|
hTilesPerCycle:: db
|
|
|
|
hBGMapMode:: db
|
|
|
|
hBGMapThird:: db
|
|
|
|
hBGMapAddress:: dw
|
|
|
|
|
|
|
|
hOAMUpdate:: db
|
|
|
|
|
|
|
|
hSPBuffer:: dw
|
|
|
|
|
|
|
|
hBGMapUpdate:: db
|
|
|
|
hBGMapTileCount:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hMapAnims:: db
|
|
|
|
hTileAnimFrame:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hLastTalked:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hRandomAdd:: db
|
|
|
|
hRandomSub:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hUnusedBackup:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hBattleTurn::
|
2018-08-25 11:28:22 -07:00
|
|
|
; Which trainer's turn is it? 0: player, 1: opponent trainer
|
|
|
|
db
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
hCGBPalUpdate:: db
|
|
|
|
hCGB:: db
|
|
|
|
hSGB:: db
|
|
|
|
|
|
|
|
hDMATransfer:: db
|
|
|
|
hMobile:: db
|
|
|
|
hSystemBooted:: db
|
2020-07-13 10:05:05 -07:00
|
|
|
|
|
|
|
if DEF(_DEBUG)
|
|
|
|
hDebugRoomMenuPage::
|
|
|
|
endc
|
2020-06-20 20:03:40 -07:00
|
|
|
hClockResetTrigger:: db
|
2018-08-25 11:28:22 -07:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
ds 19
|