angr_platforms/msp430/instrs_msp430.py
def decorate_reg(self, reg_name, reg_mode, imm):
        # pylint: disable=no-self-use
        """
        Decorate the register argument used for disassembly
        """

        # Boring register mode.  A write is just a Put.
        if reg_mode == ArchMSP430.Mode.REGISTER_MODE:
            reg_str = reg_name
        # Indexed mode, add the immediate to the register
        elif reg_mode == ArchMSP430.Mode.INDEXED_MODE:
            reg_str = "%d(%s)" % (imm, reg_name)
        # Indirect mode; fetch address in register; store is a write there.
        elif reg_mode == ArchMSP430.Mode.INDIRECT_REGISTER_MODE:
            reg_str = "@%s" % reg_str
        # Indirect Autoincrement mode. Increment the register by the type size, then access it
        elif reg_mode == ArchMSP430.Mode.INDIRECT_AUTOINCREMENT_MODE:
            reg_str = "@%s+" % reg_name
        elif reg_mode == ArchMSP430.Mode.ABSOLUTE_MODE:
            reg_str = imm
        else:
            raise Exception('Unknown mode found')
        return reg_str

        Decorate the register argument used for disassembly
        
Decorate the register argument used for disassembly
Decorate the register argument used for disassembly
def decorate_reg(self, reg_name, reg_mode, imm):
        if reg_mode == ArchMSP430.Mode.REGISTER_MODE:
            reg_str = reg_name
        elif reg_mode == ArchMSP430.Mode.INDEXED_MODE:
            reg_str = "%d(%s)" % (imm, reg_name)
        elif reg_mode == ArchMSP430.Mode.INDIRECT_REGISTER_MODE:
            reg_str = "@%s" % reg_str
        elif reg_mode == ArchMSP430.Mode.INDIRECT_AUTOINCREMENT_MODE:
            reg_str = "@%s+" % reg_name
        elif reg_mode == ArchMSP430.Mode.ABSOLUTE_MODE:
            reg_str = imm
        else:
            raise Exception('Unknown mode found')
        return reg_str
def decorate_reg ( self , reg_name , reg_mode , imm ) : if reg_mode == ArchMSP430 . Mode . REGISTER_MODE : reg_str = reg_name elif reg_mode == ArchMSP430 . Mode . INDEXED_MODE : reg_str = "%d(%s)" % ( imm , reg_name ) elif reg_mode == ArchMSP430 . Mode . INDIRECT_REGISTER_MODE : reg_str = "@%s" % reg_str elif reg_mode == ArchMSP430 . Mode . INDIRECT_AUTOINCREMENT_MODE : reg_str = "@%s+" % reg_name elif reg_mode == ArchMSP430 . Mode . ABSOLUTE_MODE : reg_str = imm else : raise Exception ( 'Unknown mode found' ) return reg_str
Decorate the register argument used for disassembly
Decorate the register argument used for disassembly
# pylint: disable=no-self-use """
        Decorate the register argument used for disassembly
        """ # Boring register mode.  A write is just a Put. # Indexed mode, add the immediate to the register # Indirect mode; fetch address in register; store is a write there. # Indirect Autoincrement mode. Increment the register by the type size, then access it
self
reg_name
reg_mode
imm