summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2017-12-26 23:18:05 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2017-12-26 23:18:05 -0500
commit47e4f21e62705a8d2c832dad257c421a5cbd5c1b (patch)
treeae8467ac9fae56f8f85496dd80ae5639c9ecc4b0 /constants
parent5d229dcef2cabe2568491932bb082b0a42b46ed2 (diff)
Keep memory map values in hardware_constants.asm
Diffstat (limited to 'constants')
-rw-r--r--constants/hardware_constants.asm17
1 files changed, 16 insertions, 1 deletions
diff --git a/constants/hardware_constants.asm b/constants/hardware_constants.asm
index ae2e97a6b..9cb278622 100644
--- a/constants/hardware_constants.asm
+++ b/constants/hardware_constants.asm
@@ -1,4 +1,19 @@
-; Graciously aped from http://nocash.emubase.de/pandocs.htm .
+; Graciously aped from:
+; http://nocash.emubase.de/pandocs.htm
+; http://gameboy.mongenel.com/dmg/asmmemmap.html
+
+; memory map
+VRAM_Begin EQU $8000
+VRAM_End EQU $a000
+SRAM_Begin EQU $a000
+SRAM_End EQU $c000
+WRAM0_Begin EQU $c000
+WRAM0_End EQU $d000
+WRAM1_Begin EQU $d000
+WRAM1_End EQU $e000
+; hardware registers $ff00-$ff80 (see below)
+HRAM_Begin EQU $ff80
+HRAM_End EQU $ffff
; MBC3
MBC3SRamEnable EQU $0000