Prev: 9E4A Up: Map Next: 9E5B
9E51: Script routine: (01) Load HL (script data pointer) with new address
Functionality analogous to JP instruction.
Used by the routine at AdvanceScriptInstruction.
Input
HL Current address in script data
Output
HL New address in script data
9E51 INC HL Advance script data pointer by two bytes.
9E52 INC HL
9E53 LD C,(HL) Load HL with address at this location (i.e. update script data pointer to this address).
9E54 INC HL
9E55 LD B,(HL)
9E56 PUSH BC
9E57 POP HL
9E58 JP ScriptInstruction Jump to ScriptInstruction to execute script instruction.
Prev: 9E4A Up: Map Next: 9E5B