summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-04-12 14:45:53 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-04-12 14:45:53 -0400
commite746d745f30ee8eaec51a41ba9a9301e5ad6fadd (patch)
tree91c4fffd82c8a19ed8c08b39c3fa762f923467fa
parent74bffc2c8dd0b5b1873e51bc53e83177f35f7020 (diff)
Remove some unnecessary padding allocations
-rw-r--r--layout.link3
-rw-r--r--wram.asm5
2 files changed, 5 insertions, 3 deletions
diff --git a/layout.link b/layout.link
index a686a75c..d444c59e 100644
--- a/layout.link
+++ b/layout.link
@@ -255,12 +255,15 @@ ROMX $7f
WRAM0
"Audio RAM"
"WRAM"
+ align 8
"GBC Palettes"
+ align 8
"Sprites"
"Tilemap"
"Miscellaneous"
align 8
"Overworld Map"
+ align 4
"Video"
WRAMX 1
"WRAM 1"
diff --git a/wram.asm b/wram.asm
index 9ed669ae..4b40df91 100644
--- a/wram.asm
+++ b/wram.asm
@@ -145,8 +145,6 @@ wDisableTextAcceleration:: db
wPCItemsCursor:: db
wPCItemsScrollPosition:: db
- ds 39
-
SECTION "GBC Palettes", WRAM0
@@ -462,7 +460,8 @@ wUnusedMapBuffer:: ds 24
wUnusedMapBufferEnd::
-SECTION "Overworld Map", WRAM0
+SECTION "Overworld Map", WRAM0, ALIGN[8]
+; LCD expects wLYOverrides to have an alignment of $100
UNION
; overworld map blocks