mirror of
https://github.com/jefftranter/udis.git
synced 2025-04-05 11:37:44 +00:00
Show available CPUs.
This commit is contained in:
parent
72cadf7cf3
commit
01699a57df
@ -11,11 +11,11 @@ The following CPUs are either supported or planned to be supported:
|
||||
CPU Status
|
||||
--- ------
|
||||
|
||||
1802 planned
|
||||
1802 possible
|
||||
|
||||
6502 done
|
||||
|
||||
65816 planned
|
||||
65816 possible
|
||||
|
||||
65C02 planned
|
||||
|
||||
@ -27,9 +27,9 @@ CPU Status
|
||||
|
||||
8008 planned
|
||||
|
||||
8051 planned
|
||||
8051 possible
|
||||
|
||||
F8 planned
|
||||
F8 possible
|
||||
|
||||
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"
|
||||
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||
|
||||
# TODO: Add command line option to show available CPUs.
|
||||
|
||||
# Parse command line options
|
||||
parser = argparse.ArgumentParser()
|
||||
@ -58,7 +57,8 @@ plugin = dir + os.sep + args.cpu + ".py"
|
||||
try:
|
||||
exec(open(plugin).read())
|
||||
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)
|
||||
|
||||
# Get filename from command line arguments.
|
||||
|
Loading…
x
Reference in New Issue
Block a user