comparison lwasm/main.c @ 342:7b4123dce741

Added basic symbol registration
author lost@starbug
date Wed, 24 Mar 2010 21:30:31 -0600
parents 04c80c51b16a
children 7416c3f9c321
comparison
equal deleted inserted replaced
341:4e1cff60c293 342:7b4123dce741
163 /* 163 /*
164 main function; parse command line, set up assembler state, and run the 164 main function; parse command line, set up assembler state, and run the
165 assembler on the first file 165 assembler on the first file
166 */ 166 */
167 extern void do_pass1(asmstate_t *as); 167 extern void do_pass1(asmstate_t *as);
168 extern void lwasm_evaluate_special(int t, void *ptr); 168 extern lw_expr_t lwasm_evaluate_special(int t, void *ptr);
169 extern void lwasm_evaluate_var(char *var); 169 extern lw_expr_t lwasm_evaluate_var(char *var);
170 170
171 int main(int argc, char **argv) 171 int main(int argc, char **argv)
172 { 172 {
173 /* assembler state */ 173 /* assembler state */
174 asmstate_t asmstate = { 0 }; 174 asmstate_t asmstate = { 0 };