Routines |
Prev: 6B0C | Up: Map | Next: 6B21 |
|
||||||||
6B12 | LD HL,($7C67) | Pick up the address of the next pseudo-random number. | ||||||
6B15 | LD A,(HL) | Copy the number to A. | ||||||
6B16 | PUSH AF | Save the number briefly. | ||||||
6B17 | INC HL | Increment the address, rolling over from 0x1FFF to 0. | ||||||
6B18 | LD A,H | |||||||
6B19 | AND $1F | |||||||
6B1B | LD H,A | |||||||
6B1C | LD ($7C67),HL | Save the new address. | ||||||
6B1F | POP AF | Restore the pseudo-random number to A. | ||||||
6B20 | RET |
Prev: 6B0C | Up: Map | Next: 6B21 |