Prev: 48324 Up: Map Next: 48353
48336: Script routine: (26) End loop (2 / 3)
See also routines at 48307 and 48365.
Used by the routine at 48096.
Output
HL New address in script data
48336 LD A,(34288) Load A with current repeat count
48339 OR A If repeat count is zero then jump to 48096 (advance HL to next script instruction and execute)
48340 JP Z,48096
48343 DEC A Decrease repeat count and store
48344 LD (34288),A
48347 LD HL,(34289) Load HL with address of first instruction in loop and execute script instruction at this location
48350 JP 48098
Prev: 48324 Up: Map Next: 48353