Doesn't work for me and crashes on start.
Stacktrace:
C:..>python spyn mario.nes
Loading...
Not ines
Traceback (most recent call last):
File "spyn", line 73, in <module>
cpu.Reset()
File "C:\programmieren\projekte\spyn_orig\cpu.py", line 852, in Reset
PC=memory.Get(0xfffc)
File "C:\programmieren\projekte\spyn_orig\memory.py", line 152, in Get
return ord(mmcReadmMapper)
File "C:\programmieren\projekte\spyn_orig\memory.py", line 48, in mmc0Read
return PRGupper[adr-0x4000]
TypeError: 'int' object has no attribute 'getitem'</module>
Ok, i found the problems. First problem the complete code is not pep8 and mixes tabs and spaces. The second problem some variables doesnt use correct namesspace and also mssing binary opening mode exist.