summaryrefslogtreecommitdiff
path: root/home/queue_script.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/queue_script.asm')
-rwxr-xr-xhome/queue_script.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/home/queue_script.asm b/home/queue_script.asm
new file mode 100755
index 00000000..23f80d24
--- /dev/null
+++ b/home/queue_script.asm
@@ -0,0 +1,12 @@
+QueueScript::
+; Push pointer hl in the current bank to wQueuedScriptBank.
+ ldh 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 \ No newline at end of file