def esp(self, value): '''Sets the value of the ESP register.''' if not (0 <= value < 2**32): console.warning('Overflow occured with register ESP.') self._esp = value % 2**32
def ebx(self, value): '''Sets the value of the EBX register.''' if not (0 <= value < 2**32): console.warning('Overflow occured with register EBX.') self._ebx = value % 2**32
def edi(self, value): '''Sets the value of the EDI register.''' if not (0 <= value < 2**32): console.warning('Overflow occured with register EDI.') self._edi = value % 2**32