summaryrefslogtreecommitdiffstats
path: root/vm/mterp/mips/OP_MOVE.S
diff options
context:
space:
mode:
Diffstat (limited to 'vm/mterp/mips/OP_MOVE.S')
-rw-r--r--vm/mterp/mips/OP_MOVE.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/vm/mterp/mips/OP_MOVE.S b/vm/mterp/mips/OP_MOVE.S
new file mode 100644
index 000000000..dbf7ea451
--- /dev/null
+++ b/vm/mterp/mips/OP_MOVE.S
@@ -0,0 +1,10 @@
+%verify "executed"
+ /* for move, move-object, long-to-int */
+ /* op vA, vB */
+ GET_OPB(a1) # a1 <- B from 15:12
+ GET_OPA4(a0) # a0 <- A from 11:8
+ FETCH_ADVANCE_INST(1) # advance rPC, load rINST
+ GET_VREG(a2, a1) # a2 <- fp[B]
+ GET_INST_OPCODE(t0) # t0 <- opcode from rINST
+ SET_VREG_GOTO(a2, a0, t0) # fp[A] <- a2
+