diff options
author | Pokeglitch <pokeglitchx@gmail.com> | 2018-06-14 21:46:09 -0400 |
---|---|---|
committer | Pokeglitch <pokeglitchx@gmail.com> | 2018-06-14 21:46:09 -0400 |
commit | c955c8d353f63c07cc4ac71160e4a13061192c8a (patch) | |
tree | f15070cf4b28f82ac8fa6f266d909ca11a26dcf4 /home/overworld.asm | |
parent | d6b67710739c96b357f64b9457cac8750c46d1ca (diff) |
Disassembled teleport
Diffstat (limited to 'home/overworld.asm')
-rw-r--r-- | home/overworld.asm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/home/overworld.asm b/home/overworld.asm index afa73cc..2b37b7c 100644 --- a/home/overworld.asm +++ b/home/overworld.asm @@ -29,11 +29,11 @@ CheckStartmenuSelectHook: ldh a, [hStartmenuCloseAndSelectHookEnable] and a ret z ; hook is disabled - ld hl, StartmenuCloseAndSelectHookPtr + ld hl, wQueuedScriptAddr ld a, [hli] ld h, [hl] ld l, a - ld a, [StartmenuCloseAndSelectHookBank] + ld a, [wQueuedScriptBank] call FarCall_hl ld hl, hStartmenuCloseAndSelectHookEnable xor a @@ -178,18 +178,18 @@ ScheduleColumnRedrawHelper: ; 2d10 (0:2d10) ret if DEBUG -SECTION "Install StartMenu Hook Function", ROM0[$35EC] +SECTION "QueueScript", ROM0[$35EC] else -SECTION "Install StartMenu Hook Function", ROM0[$35B0] +SECTION "QueueScript", ROM0[$35B0] endc -InstallStartmenuCloseAndSelectHook:: +QueueScript:: ; Install a function that is called as soon as ; the start menu is closed or directly after ; the select button function ran - ld [StartmenuCloseAndSelectHookBank], a + ld [wQueuedScriptBank], a ld a, l - ld [StartmenuCloseAndSelectHookPtr], a + ld [wQueuedScriptAddr], a ld a, h - ld [StartmenuCloseAndSelectHookPtr + 1], a + ld [wQueuedScriptAddr + 1], a ret |