aboutsummaryrefslogtreecommitdiff
path: root/src/casm.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-04-15 15:58:09 +0100
committerIan C <ianc@noddybox.co.uk>2016-04-15 15:58:09 +0100
commit24ebb224a11d31bfe039352fd29d2b89368583ac (patch)
treeee34d23fc3f10a47591ef5d0c027a7efa881be1e /src/casm.c
parent044adfa27731c0314bc4c9340fd1eebfaf3cf270 (diff)
Started on Gameboy support.
Diffstat (limited to 'src/casm.c')
-rw-r--r--src/casm.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/casm.c b/src/casm.c
index 0468f06..0553573 100644
--- a/src/casm.c
+++ b/src/casm.c
@@ -46,6 +46,7 @@
*/
#include "z80.h"
#include "6502.h"
+#include "gbcpu.h"
/* ---------------------------------------- MACROS
@@ -56,7 +57,7 @@
*/
static const char *casm_usage =
-"Version 1.0\n"
+"Version 1.1 development\n"
"\n"
"This program is distributed in the hope that it will be useful,\n"
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
@@ -100,6 +101,12 @@ static const CPU cpu_table[]=
LSB_Word,
Init_6502, Options_6502, SetOption_6502, Handler_6502
},
+ {
+ "GAMEBOY",
+ 0x10000,
+ LSB_Word,
+ Init_GBCPU, Options_GBCPU, SetOption_GBCPU, Handler_GBCPU
+ },
{NULL}
};
@@ -423,6 +430,10 @@ static CommandStatus OPTION(const char *label, int argc, char *argv[],
{
return ZX81OutputSetOption(entry->value, ac, args, q, err, errsize);
}
+ else if ((entry = ParseTable(opt, GBOutputOptions())))
+ {
+ return GBOutputSetOption(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);