|  | Routines | 
| Prev: 46317 | Up: Map | Next: 46363 | 
| 
Decrease timer value (1st parameter). If now zero, then reset timer to value in 2nd parameter, then load one of the n (3rd parameter) following values chosen at random into the graphic index field of the next instruction.
 
Used by the routine at 46218.
 
 
 | ||||||||||||||
| 46347 | LD B,0 | Prepare to recalculate display buffer address | ||||||||||||
| 46349 | DEC (IX+0) | Decrease timer value | ||||||||||||
| 46352 | JR NZ,46370 | If timer is not zero, then advance IX to start of next instruction and process | ||||||||||||
| 46354 | CALL 46385 | Reset timer to maximum, advance IX to start of next instruction and set value here (graphic index) to random value from sequence of data following previous instruction | ||||||||||||
| 46357 | LD (IX+0),E | |||||||||||||
| 46360 | JP 46003 | Read / process data at address in IX | ||||||||||||
| Prev: 46317 | Up: Map | Next: 46363 |