Prev: 43482 Up: Map Next: 43520
43497: Action: Call Script
Runs the script addressed by the operand, then returns to the instruction after this one.
Input
F The zero flag is set when the conditions hold
IX Pointer to the script entry (opcode, address)
When the condition failed, skip this action.
Action_CallScript 43497 JP NZ,RunScript_SkipAction_ThreeBytes Jump to RunScript_SkipAction_ThreeBytes if the condition failed.
Run the operand script, then resume at the next instruction.
43500 LD L,(IX+1) Fetch the called script address from *IX+1 into HL.
43503 LD H,(IX+2)
43506 INC IX Move IX past this action's three bytes.
43508 INC IX
43510 INC IX
43512 PUSH IX Stash the return script pointer on the stack.
43514 PUSH HL Copy the called script address from HL into IX (using the stack).
43515 POP IX
43517 JP RunScript_AfterAction Jump to RunScript_AfterAction.
Prev: 43482 Up: Map Next: 43520