shithub: pokecrystal

ref: 70a3ec1accb6de1c1c273470af0ddfa2edc1b0a9
dir: /home/queue_script.asm/

View raw version
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