summaryrefslogtreecommitdiff
path: root/home/queue_script.asm
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2018-07-27 11:21:31 +0200
committermid-kid <esteve.varela@gmail.com>2018-07-27 11:24:59 +0200
commit9aa6b55d7b1fdb97426305c0ed07fc14012f1293 (patch)
treeb1123bc6dc8d5f29577ad7518f49042f210571d2 /home/queue_script.asm
parenta91b59ab5dd2468e3f48079d45f90a9625a29fe3 (diff)
parent748d4249805c19399b3c72c0f60d0f1a6ffe43ad (diff)
Merge branch 'master' of https://github.com/pret/pokecrystal
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