mirror of
https://github.com/jtauber/applepy.git
synced 2024-11-26 16:49:32 +00:00
added if __name__ == "__main__" test for mainline
This commit is contained in:
parent
55d700fc68
commit
a48716a900
14
applepy.py
14
applepy.py
@ -636,10 +636,12 @@ class CPU:
|
||||
# @@@ IRQ
|
||||
# @@@ NMI
|
||||
|
||||
mem = Memory(0x100000)
|
||||
|
||||
# available from http://www.easy68k.com/paulrsm/6502/index.html
|
||||
mem.load("A2ROM.BIN", 0xD000)
|
||||
|
||||
cpu = CPU(mem)
|
||||
curses.wrapper(cpu.run)
|
||||
if __name__ == "__main__":
|
||||
mem = Memory(0x100000)
|
||||
|
||||
# available from http://www.easy68k.com/paulrsm/6502/index.html
|
||||
mem.load("A2ROM.BIN", 0xD000)
|
||||
|
||||
cpu = CPU(mem)
|
||||
curses.wrapper(cpu.run)
|
||||
|
Loading…
Reference in New Issue
Block a user