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()
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()
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()