![]() |
Routines |
| Prev: 61809 | Up: Map |
|
||||||||
| 61823 | PUSH HL | |||||||
| 61824 | LD HL,(32734) | Collect the random number seed from 32734 | ||||||
| 61827 | INC HL | Add 257 to it | ||||||
| 61828 | INC H | |||||||
| 61829 | LD (32734),HL | Store the new seed | ||||||
| 61832 | LD A,(23672) | Collect the LSB of the system variable FRAMES, which is incremented every 20ms | ||||||
| 61835 | XOR (HL) | A=random number | ||||||
| 61836 | POP HL | |||||||
| 61837 | RET | |||||||
| Prev: 61809 | Up: Map |