2018-01-03 10:01:23 -08:00
|
|
|
; HRAM uses constants instead of labels so that
|
|
|
|
; "ld a, [hAddress]" and "ld [hAddress], a" will
|
|
|
|
; use the more efficient "ldh" instruction.
|
|
|
|
|
2018-01-30 11:47:14 -08:00
|
|
|
hTransferVirtualOAM EQU $ff80 ; 10 bytes
|
2013-03-20 19:55:09 -07:00
|
|
|
|
2015-01-19 21:31:29 -08:00
|
|
|
hROMBankBackup EQU $ff8a
|
2013-03-20 19:55:09 -07:00
|
|
|
hBuffer EQU $ff8b
|
2015-12-26 15:11:55 -08:00
|
|
|
hFF8C EQU $ff8c
|
2013-03-20 19:55:09 -07:00
|
|
|
hRTCDayHi EQU $ff8d
|
|
|
|
hRTCDayLo EQU $ff8e
|
|
|
|
hRTCHours EQU $ff8f
|
|
|
|
hRTCMinutes EQU $ff90
|
|
|
|
hRTCSeconds EQU $ff91
|
|
|
|
|
|
|
|
hHours EQU $ff94
|
|
|
|
|
|
|
|
hMinutes EQU $ff96
|
|
|
|
|
|
|
|
hSeconds EQU $ff98
|
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
hVBlankCounter EQU $ff9b
|
|
|
|
|
2013-03-20 19:55:09 -07:00
|
|
|
hROMBank EQU $ff9d
|
2015-01-19 21:31:29 -08:00
|
|
|
hVBlank EQU $ff9e
|
2015-10-07 10:19:41 -07:00
|
|
|
hMapEntryMethod EQU $ff9f
|
2015-10-24 07:34:19 -07:00
|
|
|
hMenuReturn EQU $ffa0
|
2013-03-20 19:55:09 -07:00
|
|
|
|
|
|
|
hJoypadReleased EQU $ffa2
|
|
|
|
hJoypadPressed EQU $ffa3
|
|
|
|
hJoypadDown EQU $ffa4
|
|
|
|
hJoypadSum EQU $ffa5
|
|
|
|
hJoyReleased EQU $ffa6
|
|
|
|
hJoyPressed EQU $ffa7
|
|
|
|
hJoyDown EQU $ffa8
|
2015-10-09 20:09:03 -07:00
|
|
|
hJoyLast EQU $ffa9
|
2015-10-16 10:35:43 -07:00
|
|
|
hInMenu EQU $ffaa
|
2013-03-20 19:55:09 -07:00
|
|
|
|
2015-11-22 21:21:21 -08:00
|
|
|
hPrinter EQU $ffac
|
2018-01-03 10:01:23 -08:00
|
|
|
hGraphicStartTile EQU $ffad
|
2015-12-26 15:11:55 -08:00
|
|
|
hMoveMon EQU $ffae
|
2018-01-19 11:49:43 -08:00
|
|
|
|
|
|
|
hMapObjectIndexBuffer EQU $ffaf
|
2015-11-02 08:15:32 -08:00
|
|
|
hObjectStructIndexBuffer EQU $ffb0
|
2013-05-13 15:43:34 -07:00
|
|
|
|
2015-11-02 09:54:27 -08:00
|
|
|
hConnectionStripLength EQU $ffaf
|
|
|
|
hConnectedMapWidth EQU $ffb0
|
|
|
|
|
2013-03-20 19:55:09 -07:00
|
|
|
hPastLeadingZeroes EQU $ffb3
|
|
|
|
|
2018-07-22 21:25:53 -07:00
|
|
|
hEnemyMonSpeed EQU $ffb1
|
|
|
|
hPartyMon1Speed EQU $ffb5
|
2013-03-29 22:58:22 -07:00
|
|
|
|
2015-09-06 14:38:01 -07:00
|
|
|
hDividend EQU $ffb3 ; length in b register, before 'call Divide' (max 4 bytes)
|
|
|
|
hDivisor EQU $ffb7 ; 1 byte long
|
|
|
|
hQuotient EQU $ffb4 ; result (3 bytes long)
|
2016-02-15 15:57:49 -08:00
|
|
|
hRemainder EQU $ffb7
|
2015-09-06 14:38:01 -07:00
|
|
|
|
|
|
|
hMultiplicand EQU $ffb4 ; 3 bytes long
|
|
|
|
hMultiplier EQU $ffb7 ; 1 byte long
|
|
|
|
hProduct EQU $ffb3 ; result (4 bytes long)
|
2013-03-29 22:58:22 -07:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
hMathBuffer EQU $ffb8
|
|
|
|
|
2015-10-10 14:03:04 -07:00
|
|
|
hPrintNum1 EQU $ffb3
|
|
|
|
hPrintNum2 EQU $ffb4
|
|
|
|
hPrintNum3 EQU $ffb5
|
|
|
|
hPrintNum4 EQU $ffb6
|
|
|
|
hPrintNum5 EQU $ffb7
|
|
|
|
hPrintNum6 EQU $ffb8
|
|
|
|
hPrintNum7 EQU $ffb9
|
2015-11-05 11:06:03 -08:00
|
|
|
hPrintNum8 EQU $ffba
|
|
|
|
hPrintNum9 EQU $ffbb
|
|
|
|
hPrintNum10 EQU $ffbc
|
2013-03-29 22:58:22 -07:00
|
|
|
|
2016-06-07 05:08:51 -07:00
|
|
|
hMGStatusFlags EQU $ffbc
|
|
|
|
|
2015-11-01 06:38:48 -08:00
|
|
|
hUsedSpriteIndex EQU $ffbd
|
|
|
|
hUsedSpriteTile EQU $ffbe
|
2015-11-11 20:38:57 -08:00
|
|
|
hFFBF EQU $ffbf
|
|
|
|
hFFC0 EQU $ffc0
|
|
|
|
hFFC1 EQU $ffc1
|
|
|
|
hFFC2 EQU $ffc2
|
2015-07-17 14:17:10 -07:00
|
|
|
hMoneyTemp EQU $ffc3
|
|
|
|
|
2016-06-07 05:08:51 -07:00
|
|
|
hMGJoypadPressed EQU $ffc3
|
|
|
|
hMGJoypadReleased EQU $ffc4
|
|
|
|
|
2018-01-03 10:01:23 -08:00
|
|
|
hLCDCPointer EQU $ffc6
|
2016-06-07 05:08:51 -07:00
|
|
|
hLYOverrideStart EQU $ffc7
|
|
|
|
hLYOverrideEnd EQU $ffc8
|
2018-01-19 11:49:43 -08:00
|
|
|
|
|
|
|
hMobileReceive EQU $ffc9
|
|
|
|
hSerialReceivedNewData EQU $ffca
|
|
|
|
hSerialConnectionStatus EQU $ffcb
|
|
|
|
hSerialIgnoringInitialData EQU $ffcc
|
|
|
|
hSerialSend EQU $ffcd
|
|
|
|
hSerialReceive EQU $ffce
|
2013-08-28 01:28:45 -07:00
|
|
|
|
2013-08-19 15:44:57 -07:00
|
|
|
hSCX EQU $ffcf
|
|
|
|
hSCY EQU $ffd0
|
2013-08-19 15:42:01 -07:00
|
|
|
hWX EQU $ffd1
|
|
|
|
hWY EQU $ffd2
|
2015-11-05 11:06:03 -08:00
|
|
|
hTilesPerCycle EQU $ffd3
|
2013-03-20 19:55:09 -07:00
|
|
|
hBGMapMode EQU $ffd4
|
|
|
|
hBGMapThird EQU $ffd5
|
|
|
|
hBGMapAddress EQU $ffd6
|
|
|
|
|
|
|
|
hOAMUpdate EQU $ffd8
|
|
|
|
hSPBuffer EQU $ffd9
|
|
|
|
|
|
|
|
hBGMapUpdate EQU $ffdb
|
2018-01-19 11:49:43 -08:00
|
|
|
hBGMapTileCount EQU $ffdc
|
2013-03-20 19:55:09 -07:00
|
|
|
|
2015-11-05 11:06:03 -08:00
|
|
|
hMapAnims EQU $ffde
|
2013-03-20 19:55:09 -07:00
|
|
|
hTileAnimFrame EQU $ffdf
|
|
|
|
|
2015-07-21 23:49:18 -07:00
|
|
|
hLastTalked EQU $ffe0
|
|
|
|
|
2014-07-18 05:28:30 -07:00
|
|
|
hRandom EQU $ffe1
|
2013-03-20 19:55:09 -07:00
|
|
|
hRandomAdd EQU $ffe1
|
|
|
|
hRandomSub EQU $ffe2
|
2015-10-16 10:35:43 -07:00
|
|
|
hSecondsBackup EQU $ffe3
|
2015-09-09 16:27:07 -07:00
|
|
|
hBattleTurn EQU $ffe4 ; Which trainers turn is it? 0: Player, 1: Opponent Trainer
|
2013-03-20 19:55:09 -07:00
|
|
|
hCGBPalUpdate EQU $ffe5
|
|
|
|
hCGB EQU $ffe6
|
|
|
|
hSGB EQU $ffe7
|
|
|
|
hDMATransfer EQU $ffe8
|
2015-10-24 07:34:19 -07:00
|
|
|
hMobile EQU $ffe9
|
2018-01-19 11:49:43 -08:00
|
|
|
hSystemBooted EQU $ffea
|
2015-12-26 15:11:55 -08:00
|
|
|
hClockResetTrigger EQU $ffeb
|
2018-07-17 14:17:18 -07:00
|
|
|
hFFEC EQU $ffec
|