From a0d3cac4e69101669681a4d8af6dc3e8bd2c9a6a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 15 Sep 2019 00:01:26 -0700 Subject: 5659 --- html/examples/ex2.subx.html | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'html/examples/ex2.subx.html') diff --git a/html/examples/ex2.subx.html b/html/examples/ex2.subx.html index f5b79c91..c67315e9 100644 --- a/html/examples/ex2.subx.html +++ b/html/examples/ex2.subx.html @@ -56,26 +56,23 @@ if ('onhashchange' in window) { 1 # Add 1 and 1, and return the result in the exit code. 2 # 3 # To run: - 4 # $ ./subx translate examples/ex2.subx -o examples/ex2 + 4 # $ ./subx translate init.linux examples/ex2.subx -o examples/ex2 5 # $ ./subx run examples/ex2 6 # Expected result: 7 # $ echo $? 8 # 2 9 -10 == code 0x09000000 +10 == code 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 +17 # exit(ebx) +18 e8/call syscall_exit/disp32 +19 +20 # . . vim:nowrap:textwidth=0 -- cgit 1.4.1-2-gfad0