comparison lwasm/main.c @ 212:b0d53e2f3f53

Make --6309/--6809 work properly Fixed an inverted test that checked for 6809/6309 mode incorrectly. This also fixes the fact that 6309 mode was not the default as per the documentation.
author William Astle <lost@l-w.ca>
date Sat, 09 Jun 2012 23:17:43 -0600
parents 1824cabf25ce
children afd50d6b4113
comparison
equal deleted inserted replaced
211:6f2e18f1fe67 212:b0d53e2f3f53
242 242
243 /* initialize assembler state */ 243 /* initialize assembler state */
244 asmstate.include_list = lw_stringlist_create(); 244 asmstate.include_list = lw_stringlist_create();
245 asmstate.input_files = lw_stringlist_create(); 245 asmstate.input_files = lw_stringlist_create();
246 asmstate.nextcontext = 1; 246 asmstate.nextcontext = 1;
247 247 asmstate.target = TARGET_6309;
248
248 /* parse command line arguments */ 249 /* parse command line arguments */
249 lw_cmdline_parse(&cmdline_parser, argc, argv, 0, 0, &asmstate); 250 lw_cmdline_parse(&cmdline_parser, argc, argv, 0, 0, &asmstate);
250 251
251 if (!asmstate.output_file) 252 if (!asmstate.output_file)
252 { 253 {