comparison lwasm/insn_tfm.c @ 134:09021ba6d755

Fixed length bug in tfm
author lost@l-w.ca
date Wed, 17 Aug 2011 19:44:26 -0600
parents 2c24602be78f
children 8764142b3192
comparison
equal deleted inserted replaced
133:3c1a80c2fb95 134:09021ba6d755
104 default: 104 default:
105 lwasm_register_error(as, l, "Unknown operation"); 105 lwasm_register_error(as, l, "Unknown operation");
106 return; 106 return;
107 } 107 }
108 l -> pb = (r0 << 4) | r1; 108 l -> pb = (r0 << 4) | r1;
109 l -> len = OPLEN(l -> lint); 109 l -> len = OPLEN(l -> lint) + 1;
110 } 110 }
111 111
112 EMITFUNC(insn_emit_tfm) 112 EMITFUNC(insn_emit_tfm)
113 { 113 {
114 lwasm_emitop(l, l -> lint); 114 lwasm_emitop(l, l -> lint);