kernel-mode #1
@ -95,7 +95,6 @@ class Registers:
|
|||||||
:return: If the operation was successful
|
:return: If the operation was successful
|
||||||
"""
|
"""
|
||||||
if reg == 'zero':
|
if reg == 'zero':
|
||||||
print("[Registers.set] trying to set read-only register: {}".format(reg))
|
|
||||||
return False
|
return False
|
||||||
if reg not in Registers.all_registers():
|
if reg not in Registers.all_registers():
|
||||||
raise InvalidRegisterException(reg)
|
raise InvalidRegisterException(reg)
|
||||||
|
Loading…
Reference in New Issue
Block a user