shithub: pokecrystal

Download patch

ref: eff81fb0807b55180c32e7529171404f1ff36408
parent: 7fe1fa58e313312229ca4d8715ca304b47002eca
author: yenatch <[email protected]>
date: Wed Aug 28 22:10:32 EDT 2013

fix Stack's address ($c100 -> $c0ff)

using negative ds

--- a/engine/init.asm
+++ b/engine/init.asm
@@ -79,7 +79,7 @@
 	or c
 	jr nz, .asm_1b1
 
-	ld sp, Stack - 1
+	ld sp, Stack
 
 ; Clear HRAM
 	ld a, [hCGB]
--- a/wram.asm
+++ b/wram.asm
@@ -13,9 +13,9 @@
 
 SECTION "WRAMBank0",WRAM0[$c000]
 
-SECTION "stack",WRAM0[$c000]
-	ds $100
-Stack: ; c100
+SECTION "stack",WRAM0[$c0ff]
+Stack: ; c0ff
+	ds -$100
 
 
 SECTION "audio",WRAM0[$c100]