From 76590e79bb45d192ba0ed9cc82952321aec0d682 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 30 Dec 2018 00:36:07 -0800 Subject: 4893 --- subx/052kernel_string_equal.subx | 4 ++-- subx/apps/factorial.subx | 2 +- subx/examples/ex1.subx | 4 ++-- subx/examples/ex10.subx | 4 ++-- subx/examples/ex11.subx | 4 ++-- subx/examples/ex12.subx | 4 ++-- subx/examples/ex2.subx | 4 ++-- subx/examples/ex3.subx | 4 ++-- subx/examples/ex4.subx | 4 ++-- subx/examples/ex5.subx | 4 ++-- subx/examples/ex6.subx | 4 ++-- subx/examples/ex7.subx | 4 ++-- subx/examples/ex8.subx | 4 ++-- subx/examples/ex9.subx | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-) diff --git a/subx/052kernel_string_equal.subx b/subx/052kernel_string_equal.subx index f663f504..67e9695e 100644 --- a/subx/052kernel_string_equal.subx +++ b/subx/052kernel_string_equal.subx @@ -6,8 +6,8 @@ # a null-terminated 'kernel string' with a length-prefixed 'SubX string'. # # To run (from the subx directory): -# $ subx translate 05[0-2]*.subx -o /tmp/tmp52 -# $ subx run /tmp/tmp52 # runs a series of tests +# $ ./subx translate 05[0-2]*.subx -o /tmp/tmp52 +# $ ./subx run /tmp/tmp52 # runs a series of tests # ...... # all tests pass # # (We can't yet run the tests when given a "test" commandline argument, diff --git a/subx/apps/factorial.subx b/subx/apps/factorial.subx index 068a63cb..1ea2a063 100644 --- a/subx/apps/factorial.subx +++ b/subx/apps/factorial.subx @@ -8,7 +8,7 @@ # 120 # # You can also run the automated test suite: -# $ subx run apps/factorial test +# $ ./subx run apps/factorial test # Expected output: # ........ # Every '.' indicates a passing test. Failing tests get a 'F'. diff --git a/subx/examples/ex1.subx b/subx/examples/ex1.subx index 89d331ab..2c3f64eb 100644 --- a/subx/examples/ex1.subx +++ b/subx/examples/ex1.subx @@ -2,8 +2,8 @@ # Just return 42. # # To run (from the subx directory): -# $ subx translate examples/ex1.2.subx -o examples/ex1 -# $ subx run examples/ex1 +# $ ./subx translate examples/ex1.2.subx -o examples/ex1 +# $ ./subx run examples/ex1 # Expected result: # $ echo $? # 42 diff --git a/subx/examples/ex10.subx b/subx/examples/ex10.subx index 0b937fa5..3ae1eae7 100644 --- a/subx/examples/ex10.subx +++ b/subx/examples/ex10.subx @@ -1,8 +1,8 @@ # String comparison: return 1 iff the two args passed in at the commandline are equal. # # To run (from the subx directory): -# $ subx translate examples/ex10.subx -o examples/ex10 -# $ subx run examples/ex10 abc abd +# $ ./subx translate examples/ex10.subx -o examples/ex10 +# $ ./subx run examples/ex10 abc abd # Expected result: # $ echo $? # 0 # false diff --git a/subx/examples/ex11.subx b/subx/examples/ex11.subx index 84ef43d9..7fb83eb6 100644 --- a/subx/examples/ex11.subx +++ b/subx/examples/ex11.subx @@ -6,8 +6,8 @@ # a null-terminated 'kernel string' with a length-prefixed 'SubX string'. # # To run (from the subx directory): -# $ subx translate examples/ex11.subx -o examples/ex11 -# $ subx run examples/ex11 # runs a series of tests +# $ ./subx translate examples/ex11.subx -o examples/ex11 +# $ ./subx run examples/ex11 # runs a series of tests # ...... # all tests pass # # (We can't yet run the tests when given a "test" commandline argument, diff --git a/subx/examples/ex12.subx b/subx/examples/ex12.subx index 872cc53e..9cf5e14a 100644 --- a/subx/examples/ex12.subx +++ b/subx/examples/ex12.subx @@ -2,8 +2,8 @@ # Create a new segment using mmap, save the address, write to it. # # To run (from the subx directory): -# $ subx translate examples/ex12.subx -o examples/ex12 -# $ subx run examples/ex12 +# $ ./subx translate examples/ex12.subx -o examples/ex12 +# $ ./subx run examples/ex12 # You shouldn't get a segmentation fault. == code diff --git a/subx/examples/ex2.subx b/subx/examples/ex2.subx index 34dcdf75..4288b419 100644 --- a/subx/examples/ex2.subx +++ b/subx/examples/ex2.subx @@ -1,8 +1,8 @@ # Add 1 and 1, and return the result in the exit code. # # To run (from the subx directory): -# $ subx translate examples/ex2.subx -o examples/ex2 -# $ subx run examples/ex2 +# $ ./subx translate examples/ex2.subx -o examples/ex2 +# $ ./subx run examples/ex2 # Expected result: # $ echo $? # 2 diff --git a/subx/examples/ex3.subx b/subx/examples/ex3.subx index e12f87a2..ceeaef00 100644 --- a/subx/examples/ex3.subx +++ b/subx/examples/ex3.subx @@ -1,8 +1,8 @@ # Add the first 10 numbers, and return the result in the exit code. # # To run (from the subx directory): -# $ subx translate examples/ex3.subx -o examples/ex3 -# $ subx run examples/ex3 +# $ ./subx translate examples/ex3.subx -o examples/ex3 +# $ ./subx run examples/ex3 # Expected result: # $ echo $? # 55 diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx index 964d4a60..3060ae3f 100644 --- a/subx/examples/ex4.subx +++ b/subx/examples/ex4.subx @@ -1,8 +1,8 @@ # Read a character from stdin, save it to a global, write it to stdout. # # To run (from the subx directory): -# $ subx translate examples/ex4.subx -o examples/ex4 -# $ subx run examples/ex4 +# $ ./subx translate examples/ex4.subx -o examples/ex4 +# $ ./subx run examples/ex4 == code diff --git a/subx/examples/ex5.subx b/subx/examples/ex5.subx index 5028568c..2e421fdf 100644 --- a/subx/examples/ex5.subx +++ b/subx/examples/ex5.subx @@ -1,8 +1,8 @@ # Read a character from stdin, save it to a local on the stack, write it to stdout. # # To run (from the subx directory): -# $ subx translate examples/ex5.subx -o examples/ex5 -# $ subx run examples/ex5 +# $ ./subx translate examples/ex5.subx -o examples/ex5 +# $ ./subx run examples/ex5 == code # instruction effective address register displacement immediate diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx index c0bce83c..dece5b13 100644 --- a/subx/examples/ex6.subx +++ b/subx/examples/ex6.subx @@ -1,8 +1,8 @@ # Print out a (global variable) string to stdout. # # To run (from the subx directory): -# $ subx translate examples/ex6.subx -o examples/ex6 -# $ subx run examples/ex6 +# $ ./subx translate examples/ex6.subx -o examples/ex6 +# $ ./subx run examples/ex6 # Hello, world! == code diff --git a/subx/examples/ex7.subx b/subx/examples/ex7.subx index 4355910a..47b51734 100644 --- a/subx/examples/ex7.subx +++ b/subx/examples/ex7.subx @@ -5,8 +5,8 @@ # the character read. # # To run (from the subx directory): -# $ subx translate examples/ex7.subx -o examples/ex7 -# $ subx run examples/ex7 +# $ ./subx translate examples/ex7.subx -o examples/ex7 +# $ ./subx run examples/ex7 # Expected result: # $ echo $? # 97 diff --git a/subx/examples/ex8.subx b/subx/examples/ex8.subx index d9234123..19a1af87 100644 --- a/subx/examples/ex8.subx +++ b/subx/examples/ex8.subx @@ -1,8 +1,8 @@ # Example reading commandline arguments: compute length of first arg. # # To run (from the subx directory): -# $ subx translate examples/ex8.subx -o examples/ex8 -# $ subx run examples/ex8 abc de fghi +# $ ./subx translate examples/ex8.subx -o examples/ex8 +# $ ./subx run examples/ex8 abc de fghi # Expected result: # $ echo $? # 3 # length of 'abc' diff --git a/subx/examples/ex9.subx b/subx/examples/ex9.subx index b3a125ea..66fbf2ff 100644 --- a/subx/examples/ex9.subx +++ b/subx/examples/ex9.subx @@ -4,8 +4,8 @@ # letter of second arg. # # To run (from the subx directory): -# $ subx translate examples/ex9.subx -o examples/ex9 -# $ subx run examples/ex9 z x +# $ ./subx translate examples/ex9.subx -o examples/ex9 +# $ ./subx run examples/ex9 z x # Expected result: # $ echo $? # 2 -- cgit 1.4.1-2-gfad0