summary refs log tree commit diff stats
path: root/.gitignore
Commit message (Expand)AuthorAgeFilesLines
* added .gitignorehut2010-01-171-0/+4
Kartik Agaram <vc@akkartik.com> 2018-11-30 16:45:15 -0800 4808 - clean up comments in all subx files' href='/akkartik/mu/commit/subx/examples/ex1.subx?h=hlt&id=9d27e966b5e9bf1bd3da48f49d7e133d112a2bbe'>9d27e966 ^
b8cfbdc8 ^
863a42d3 ^
2b51cba6 ^
76590e79 ^

013d9526 ^


863a42d3 ^
83c67014 ^
e5cbbea4 ^
9d27e966 ^
d6535f33 ^
d6535f33 ^
de21899c ^
863a42d3 ^
ee9a9237 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
                                                                                       
                 
 
                                   

                                                          


                  
 
                  
 
                   
                                     
                            
                     
 
                            
# First program: same as https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
# Just return 42.
#
# To run (from the subx directory):
#   $ ./subx translate examples/ex1.2.subx -o examples/ex1
#   $ ./subx run examples/ex1
# Expected result:
#   $ echo $?
#   42

== code 0x09000000

# syscall(exit, 42)
bb/copy-to-EBX  2a/imm32  # 42 in hex
b8/copy-to-EAX  1/imm32/exit
cd/syscall  0x80/imm8

# . . vim:nowrap:textwidth=0