about summary refs log blame commit diff stats
path: root/ex4.mu
blob: 8f0cbd7a392d75e8437829cf6f8c4bc315c23615 (plain) (tree)
1
2
3
4
5
6
7
8


                                                        
                                                   


                             
                                                           



                                                                         
                                                             
 
# Draw a character using the built-in font (GNU unifont)
#
# To build a disk image:
#   ./translate ex4.mu             # emits disk.img
# To run:
#   qemu-system-i386 disk.img
# Or:
#   bochs -f bochsrc               # bochsrc loads disk.img
#
# Expected output: letter 'A' in green near the top-left corner of screen

fn main {
  draw-codepoint 0/screen, 0x41/A, 2/row, 1/col, 0xa/fg, 0/bg
}