From f2888a2d751a8a71e6d9aa8caa96e60680a83b1f Mon Sep 17 00:00:00 2001 From: yenatch Date: Sat, 20 Jul 2013 01:25:20 -0400 Subject: [PATCH] more overworld wram labels --- engine/vblank.asm | 6 +++--- wram.asm | 17 +++++++++++++---- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/engine/vblank.asm b/engine/vblank.asm index 5080a56ad..ea1d47260 100644 --- a/engine/vblank.asm +++ b/engine/vblank.asm @@ -146,12 +146,12 @@ VBlank0: ; 2b1 xor a ld [VBlankOccurred], a -; dec $cfb1 until 0 - ld a, [$cfb1] +; dec OverworldDelay until 0 + ld a, [OverworldDelay] and a jr z, .textdelay dec a - ld [$cfb1], a + ld [OverworldDelay], a .textdelay ; dec text delay counter until 0 diff --git a/wram.asm b/wram.asm index b7a610ba4..dec9176db 100644 --- a/wram.asm +++ b/wram.asm @@ -845,7 +845,9 @@ TileX: ; cf83 -SECTION "VBlank",BSS[$cfb2] +SECTION "VBlank",BSS[$cfb1] +OverworldDelay: ; cfb1 + ds 1 TextDelayFrames: ; cfb2 ds 1 VBlankOccurred: ; cfb3 @@ -1086,7 +1088,12 @@ SECTION "UsedSprites",BSS[$d154] UsedSprites: ; d154 ds 32 -SECTION "connections",BSS[$d1a9] +SECTION "map",BSS[$d1a3] + +MapEventBank: ; d1a3 + ds 1 + + ds 5 MapConnections: @@ -1534,8 +1541,10 @@ SECTION "Scripting",BSS[$d434] ScriptFlags: ; d434 SCRIPT_RUNNING EQU 2 ds 1 - - ds 2 +ScriptFlags2: ; d435 + ds 1 +ScriptFlags3: ; d436 + ds 1 ScriptMode: ; d437 SCRIPT_OFF EQU 0