aboutsummaryrefslogtreecommitdiff
path: root/src/output.c
diff options
context:
space:
mode:
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 9a30a76..b02e36f 100644
--- a/src/output.c
+++ b/src/output.c
@@ -57,7 +57,8 @@ typedef enum
LIBRARY,
NES,
CPC,
- PRG
+ PRG,
+ HEX
} Format;
static char output[4096] = "output";
@@ -77,6 +78,7 @@ static ValueTable format_table[] =
{"nes", NES},
{"cpc", CPC},
{"prg", PRG},
+ {"hex", HEX},
{NULL}
};
@@ -178,6 +180,10 @@ int OutputCode(void)
return PRGOutput(output, output_bank, bank, count,
error, sizeof error);
+ case HEX:
+ return HEXOutput(output, output_bank, bank, count,
+ error, sizeof error);
+
default:
break;
}