Prev: 39805 Up: Map Next: 39840
39823: Graphic layout routine: (247) Jump to randomly selected graphic layout data address from list
Read current byte value (n) from graphic layout data, generate random number m (0 - n-1) then jump to address in m-th WORD after current position.
Input
A (Entry at 39831) Number of words in graphic layout data to skip over
A (Entry at 39832) Number of bytes in graphic layout data to skip over
IX Address of first parameter in current graphic layout data instruction
Output
IX Address of next graphic layout data instruction to process
39823 LD A,(IX+0) Load current byte of graphic layout data into A.
39826 INC IX Advance pointer to next byte.
39828 CALL 38234 Load A with a random number between 0 and (A-1).
This entry point is used by the routine at 39840.
39831 ADD A,A Double value in A.
This entry point is used by the routines at 39805 and 39940.
39832 LD C,A Load BC with offset value in A.
39833 LD B,0
39835 ADD IX,BC Advance IX by offset value.
39837 JP 39727 Jump to 39727 (set current position in graphic layout data to value of WORD at this address).
Prev: 39805 Up: Map Next: 39840