diff options
author | Ian C <ianc@noddybox.co.uk> | 2021-11-20 10:01:52 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2021-11-20 10:01:52 +0000 |
commit | 607668671eb6d10e7ca036df81b3f288bce57339 (patch) | |
tree | df5973eb6e5828aede9948bac0e6d728fdd82fdc /src/output.c | |
parent | 38e9dd313001142ae36254cc6c8ef79d369dc109 (diff) |
Added Intel HEX output handler
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 8 |
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; } |