From eff81fb0807b55180c32e7529171404f1ff36408 Mon Sep 17 00:00:00 2001 From: yenatch Date: Thu, 29 Aug 2013 02:10:32 -0400 Subject: [PATCH] fix Stack's address ($c100 -> $c0ff) using negative ds --- engine/init.asm | 2 +- wram.asm | 6 +++--- 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]