From 01699a57df8866914eaf302c12fa7198dff60157 Mon Sep 17 00:00:00 2001 From: Jeff Tranter Date: Sun, 21 Jun 2015 16:53:47 -0400 Subject: [PATCH] Show available CPUs. --- README.md | 8 ++++---- udis.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 202c21e..c406fa6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/udis.py b/udis.py index f61d5e3..2c69916 100755 --- a/udis.py +++ b/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.