DreamOS
______________________________________________________________________________
| ____ |
| | \ |
| | \ __ ___ _____ __ ____ ____ _____ ______ |
| | | |/^\ / \ \ |/ \ / \ / \ / |
| | | | / \ ______| | | | | | \_____ |
| | | | |========= / | | | | | | \ |
| | / | \ | | | | | | | | |
| _|__/ _|_ \____/ \_____/| _|_ _|_ _|_ o \_____/ _____/ |
| |
| /^\ /^\ *=====================* |
| \ / ___________________________ \ / | || + |+ + || | |
| | |/ \| | | || + +| + || | |
| | | | | / ||------|------|| \ |
| | | _______________ | | |/\|| + +| + ||/\| |
| | |___________| z z z z |_| | __|______|______|__ |
| | |\ | z z z | \ | \_______________/ |
| | | \ | z z z | \ |
| | | \ |_______________| \ Written by David Stith |
| | | \ /_______________\ \ |
| | | \ |_________________| \ Ascii-art by Matthew Stith |
|_|_|__________\____________________________\________________________________|
Download the latest version of DreamOS: dreamos20120208.tar.gz
On Linux, use the following to write to a floppy disk:
gunzip dreamos20120208.tar.gz
tar -xvf dreamos20120208.tar
cd dreamos
dd if=dreamos.floppy of=/dev/fd0
Once you boot the floppy, you will find yourself in the read-eval-print loop of the Dream Scheme Interpreter.
Files are stored on the floppy disk using a rudimentary flat file system.
(sys-file-list) will return a list of their names.
The files "bootstrap.scm" and "init.scm" are loaded automatically when the Dream Scheme Interpreter starts.
There is a primitive clone of the 'vi' editor, coded in scheme in the file "edit.scm" (loaded automatically by "init.scm").
Type (edit "README") for example, and use the keys 'h', 'j', 'k', and 'l' for navigation, ':q' to quit.
All of the source scheme files are included.
(load "make.scm") will recompile.
(sys-write-floppy) will save changes to floppy (and only then).
(sys-boot) will reboot.
Have fun! :-)
Hard-disk installation is possible. Do not call (sys-save) unless your hard-drive data is expendable!
To install on your hard-drive (but only do this if you don't mind overwriting your hard-drive entirely!):
use (sys-copy) to read everything from the floppy into RAM,
use (edit "make.scm") then change the value of BOOT_FLOPPY to #f,
use (load "make.scm") to recompile,
use (sys-save 0) to save the image to the hard drive, then eject the floppy and use (sys-boot) to reboot.
This version works on my Dell Inspiron 7500, 5000 and Dell Latitude CPi laptops, but there is no telling whether it may work on anything else. Good luck!
My son Matthew has used DreamOS to code a number of games.
Here is the latest copy of his programs: matthew.img (bootable DreamOS using SVGA)
Not all of them are yet in working order, but definitely try (load "robot-war.scm") and (load "blockade.scm").
home