about summary refs log tree commit diff stats
path: root/arc/.traces/convert-braces-label
Commit message (Collapse)AuthorAgeFilesLines
* 1276 - make C++ version the defaultKartik K. Agaram2015-05-051-0/+5
I've tried to update the Readme, but there are at least a couple of issues.
'>0daf12c5 ^
cb13d947 ^
0daf12c5 ^






74f1512f ^
0daf12c5 ^
0daf12c5 ^

74f1512f ^
0daf12c5 ^
1e02d840 ^

6e36ce06 ^
0daf12c5 ^






1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31


                                                               
                                                                  


                             
                                                                               






                          
                                      
               

                            
                                        
                 

                                  
                                      






                    
# Test out the video mode by filling in the screen with pixels.
#
# To build a disk image:
#   ./translate_mu_baremetal baremetal/ex2.mu     # emits disk.img
# To run:
#   qemu-system-i386 disk.img
# Or:
#   bochs -f baremetal/boot.bochsrc               # boot.bochsrc loads disk.img
#
# Expected output:
#   html/baremetal.png

fn main {
  var y/eax: int <- copy 0
  {
    compare y, 0x300/screen-height=768
    break-if->=
    var x/edx: int <- copy 0
    {
      compare x, 0x400/screen-width=1024
      break-if->=
      var color/ecx: int <- copy x
      color <- and 0xff
      pixel-on-real-screen x, y, color
      x <- increment
      loop
    }
    y <- increment
    loop
  }
}