![]() |
Routines |
| Prev: 39805 | Up: Map | Next: 39840 |
|
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.
|
||||||||||||||||
| 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. | ||||||||||||||
| 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 |