This commit is contained in:
Kartik K. Agaram 2021-07-08 16:57:07 -07:00
parent 0539b961a0
commit 76f1fdc83e
1 changed files with 12 additions and 0 deletions

12
img.mu
View File

@ -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: