Sep-14-2019, 12:07 AM
Hello. I have this code line:
Instruction code it is:
instruction = Instruction (byte)that generates the following error message:
Quote:Traceback (most recent call last):
File "emulator.py", line 29, in <module>
main ()
File "emulator.py", line 21, in main
instruction = Instruction (byte)
NameError: global name 'Instruction' is not defined
Instruction code it is:
class Instruction (object): def __init___(self, identifier_byte): #type: (byte) -> self.identifier_byte = identifier_byteSo, what I am fogetting? Thanks for the input.