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/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 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) (limited to 'html/subx/examples') 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