![]() |
Routines |
| Prev: EC53 | Up: Map | Next: EC72 |
|
End the current script loop and resume after it.
|
||||
| ScriptRoutine_EndScriptLoop | EC61 | LD A,($7301) | Load A with the script loop counter (ScriptLoopCounter). | |
| EC64 | DEC A | Decrease A by one. | ||
| EC65 | LD ($7301),A | Set the script loop counter (ScriptLoopCounter). | ||
| EC68 | OR A | Is A zero? If so, jump to AdvanceScriptInstruction to run the next script instruction. | ||
| EC69 | JP Z,AdvanceScriptInstruction | |||
| EC6C | LD HL,($72FD) | Load HL with the script loop restart pointer (Pointer_ScriptLoopRestart). | ||
| EC6F | JP ScriptInstruction | Jump to ScriptInstruction to execute the script instruction at HL. | ||
| Prev: EC53 | Up: Map | Next: EC72 |