about summary refs log tree commit diff stats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions
9e87b189'>^
f7746778 ^
7f8770ae ^
f7746778 ^
7f8770ae ^


7bf8adb8 ^
83c25a03 ^
7f8770ae ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14


                                                        
                                                   
         
                             
     
                                                           


                                                                         
                                                                                  
                                                            
 
# Draw a character using the built-in font (GNU unifont)
#
# To build a disk image:
#   ./translate ex4.mu             # emits code.img
# To run:
#   qemu-system-i386 code.img
# Or:
#   bochs -f bochsrc               # bochsrc loads code.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
}