Prev: F274 Up: Map Next: F296
F289: Code sheet - generate 3 random bytes using the FRAMES timer system variable
Used by the routine at F34B.
F289 LD HL,($5C78) Get the system variable FRAMES cycle timer
This variable is 3 bytes, but only the first two are grabbed
F28C LD ($F216),HL
F28F LD E,(HL) Load both E & D registers with the contents of this (random) address
F290 LD D,(HL)
F291 LD ($F218),DE ...and store
F295 RET
Prev: F274 Up: Map Next: F296