void ClearAllMachineInst()
{
phase1TEX_mi.Clear();
phase1ALU_mi.Clear();
phase2TEX_mi.Clear();
phase2ALU_mi.Clear();
// reset write state for all registers
for ( int i = 0; i < 6; i++ )
{
Phase_RegisterUsage[ i ].Phase1Write = false;
Phase_RegisterUsage[ i ].Phase2Write = false;
}
phaseMarkerFound = false;
constantsPos = -4;
// keep track of the last instruction built
// this info is used at the end of pass 2 to optimize the machine code
lastInstructionPos = 0;
secondLastInstructionPos = 0;
macroOn = false; // macro's off at the beginning
texm3x3padCount = 0;
}