Пример #1
0
 def __str__(self):
     """String representation of 'MUL RB, imm'-instruction as 'xxxB cccc'"""
     return Opcodes.MUL_RB_imm.__str__() + "0" + self.regB + " " + format_hex(self.imm, 4)
Пример #2
0
 def __str__(self):
     """String representation of 'JOVF imm'-instruction as 'xxxx cccc'"""
     return Opcodes.JOVF_imm.__str__() + "00" + " " + format_hex(
         self.imm, 4)
Пример #3
0
 def __str__(self):
     """String representation of 'MOV RA, imm'-instruction as 'xxAx cccc'"""
     return Opcodes.MOV_RA_imm.__str__(
     ) + self.regA + "0" + " " + format_hex(self.imm, 4)