def move(self,operand1, operand2):
if isinstance(operand1, int):<EOL><INDENT>output_type = self.symtab.get_type(operand1)<EOL>self.free_if_register(operand1)<EOL><DEDENT>else:<EOL><INDENT>output_type = SharedData.TYPES.NO_TYPE<EOL><DEDENT>self.newline_text("<STR_LIT>".format(self.symbol(operand1), self.symbol(operand2)), True)<EOL>if isinstance(operand2, int):<EOL><INDENT>if self.symtab.get_kind(operand2) == SharedData.KINDS.WORKING_REGISTER:<EOL><INDENT>self.symtab.set_type(operand2, output_type)<EOL><DEDENT><DEDENT>
Generates a move instruction
           If the output operand (opernad2) is a working register, sets it's type
           operandX - index in symbol table or text representation of operand