comparison lwasm/pseudo.c @ 190:563adfccb645

Added 'sym=expr' opcode handling
author lost
date Sun, 22 Mar 2009 16:08:20 +0000
parents 02ada556bcc0
children bfd0fb0a85c2
comparison
equal deleted inserted replaced
189:1936ea52b83e 190:563adfccb645
292 l -> symaddr = v & 0xFFFF; 292 l -> symaddr = v & 0xFFFF;
293 l -> addrset = 2; 293 l -> addrset = 2;
294 294
295 // note: we need to do this because the symbol might have resolved 295 // note: we need to do this because the symbol might have resolved
296 // to a constant! 296 // to a constant!
297 lwasm_register_symbol(as, l, l -> sym, v, (r > 0 ? SYMBOL_COMPLEX: SYMBOL_NORM) | SYMBOL_FORCE); 297 lwasm_register_symbol(as, l, l -> sym, v, (r > 0 ? SYMBOL_COMPLEX: SYMBOL_NORM) | SYMBOL_FORCE | (l -> forceglobal ? SYMBOL_GLOBAL : SYMBOL_NORM));
298 } 298 }
299 299
300 OPFUNC(pseudo_set) 300 OPFUNC(pseudo_set)
301 { 301 {
302 int r, v; 302 int r, v;