![]() |
Routines |
| Prev: 59400 | Up: Map | Next: 59436 |
|
Choose one of the following graphic-layout addresses at random and continue drawing from it.
|
||||
| GraphicLayoutRoutine_JumpRandomFromList | 59417 | LD A,(IX+0) | Fetch the random-maximum parameter from the layout byte at IX. | |
| 59420 | INC IX | Advance IX past the graphic-layout operand byte. | ||
| 59422 | CALL PseudoRandom | Call PseudoRandom to pick a pseudo-random value and keep it in C. | ||
| 59425 | LD C,A | |||
| 59426 | ADD A,A | Double A, then with the next add form a ×3 index. | ||
| 59427 | ADD A,C | A+=C. | ||
| 59428 | LD C,A | Keep A in C for the next calculation. | ||
| 59429 | LD B,0 | Load B with 0. | ||
| 59431 | ADD IX,BC | IX+=BC. | ||
| 59433 | JP Process_GraphicLayoutData | Jump to Process_GraphicLayoutData to process graphic layout data. | ||
|
View the equivalent code in;
|
||||
| Prev: 59400 | Up: Map | Next: 59436 |