From ebd355215059d07c5830a5aeb165376b7cb757e1 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 30 Dec 2018 01:42:06 -0800 Subject: 4895 --- html/subx/052kernel_string_equal.subx.html | 6 +++--- html/subx/054string_equal.subx.html | 2 +- html/subx/055trace.subx.html | 4 ++-- html/subx/056write.subx.html | 2 +- html/subx/057stop.subx.html | 2 +- html/subx/058read.subx.html | 2 +- html/subx/059read-byte.subx.html | 2 +- html/subx/060write-stream.subx.html | 2 +- html/subx/061error.subx.html | 4 ++-- html/subx/062write-byte.subx.html | 2 +- html/subx/063print-byte.subx.html | 2 +- html/subx/064write-buffered.subx.html | 2 +- html/subx/065error-byte.subx.html | 4 ++-- html/subx/066allocate.subx.html | 2 +- html/subx/apps/hex.subx.html | 10 +++++----- html/subx/examples/ex1.subx.html | 4 ++-- html/subx/examples/ex10.subx.html | 4 ++-- html/subx/examples/ex11.subx.html | 4 ++-- html/subx/examples/ex12.subx.html | 4 ++-- html/subx/examples/ex2.subx.html | 4 ++-- html/subx/examples/ex3.subx.html | 4 ++-- html/subx/examples/ex4.subx.html | 4 ++-- html/subx/examples/ex5.subx.html | 4 ++-- html/subx/examples/ex6.subx.html | 4 ++-- html/subx/examples/ex7.subx.html | 4 ++-- html/subx/examples/ex8.subx.html | 4 ++-- html/subx/examples/ex9.subx.html | 4 ++-- 27 files changed, 48 insertions(+), 48 deletions(-) diff --git a/html/subx/052kernel_string_equal.subx.html b/html/subx/052kernel_string_equal.subx.html index 30f6ea41..e620ab08 100644 --- a/html/subx/052kernel_string_equal.subx.html +++ b/html/subx/052kernel_string_equal.subx.html @@ -67,8 +67,8 @@ if ('onhashchange' in window) { 6 # a null-terminated 'kernel string' with a length-prefixed 'SubX string'. 7 # 8 # To run (from the subx directory): - 9 # $ subx translate 05[0-2]*.subx -o /tmp/tmp52 - 10 # $ subx run /tmp/tmp52 # runs a series of tests + 9 # $ ./subx translate 05[0-2]*.subx -o /tmp/tmp52 + 10 # $ ./subx run /tmp/tmp52 # runs a series of tests 11 # ...... # all tests pass 12 # 13 # (We can't yet run the tests when given a "test" commandline argument, @@ -83,7 +83,7 @@ if ('onhashchange' in window) { 22 # main: 23 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 24 # syscall(exit, Num-test-failures) - 25 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 25 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 26 b8/copy-to-EAX 1/imm32/exit 27 cd/syscall 0x80/imm8 28 diff --git a/html/subx/054string_equal.subx.html b/html/subx/054string_equal.subx.html index f28c7e95..b6339ba6 100644 --- a/html/subx/054string_equal.subx.html +++ b/html/subx/054string_equal.subx.html @@ -70,7 +70,7 @@ if ('onhashchange' in window) { 9 # run-tests() 10 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 11 # syscall(exit, Num-test-failures) - 12 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 12 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 13 b8/copy-to-EAX 1/imm32/exit 14 cd/syscall 0x80/imm8 15 diff --git a/html/subx/055trace.subx.html b/html/subx/055trace.subx.html index 277f6065..7e71858c 100644 --- a/html/subx/055trace.subx.html +++ b/html/subx/055trace.subx.html @@ -108,7 +108,7 @@ if ('onhashchange' in window) { 46 # run-tests() 47 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 48 # syscall(exit, Num-test-failures) - 49 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 49 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 50 b8/copy-to-EAX 1/imm32/exit 51 cd/syscall 0x80/imm8 52 @@ -171,7 +171,7 @@ if ('onhashchange' in window) { 109 8b/copy 0/mod/indirect 7/rm32/EDI . . . 1/r32/ECX . . # copy *EDI to ECX 110 # EAX = _append-3(&t->data[t->write], &t->data[t->length], line) 111 # . . push line -112 68/push Newline/imm32 +112 68/push Newline/imm32 113 # . . push &t->data[t->length] 114 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 2/index/EDX . 3/r32/EBX 0xc/disp8 . # copy EDI+EDX+12 to EBX 115 53/push-EBX diff --git a/html/subx/056write.subx.html b/html/subx/056write.subx.html index e71e4565..01337f40 100644 --- a/html/subx/056write.subx.html +++ b/html/subx/056write.subx.html @@ -84,7 +84,7 @@ if ('onhashchange' in window) { 23 # main: 24 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 25 # syscall(exit, Num-test-failures) - 26 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 26 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 27 b8/copy-to-EAX 1/imm32/exit 28 cd/syscall 0x80/imm8 29 diff --git a/html/subx/057stop.subx.html b/html/subx/057stop.subx.html index c6fd5f80..d705f3be 100644 --- a/html/subx/057stop.subx.html +++ b/html/subx/057stop.subx.html @@ -103,7 +103,7 @@ if ('onhashchange' in window) { 41 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 42 #? e8/call test-stop-skips-returns-on-exit/disp32 43 # syscall(exit, Num-test-failures) - 44 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 44 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 45 b8/copy-to-EAX 1/imm32/exit 46 cd/syscall 0x80/imm8 47 diff --git a/html/subx/058read.subx.html b/html/subx/058read.subx.html index 9fc157d4..2c54adce 100644 --- a/html/subx/058read.subx.html +++ b/html/subx/058read.subx.html @@ -110,7 +110,7 @@ if ('onhashchange' in window) { 48 # main: 49 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 50 # syscall(exit, Num-test-failures) - 51 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 51 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 52 b8/copy-to-EAX 1/imm32/exit 53 cd/syscall 0x80/imm8 54 diff --git a/html/subx/059read-byte.subx.html b/html/subx/059read-byte.subx.html index b885524e..5103e9e6 100644 --- a/html/subx/059read-byte.subx.html +++ b/html/subx/059read-byte.subx.html @@ -99,7 +99,7 @@ if ('onhashchange' in window) { 36 #? e8/call test-read-byte-multiple/disp32 37 #? e8/call test-read-byte-refills-buffer/disp32 38 # syscall(exit, Num-test-failures) - 39 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 39 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 40 b8/copy-to-EAX 1/imm32/exit 41 cd/syscall 0x80/imm8 42 diff --git a/html/subx/060write-stream.subx.html b/html/subx/060write-stream.subx.html index ecc2f17d..66a8c601 100644 --- a/html/subx/060write-stream.subx.html +++ b/html/subx/060write-stream.subx.html @@ -77,7 +77,7 @@ if ('onhashchange' in window) { 15 #? e8/call test-write-stream-appends/disp32 16 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 17 # syscall(exit, Num-test-failures) - 18 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 18 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 19 b8/copy-to-EAX 1/imm32/exit 20 cd/syscall 0x80/imm8 21 diff --git a/html/subx/061error.subx.html b/html/subx/061error.subx.html index a3f9c0da..e22783a5 100644 --- a/html/subx/061error.subx.html +++ b/html/subx/061error.subx.html @@ -67,7 +67,7 @@ if ('onhashchange' in window) { 8 # main: 9 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 10 # syscall(exit, Num-test-failures) -11 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX +11 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 12 b8/copy-to-EAX 1/imm32/exit 13 cd/syscall 0x80/imm8 14 @@ -94,7 +94,7 @@ if ('onhashchange' in window) { 35 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 36 # write(out, Newline) 37 # . . push args -38 68/push Newline/imm32 +38 68/push Newline/imm32 39 ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP . . . . 0xc/disp8 . # push *(EBP+12) 40 # . . call 41 e8/call write/disp32 diff --git a/html/subx/062write-byte.subx.html b/html/subx/062write-byte.subx.html index 75c5f602..07f446ce 100644 --- a/html/subx/062write-byte.subx.html +++ b/html/subx/062write-byte.subx.html @@ -91,7 +91,7 @@ if ('onhashchange' in window) { 30 # main: 31 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 32 # syscall(exit, Num-test-failures) - 33 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 33 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 34 b8/copy-to-EAX 1/imm32/exit 35 cd/syscall 0x80/imm8 36 diff --git a/html/subx/063print-byte.subx.html b/html/subx/063print-byte.subx.html index ee22ca2f..a16ac3b6 100644 --- a/html/subx/063print-byte.subx.html +++ b/html/subx/063print-byte.subx.html @@ -69,7 +69,7 @@ if ('onhashchange' in window) { 8 # main: 9 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 10 # syscall(exit, Num-test-failures) - 11 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 11 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 12 b8/copy-to-EAX 1/imm32/exit 13 cd/syscall 0x80/imm8 14 diff --git a/html/subx/064write-buffered.subx.html b/html/subx/064write-buffered.subx.html index 9091a70a..a4a39421 100644 --- a/html/subx/064write-buffered.subx.html +++ b/html/subx/064write-buffered.subx.html @@ -72,7 +72,7 @@ if ('onhashchange' in window) { 10 #? e8/call test-write-buffered-with-intermediate-flush/disp32 11 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 12 # syscall(exit, Num-test-failures) - 13 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 13 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 14 b8/copy-to-EAX 1/imm32/exit 15 cd/syscall 0x80/imm8 16 diff --git a/html/subx/065error-byte.subx.html b/html/subx/065error-byte.subx.html index 175628d3..67cae32a 100644 --- a/html/subx/065error-byte.subx.html +++ b/html/subx/065error-byte.subx.html @@ -82,7 +82,7 @@ if ('onhashchange' in window) { 22 # automatic test 23 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 24 # . syscall(exit, Num-test-failures) - 25 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 25 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 26 b8/copy-to-EAX 1/imm32/exit 27 cd/syscall 0x80/imm8 28 @@ -125,7 +125,7 @@ if ('onhashchange' in window) { 65 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 66 # write-buffered(out, Newline) 67 # . . push args - 68 68/push Newline/imm32 + 68 68/push Newline/imm32 69 ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP . . . . 0xc/disp8 . # push *(EBP+12) 70 # . . call 71 e8/call write-buffered/disp32 diff --git a/html/subx/066allocate.subx.html b/html/subx/066allocate.subx.html index 68746e1f..94a0b52a 100644 --- a/html/subx/066allocate.subx.html +++ b/html/subx/066allocate.subx.html @@ -92,7 +92,7 @@ if ('onhashchange' in window) { 32 # main: 33 e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. 34 # syscall(exit, Num-test-failures) - 35 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 35 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 36 b8/copy-to-EAX 1/imm32/exit 37 cd/syscall 0x80/imm8 38 diff --git a/html/subx/apps/hex.subx.html b/html/subx/apps/hex.subx.html index cfa2e3cd..763f9999 100644 --- a/html/subx/apps/hex.subx.html +++ b/html/subx/apps/hex.subx.html @@ -111,7 +111,7 @@ if ('onhashchange' in window) { 48 #? e8/call test-scan-next-byte-aborts-on-invalid-byte/disp32 49 #? e8/call test-convert-next-octet/disp32 50 e8/call run-tests/disp32 - 51 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 51 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 52 eb/jump $main:end/disp8 53 $run-main: 54 # - otherwise convert stdin @@ -886,7 +886,7 @@ if ('onhashchange' in window) { 823 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 824 # . write(_test-stream, Newline) 825 # . . push args - 826 68/push Newline/imm32 + 826 68/push Newline/imm32 827 68/push _test-stream/imm32 828 # . . call 829 e8/call write/disp32 @@ -1004,7 +1004,7 @@ if ('onhashchange' in window) { 941 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 942 # . write(_test-stream, Newline) 943 # . . push args - 944 68/push Newline/imm32 + 944 68/push Newline/imm32 945 68/push _test-stream/imm32 946 # . . call 947 e8/call write/disp32 @@ -1122,7 +1122,7 @@ if ('onhashchange' in window) { 1059 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 1060 # . write(_test-stream, Newline) 1061 # . . push args -1062 68/push Newline/imm32 +1062 68/push Newline/imm32 1063 68/push _test-stream/imm32 1064 # . . call 1065 e8/call write/disp32 @@ -1713,7 +1713,7 @@ if ('onhashchange' in window) { 1650 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 1651 # . write(_test-stream, Newline) 1652 # . . push args -1653 68/push Newline/imm32 +1653 68/push Newline/imm32 1654 68/push _test-stream/imm32 1655 # . . call 1656 e8/call write/disp32 diff --git a/html/subx/examples/ex1.subx.html b/html/subx/examples/ex1.subx.html index 4a3c685b..b4bb151b 100644 --- a/html/subx/examples/ex1.subx.html +++ b/html/subx/examples/ex1.subx.html @@ -56,8 +56,8 @@ if ('onhashchange' in window) { 2 # Just return 42. 3 # 4 # To run (from the subx directory): - 5 # $ subx translate examples/ex1.2.subx -o examples/ex1 - 6 # $ subx run examples/ex1 + 5 # $ ./subx translate examples/ex1.2.subx -o examples/ex1 + 6 # $ ./subx run examples/ex1 7 # Expected result: 8 # $ echo $? 9 # 42 diff --git a/html/subx/examples/ex10.subx.html b/html/subx/examples/ex10.subx.html index 3b6ab07e..329f698d 100644 --- a/html/subx/examples/ex10.subx.html +++ b/html/subx/examples/ex10.subx.html @@ -59,8 +59,8 @@ if ('onhashchange' in window) { 1 # String comparison: return 1 iff the two args passed in at the commandline are equal. 2 # 3 # To run (from the subx directory): - 4 # $ subx translate examples/ex10.subx -o examples/ex10 - 5 # $ subx run examples/ex10 abc abd + 4 # $ ./subx translate examples/ex10.subx -o examples/ex10 + 5 # $ ./subx run examples/ex10 abc abd 6 # Expected result: 7 # $ echo $? 8 # 0 # false diff --git a/html/subx/examples/ex11.subx.html b/html/subx/examples/ex11.subx.html index 5b7807aa..30b462f4 100644 --- a/html/subx/examples/ex11.subx.html +++ b/html/subx/examples/ex11.subx.html @@ -67,8 +67,8 @@ if ('onhashchange' in window) { 6 # a null-terminated 'kernel string' with a length-prefixed 'SubX string'. 7 # 8 # To run (from the subx directory): - 9 # $ subx translate examples/ex11.subx -o examples/ex11 - 10 # $ subx run examples/ex11 # runs a series of tests + 9 # $ ./subx translate examples/ex11.subx -o examples/ex11 + 10 # $ ./subx run examples/ex11 # runs a series of tests 11 # ...... # all tests pass 12 # 13 # (We can't yet run the tests when given a "test" commandline argument, diff --git a/html/subx/examples/ex12.subx.html b/html/subx/examples/ex12.subx.html index 60eb5b06..e6c1470a 100644 --- a/html/subx/examples/ex12.subx.html +++ b/html/subx/examples/ex12.subx.html @@ -59,8 +59,8 @@ if ('onhashchange' in window) { 2 # Create a new segment using mmap, save the address, write to it. 3 # 4 # To run (from the subx directory): - 5 # $ subx translate examples/ex12.subx -o examples/ex12 - 6 # $ subx run examples/ex12 + 5 # $ ./subx translate examples/ex12.subx -o examples/ex12 + 6 # $ ./subx run examples/ex12 7 # You shouldn't get a segmentation fault. 8 9 == code diff --git a/html/subx/examples/ex2.subx.html b/html/subx/examples/ex2.subx.html index 5a4eb9dd..a7c19e82 100644 --- a/html/subx/examples/ex2.subx.html +++ b/html/subx/examples/ex2.subx.html @@ -55,8 +55,8 @@ if ('onhashchange' in window) { 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 + 4 # $ ./subx translate examples/ex2.subx -o examples/ex2 + 5 # $ ./subx run examples/ex2 6 # Expected result: 7 # $ echo $? 8 # 2 diff --git a/html/subx/examples/ex3.subx.html b/html/subx/examples/ex3.subx.html index 1d06a94d..655f9fbf 100644 --- a/html/subx/examples/ex3.subx.html +++ b/html/subx/examples/ex3.subx.html @@ -58,8 +58,8 @@ if ('onhashchange' in window) { 1 # Add the first 10 numbers, and return the result in the exit code. 2 # 3 # To run (from the subx directory): - 4 # $ subx translate examples/ex3.subx -o examples/ex3 - 5 # $ subx run examples/ex3 + 4 # $ ./subx translate examples/ex3.subx -o examples/ex3 + 5 # $ ./subx run examples/ex3 6 # Expected result: 7 # $ echo $? 8 # 55 diff --git a/html/subx/examples/ex4.subx.html b/html/subx/examples/ex4.subx.html index d4cb221e..21d9c19d 100644 --- a/html/subx/examples/ex4.subx.html +++ b/html/subx/examples/ex4.subx.html @@ -57,8 +57,8 @@ if ('onhashchange' in window) { 1 # Read a character from stdin, save it to a global, write it to stdout. 2 # 3 # To run (from the subx directory): - 4 # $ subx translate examples/ex4.subx -o examples/ex4 - 5 # $ subx run examples/ex4 + 4 # $ ./subx translate examples/ex4.subx -o examples/ex4 + 5 # $ ./subx run examples/ex4 6 7 == code 8 diff --git a/html/subx/examples/ex5.subx.html b/html/subx/examples/ex5.subx.html index 1b6a4db8..9dd1a45e 100644 --- a/html/subx/examples/ex5.subx.html +++ b/html/subx/examples/ex5.subx.html @@ -57,8 +57,8 @@ if ('onhashchange' in window) { 1 # Read a character from stdin, save it to a local on the stack, write it to stdout. 2 # 3 # To run (from the subx directory): - 4 # $ subx translate examples/ex5.subx -o examples/ex5 - 5 # $ subx run examples/ex5 + 4 # $ ./subx translate examples/ex5.subx -o examples/ex5 + 5 # $ ./subx run examples/ex5 6 7 == code 8 # instruction effective address register displacement immediate diff --git a/html/subx/examples/ex6.subx.html b/html/subx/examples/ex6.subx.html index b6a36df8..e06a0885 100644 --- a/html/subx/examples/ex6.subx.html +++ b/html/subx/examples/ex6.subx.html @@ -58,8 +58,8 @@ if ('onhashchange' in window) { 1 # Print out a (global variable) string to stdout. 2 # 3 # To run (from the subx directory): - 4 # $ subx translate examples/ex6.subx -o examples/ex6 - 5 # $ subx run examples/ex6 + 4 # $ ./subx translate examples/ex6.subx -o examples/ex6 + 5 # $ ./subx run examples/ex6 6 # Hello, world! 7 8 == code diff --git a/html/subx/examples/ex7.subx.html b/html/subx/examples/ex7.subx.html index 164701ab..942b9ab2 100644 --- a/html/subx/examples/ex7.subx.html +++ b/html/subx/examples/ex7.subx.html @@ -62,8 +62,8 @@ if ('onhashchange' in window) { 5 # the character read. 6 # 7 # To run (from the subx directory): - 8 # $ subx translate examples/ex7.subx -o examples/ex7 - 9 # $ subx run examples/ex7 + 8 # $ ./subx translate examples/ex7.subx -o examples/ex7 + 9 # $ ./subx run examples/ex7 10 # Expected result: 11 # $ echo $? 12 # 97 diff --git a/html/subx/examples/ex8.subx.html b/html/subx/examples/ex8.subx.html index 5990b476..cadea305 100644 --- a/html/subx/examples/ex8.subx.html +++ b/html/subx/examples/ex8.subx.html @@ -59,8 +59,8 @@ if ('onhashchange' in window) { 1 # Example reading commandline arguments: compute length of first arg. 2 # 3 # To run (from the subx directory): - 4 # $ subx translate examples/ex8.subx -o examples/ex8 - 5 # $ subx run examples/ex8 abc de fghi + 4 # $ ./subx translate examples/ex8.subx -o examples/ex8 + 5 # $ ./subx run examples/ex8 abc de fghi 6 # Expected result: 7 # $ echo $? 8 # 3 # length of 'abc' diff --git a/html/subx/examples/ex9.subx.html b/html/subx/examples/ex9.subx.html index 1c654479..dfe0a8ba 100644 --- a/html/subx/examples/ex9.subx.html +++ b/html/subx/examples/ex9.subx.html @@ -61,8 +61,8 @@ if ('onhashchange' in window) { 4 # letter of second arg. 5 # 6 # To run (from the subx directory): - 7 # $ subx translate examples/ex9.subx -o examples/ex9 - 8 # $ subx run examples/ex9 z x + 7 # $ ./subx translate examples/ex9.subx -o examples/ex9 + 8 # $ ./subx run examples/ex9 z x 9 # Expected result: 10 # $ echo $? 11 # 2 -- cgit 1.4.1-2-gfad0