diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-22 22:21:51 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-22 22:21:51 -0700 |
commit | 02b0317c3ba9a6ba2ca07e0673b456e4ec14d81b (patch) | |
tree | 85af7e3e78691dfccb748d2dc8c97b0c2d137614 /shell/README.md | |
parent | e6b42204ef1b44464ffb71340de6d445b8240c27 (diff) | |
download | mu-02b0317c3ba9a6ba2ca07e0673b456e4ec14d81b.tar.gz |
shell: gracefully handle missing data disk
Diffstat (limited to 'shell/README.md')
-rw-r--r-- | shell/README.md | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/shell/README.md b/shell/README.md index 463f8e16..fce3fbd1 100644 --- a/shell/README.md +++ b/shell/README.md @@ -7,19 +7,24 @@ Currently runs a tiny subset of Lisp. Steps to run it from the top-level: $ ./translate shell/*.mu # generates disk.img ``` -2. Create a data disk: +2. Run it: +```sh +$ qemu-system-i386 disk.img +``` + +To save typing in a large s-expression, create a secondary disk for data: ```sh $ dd if=/dev/zero of=data.img count=20160 ``` -3. Optionally load an s-expression into the disk: +Load an s-expression into it: ```sh $ echo '(+ 1 1)' |dd of=data.img conv=notrunc ``` -4. Run it: +4. Now run with both code and data disks: ```sh -$ qemu-system-i386 disk.img +$ qemu-system-i386 -hda disk.img -hdb data.img ``` You can type in expressions, hit `ctrl-s` to see their results, and hit `Tab` |