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