comparison lwlink/main.c @ 148:08fb11004df9

Initial pass at OS9 module support for lwlink
author lost@l-w.ca
date Fri, 26 Aug 2011 23:26:00 -0600
parents fdc11ef4115b
children 606123758641
comparison
equal deleted inserted replaced
147:9cf1796259b2 148:08fb11004df9
72 outformat = OUTPUT_DECB; 72 outformat = OUTPUT_DECB;
73 else if (!strcasecmp(arg, "raw")) 73 else if (!strcasecmp(arg, "raw"))
74 outformat = OUTPUT_RAW; 74 outformat = OUTPUT_RAW;
75 else if (!strcasecmp(arg, "lwex0") || !strcasecmp(arg, "lwex")) 75 else if (!strcasecmp(arg, "lwex0") || !strcasecmp(arg, "lwex"))
76 outformat = OUTPUT_LWEX0; 76 outformat = OUTPUT_LWEX0;
77 else if (!strcasecmp(arg, "os9"))
78 outformat = OUTPUT_OS9;
77 else 79 else
78 { 80 {
79 fprintf(stderr, "Invalid output format: %s\n", arg); 81 fprintf(stderr, "Invalid output format: %s\n", arg);
80 exit(1); 82 exit(1);
81 } 83 }
117 { "output", 'o', "FILE", 0, 119 { "output", 'o', "FILE", 0,
118 "Output to FILE"}, 120 "Output to FILE"},
119 { "debug", 'd', 0, 0, 121 { "debug", 'd', 0, 0,
120 "Set debug mode"}, 122 "Set debug mode"},
121 { "format", 'f', "TYPE", 0, 123 { "format", 'f', "TYPE", 0,
122 "Select output format: decb, raw, lwex"}, 124 "Select output format: decb, raw, lwex, os9"},
123 { "decb", 'b', 0, 0, 125 { "decb", 'b', 0, 0,
124 "Generate DECB .bin format output, equivalent of --format=decb"}, 126 "Generate DECB .bin format output, equivalent of --format=decb"},
125 { "raw", 'r', 0, 0, 127 { "raw", 'r', 0, 0,
126 "Generate raw binary format output, equivalent of --format=raw"}, 128 "Generate raw binary format output, equivalent of --format=raw"},
127 { "script", 's', "FILE", 0, 129 { "script", 's', "FILE", 0,