Prev: 1E42 Up: Map Next: 1E5F
1E4F: 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 1E4F CALL FIND_INT2 Fetch the operand.
1E52 LD A,B Jump forward unless the value of the operand is zero.
1E53 OR C
1E54 JR NZ,RAND_1
1E56 LD BC,($5C78) Fetch the two low order bytes of FRAMES instead.
RAND_1 1E5A LD ($5C76),BC Now enter the result into the system variable SEED before returning.
1E5E RET
Prev: 1E42 Up: Map Next: 1E5F