Mercurial > hg-old > index.cgi
comparison src/pseudo.c @ 49:21ae0fab469b
Added needed infra for useful listing of EQU and ORG type statements
author | lost |
---|---|
date | Sun, 04 Jan 2009 07:37:19 +0000 |
parents | 804d7465e0f9 |
children | e672232caffe |
comparison
equal
deleted
inserted
replaced
48:6de358e7903f | 49:21ae0fab469b |
---|---|
45 if (!lwasm_expr_is_constant(s)) | 45 if (!lwasm_expr_is_constant(s)) |
46 { | 46 { |
47 register_error(as, l, 1, "Illegal incomplete reference (pass 1)"); | 47 register_error(as, l, 1, "Illegal incomplete reference (pass 1)"); |
48 return; | 48 return; |
49 } | 49 } |
50 rval = lwasm_expr_get_value(s); | 50 rval = lwasm_expr_get_value(s) & 0xffff; |
51 l -> codeaddr = rval; | 51 l -> codeaddr = rval; |
52 l -> addrset = 1; | |
52 as -> addr = rval; | 53 as -> addr = rval; |
53 } | 54 } |
54 | 55 |
55 /* | 56 /* |
56 void pseudo_include(asmstate_t *as, sourceline_t *cl, char **optr) | 57 void pseudo_include(asmstate_t *as, sourceline_t *cl, char **optr) |