comparison src/main.c @ 35:39d750ee8d34

Added error display and fixed infinite loop in lwasm_parse_line()
author lost
date Fri, 02 Jan 2009 06:07:10 +0000
parents 925105ccf22f
children 9bd584bb6296
comparison
equal deleted inserted replaced
34:b29eec6f3819 35:39d750ee8d34
34 #include "lwasm.h" 34 #include "lwasm.h"
35 35
36 // external declarations 36 // external declarations
37 extern void lwasm_pass1(asmstate_t *as); 37 extern void lwasm_pass1(asmstate_t *as);
38 extern void lwasm_pass2(asmstate_t *as); 38 extern void lwasm_pass2(asmstate_t *as);
39 39 extern void lwasm_list(asmstate_t *as);
40 40
41 // command line option handling 41 // command line option handling
42 const char *argp_program_version = PACKAGE_STRING; 42 const char *argp_program_version = PACKAGE_STRING;
43 const char *argp_program_bug_address = PACKAGE_BUGREPORT; 43 const char *argp_program_bug_address = PACKAGE_BUGREPORT;
44 44
169 // pass 2: actually generate the code; if any phasing errors appear 169 // pass 2: actually generate the code; if any phasing errors appear
170 // at this stage, we have a bug 170 // at this stage, we have a bug
171 lwasm_pass2(&asmstate); 171 lwasm_pass2(&asmstate);
172 172
173 // now make a pretty listing 173 // now make a pretty listing
174 // lwasm_list(&asmstate); 174 lwasm_list(&asmstate);
175 175
176 // now write the code out to the output file 176 // now write the code out to the output file
177 // lwasm_output(&asmstate); 177 // lwasm_output(&asmstate);
178 178
179 if (asmstate.errorcount > 0) 179 if (asmstate.errorcount > 0)