From f39eaf81fa6cbc831b8021736c7f71b7d9587de7 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 15 Sep 2019 00:29:52 -0700 Subject: 5661 --- html/apps/assort.subx.html | 2 +- html/apps/calls.subx.html | 2 +- html/apps/crenshaw2-1.subx.html | 4 ++-- html/apps/crenshaw2-1b.subx.html | 4 ++-- html/apps/dquotes.subx.html | 2 +- html/apps/factorial.subx.html | 2 +- html/apps/handle.subx.html | 2 +- html/apps/hex.subx.html | 2 +- html/apps/mulisp.subx.html | 2 +- html/apps/pack.subx.html | 2 +- html/apps/random.subx.html | 2 +- html/apps/sigils.subx.html | 2 +- html/apps/survey.subx.html | 4 ++-- html/apps/tests.subx.html | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-) (limited to 'html') diff --git a/html/apps/assort.subx.html b/html/apps/assort.subx.html index 80e53122..4e7ca431 100644 --- a/html/apps/assort.subx.html +++ b/html/apps/assort.subx.html @@ -69,7 +69,7 @@ if ('onhashchange' in window) { 7 # because we don't know if they refer to the line above or the line below. 8 # 9 # To run: - 10 # $ ./subx translate 0*.subx apps/subx-common.subx apps/assort.subx -o apps/assort + 10 # $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/assort.subx -o apps/assort 11 # $ cat x 12 # == code 13 # abc diff --git a/html/apps/calls.subx.html b/html/apps/calls.subx.html index 707593ec..0840478d 100644 --- a/html/apps/calls.subx.html +++ b/html/apps/calls.subx.html @@ -62,7 +62,7 @@ if ('onhashchange' in window) { 1 # Function calls in a single line. 2 # 3 # To run (on Linux): - 4 # $ ./ntranslate 0*.subx apps/subx-common.subx apps/calls.subx + 4 # $ ./ntranslate init.linux 0*.subx apps/subx-common.subx apps/calls.subx 5 # $ mv a.elf apps/calls 6 # $ chmod +x apps/calls 7 # diff --git a/html/apps/crenshaw2-1.subx.html b/html/apps/crenshaw2-1.subx.html index 088f2973..c43092d9 100644 --- a/html/apps/crenshaw2-1.subx.html +++ b/html/apps/crenshaw2-1.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 3 # except that we support hex digits. 4 # 5 # To run: - 6 # $ ./subx translate 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1 + 6 # $ ./subx translate init.linux 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1 7 # $ echo '3' |./subx run apps/crenshaw2-1 8 # Expected output: 9 # # syscall(exit, 3) @@ -74,7 +74,7 @@ if ('onhashchange' in window) { 13 # 14 # To run the generated output: 15 # $ echo '3' |./subx run apps/crenshaw2-1 > z1.subx - 16 # $ ./subx translate z1.subx -o z1 + 16 # $ ./subx translate init.linux z1.subx -o z1 17 # $ ./subx run z1 18 # $ echo $? 19 # 3 diff --git a/html/apps/crenshaw2-1b.subx.html b/html/apps/crenshaw2-1b.subx.html index 4918134a..ee008c8a 100644 --- a/html/apps/crenshaw2-1b.subx.html +++ b/html/apps/crenshaw2-1b.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 3 # except that we support hex numbers of multiple digits. 4 # 5 # To run: - 6 # $ ./subx translate 0*.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b + 6 # $ ./subx translate init.linux 0*.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b 7 # $ echo '1a' |./subx run apps/crenshaw2-1b 8 # Expected output: 9 # # syscall(exit, 1a) @@ -74,7 +74,7 @@ if ('onhashchange' in window) { 13 # 14 # To run the generated output: 15 # $ echo '1a' |./subx run apps/crenshaw2-1b > z1.subx - 16 # $ ./subx translate z1.subx -o z1 + 16 # $ ./subx translate init.linux z1.subx -o z1 17 # $ ./subx run z1 18 # $ echo $? 19 # 26 # 0x1a in decimal diff --git a/html/apps/dquotes.subx.html b/html/apps/dquotes.subx.html index 64ca241a..4cbe96b2 100644 --- a/html/apps/dquotes.subx.html +++ b/html/apps/dquotes.subx.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { 2 # Replace them with references to new variables in the data segment. 3 # 4 # To run: - 5 # $ ./subx translate 0*.subx apps/subx-common.subx apps/dquotes.subx -o apps/dquotes + 5 # $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/dquotes.subx -o apps/dquotes 6 # $ cat x 7 # == code 8 # ab "cd ef"/imm32 diff --git a/html/apps/factorial.subx.html b/html/apps/factorial.subx.html index 1c8d35b7..a5750aef 100644 --- a/html/apps/factorial.subx.html +++ b/html/apps/factorial.subx.html @@ -62,7 +62,7 @@ if ('onhashchange' in window) { 1 ## compute the factorial of 5, and return the result in the exit code 2 # 3 # To run: - 4 # $ ./subx translate 0*.subx apps/factorial.subx -o apps/factorial + 4 # $ ./subx translate init.linux 0*.subx apps/factorial.subx -o apps/factorial 5 # $ ./subx run apps/factorial 6 # Expected result: 7 # $ echo $? diff --git a/html/apps/handle.subx.html b/html/apps/handle.subx.html index e6a85e29..b7a0dfdf 100644 --- a/html/apps/handle.subx.html +++ b/html/apps/handle.subx.html @@ -76,7 +76,7 @@ if ('onhashchange' in window) { 13 # offset 4: address 14 # 15 # To run: - 16 # $ ./subx translate 0*.subx apps/handle.subx -o apps/handle + 16 # $ ./subx translate init.linux 0*.subx apps/handle.subx -o apps/handle 17 # $ ./subx run apps/handle 18 # Expected result is a successful lookup followed by a hard abort: 19 # lookup succeeded diff --git a/html/apps/hex.subx.html b/html/apps/hex.subx.html index d8a455e4..e0e3ecf8 100644 --- a/html/apps/hex.subx.html +++ b/html/apps/hex.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 3 # comments between '#' and newline. 4 # 5 # To run: - 6 # $ ./subx translate 0*.subx apps/subx-common.subx apps/hex.subx -o apps/hex + 6 # $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/hex.subx -o apps/hex 7 # $ echo '80 81 82 # comment' |./subx run apps/hex |xxd - 8 # Expected output: 9 # 00000000: 8081 82 diff --git a/html/apps/mulisp.subx.html b/html/apps/mulisp.subx.html index 7976b071..65897af7 100644 --- a/html/apps/mulisp.subx.html +++ b/html/apps/mulisp.subx.html @@ -58,7 +58,7 @@ if ('onhashchange' in window) { 1 # Toy lisp interpreter 2 # 3 # To run: - 4 # $ ./ntranslate 0*.subx apps/subx-common.subx apps/mulisp.subx + 4 # $ ./ntranslate init.linux 0*.subx apps/subx-common.subx apps/mulisp.subx 5 # $ ./a.elf 6 # 42 7 # => 42 diff --git a/html/apps/pack.subx.html b/html/apps/pack.subx.html index f8caafb6..05b04d4d 100644 --- a/html/apps/pack.subx.html +++ b/html/apps/pack.subx.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { 3 # uses are left untouched. 4 # 5 # To run: - 6 # $ ./subx translate 0*.subx apps/subx-common.subx apps/pack.subx -o apps/pack + 6 # $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/pack.subx -o apps/pack 7 # $ echo '05/add-to-eax 0x20/imm32' |./subx run apps/pack 8 # Expected output: 9 # 05 20 00 00 00 # 05/add-to-eax 0x20/imm32 diff --git a/html/apps/random.subx.html b/html/apps/random.subx.html index 22efb051..362208ed 100644 --- a/html/apps/random.subx.html +++ b/html/apps/random.subx.html @@ -59,7 +59,7 @@ if ('onhashchange' in window) { 1 # Repeatedly read 32-bit numbers from /dev/random, print them to stdout. 2 # 3 # To run: - 4 # $ ./subx translate 0*.subx apps/random.subx -o apps/random + 4 # $ ./subx translate init.linux 0*.subx apps/random.subx -o apps/random 5 # $ ./subx run apps/random 6 7 == code 0x09000000 diff --git a/html/apps/sigils.subx.html b/html/apps/sigils.subx.html index 125a1d38..a243b945 100644 --- a/html/apps/sigils.subx.html +++ b/html/apps/sigils.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 2 # other related arguments. 3 # 4 # To run: - 5 # $ ./subx translate 0*.subx apps/subx-common.subx apps/sigils.subx -o apps/sigils + 5 # $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/sigils.subx -o apps/sigils 6 # 7 # We currently support the following notations: 8 # diff --git a/html/apps/survey.subx.html b/html/apps/survey.subx.html index b83ec98d..c8a14067 100644 --- a/html/apps/survey.subx.html +++ b/html/apps/survey.subx.html @@ -68,7 +68,7 @@ if ('onhashchange' in window) { 5 # b) add segment headers with addresses and offsets correctly filled in 6 # 7 # To build: - 8 # $ ./subx translate 0*.subx apps/subx-common.subx apps/survey.subx -o apps/survey + 8 # $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/survey.subx -o apps/survey 9 # 10 # The expected input is a stream of bytes with segment headers, comments and 11 # some interspersed labels. @@ -1463,7 +1463,7 @@ if ('onhashchange' in window) { 1994 # abort 1995 # if has-metadata?(word-slice, "imm8") 1996 # abort -1997 # emit(out, info->address, 4) # global variables always translate to absolute addresses +1997 # emit(out, info->address, 4) # global variables always translate init.linux to absolute addresses 1998 # # code segment cases 1999 # else if has-metadata?(word-slice, "imm8") 2000 # abort # label should never go to imm8 diff --git a/html/apps/tests.subx.html b/html/apps/tests.subx.html index 16270e28..71bf163f 100644 --- a/html/apps/tests.subx.html +++ b/html/apps/tests.subx.html @@ -62,7 +62,7 @@ if ('onhashchange' in window) { 2 # all functions starting with 'test-'. 3 # 4 # To build: - 5 # $ ./subx translate 0*.subx apps/subx-common.subx apps/tests.subx -o apps/tests + 5 # $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/tests.subx -o apps/tests 6 7 == code 8 # instruction effective address register displacement immediate -- cgit 1.4.1-2-gfad0