summaryrefslogtreecommitdiff
path: root/parse/ops.def
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-06-07 16:05:53 -0400
committerOri Bernstein <orib@google.com>2012-06-07 16:05:53 -0400
commite96403b109bba4cf9581079a9bdf7dec22384075 (patch)
tree7f5a4aa0f3e1892d9353c53aec862d6a7dbda386 /parse/ops.def
parent53d4b23c3f4dc40f8f3d78343b35b12495193fcf (diff)
downloadmc-e96403b109bba4cf9581079a9bdf7dec22384075.tar.gz
Add blit operator.
For copying around structs/slices/anything that doesn't fit into a register.
Diffstat (limited to 'parse/ops.def')
-rw-r--r--parse/ops.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse/ops.def b/parse/ops.def
index be9e8ce..bf15182 100644
--- a/parse/ops.def
+++ b/parse/ops.def
@@ -52,5 +52,6 @@ O(Olbl, 1)
O(Ocjmp, 1) /* conditional jump */
O(Oload, 1) /* load from memory */
O(Ostor, 1) /* store to memory */
-O(Osllen, 1)
-O(Oslbase, 1)
+O(Osllen, 1) /* size of slice */
+O(Oslbase, 1) /* base of sice */
+O(Oblit, 1) /* block copy of memory */