![]() |
Routines |
Prev: F171 | Up: Map |
|
||||||||
F17F | PUSH HL | |||||||
F180 | LD HL,($7FDE) | Collect the random number seed from 7FDE | ||||||
F183 | INC HL | Add 257 to it | ||||||
F184 | INC H | |||||||
F185 | LD ($7FDE),HL | Store the new seed | ||||||
F188 | LD A,($5C78) | Collect the LSB of the system variable FRAMES, which is incremented every 20ms | ||||||
F18B | XOR (HL) | A=random number | ||||||
F18C | POP HL | |||||||
F18D | RET |
Prev: F171 | Up: Map |