diff options
-rw-r--r-- | subx/examples/ex1.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex10.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex11.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex12.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex2.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex3.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex4.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex5.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex6.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex7.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex8.subx | 6 | ||||
-rw-r--r-- | subx/examples/ex9.subx | 6 |
12 files changed, 36 insertions, 36 deletions
diff --git a/subx/examples/ex1.subx b/subx/examples/ex1.subx index ae909777..ddcdc4a0 100644 --- a/subx/examples/ex1.subx +++ b/subx/examples/ex1.subx @@ -1,9 +1,9 @@ ## first program: same as https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html # Just return 42. # -# To run: -# $ subx translate ex1.2.subx -o ex1 -# $ subx run ex1 +# To run (from the subx directory): +# $ 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 64a92f2c..d5e9b628 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: -# $ subx translate ex10.subx -o ex10 -# $ subx run ex10 abc abd +# To run (from the subx directory): +# $ 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 0159be69..3f0805af 100644 --- a/subx/examples/ex11.subx +++ b/subx/examples/ex11.subx @@ -5,9 +5,9 @@ # This example shows a helper that can compare a commandline argument with the # (length-prefixed) literal string "target". # -# To run: -# $ subx translate ex11.subx -o ex11 -# $ subx run ex11 # runs a series of tests +# To run (from the subx directory): +# $ 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 86250d4d..43655565 100644 --- a/subx/examples/ex12.subx +++ b/subx/examples/ex12.subx @@ -1,9 +1,9 @@ ## example showing mmap syscall # Create a new segment using mmap, save the address, write to it. # -# To run: -# $ subx translate ex12.subx -o ex12 -# $ subx run ex12 +# To run (from the subx directory): +# $ 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 62294b83..1be295ff 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: -# $ subx translate ex2.subx -o ex2 -# $ subx run ex2 +# To run (from the subx directory): +# $ 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 50edd923..a6147497 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: -# $ subx translate ex3.subx -o ex3 -# $ subx run ex3 +# To run (from the subx directory): +# $ 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 89926a62..9864b49f 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: -# $ subx translate ex4.subx -o ex4 -# $ subx run ex4 +# To run (from the subx directory): +# $ subx translate examples/ex4.subx -o examples/ex4 +# $ subx run examples/ex4 == code # instruction effective address operand displacement immediate diff --git a/subx/examples/ex5.subx b/subx/examples/ex5.subx index e00289a2..c12f5552 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: -# $ subx translate ex5.subx -o ex5 -# $ subx run ex5 +# To run (from the subx directory): +# $ subx translate examples/ex5.subx -o examples/ex5 +# $ subx run examples/ex5 == code # instruction effective address operand displacement immediate diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx index f9adcc5a..f0d10cd8 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: -# $ subx translate ex6.subx -o ex6 -# $ subx run ex6 +# To run (from the subx directory): +# $ 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 b6dc639a..d0e5d415 100644 --- a/subx/examples/ex7.subx +++ b/subx/examples/ex7.subx @@ -3,9 +3,9 @@ # it for reading, read a character from it, close it, delete it, and return # the character read. # -# To run: -# $ subx translate ex8.subx -o ex8 -# $ subx run ex8 +# To run (from the subx directory): +# $ subx translate examples/ex8.subx -o examples/ex8 +# $ subx run examples/ex8 # Expected result: # $ echo $? # 97 diff --git a/subx/examples/ex8.subx b/subx/examples/ex8.subx index ba0ddcd3..e3c578c0 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: -# $ subx translate ex8.subx -o ex8 -# $ subx run ex8 abc de fghi +# To run (from the subx directory): +# $ 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 3590839f..b6c64a87 100644 --- a/subx/examples/ex9.subx +++ b/subx/examples/ex9.subx @@ -2,9 +2,9 @@ # Show difference between ascii codes of first letter of first arg and first # letter of second arg. # -# To run: -# $ subx translate ex9.subx -o ex9 -# $ subx run ex9 z x +# To run (from the subx directory): +# $ subx translate examples/ex9.subx -o examples/ex9 +# $ subx run examples/ex9 z x # Expected result: # $ echo $? # 2 |