From 3350c34a74844e21ea69077e01efff3bae64bdcd Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 23 Mar 2021 17:31:08 -0700 Subject: . --- html/apps/ex2.subx.html | 79 ------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 html/apps/ex2.subx.html (limited to 'html/apps/ex2.subx.html') diff --git a/html/apps/ex2.subx.html b/html/apps/ex2.subx.html deleted file mode 100644 index 9f872a0c..00000000 --- a/html/apps/ex2.subx.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Mu - apps/ex2.subx - - - - - - - - - - -https://github.com/akkartik/mu/blob/main/apps/ex2.subx -
- 1 # Add 3 and 4, and return the result in the exit code.
- 2 #
- 3 # To run:
- 4 #   $ ./bootstrap translate init.linux apps/ex2.subx -o apps/ex2
- 5 #   $ ./bootstrap run apps/ex2
- 6 # Expected result:
- 7 #   $ echo $?
- 8 #   2
- 9 
-10 == code
-11 
-12 Entry:
-13 # ebx = 3
-14 bb/copy-to-ebx  3/imm32
-15 # add 4 to ebx
-16 81 0/subop/add 3/mod/direct 3/rm32/ebx 4/imm32
-17 # exit(ebx)
-18 e8/call  syscall_exit/disp32
-19 
-20 # . . vim:nowrap:textwidth=0
-
- - - -- cgit 1.4.1-2-gfad0