From 607668671eb6d10e7ca036df81b3f288bce57339 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 20 Nov 2021 10:01:52 +0000 Subject: Added Intel HEX output handler --- src/output.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/output.c') 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; } -- cgit v1.2.3