![]() |
Routines |
| Prev: 60462 | Up: Map | Next: 60513 |
|
Start a counted script loop for the current entity.
|
||||
| ScriptRoutine_StartScriptLoop | 60499 | INC HL | Advance HL past the current script instruction. | |
| 60500 | INC HL | |||
| 60501 | LD A,(HL) | Fetch the next script byte. | ||
| 60502 | LD (29441),A | Set the script loop counter (ScriptLoopCounter). | ||
| 60505 | INC HL | Advance HL past the loop-count operand onto the loop body. | ||
| 60506 | INC HL | |||
| 60507 | LD (29437),HL | Store HL in the script loop restart pointer (Pointer_ScriptLoopRestart). | ||
| 60510 | JP ScriptInstruction | Jump to ScriptInstruction to execute the script instruction at HL. | ||
| Prev: 60462 | Up: Map | Next: 60513 |