diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-01 23:25:22 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-01 23:25:22 -0800 |
commit | 0749772be12078cb6317d1d53d03444c00f9810b (patch) | |
tree | d65c9544b197dd0173caed1bceb1f4740a14b8d4 /baremetal/shell/cell.mu | |
parent | 0517cfd573496746f63522e8f8643dac0b3c4459 (diff) | |
download | mu-0749772be12078cb6317d1d53d03444c00f9810b.tar.gz |
7837 - printing s-expressions
Diffstat (limited to 'baremetal/shell/cell.mu')
-rw-r--r-- | baremetal/shell/cell.mu | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/baremetal/shell/cell.mu b/baremetal/shell/cell.mu index 2e1beb0e..8627af1c 100644 --- a/baremetal/shell/cell.mu +++ b/baremetal/shell/cell.mu @@ -28,3 +28,9 @@ fn new-number _out: (addr handle cell) { var type/ecx: (addr int) <- get out-addr, type copy-to *type, 1/number } + +fn new-pair _out: (addr handle cell) { + var out/eax: (addr handle cell) <- copy _out + allocate out + # new cells have type pair by default +} |