diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-12-28 11:52:54 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-12-28 11:52:54 -0800 |
commit | 2e48fac480d30e4216784d00b3081d60c3f43109 (patch) | |
tree | 497b7bd957dadff98794fd05cb51cba3676e7126 /apps | |
parent | 880464a7d21dc0e2f15c52ef24937d5eca953f2e (diff) | |
download | mu-2e48fac480d30e4216784d00b3081d60c3f43109.tar.gz |
7441
Diffstat (limited to 'apps')
-rw-r--r-- | apps/assort.subx | 2 | ||||
-rw-r--r-- | apps/braces.subx | 2 | ||||
-rw-r--r-- | apps/calls.subx | 2 | ||||
-rw-r--r-- | apps/crenshaw2-1.subx | 2 | ||||
-rw-r--r-- | apps/crenshaw2-1b.subx | 2 | ||||
-rw-r--r-- | apps/dquotes.subx | 2 | ||||
-rw-r--r-- | apps/factorial.subx | 2 | ||||
-rw-r--r-- | apps/factorial2.subx | 2 | ||||
-rw-r--r-- | apps/factorial3.subx | 2 | ||||
-rw-r--r-- | apps/factorial4.subx | 2 | ||||
-rw-r--r-- | apps/hex.subx | 2 | ||||
-rw-r--r-- | apps/pack.subx | 2 | ||||
-rw-r--r-- | apps/random.subx | 2 | ||||
-rw-r--r-- | apps/sigils.subx | 2 | ||||
-rw-r--r-- | apps/survey_elf.subx | 2 | ||||
-rw-r--r-- | apps/tests.subx | 2 |
16 files changed, 16 insertions, 16 deletions
diff --git a/apps/assort.subx b/apps/assort.subx index fbf7e8dc..c4a38410 100644 --- a/apps/assort.subx +++ b/apps/assort.subx @@ -7,7 +7,7 @@ # because we don't know if they refer to the line above or the line below. # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/assort.subx -o apps/assort +# $ ./bootstrap translate init.linux [01]*.subx apps/subx-params.subx apps/assort.subx -o apps/assort # $ cat x # == code # abc diff --git a/apps/braces.subx b/apps/braces.subx index 3727f13b..d6b8f0f4 100644 --- a/apps/braces.subx +++ b/apps/braces.subx @@ -1,7 +1,7 @@ # Structured control flow using break/loop rather than jump. # # To run (on Linux): -# $ ./translate_subx init.linux 0*.subx apps/subx-params.subx apps/braces.subx +# $ ./translate_subx init.linux [012]*.subx apps/subx-params.subx apps/braces.subx # $ mv a.elf apps/braces # # Example 1: diff --git a/apps/calls.subx b/apps/calls.subx index d3418cf0..903ae0f2 100644 --- a/apps/calls.subx +++ b/apps/calls.subx @@ -1,7 +1,7 @@ # Function calls in a single line. # # To run (on Linux): -# $ ./translate_subx init.linux 0*.subx apps/subx-params.subx apps/calls.subx +# $ ./translate_subx init.linux [012]*.subx apps/subx-params.subx apps/calls.subx # $ mv a.elf apps/calls # # Example 1: diff --git a/apps/crenshaw2-1.subx b/apps/crenshaw2-1.subx index 9b1747cb..f52c9b64 100644 --- a/apps/crenshaw2-1.subx +++ b/apps/crenshaw2-1.subx @@ -3,7 +3,7 @@ # except that we support hex digits. # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1 +# $ ./bootstrap translate init.linux [01]*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1 # $ echo '3' |./bootstrap run apps/crenshaw2-1 # Expected output: # # syscall(exit, 3) diff --git a/apps/crenshaw2-1b.subx b/apps/crenshaw2-1b.subx index 0d17a320..03233e29 100644 --- a/apps/crenshaw2-1b.subx +++ b/apps/crenshaw2-1b.subx @@ -3,7 +3,7 @@ # except that we support hex numbers of multiple digits. # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b +# $ ./bootstrap translate init.linux [01]*.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b # $ echo '1a' |./bootstrap run apps/crenshaw2-1b # Expected output: # # syscall(exit, 1a) diff --git a/apps/dquotes.subx b/apps/dquotes.subx index eb355fd4..54349e18 100644 --- a/apps/dquotes.subx +++ b/apps/dquotes.subx @@ -2,7 +2,7 @@ # Replace them with references to new variables in the data segment. # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/dquotes.subx -o apps/dquotes +# $ ./bootstrap translate init.linux [01]*.subx apps/subx-params.subx apps/dquotes.subx -o apps/dquotes # $ cat x # == code # ab "cd ef"/imm32 diff --git a/apps/factorial.subx b/apps/factorial.subx index 586592f5..b4f8888b 100644 --- a/apps/factorial.subx +++ b/apps/factorial.subx @@ -1,7 +1,7 @@ ## compute the factorial of 5, and print the result # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/factorial.subx -o apps/factorial +# $ ./bootstrap translate init.linux [01]*.subx apps/factorial.subx -o apps/factorial # $ ./bootstrap run apps/factorial # Expected result: # $ echo $? diff --git a/apps/factorial2.subx b/apps/factorial2.subx index 55723f75..22c3d5be 100644 --- a/apps/factorial2.subx +++ b/apps/factorial2.subx @@ -4,7 +4,7 @@ # rm32 operands # # To run: -# $ ./translate_subx init.linux 0*.subx apps/factorial.subx -o apps/factorial +# $ ./translate_subx init.linux [01]*.subx apps/factorial.subx -o apps/factorial # $ ./bootstrap run apps/factorial # Expected result: # $ echo $? diff --git a/apps/factorial3.subx b/apps/factorial3.subx index b2624fe7..82d59b5e 100644 --- a/apps/factorial3.subx +++ b/apps/factorial3.subx @@ -5,7 +5,7 @@ # function calls # # To run: -# $ ./translate_subx init.linux 0*.subx apps/factorial.subx -o apps/factorial +# $ ./translate_subx init.linux [01]*.subx apps/factorial.subx -o apps/factorial # $ ./bootstrap run apps/factorial # Expected result: # $ echo $? diff --git a/apps/factorial4.subx b/apps/factorial4.subx index e39c2178..a22c7246 100644 --- a/apps/factorial4.subx +++ b/apps/factorial4.subx @@ -6,7 +6,7 @@ # control flow # # To run: -# $ ./translate_subx init.linux 0*.subx apps/factorial.subx -o apps/factorial +# $ ./translate_subx init.linux [01]*.subx apps/factorial.subx -o apps/factorial # $ ./bootstrap run apps/factorial # Expected result: # $ echo $? diff --git a/apps/hex.subx b/apps/hex.subx index 4c95fdc5..5a86f8ec 100644 --- a/apps/hex.subx +++ b/apps/hex.subx @@ -3,7 +3,7 @@ # comments between '#' and newline. # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/hex.subx -o apps/hex +# $ ./bootstrap translate init.linux [01]*.subx apps/subx-params.subx apps/hex.subx -o apps/hex # $ echo '80 81 82 # comment' |./bootstrap run apps/hex |xxd - # Expected output: # 00000000: 8081 82 diff --git a/apps/pack.subx b/apps/pack.subx index 0d721bfb..39848f25 100644 --- a/apps/pack.subx +++ b/apps/pack.subx @@ -3,7 +3,7 @@ # uses are left untouched. # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/pack.subx -o apps/pack +# $ ./bootstrap translate init.linux [01]*.subx apps/subx-params.subx apps/pack.subx -o apps/pack # $ echo '05/add-to-eax 0x20/imm32' |./bootstrap run apps/pack # Expected output: # 05 20 00 00 00 # 05/add-to-eax 0x20/imm32 diff --git a/apps/random.subx b/apps/random.subx index d73b4876..71012309 100644 --- a/apps/random.subx +++ b/apps/random.subx @@ -1,7 +1,7 @@ # Repeatedly read 32-bit numbers from /dev/random, print them to stdout. # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/random.subx -o apps/random +# $ ./bootstrap translate init.linux [01]*.subx apps/random.subx -o apps/random # $ ./bootstrap run apps/random == code 0x09000000 diff --git a/apps/sigils.subx b/apps/sigils.subx index d5777f2e..05efe305 100644 --- a/apps/sigils.subx +++ b/apps/sigils.subx @@ -2,7 +2,7 @@ # arguments. # # To run: -# $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/sigils.subx -o apps/sigils +# $ ./bootstrap translate init.linux [012]*.subx apps/subx-params.subx apps/sigils.subx -o apps/sigils # # We currently support the following notations: # diff --git a/apps/survey_elf.subx b/apps/survey_elf.subx index 65d610c7..13d148a6 100644 --- a/apps/survey_elf.subx +++ b/apps/survey_elf.subx @@ -5,7 +5,7 @@ # b) add an ELF header and segment headers with addresses and offsets correctly filled in # # To build: -# $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/survey_elf.subx -o apps/survey_elf +# $ ./bootstrap translate init.linux [01]*.subx apps/subx-params.subx apps/survey_elf.subx -o apps/survey_elf # # The expected input is a stream of bytes with '==' segment headers, comments # and some interspersed labels. diff --git a/apps/tests.subx b/apps/tests.subx index d61ea137..eb8eb937 100644 --- a/apps/tests.subx +++ b/apps/tests.subx @@ -2,7 +2,7 @@ # all functions starting with 'test-'. # # To build: -# $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/tests.subx -o apps/tests +# $ ./bootstrap translate init.linux [01]*.subx apps/subx-params.subx apps/tests.subx -o apps/tests == code # instruction effective address register displacement immediate |