diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-21 23:10:55 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-21 23:10:55 -0700 |
commit | e6b42204ef1b44464ffb71340de6d445b8240c27 (patch) | |
tree | a295a53e5ee16a990e556025be639b2b60240ab5 /shell/README.md | |
parent | 2718cb453cdb222a4d03593c975f183bd0ecf990 (diff) | |
download | mu-e6b42204ef1b44464ffb71340de6d445b8240c27.tar.gz |
shell: read initial expression from secondary disk
See shell/README.md for (extremely klunky) instructions.
Diffstat (limited to 'shell/README.md')
-rw-r--r-- | shell/README.md | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/shell/README.md b/shell/README.md index 7a6600c2..463f8e16 100644 --- a/shell/README.md +++ b/shell/README.md @@ -1,9 +1,24 @@ ### A prototype shell for the Mu computer -Currently runs a tiny subset of Lisp. To build and run it from the top-level: +Currently runs a tiny subset of Lisp. Steps to run it from the top-level: +1. Build it: ```sh $ ./translate shell/*.mu # generates disk.img +``` + +2. Create a data disk: +```sh +$ dd if=/dev/zero of=data.img count=20160 +``` + +3. Optionally load an s-expression into the disk: +```sh +$ echo '(+ 1 1)' |dd of=data.img conv=notrunc +``` + +4. Run it: +```sh $ qemu-system-i386 disk.img ``` |