shithub: pokecrystal

Download patch

ref: 2fca32b6c8742c4accaf05a8bfc0377b59a76c6e
parent: 88465686cf64103effcf08ec9be276283d1f68c7
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Wed Jan 30 14:43:01 EST 2019

Explain the c608 union size

--- a/wram.asm
+++ b/wram.asm
@@ -364,14 +364,18 @@
 wc647:: ds 33
 wc668:: ds 32
 wc688:: ds 2
-wc68a:: ds 350
+wc68a:: ds 4
 
 NEXTU ; c608
 ; surrounding tiles
+; This buffer determines the size for the rest of the union;
+; it uses exactly 480 bytes.
 wSurroundingTiles:: ds SURROUNDING_WIDTH * SURROUNDING_HEIGHT
 
 NEXTU ; c608
 ; box save buffer
+; SaveBoxAddress uses this buffer in three steps because it
+; needs more space than is available.
 wBoxPartialData:: ds 480
 wBoxPartialDataEnd::