![]() |
Routines |
| Prev: A9DA | Up: Map | Next: AA00 |
|
Runs the script addressed by the operand, then returns to the instruction after this one.
|
||||||||||
|
When the condition failed, skip this action.
|
||||||||||
| Action_CallScript | A9E9 | JP NZ,RunScript_SkipAction_ThreeBytes | Jump to RunScript_SkipAction_ThreeBytes if the condition failed. | |||||||
|
Run the operand script, then resume at the next instruction.
|
||||||||||
| A9EC | LD L,(IX+$01) | Fetch the called script address from *IX+01 into HL. | ||||||||
| A9EF | LD H,(IX+$02) | |||||||||
| A9F2 | INC IX | Move IX past this action's three bytes. | ||||||||
| A9F4 | INC IX | |||||||||
| A9F6 | INC IX | |||||||||
| A9F8 | PUSH IX | Stash the return script pointer on the stack. | ||||||||
| A9FA | PUSH HL | Copy the called script address from HL into IX (using the stack). | ||||||||
| A9FB | POP IX | |||||||||
| A9FD | JP RunScript_AfterAction | Jump to RunScript_AfterAction. | ||||||||
| Prev: A9DA | Up: Map | Next: AA00 |