44d26b77 ^
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# The simplest possible bare-metal program. # # To build a disk image: # ./translate apps/ex1.mu # emits code.img # To run: # qemu-system-i386 code.img # Or: # bochs -f bochsrc # bochsrc loads code.img # # Expected output: blank screen with no errors fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { loop }