mirror of
https://github.com/thornAvery/jep-hack.git
synced 2025-09-16 18:20:50 +12:00
13 lines
261 B
NASM
13 lines
261 B
NASM
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
|