Prev: 07746 Up: Map Next: 07775
07759: THE 'RANDOMIZE' COMMAND ROUTINE
The address of this routine is found in the parameter table.
The operand is compressed into the BC register pair and transferred to the required system variable. However if the operand is zero the value in FRAMES1 and FRAMES2 is used instead.
RANDOMIZE 07759 CALL FIND_INT2 Fetch the operand.
07762 LD A,B Jump forward unless the value of the operand is zero.
07763 OR C
07764 JR NZ,RAND_1
07766 LD BC,(23672) Fetch the two low order bytes of FRAMES instead.
RAND_1 07770 LD (23670),BC Now enter the result into the system variable SEED before returning.
07774 RET
Prev: 07746 Up: Map Next: 07775