shithub: pokered

Download patch

ref: 234aa7d4096ba1bd5ef7783f34ec2405e9c665a5
parent: f3dbec09a89d1ef816da83228e67a27c8df0be89
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon May 31 13:17:03 EDT 2021

Use more WRAM sections

--- a/layout.link
+++ b/layout.link
@@ -178,10 +178,16 @@
 ROMX $2C
 	"Move Names"
 WRAM0
-	"WRAM"
+	"Audio RAM"
 	org $c100
 	"Sprite State Data"
 	"OAM Buffer"
+	"Tilemap"
+	"Overworld Map"
+	"WRAM"
+	"Party Data"
+	"Main Data"
+	"Current Box Data"
 	org $df00
 	"Stack"
 VRAM
--- a/wram.asm
+++ b/wram.asm
@@ -6,7 +6,7 @@
 INCLUDE "vram.asm"
 
 
-SECTION "WRAM", WRAM0
+SECTION "Audio RAM", WRAM0
 
 wUnusedC000:: db
 
@@ -153,6 +153,9 @@
 ENDR
 wOAMBufferEnd::
 
+
+SECTION "Tilemap", WRAM0
+
 ; buffer for tiles that are visible on screen (20 columns by 18 rows)
 wTileMap:: ds SCREEN_WIDTH * SCREEN_HEIGHT
 
@@ -171,6 +174,9 @@
 
 	ds 80
 
+
+SECTION "Overworld Map", WRAM0
+
 UNION
 wOverworldMap:: ds 1300
 wOverworldMapEnd::
@@ -179,6 +185,9 @@
 wTempPic:: ds 7 * 7 tiles
 ENDU
 
+
+SECTION "WRAM", WRAM0
+
 ; the tiles of the row or column to be redrawn by RedrawRowOrColumn
 wRedrawRowOrColumnSrcTiles:: ds SCREEN_WIDTH * 2
 
@@ -1633,6 +1642,8 @@
 wPlayerName:: ds NAME_LENGTH
 
 
+SECTION "Party Data", WRAM0
+
 wPartyDataStart::
 
 wPartyCount:: db
@@ -1660,6 +1671,8 @@
 wPartyDataEnd::
 
 
+SECTION "Main Data", WRAM0
+
 wMainDataStart::
 
 wPokedexOwned:: flag_array NUM_POKEMON
@@ -2224,6 +2237,8 @@
 
 wMainDataEnd::
 
+
+SECTION "Current Box Data", WRAM0
 
 wBoxDataStart::