From b6d2115df4b4f9d86be898292fca473222941f1d Mon Sep 17 00:00:00 2001 From: luckytyphlosion Date: Thu, 17 Mar 2016 18:00:47 -0400 Subject: Split bank3 up. --- engine/overworld/clear_loadmapdata_vars.asm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 engine/overworld/clear_loadmapdata_vars.asm (limited to 'engine/overworld/clear_loadmapdata_vars.asm') diff --git a/engine/overworld/clear_loadmapdata_vars.asm b/engine/overworld/clear_loadmapdata_vars.asm new file mode 100644 index 00000000..2e7cd165 --- /dev/null +++ b/engine/overworld/clear_loadmapdata_vars.asm @@ -0,0 +1,20 @@ +ClearVariablesAfterLoadingMapData: ; c07c (3:407c) + ld a, $90 + ld [hWY], a + ld [rWY], a + xor a + ld [H_AUTOBGTRANSFERENABLED], a + ld [wStepCounter], a + ld [wLoneAttackNo], a ; wGymLeaderNo + ld [hJoyPressed], a + ld [hJoyReleased], a + ld [hJoyHeld], a + ld [wActionResultOrTookBattleTurn], a + ld [wUnusedD5A3], a + ld hl, wCardKeyDoorY + ld [hli], a + ld [hl], a + ld hl, wWhichTrade + ld bc, $1e + call FillMemory + ret \ No newline at end of file -- cgit v1.3.1-sl0p