about summary refs log tree commit diff stats
path: root/mu.arc.t
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-10-29 00:18:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-10-29 00:30:46 -0700
commit48cd1ae766dc9dc24785d2b19f963a70df869a01 (patch)
tree5436a0553f7ab7b32dc5a90dadb6391fcd215439 /mu.arc.t
parentdae4f6d15ce0d5a22e4492a0f8540507c49f32a0 (diff)
downloadmu-48cd1ae766dc9dc24785d2b19f963a70df869a01.tar.gz
163 - start of a simple assembler
Diffstat (limited to 'mu.arc.t')
-rw-r--r--mu.arc.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t
index 8009ad28..63445058 100644
--- a/mu.arc.t
+++ b/mu.arc.t
@@ -1340,4 +1340,17 @@
 ; Eventually we want the right stack-management primitives to build delimited
 ; continuations in mu.
 
+; ---
+
+(reset)
+(new-trace "convert-names-local")
+(if (~iso (convert-names
+            '(((x integer) <- copy (4 literal))
+              ((y integer) <- copy (2 literal))
+              ((z integer) <- add (x integer) (y integer))))
+          '(((1 integer) <- copy (4 literal))
+            ((2 integer) <- copy (2 literal))
+            ((3 integer) <- add (1 integer) (2 integer))))
+  (prn "F - convert-names renames symbolic names to integer offsets"))
+
 (reset)  ; end file with this to persist the trace for the final test