mirror of
https://github.com/jefftranter/udis.git
synced 2025-08-08 02:25:09 +00:00
Show available CPUs.
This commit is contained in:
@@ -11,11 +11,11 @@ The following CPUs are either supported or planned to be supported:
|
|||||||
CPU Status
|
CPU Status
|
||||||
--- ------
|
--- ------
|
||||||
|
|
||||||
1802 planned
|
1802 possible
|
||||||
|
|
||||||
6502 done
|
6502 done
|
||||||
|
|
||||||
65816 planned
|
65816 possible
|
||||||
|
|
||||||
65C02 planned
|
65C02 planned
|
||||||
|
|
||||||
@@ -27,9 +27,9 @@ CPU Status
|
|||||||
|
|
||||||
8008 planned
|
8008 planned
|
||||||
|
|
||||||
8051 planned
|
8051 possible
|
||||||
|
|
||||||
F8 planned
|
F8 possible
|
||||||
|
|
||||||
Z80 planned
|
Z80 planned
|
||||||
|
|
||||||
|
4
udis.py
4
udis.py
@@ -40,7 +40,6 @@ def isprint(c):
|
|||||||
# Avoids an error when output piped, e.g. to "less"
|
# Avoids an error when output piped, e.g. to "less"
|
||||||
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||||
|
|
||||||
# TODO: Add command line option to show available CPUs.
|
|
||||||
|
|
||||||
# Parse command line options
|
# Parse command line options
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
@@ -58,7 +57,8 @@ plugin = dir + os.sep + args.cpu + ".py"
|
|||||||
try:
|
try:
|
||||||
exec(open(plugin).read())
|
exec(open(plugin).read())
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print(("error: cpu plugin file '{}' not found.".format(plugin)), file=sys.stderr)
|
print(("error: CPU plugin file '{}' not found.".format(plugin)), file=sys.stderr)
|
||||||
|
print("The following CPUs are supported: 6502 6800 6811")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Get filename from command line arguments.
|
# Get filename from command line arguments.
|
||||||
|
Reference in New Issue
Block a user