about summary refs log tree commit diff stats
path: root/020run.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-20 22:59:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-20 22:59:34 -0700
commit18429d408e727f5cf1c96416cda614c124fd0ae7 (patch)
tree32908fab4fe0a30d99e8ae930fb56c0bd89ac1c2 /020run.cc
parent70179d1f132ab3170d9fda9b002f4d82af5b0a56 (diff)
downloadmu-18429d408e727f5cf1c96416cda614c124fd0ae7.tar.gz
1612
Diffstat (limited to '020run.cc')
-rw-r--r--020run.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/020run.cc b/020run.cc
index 9e6cbb2c..020764e1 100644
--- a/020run.cc
+++ b/020run.cc
@@ -193,6 +193,7 @@ vector<double> read_memory(reagent x) {
 
 void write_memory(reagent x, vector<double> data) {
   if (is_dummy(x)) return;
+  if (is_literal(x)) return;
   long long int base = x.value;
   if (size_mismatch(x, data)) {
     tb_shutdown();
@@ -244,3 +245,9 @@ recipe main [
   _ <- copy 0:literal
 ]
 +run: _ <- copy 0:literal
+
+:(scenario run_literal)
+recipe main [
+  0:literal/screen <- copy 0:literal
+]
+-mem: storing 0 in location 0