def compare(self, operand1, operand2):
typ = self.symtab.get_type(operand1)<EOL>self.free_if_register(operand1)<EOL>self.free_if_register(operand2)<EOL>self.newline_text("<STR_LIT>".format(self.OPSIGNS[typ], self.symbol(operand1), self.symbol(operand2)), True)<EOL>
Generates a compare instruction
           operandX - index in symbol table