--- pmars-0.8.5/sim.c 1996-02-20 19:15:48.000000000 +0100 +++ pmars-0.8.5-round-6/sim.c 1999-02-09 01:25:24.000000000 +0100 @@ -222,6 +222,7 @@ mem_struct *endPtr; /* pointer used to copy program to core */ int addrA, addrB; /* A and B pointers */ int temp; /* general purpose temporary variable */ + int type = 1; #ifdef TRACEGRAPHX int temp2; #endif @@ -313,7 +314,13 @@ oldW = starter - 1; addrA = warrior[0].instLen; /* clear the core following warrior 0 */ + INITIALINST.A_mode = INITIALINST.B_mode = (FIELD_T) IMMEDIATE; do { + INITIALINST.A_value = (int) (8000.0 * rand() / (RAND_MAX + 1.0)); + INITIALINST.B_value = (int) (8000.0 * rand() / (RAND_MAX + 1.0)); + if (++type > 10) type = 1; + if (type == 1) INITIALINST.opcode = (FIELD_T) SPL *8 + (FIELD_T) mB; + else INITIALINST.opcode = (FIELD_T) NOP *8 + (FIELD_T) mF; memory[addrA] = INITIALINST; } while (++addrA < coreSize); tempPtr2 = endQueue - taskNum - 1;