blob: caed4e5c422de10448958b71dff2b5718f925af6 (
plain) (
tree)
|
|
# 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 screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) {
draw-code-point screen, 0x41/A, 2/row, 1/col, 0xa/fg, 0/bg
}
|