Prev: 48307 Up: Map Next: 48336
48324: Script routine: (25) Start loop (2 / 3)
Start a loop in script data. The first of the following two bytes is the repeat count and the second is disregarded. The current value of the repeat counter is stored at 34288 and the address of the next instruction (i.e. the first instruction that is processed in each loop) is stored at 34289.
See also routines at 48295 and 48353.
Used by the routine at 48096.
Output
HL New address in script data
48324 CALL 48382 Load A with script instruction parameter, and advance HL to next instruction
48327 LD (34288),A Store repeat count at 34288
48330 LD (34289),HL Store address to return to (i.e. first instruction in loop) at 34289 and execute script instruction at this location
48333 JP 48098
Prev: 48307 Up: Map Next: 48336