summaryrefslogtreecommitdiff
path: root/parse/ops.def
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-07-23 16:38:27 -0400
committerOri Bernstein <orib@google.com>2012-07-23 16:38:27 -0400
commit6270260b03df40c9e2230079bafbf574238acc34 (patch)
treed48fe626f6bf47ee9088b04a3a4f08ca5cf59bbe /parse/ops.def
parent5e4f828e9c606506708012a606d5fee50269a2c5 (diff)
downloadmc-6270260b03df40c9e2230079bafbf574238acc34.tar.gz
Ostor must ALWAYS write through the pointer.
Ostor(Ovar(name), ...) will no longer write to the variable, but through it. This is needed to make indirections work. What was I smoking?
Diffstat (limited to 'parse/ops.def')
-rw-r--r--parse/ops.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse/ops.def b/parse/ops.def
index 0d47a20..38bcb8a 100644
--- a/parse/ops.def
+++ b/parse/ops.def
@@ -54,7 +54,8 @@ O(Oarr, 1)
/* backend-only */
O(Ocjmp, 1) /* conditional jump */
O(Oload, 1) /* load from memory */
-O(Ostor, 1) /* store to memory */
+O(Ostor, 1) /* store through to memory */
+O(Oset, 1) /* store to var */
O(Osllen, 1) /* size of slice */
O(Oslbase, 1) /* base of sice */
O(Oblit, 1) /* block copy of memory */