Prev: EF77 Up: Map Next: EF8C
EF82: Script: Load Script Pointer
Replace the entity's script cursor with the absolute address that follows, so it continues from that fragment.
ScriptRoutine_JumpToAddress EF82 INC HL Advance HL past the current script instruction.
EF83 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 EF84 LD C,(HL) Fetch the low byte of the new script address.
EF85 INC HL Advance the script pointer by one byte.
EF86 LD B,(HL) Fetch the high byte of the new script address.
EF87 PUSH BC Load HL with the new script address (using the stack).
EF88 POP HL
EF89 JP ScriptInstruction Jump to ScriptInstruction to execute the script instruction at HL.
View the equivalent code in;
Prev: EF77 Up: Map Next: EF8C