diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-07-08 16:57:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-07-08 16:57:07 -0700 |
commit | 76f1fdc83e7122a6ccd777c15bbebf315aed0576 (patch) | |
tree | 231de3a5e4a6b5791075fb99ebd5accd04b4dc70 | |
parent | 0539b961a09d0dd7d37e27a88477bf55ae1587d9 (diff) | |
download | mu-76f1fdc83e7122a6ccd777c15bbebf315aed0576.tar.gz |
.
-rw-r--r-- | img.mu | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/img.mu b/img.mu index deca2a29..318c06e3 100644 --- a/img.mu +++ b/img.mu @@ -1,4 +1,16 @@ # load an image from disk and display it on screen +# +# To build: +# $ ./translate shell/*.mu # generates code.img +# Load a pbm, pgm or ppm image (no more than 255 levels) +# $ dd if=/dev/zero of=data.img count=20160 +# $ cat x.pbm |dd of=data.img conv=notrunc +# or +# $ cat t.pgm |dd of=data.img conv=notrunc +# or +# $ cat snail.ppm |dd of=data.img conv=notrunc +# To run: +# $ qemu-system-i386 -hda code.img -hdb data.img type image { type: int # supported types: |