Пример #1
0
    def inc_reg(self):
        reg = self.get_selected_reg()
        if not reg:
            return

        val = dbg.to_uint(self.reg_vals[reg] + 1)
        idc.set_reg_value(val, reg)
        self.reload_info()
Пример #2
0
    def dec_reg(self):
        reg = self.get_selected_reg()
        if not reg:
            return

        val = dbg.to_uint(self.reg_vals[reg] - 1)
        idc.SetRegValue(val, reg)
        self.reload_info()
Пример #3
0
    def toggle_value(self):
        reg = self.get_selected_reg()
        if not reg:
            return

        val = dbg.to_uint(~self.reg_vals[reg])
        idc.set_reg_value(val, reg)
        self.reload_info()