[Registers] removed info when writing to zero register

This commit is contained in:
Anton Lydike 2021-06-08 00:19:36 +02:00
parent 79d913baaf
commit d9e5d78f87

View File

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