comparison lwasm/main.c @ 236:a58f49a77441

Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
author lost
date Fri, 14 Aug 2009 03:22:26 +0000
parents 0df2a39a268c
children e27279180a73
comparison
equal deleted inserted replaced
235:aa0056ca7319 236:a58f49a77441
92 as -> outformat = OUTPUT_DECB; 92 as -> outformat = OUTPUT_DECB;
93 else if (!strcasecmp(arg, "raw")) 93 else if (!strcasecmp(arg, "raw"))
94 as -> outformat = OUTPUT_RAW; 94 as -> outformat = OUTPUT_RAW;
95 else if (!strcasecmp(arg, "obj")) 95 else if (!strcasecmp(arg, "obj"))
96 as -> outformat = OUTPUT_OBJ; 96 as -> outformat = OUTPUT_OBJ;
97 else if (!strcasecmp(arg, "os9"))
98 {
99 as -> pragmas |= PRAGMA_DOLLARNOTLOCAL;
100 as -> outformat = OUTPUT_OS9;
101 }
97 else 102 else
98 { 103 {
99 fprintf(stderr, "Invalid output format: %s\n", arg); 104 fprintf(stderr, "Invalid output format: %s\n", arg);
100 exit(1); 105 exit(1);
101 } 106 }
144 { "output", 'o', "FILE", 0, 149 { "output", 'o', "FILE", 0,
145 "Output to FILE"}, 150 "Output to FILE"},
146 { "debug", 'd', 0, 0, 151 { "debug", 'd', 0, 0,
147 "Set debug mode"}, 152 "Set debug mode"},
148 { "format", 'f', "TYPE", 0, 153 { "format", 'f', "TYPE", 0,
149 "Select output format: decb, raw, obj"}, 154 "Select output format: decb, raw, obj, os9"},
150 { "list", 'l', "FILE", OPTION_ARG_OPTIONAL, 155 { "list", 'l', "FILE", OPTION_ARG_OPTIONAL,
151 "Generate list [to FILE]"}, 156 "Generate list [to FILE]"},
152 { "decb", 'b', 0, 0, 157 { "decb", 'b', 0, 0,
153 "Generate DECB .bin format output, equivalent of --format=decb"}, 158 "Generate DECB .bin format output, equivalent of --format=decb"},
154 { "raw", 'r', 0, 0, 159 { "raw", 'r', 0, 0,