comparison src/parse.c @ 64:aaddd47219b4

Added the 'set' directive
author lost
date Mon, 05 Jan 2009 01:27:08 +0000
parents d85ba47b1e8f
children aa9d9fedfdf4
comparison
equal deleted inserted replaced
63:d85ba47b1e8f 64:aaddd47219b4
130 if (as -> passnum == 1 && !(instab[opnum].opcode && instab[opnum].setsym)) 130 if (as -> passnum == 1 && !(instab[opnum].opcode && instab[opnum].setsym))
131 { 131 {
132 // have a symbol; now determine if it is valid and register it 132 // have a symbol; now determine if it is valid and register it
133 // at the current address of the line 133 // at the current address of the line
134 debug_message(1, "Registering symbol '%s' at %04X", sym, as -> addr); 134 debug_message(1, "Registering symbol '%s' at %04X", sym, as -> addr);
135 if (lwasm_register_symbol(as, l, sym, as -> addr) < 0) 135 if (lwasm_register_symbol(as, l, sym, as -> addr, SYMBOL_NORM) < 0)
136 l -> sym = NULL; 136 l -> sym = NULL;
137 } 137 }
138 } 138 }
139 139
140 if (!(instab[opnum].opcode) || !(instab[opnum].fn) && !(as -> skipcond || as -> inmacro)) 140 if (!(instab[opnum].opcode) || !(instab[opnum].fn) && !(as -> skipcond || as -> inmacro))