Prev: 48336 Up: Map Next: 48365
48353: Script routine: (27) Start loop (3 / 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 34291 and the address of the next instruction (i.e. the first instruction that is processed in each loop) is stored at 34292.
See also routines at 48295 and 48324.
Used by the routine at 48096.
Output
HL New address in script data
48353 CALL 48382 Load A with script instruction parameter, and advance HL to next instruction
48356 LD (34291),A Store repeat count at 34291
48359 LD (34292),HL Store address to return to (i.e. first instruction in loop) at 34292 and execute script instruction at this location
48362 JP 48098
Prev: 48336 Up: Map Next: 48365