![]() |
Routines |
| Prev: 60499 | Up: Map | Next: 60530 |
|
End the current script loop and resume after it.
|
||||
| ScriptRoutine_EndScriptLoop | 60513 | LD A,(29441) | Load A with the script loop counter (ScriptLoopCounter). | |
| 60516 | DEC A | Decrease A by one. | ||
| 60517 | LD (29441),A | Set the script loop counter (ScriptLoopCounter). | ||
| 60520 | OR A | Is A zero? If so, jump to AdvanceScriptInstruction to run the next script instruction. | ||
| 60521 | JP Z,AdvanceScriptInstruction | |||
| 60524 | LD HL,(29437) | Load HL with the script loop restart pointer (Pointer_ScriptLoopRestart). | ||
| 60527 | JP ScriptInstruction | Jump to ScriptInstruction to execute the script instruction at HL. | ||
| Prev: 60499 | Up: Map | Next: 60530 |