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/ex1.subx.html | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'html/examples/ex1.subx.html') diff --git a/html/examples/ex1.subx.html b/html/examples/ex1.subx.html index 8ef5ecbd..c4105769 100644 --- a/html/examples/ex1.subx.html +++ b/html/examples/ex1.subx.html @@ -57,23 +57,20 @@ if ('onhashchange' in window) { 2 # Just return 42. 3 # 4 # To run: - 5 # $ ./subx translate examples/ex1.2.subx -o examples/ex1 + 5 # $ ./subx translate init.linux examples/ex1.2.subx -o examples/ex1 6 # $ ./subx run examples/ex1 7 # Expected result: 8 # $ echo $? 9 # 42 10 -11 == code 0x09000000 +11 == code 12 13 Entry: -14 # syscall(exit, 42) +14 # exit(42) 15 bb/copy-to-ebx 2a/imm32 # 42 in hex -16 b8/copy-to-eax 1/imm32/exit -17 cd/syscall 0x80/imm8 -18 -19 == data 0x0a000000 -20 -21 # . . vim:nowrap:textwidth=0 +16 e8/call syscall_exit/disp32 +17 +18 # . . vim:nowrap:textwidth=0 -- cgit 1.4.1-2-gfad0