1 # Draw a character using the built-in font (GNU unifont) 2 # 3 # To build a disk image: 4 # ./translate ex4.mu # emits disk.img 5 # To run: 6 # qemu-system-i386 disk.img 7 # Or: 8 # bochs -f bochsrc # bochsrc loads disk.img 9 # 10 # Expected output: letter 'A' in green near the top-left corner of screen 11 12 fn main { 13 draw-codepoint 0/screen, 0x41/A, 2/row, 1/col, 0xa/fg, 0/bg 14 }