[Registers] removed info when writing to zero register

kernel-mode
Anton Lydike 3 years ago
parent 79d913baaf
commit d9e5d78f87

@ -95,7 +95,6 @@ class Registers:
:return: If the operation was successful
"""
if reg == 'zero':
print("[Registers.set] trying to set read-only register: {}".format(reg))
return False
if reg not in Registers.all_registers():
raise InvalidRegisterException(reg)

Loading…
Cancel
Save