diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-10-29 00:18:58 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2014-10-29 00:30:46 -0700 |
commit | 48cd1ae766dc9dc24785d2b19f963a70df869a01 (patch) | |
tree | 5436a0553f7ab7b32dc5a90dadb6391fcd215439 /mu.arc.t | |
parent | dae4f6d15ce0d5a22e4492a0f8540507c49f32a0 (diff) | |
download | mu-48cd1ae766dc9dc24785d2b19f963a70df869a01.tar.gz |
163 - start of a simple assembler
Diffstat (limited to 'mu.arc.t')
-rw-r--r-- | mu.arc.t | 13 |
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 |