Mercurial > hg-old > index.cgi
comparison lwasm/lwasm.h @ 325:619fd6ad4ab9
Completed command line parsing
author | lost |
---|---|
date | Sat, 13 Feb 2010 05:20:55 +0000 |
parents | be63116281b0 |
children | c15cca3ae6a2 |
comparison
equal
deleted
inserted
replaced
324:be63116281b0 | 325:619fd6ad4ab9 |
---|---|
37 { | 37 { |
38 TARGET_6309 = 0, // target 6309 CPU | 38 TARGET_6309 = 0, // target 6309 CPU |
39 TARGET_6809 // target 6809 CPU (no 6309 ops) | 39 TARGET_6809 // target 6809 CPU (no 6309 ops) |
40 }; | 40 }; |
41 | 41 |
42 enum lwasm_flags_e | |
43 { | |
44 FLAG_NONE = 0, | |
45 FLAG_LIST = 0x0001, | |
46 FLAG_DEPEND = 0x0002 | |
47 }; | |
48 | |
49 enum lwasm_pragmas_e | |
50 { | |
51 PRAGMA_NONE = 0, // no pragmas in effect | |
52 PRAGMA_DOLLARNOTLOCAL = 0x0001, // dollar sign does not make a symbol local | |
53 PRAGMA_NOINDEX0TONONE = 0x0002, // do not change implicit 0,R to ,R | |
54 PRAGMA_UNDEFEXTERN = 0x0004, // undefined symbols are considered to be external | |
55 PRAGMA_CESCAPES = 0x0008, // allow C style escapes in fcc, fcs, fcn, etc. | |
56 PRAGMA_IMPORTUNDEFEXPORT = 0x0010 // imports symbol if undefined upon export | |
57 }; | |
58 | |
42 typedef struct | 59 typedef struct |
43 { | 60 { |
44 int output_format; // output format | 61 int output_format; // output format |
45 int target; // assembly target | 62 int target; // assembly target |
46 int debug_level; // level of debugging requested | 63 int debug_level; // level of debugging requested |
47 | 64 int flags; // assembly flags |
65 int pragmas; // pragmas currently in effect | |
66 | |
67 char *list_file; // name of file to list to | |
68 char *output_file; // output file name | |
48 lw_stringlist_t input_files; // files to assemble | 69 lw_stringlist_t input_files; // files to assemble |
70 lw_stringlist_t include_list; // include paths | |
49 } asmstate_t; | 71 } asmstate_t; |
50 | 72 |
51 #endif /* ___lwasm_h_seen___ */ | 73 #endif /* ___lwasm_h_seen___ */ |