Prev: 61303 Up: Map Next: 61324
61314: Script: Load Script Pointer
Replace the entity's script cursor with the absolute address that follows, so it continues from that fragment.
ScriptRoutine_JumpToAddress 61314 INC HL Advance HL past the current script instruction.
61315 INC HL
This entry point is used by the routine at ScriptRoutine_JumpIfCarrying.
Redirect the script pointer to the operand address and execute it at ScriptInstruction.
ScriptRoutine_JumpToAddress_FetchAddress 61316 LD C,(HL) Fetch the low byte of the new script address.
61317 INC HL Advance the script pointer by one byte.
61318 LD B,(HL) Fetch the high byte of the new script address.
61319 PUSH BC Load HL with the new script address (using the stack).
61320 POP HL
61321 JP ScriptInstruction Jump to ScriptInstruction to execute the script instruction at HL.
View the equivalent code in;
Prev: 61303 Up: Map Next: 61324