about summary refs log tree commit diff stats
path: root/shell
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-15 18:42:14 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-15 18:42:14 -0700
commit849f80ac2245ae8d3f00ad4ab5e57fc79a2effe4 (patch)
tree034cc6fafc4403b13d4c4f4446de716df8d71ba2 /shell
parentfced134f8f00021c4bb02b8496a72918b322114a (diff)
downloadmu-849f80ac2245ae8d3f00ad4ab5e57fc79a2effe4.tar.gz
.
Diffstat (limited to 'shell')
-rw-r--r--shell/main.mu7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/main.mu b/shell/main.mu
index 5f9f919e..831c7f09 100644
--- a/shell/main.mu
+++ b/shell/main.mu
@@ -43,6 +43,13 @@ fn load-sandbox data-disk: (addr disk), _self: (addr sandbox) {
   var initial-root/ecx: (addr handle cell) <- address initial-root-storage
   read-cell data, initial-root, 0/no-trace
   clear-gap-buffer data
+  #
+  {
+    var initial-root-addr/eax: (addr cell) <- lookup *initial-root
+    compare initial-root-addr, 0
+    break-if-!=
+    return
+  }
   # print: cell -> stream
   print-cell initial-root, s, 0/no-trace
   # stream -> gap-buffer