diff options
Diffstat (limited to 'baremetal/ex5.mu')
-rw-r--r-- | baremetal/ex5.mu | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/baremetal/ex5.mu b/baremetal/ex5.mu new file mode 100644 index 00000000..30e5b69c --- /dev/null +++ b/baremetal/ex5.mu @@ -0,0 +1,14 @@ +# Draw an ASCII string using the built-in font (GNU unifont) +# +# To build a disk image: +# ./translate_mu_baremetal baremetal/ex5.mu # emits disk.img +# To run: +# qemu-system-i386 disk.img +# Or: +# bochs -f baremetal/boot.bochsrc # boot.bochsrc loads disk.img +# +# Expected output: text in green near the top-left corner of screen + +fn main { + draw-text-rightward 0, "hello from baremetal Mu!", 0x10, 0x10, 0xa +} |