You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
592 B
Python
26 lines
592 B
Python
#!/usr/bin/env python3
|
|
# Pipe the debug output and it will compare to a working emulator
|
|
|
|
def main():
|
|
# The good dump
|
|
gdump = open("fake6502/good_dump.txt", "r")
|
|
|
|
while True:
|
|
l = gdump.readline().strip()
|
|
try:
|
|
bl = input()
|
|
except EOFError:
|
|
print("Reached EOF")
|
|
return
|
|
else:
|
|
bl = bl.strip()
|
|
if bl != l:
|
|
print("ERROR! Does not meet!")
|
|
print("Good:", l)
|
|
print("Bad: ", bl)
|
|
return
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|