From 76f1fdc83e7122a6ccd777c15bbebf315aed0576 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 8 Jul 2021 16:57:07 -0700 Subject: . --- img.mu | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: -- cgit 1.4.1-2-gfad0