summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-08-29 02:10:32 -0400
committeryenatch <yenatch@gmail.com>2013-08-29 02:10:32 -0400
commiteff81fb0807b55180c32e7529171404f1ff36408 (patch)
tree24ffd95fcce9af2f90c4a93ab479a17e6a4dd5c2
parent7fe1fa58e313312229ca4d8715ca304b47002eca (diff)
fix Stack's address ($c100 -> $c0ff)
using negative ds
-rw-r--r--engine/init.asm2
-rw-r--r--wram.asm6
2 files changed, 4 insertions, 4 deletions
diff --git a/engine/init.asm b/engine/init.asm
index d7594ae1d..3104c416d 100644
--- a/engine/init.asm
+++ b/engine/init.asm
@@ -79,7 +79,7 @@ Init: ; 17d
or c
jr nz, .asm_1b1
- ld sp, Stack - 1
+ ld sp, Stack
; Clear HRAM
ld a, [hCGB]
diff --git a/wram.asm b/wram.asm
index e93318db0..74927ca7c 100644
--- a/wram.asm
+++ b/wram.asm
@@ -13,9 +13,9 @@ VBGMap1:
SECTION "WRAMBank0",WRAM0[$c000]
-SECTION "stack",WRAM0[$c000]
- ds $100
-Stack: ; c100
+SECTION "stack",WRAM0[$c0ff]
+Stack: ; c0ff
+ ds -$100
SECTION "audio",WRAM0[$c100]