aboutsummaryrefslogtreecommitdiff
path: root/src/output.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-05-20 15:23:00 +0100
committerIan C <ianc@noddybox.co.uk>2016-05-20 15:23:00 +0100
commit45fd0ca73ec84a9b605f918a7b1b3497d2a25b33 (patch)
tree4b01f2dcc8f0ce5b80092a08427f8aa449f43ad6 /src/output.c
parent393556d2fc70dc0def5a6bb0463daf234ef23e36 (diff)
First pass at NES ROM support.
Diffstat (limited to 'src/output.c')
-rw-r--r--src/output.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/output.c b/src/output.c
index ac05216..1067b96 100644
--- a/src/output.c
+++ b/src/output.c
@@ -54,7 +54,8 @@ typedef enum
ZX81,
GAMEBOY,
SNES,
- LIBRARY
+ LIBRARY,
+ NES
} Format;
static char output[4096] = "output";
@@ -71,6 +72,7 @@ static ValueTable format_table[] =
{"gameboy", GAMEBOY},
{"snes", SNES},
{"lib", LIBRARY},
+ {"nes", NES},
{NULL}
};
@@ -160,6 +162,10 @@ int OutputCode(void)
return LibOutput(output, output_bank, bank, count,
error, sizeof error);
+ case NES:
+ return NESOutput(output, output_bank, bank, count,
+ error, sizeof error);
+
default:
break;
}