summaryrefslogtreecommitdiff
path: root/home/queue_script.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/queue_script.asm')
-rw-r--r--home/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 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