about summary refs log tree commit diff stats
path: root/AUTHORS
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2015-06-21 10:46:43 +0200
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2015-06-21 10:47:54 +0200
commiteed176768789208537b6bb8e97f08ef3d4b148fe (patch)
tree970704f15aeb0d81f205fc224353f1a82b6fe0c3 /AUTHORS
parentdb7c728b71bce950b4683dca16d85fbc55bd2c42 (diff)
downloadranger-eed176768789208537b6bb8e97f08ef3d4b148fe.tar.gz
added examples/plugin_ipc.py
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions
e6635feb7cdb'>^
f7746778 ^
0518944e ^


7bf8adb8 ^
83c25a03 ^

0518944e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

                                                                        

                        
                                                   
         
                             
     
                                                           


                                                                   
                                                                                  

                                                                                                                            
 
# Draw a single line of ASCII text using the built-in font (GNU unifont)
# Also demonstrates bounds-checking _before_ drawing.
#
# To build a disk image:
#   ./translate ex5.mu             # emits code.img
# To run:
#   qemu-system-i386 code.img
# Or:
#   bochs -f bochsrc               # bochsrc loads code.img
#
# Expected output: text in green near the top-left corner of screen

fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) {
  var dummy/eax: int <- draw-text-rightward screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, 0xa/fg, 0/bg
  dummy <- draw-text-rightward screen, "you shouldn't see this", 0x10/x, 0xa0/xmax, 0x30/y, 3/fg, 0/bg  # xmax is too narrow
}