diff options
author | yenatch <yenatch@gmail.com> | 2018-07-26 21:25:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 21:25:12 -0400 |
commit | 748d4249805c19399b3c72c0f60d0f1a6ffe43ad (patch) | |
tree | 4c6bf942372fda10691e4ca3d0d74490f561a982 /home/queue_script.asm | |
parent | 60ffde3752d079d557dab9a8acecb0bc9e5d46aa (diff) | |
parent | 9a1ae1332cd98abd65c2f26a1ae4d65c6450530a (diff) |
Merge pull request #544 from Rangi42/master
Various fixes found while writing tutorials
Diffstat (limited to 'home/queue_script.asm')
-rw-r--r-- | home/queue_script.asm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/home/queue_script.asm b/home/queue_script.asm new file mode 100644 index 000000000..40a971dc9 --- /dev/null +++ b/home/queue_script.asm @@ -0,0 +1,12 @@ +QueueScript:: +; Push pointer hl in the current bank to wQueuedScriptBank. + ld a, [hROMBank] + +FarQueueScript:: +; Push pointer a:hl to wQueuedScriptBank. + ld [wQueuedScriptBank], a + ld a, l + ld [wQueuedScriptAddr], a + ld a, h + ld [wQueuedScriptAddr + 1], a + ret |