From 02b0317c3ba9a6ba2ca07e0673b456e4ec14d81b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 22 Mar 2021 22:21:51 -0700 Subject: shell: gracefully handle missing data disk --- shell/README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'shell') 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` -- cgit 1.4.1-2-gfad0 ware → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/translate_subx_debug
blob: 021de0a435f83de61eb4f26447ea6256ab0752fe (plain) (tree)
1
2
3
4
5
6
7
8
9