lvm.js

changeset 109
db4b13efbd50
parent 108
c5ba02673ba9
child 110
6a6e5ef39eaf
equal deleted inserted replaced
108:c5ba02673ba9 109:db4b13efbd50
559 break; 559 break;
560 case OP_FORPREP: 560 case OP_FORPREP:
561 frame.pc+=(INS_sBx(instruction)); 561 frame.pc+=(INS_sBx(instruction));
562 var A = INS_A(instruction); 562 var A = INS_A(instruction);
563 frame.reg[A].value -= frame.reg[A+2].value; 563 frame.reg[A].value -= frame.reg[A+2].value;
564 frame.reg[A+3] = new LValue(this, "number", null);
565 break; 564 break;
566 case OP_FORLOOP: 565 case OP_FORLOOP:
567 var A = INS_A(instruction); 566 var A = INS_A(instruction);
568 var RA = frame.reg[A]; 567 var RA = frame.reg[A];
569 RA.value += frame.reg[A+2].value; 568 RA.value += frame.reg[A+2].value;

mercurial