Mercurial > hg-old > index.cgi
diff lwasm/insn_indexed.c @ 441:7b8d89435f30 3.0
Fixed error with forced size pcr operands
author | lost@l-w.ca |
---|---|
date | Sat, 30 Oct 2010 11:51:25 -0600 |
parents | 2d7255509130 |
children | a9521955554f |
line wrap: on
line diff
--- a/lwasm/insn_indexed.c Sat Oct 30 11:45:52 2010 -0600 +++ b/lwasm/insn_indexed.c Sat Oct 30 11:51:25 2010 -0600 @@ -272,6 +272,16 @@ e2 = lw_expr_build(lw_expr_type_oper, lw_expr_oper_minus, e1, l -> addr); lw_expr_destroy(e1); lwasm_save_expr(l, 0, e2); + if (l -> lint == 1) + { + l -> pb = (indir * 0x80) | 0x8C; + return; + } + if (l -> lint == 2) + { + l -> pb = (indir * 0x80) | 0x8D; + return; + } } l -> pb = (indir * 0x80) | rn | (f0 * 0x40);