pokecrystal-board/hram.asm
2020-06-22 16:30:13 -04:00

171 lines
2.3 KiB
NASM

SECTION "HRAM", HRAM
hTransferVirtualOAM:: ds 10
hROMBankBackup:: db
hFarByte::
hTempBank:: db
hSRAMBank:: db
hRTCDayHi:: db
hRTCDayLo:: db
hRTCHours:: db
hRTCMinutes:: db
hRTCSeconds:: db
ds 2
hHours:: db
ds 1
hMinutes:: db
ds 1
hSeconds:: db
ds 1
ds 1
hVBlankCounter:: db
ds 1
hROMBank:: db
hVBlank:: db
hMapEntryMethod:: db
hMenuReturn:: db
hUnusedFFA1:: db
hJoypadReleased:: db
hJoypadPressed:: db
hJoypadDown:: db
hJoypadSum:: db
hJoyReleased:: db
hJoyPressed:: db
hJoyDown:: db
hJoyLast:: db
hInMenu:: db
ds 1
hPrinter:: db
hGraphicStartTile:: db
hMoveMon:: db
UNION
hMapObjectIndexBuffer:: db
hObjectStructIndexBuffer:: db
NEXTU
hConnectionStripLength:: db
hConnectedMapWidth:: db
ENDU
hEnemyMonSpeed:: dw
UNION
; math-related values
UNION
; inputs to Multiply
ds 1
hMultiplicand:: ds 3
hMultiplier:: db
NEXTU
; result of Multiply
hProduct:: ds 4
NEXTU
; inputs to Divide
hDividend:: ds 4
hDivisor:: db
NEXTU
; results of Divide
hQuotient:: ds 4
hRemainder:: db
ENDU
hMathBuffer:: ds 5
NEXTU
; PrintNum scratch space
hPrintNumBuffer:: ds 10
NEXTU
; miscellaneous
ds 9
hMGStatusFlags:: db
ENDU
UNION
hUsedSpriteIndex:: db
hUsedSpriteTile:: db
NEXTU
hCurSpriteXCoord:: db
hCurSpriteYCoord:: db
hCurSpriteXPixel:: db
hCurSpriteYPixel:: db
hCurSpriteTile:: db
hCurSpriteOAMFlags:: db
ENDU
UNION
hMoneyTemp:: ds 3
NEXTU
hMGJoypadPressed:: db
hMGJoypadReleased:: db
hMGPrevTIMA:: db
ENDU
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
ds 1
hMapAnims:: db
hTileAnimFrame:: db
hLastTalked:: db
hRandomAdd:: db
hRandomSub:: db
hUnusedBackup:: db
hBattleTurn::
; Which trainer's turn is it? 0: player, 1: opponent trainer
db
hCGBPalUpdate:: db
hCGB:: db
hSGB:: db
hDMATransfer:: db
hMobile:: db
hSystemBooted:: db
hClockResetTrigger:: db
ds 19