lvm.js

changeset 117
8f1045a7f1d6
parent 116
b78e86780939
child 118
05d10aebb9f5
equal deleted inserted replaced
116:b78e86780939 117:8f1045a7f1d6
582 var RA = frame.reg[A]; 582 var RA = frame.reg[A];
583 RA.value += frame.reg[A+2].value; 583 RA.value += frame.reg[A+2].value;
584 if(RA.value <= frame.reg[A+1].value) 584 if(RA.value <= frame.reg[A+1].value)
585 { 585 {
586 frame.pc += INS_sBx(instruction); 586 frame.pc += INS_sBx(instruction);
587 frame.reg[A+3].value = RA.value; 587 frame.reg[A+3] = new LValue(this, "number", RA.value);
588 } 588 }
589 break; 589 break;
590 case OP_TFORLOOP: 590 case OP_TFORLOOP:
591 var A = INS_A(instruction); 591 var A = INS_A(instruction);
592 var C = INS_C(instruction); 592 var C = INS_C(instruction);

mercurial