diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-04-15 18:42:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-04-15 18:42:14 -0700 |
commit | 849f80ac2245ae8d3f00ad4ab5e57fc79a2effe4 (patch) | |
tree | 034cc6fafc4403b13d4c4f4446de716df8d71ba2 /shell | |
parent | fced134f8f00021c4bb02b8496a72918b322114a (diff) | |
download | mu-849f80ac2245ae8d3f00ad4ab5e57fc79a2effe4.tar.gz |
.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/main.mu | 7 |
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 |