1 # Draw an ASCII string using the built-in font (GNU unifont) 2 # 3 # To build a disk image: 4 # ./translate_mu_baremetal baremetal/ex5.mu # emits disk.img 5 # To run: 6 # qemu-system-i386 disk.img 7 # Or: 8 # bochs -f baremetal/boot.bochsrc # boot.bochsrc loads disk.img 9 # 10 # Expected output: text in green near the top-left corner of screen 11 12 fn main { 13 draw-text-rightward 0, "hello from baremetal Mu!", 0x10, 0x10, 0xa 14 }