Prev: 48285 Up: Map Next: 48307
48295: Script routine: (23) Start loop (1 / 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 34285 and the address of the next instruction (i.e. the first instruction that is processed in each loop) is stored at 34286.
See also routines at 48324 and 48353.
Used by the routine at 48096.
Output
HL New address in script data
48295 CALL 48382 Load A with script instruction parameter, and advance HL to next instruction
48298 LD (34285),A Store repeat count at 34285
48301 LD (34286),HL Store address to return to (i.e. first instruction in loop) at 34286 and execute script instruction at this location
48304 JP 48098
Prev: 48285 Up: Map Next: 48307