Prev: 40522 Up: Map Next: 40539
40529: Script routine: (1) 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
40529 INC HL Advance script data pointer by two bytes.
40530 INC HL
40531 LD C,(HL) Load HL with address at this location (i.e. update script data pointer to this address).
40532 INC HL
40533 LD B,(HL)
40534 PUSH BC
40535 POP HL
40536 JP ScriptInstruction Jump to ScriptInstruction to execute script instruction.
Prev: 40522 Up: Map Next: 40539