diff options
Diffstat (limited to 'subx/examples')
-rw-r--r-- | subx/examples/ex1.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex10.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex11.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex12.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex2.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex3.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex4.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex5.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex6.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex7.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex8.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex9.subx | 4 |
12 files changed, 24 insertions, 24 deletions
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 |