summaryrefslogtreecommitdiff
path: root/constants/hardware_constants.asm
diff options
context:
space:
mode:
Diffstat (limited to 'constants/hardware_constants.asm')
-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