From e7941cef61556d0b87c7384acd6c762c5c17841e Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Wed, 3 Jan 2018 13:01:23 -0500 Subject: Explain HRAM --- hram.asm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'hram.asm') diff --git a/hram.asm b/hram.asm index 3f84d19ca..15d4cc76d 100644 --- a/hram.asm +++ b/hram.asm @@ -1,3 +1,7 @@ +; HRAM uses constants instead of labels so that +; "ld a, [hAddress]" and "ld [hAddress], a" will +; use the more efficient "ldh" instruction. + hPushOAM EQU $ff80 ; 10 bytes hROMBankBackup EQU $ff8a @@ -33,7 +37,7 @@ hJoyLast EQU $ffa9 hInMenu EQU $ffaa hPrinter EQU $ffac -hGraphicStartTile EQU $ffad +hGraphicStartTile EQU $ffad hMoveMon EQU $ffae hMapObjectIndexBuffer EQU $ffaf hObjectStructIndexBuffer EQU $ffb0 @@ -81,7 +85,7 @@ hMoneyTemp EQU $ffc3 hMGJoypadPressed EQU $ffc3 hMGJoypadReleased EQU $ffc4 -hLCDCPointer EQU $ffc6 +hLCDCPointer EQU $ffc6 hLYOverrideStart EQU $ffc7 hLYOverrideEnd EQU $ffc8 hMobileReceive EQU $ffc9 -- cgit v1.2.3 From 0c6338836d714f464bfcaa0c8c5b8c76e6f4958d Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Fri, 19 Jan 2018 14:49:43 -0500 Subject: Resolve #471 (although link code still needs more cleanup, like its WRAM labels) --- hram.asm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'hram.asm') diff --git a/hram.asm b/hram.asm index 15d4cc76d..7810e5a01 100644 --- a/hram.asm +++ b/hram.asm @@ -39,7 +39,8 @@ hInMenu EQU $ffaa hPrinter EQU $ffac hGraphicStartTile EQU $ffad hMoveMon EQU $ffae -hMapObjectIndexBuffer EQU $ffaf + +hMapObjectIndexBuffer EQU $ffaf hObjectStructIndexBuffer EQU $ffb0 hConnectionStripLength EQU $ffaf @@ -88,12 +89,13 @@ hMGJoypadReleased EQU $ffc4 hLCDCPointer EQU $ffc6 hLYOverrideStart EQU $ffc7 hLYOverrideEnd EQU $ffc8 -hMobileReceive EQU $ffc9 -hFFCA EQU $ffca -hLinkPlayerNumber EQU $ffcb -hFFCC EQU $ffcc -hSerialSend EQU $ffcd -hSerialReceive EQU $ffce + +hMobileReceive EQU $ffc9 +hSerialReceivedNewData EQU $ffca +hSerialConnectionStatus EQU $ffcb +hSerialIgnoringInitialData EQU $ffcc +hSerialSend EQU $ffcd +hSerialReceive EQU $ffce hSCX EQU $ffcf hSCY EQU $ffd0 @@ -108,7 +110,7 @@ hOAMUpdate EQU $ffd8 hSPBuffer EQU $ffd9 hBGMapUpdate EQU $ffdb -hFFDC EQU $ffdc +hBGMapTileCount EQU $ffdc hMapAnims EQU $ffde hTileAnimFrame EQU $ffdf @@ -125,5 +127,5 @@ hCGB EQU $ffe6 hSGB EQU $ffe7 hDMATransfer EQU $ffe8 hMobile EQU $ffe9 -hFFEA EQU $ffea +hSystemBooted EQU $ffea hClockResetTrigger EQU $ffeb -- cgit v1.2.3