Prev: 48295 Up: Map Next: 48324
48307: Script routine: (24) End loop (1 / 3)
See also routines at 48336 and 48365.
Used by the routine at 48096.
Output
HL New address in script data
48307 LD A,(34285) Load A with current repeat count
48310 OR A If repeat count is zero then jump to 48096 (advance HL to next script instruction and execute)
48311 JP Z,48096
48314 DEC A Decrease repeat count and store
48315 LD (34285),A
48318 LD HL,(34286) Load HL with address of first instruction in loop and execute script instruction at this location
48321 JP 48098
Prev: 48295 Up: Map Next: 48324