From 6e1eeeebfb453fa7c871869c19375ce60fbd7413 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 27 Jul 2019 16:01:55 -0700 Subject: 5485 - promote SubX to top-level --- html/subx/examples/ex2.subx.html | 82 ---------------------------------------- 1 file changed, 82 deletions(-) delete mode 100644 html/subx/examples/ex2.subx.html (limited to 'html/subx/examples/ex2.subx.html') diff --git a/html/subx/examples/ex2.subx.html b/html/subx/examples/ex2.subx.html deleted file mode 100644 index 8df9abb1..00000000 --- a/html/subx/examples/ex2.subx.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - -Mu - subx/examples/ex2.subx - - - - - - - - - - -https://github.com/akkartik/mu/blob/master/subx/examples/ex2.subx -
- 1 # Add 1 and 1, and return the result in the exit code.
- 2 #
- 3 # To run (from the subx directory):
- 4 #   $ ./subx translate examples/ex2.subx -o examples/ex2
- 5 #   $ ./subx run examples/ex2
- 6 # Expected result:
- 7 #   $ echo $?
- 8 #   2
- 9 
-10 == code 0x09000000
-11 
-12 Entry:
-13 # EBX = 1
-14 bb/copy-to-EBX  1/imm32
-15 # increment EBX
-16 43/increment-EBX
-17 # syscall(exit, EBX)
-18 b8/copy-to-EAX  1/imm32/exit
-19 cd/syscall  0x80/imm8
-20 
-21 == data 0x0a000000
-22 
-23 # . . vim:nowrap:textwidth=0
-
- - - -- cgit 1.4.1-2-gfad0