diff options
author | Ian C <ianc@noddybox.co.uk> | 2016-03-20 23:40:58 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2016-03-20 23:40:58 +0000 |
commit | 8bfa93de6afda0163401c6f01eb5a89c535c262c (patch) | |
tree | cf7f8c3fb736465ec187bab8b0707cd9ca3d915b /src/casm.c | |
parent | 618d4de3bd173a7bda6d6a2b911bc0717c10102b (diff) |
Move output drivers to separate files in preperation for additional drivers.
Diffstat (limited to 'src/casm.c')
-rw-r--r-- | src/casm.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -37,11 +37,14 @@ #include "cmd.h" #include "state.h" #include "codepage.h" -#include "output.h" #include "stack.h" #include "listing.h" #include "alias.h" +#include "output.h" +#include "rawout.h" +#include "specout.h" + /* ---------------------------------------- PROCESSORS */ #include "z80.h" @@ -375,6 +378,8 @@ static CommandStatus OPTION(const char *label, int argc, char *argv[], opt = argv[1]; } + /* TODO: There should be someway to make this better + */ if ((entry = ParseTable(opt, ListOptions()))) { return ListSetOption(entry->value, ac, args, q, err, errsize); @@ -391,6 +396,14 @@ static CommandStatus OPTION(const char *label, int argc, char *argv[], { return OutputSetOption(entry->value, ac, args, q, err, errsize); } + else if ((entry = ParseTable(opt, RawOutputOptions()))) + { + return RawOutputSetOption(entry->value, ac, args, q, err, errsize); + } + else if ((entry = ParseTable(opt, SpecTAPOutputOptions()))) + { + return SpecTAPOutputSetOption(entry->value, ac, args, q, err, errsize); + } else if ((entry = ParseTable(opt, cpu->options()))) { return cpu->set_option(entry->value, ac, args, q, err, errsize); |