Prev: 48353 Up: Map Next: 48382
48365: Script routine: (28) End loop (3 / 3)
See also routines at 48307 and 48336.
Used by the routine at 48096.
Output
HL New address in script data
48365 LD A,(34291) Load A with current repeat count
48368 OR A If repeat count is zero then jump to 48096 (advance HL to next script instruction and execute)
48369 JP Z,48096
48372 DEC A Decrease repeat count and store
48373 LD (34291),A
48376 LD HL,(34292) Load HL with address of first instruction in loop and execute script instruction at this location
48379 JP 48098
Prev: 48353 Up: Map Next: 48382