about summary refs log tree commit diff stats
path: root/101_write.subx
diff options
context:
space:
mode:
Diffstat (limited to '101_write.subx')
0 files changed, 0 insertions, 0 deletions
9-08-19 23:45:04 -0700 committer Kartik Agaram <vc@akkartik.com> 2019-08-19 23:45:04 -0700 5521' href='/akkartik/mu/commit/examples/ex1.subx?h=main&id=668700fd2c48d0380d2e2d1f32faa217ab658fb1'>668700fd ^
d1cfa5e3 ^
4c19dd39 ^
013d9526 ^


863a42d3 ^
ecfbbfb5 ^
e5cbbea4 ^
aef4efb9 ^
ecfbbfb5 ^
8bbafb13 ^
ecfbbfb5 ^
aef4efb9 ^
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:
#   $ ./bootstrap translate init.linux apps/ex1.subx -o apps/ex1
#   $ ./bootstrap run apps/ex1
# Expected result:
#   $ echo $?
#   42

== code

Entry:
# exit(42)
bb/copy-to-ebx  0x2a/imm32  # 42 in hex
e8/call  syscall_exit/disp32

# . . vim:nowrap:textwidth=0