618 case OP_SUB: |
618 case OP_SUB: |
619 var RB = RK(frame, INS_B(instruction)); |
619 var RB = RK(frame, INS_B(instruction)); |
620 var RC = RK(frame, INS_C(instruction)); |
620 var RC = RK(frame, INS_C(instruction)); |
621 frame.reg[INS_A(instruction)] = new LValue(this, "number", RB.value - RC.value); |
621 frame.reg[INS_A(instruction)] = new LValue(this, "number", RB.value - RC.value); |
622 break; |
622 break; |
|
623 case OP_MUL: |
|
624 var RB = RK(frame, INS_B(instruction)); |
|
625 var RC = RK(frame, INS_C(instruction)); |
|
626 frame.reg[INS_A(instruction)] = new LValue(this, "number", RB.value * RC.value); |
|
627 break; |
623 case OP_DIV: |
628 case OP_DIV: |
624 var RB = RK(frame, INS_B(instruction)); |
629 var RB = RK(frame, INS_B(instruction)); |
625 var RC = RK(frame, INS_C(instruction)); |
630 var RC = RK(frame, INS_C(instruction)); |
626 frame.reg[INS_A(instruction)] = new LValue(this, "number", RB.value / RC.value); |
631 frame.reg[INS_A(instruction)] = new LValue(this, "number", RB.value / RC.value); |
627 break; |
632 break; |