summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-03 13:01:23 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-03 13:01:23 -0500
commite7941cef61556d0b87c7384acd6c762c5c17841e (patch)
tree4eefd8c06793d23f664e0302df86235c36fa1ac8
parent10bd011d0619996783e370a602619ea802833600 (diff)
Explain HRAM
-rw-r--r--hram.asm8
1 files changed, 6 insertions, 2 deletions
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