comparison lwasm/os9.c @ 112:3fc568436721

Correct size handling for mod and emod
author lost@l-w.ca
date Sun, 07 Aug 2011 12:15:56 -0600
parents 2c24602be78f
children 697bc543368c
comparison
equal deleted inserted replaced
111:c0aedb1584af 112:3fc568436721
114 lw_expr_destroy(l -> addr); 114 lw_expr_destroy(l -> addr);
115 l -> addr = lw_expr_build(lw_expr_type_int, 0); 115 l -> addr = lw_expr_build(lw_expr_type_int, 0);
116 116
117 // init crc 117 // init crc
118 as -> inmod = 1; 118 as -> inmod = 1;
119
120 l -> len = 13;
119 } 121 }
120 122
121 EMITFUNC(pseudo_emit_mod) 123 EMITFUNC(pseudo_emit_mod)
122 { 124 {
123 lw_expr_t e1, e2, e3, e4; 125 lw_expr_t e1, e2, e3, e4;
173 lwasm_register_error(as, l, "not in a module!"); 175 lwasm_register_error(as, l, "not in a module!");
174 return; 176 return;
175 } 177 }
176 178
177 as -> inmod = 0; 179 as -> inmod = 0;
180 l -> len = 3;
178 } 181 }
179 182
180 EMITFUNC(pseudo_emit_emod) 183 EMITFUNC(pseudo_emit_emod)
181 { 184 {
182 unsigned char tcrc[3]; 185 unsigned char tcrc[3];