Fixed infinite loop with certain instruction modes generating MOVE instruction, clearing data registers for safety, changed CMP statements to match real data size (from long to word)