about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-09-15 00:29:52 -0700
committerKartik Agaram <vc@akkartik.com>2019-09-15 00:29:52 -0700
commitf39eaf81fa6cbc831b8021736c7f71b7d9587de7 (patch)
tree3ba0ea4b7a73990dd0594f2a4188e6e4af74c4ae /apps
parent5e4c6714b8b1c81a6b788b2d71049f6cabeb8e7c (diff)
downloadmu-f39eaf81fa6cbc831b8021736c7f71b7d9587de7.tar.gz
5661
Diffstat (limited to 'apps')
-rw-r--r--apps/assort.subx2
-rw-r--r--apps/calls.subx2
-rw-r--r--apps/crenshaw2-1.subx4
-rw-r--r--apps/crenshaw2-1b.subx4
-rw-r--r--apps/dquotes.subx2
-rw-r--r--apps/factorial.subx2
-rw-r--r--apps/handle.subx2
-rw-r--r--apps/hex.subx2
-rw-r--r--apps/mulisp.subx2
-rw-r--r--apps/pack.subx2
-rw-r--r--apps/random.subx2
-rw-r--r--apps/sigils.subx2
-rw-r--r--apps/survey.subx4
-rw-r--r--apps/tests.subx2
14 files changed, 17 insertions, 17 deletions
diff --git a/apps/assort.subx b/apps/assort.subx
index 57ed1eb2..71aee164 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:
-#   $ ./subx translate 0*.subx apps/subx-common.subx apps/assort.subx  -o apps/assort
+#   $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/assort.subx  -o apps/assort
 #   $ cat x
 #   == code
 #   abc
diff --git a/apps/calls.subx b/apps/calls.subx
index a7e3bd57..f0be2286 100644
--- a/apps/calls.subx
+++ b/apps/calls.subx
@@ -1,7 +1,7 @@
 # Function calls in a single line.
 #
 # To run (on Linux):
-#   $ ./ntranslate 0*.subx apps/subx-common.subx apps/calls.subx
+#   $ ./ntranslate init.linux 0*.subx apps/subx-common.subx apps/calls.subx
 #   $ mv a.elf apps/calls
 #   $ chmod +x apps/calls
 #
diff --git a/apps/crenshaw2-1.subx b/apps/crenshaw2-1.subx
index 5d1c9c0c..42d8571a 100644
--- a/apps/crenshaw2-1.subx
+++ b/apps/crenshaw2-1.subx
@@ -3,7 +3,7 @@
 # except that we support hex digits.
 #
 # To run:
-#   $ ./subx translate 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1
+#   $ ./subx translate init.linux 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1
 #   $ echo '3'  |./subx run apps/crenshaw2-1
 # Expected output:
 #   # syscall(exit, 3)
@@ -13,7 +13,7 @@
 #
 # To run the generated output:
 #   $ echo '3'  |./subx run apps/crenshaw2-1 > z1.subx
-#   $ ./subx translate z1.subx -o z1
+#   $ ./subx translate init.linux z1.subx -o z1
 #   $ ./subx run z1
 #   $ echo $?
 #   3
diff --git a/apps/crenshaw2-1b.subx b/apps/crenshaw2-1b.subx
index 908ca942..9679bdab 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:
-#   $ ./subx translate 0*.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b
+#   $ ./subx translate init.linux 0*.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b
 #   $ echo '1a'  |./subx run apps/crenshaw2-1b
 # Expected output:
 #   # syscall(exit, 1a)
@@ -13,7 +13,7 @@
 #
 # To run the generated output:
 #   $ echo '1a'  |./subx run apps/crenshaw2-1b > z1.subx
-#   $ ./subx translate z1.subx -o z1
+#   $ ./subx translate init.linux z1.subx -o z1
 #   $ ./subx run z1
 #   $ echo $?
 #   26  # 0x1a in decimal
diff --git a/apps/dquotes.subx b/apps/dquotes.subx
index 2fe9f9c3..6e5882b9 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:
-#   $ ./subx translate 0*.subx apps/subx-common.subx apps/dquotes.subx  -o apps/dquotes
+#   $ ./subx translate init.linux 0*.subx apps/subx-common.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 23cb8294..4701615b 100644
--- a/apps/factorial.subx
+++ b/apps/factorial.subx
@@ -1,7 +1,7 @@
 ## compute the factorial of 5, and return the result in the exit code
 #
 # To run:
-#   $ ./subx translate 0*.subx apps/factorial.subx -o apps/factorial
+#   $ ./subx translate init.linux 0*.subx apps/factorial.subx -o apps/factorial
 #   $ ./subx run apps/factorial
 # Expected result:
 #   $ echo $?
diff --git a/apps/handle.subx b/apps/handle.subx
index 94e3d5b5..b5c98422 100644
--- a/apps/handle.subx
+++ b/apps/handle.subx
@@ -13,7 +13,7 @@
 #   offset 4: address
 #
 # To run:
-#   $ ./subx translate 0*.subx apps/handle.subx -o apps/handle
+#   $ ./subx translate init.linux 0*.subx apps/handle.subx -o apps/handle
 #   $ ./subx run apps/handle
 # Expected result is a successful lookup followed by a hard abort:
 #   lookup succeeded
diff --git a/apps/hex.subx b/apps/hex.subx
index 57b112ab..ad09a3c3 100644
--- a/apps/hex.subx
+++ b/apps/hex.subx
@@ -3,7 +3,7 @@
 # comments between '#' and newline.
 #
 # To run:
-#   $ ./subx translate 0*.subx apps/subx-common.subx apps/hex.subx  -o apps/hex
+#   $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/hex.subx  -o apps/hex
 #   $ echo '80 81 82  # comment'  |./subx run apps/hex  |xxd -
 # Expected output:
 #   00000000: 8081 82
diff --git a/apps/mulisp.subx b/apps/mulisp.subx
index d57a14a5..59e1f561 100644
--- a/apps/mulisp.subx
+++ b/apps/mulisp.subx
@@ -1,7 +1,7 @@
 # Toy lisp interpreter
 #
 # To run:
-#   $ ./ntranslate 0*.subx apps/subx-common.subx apps/mulisp.subx
+#   $ ./ntranslate init.linux 0*.subx apps/subx-common.subx apps/mulisp.subx
 #   $ ./a.elf
 #   42
 #   => 42
diff --git a/apps/pack.subx b/apps/pack.subx
index 36896669..f4caceba 100644
--- a/apps/pack.subx
+++ b/apps/pack.subx
@@ -3,7 +3,7 @@
 # uses are left untouched.
 #
 # To run:
-#   $ ./subx translate 0*.subx apps/subx-common.subx apps/pack.subx  -o apps/pack
+#   $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/pack.subx  -o apps/pack
 #   $ echo '05/add-to-eax 0x20/imm32'  |./subx 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 beae5819..535b89e4 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:
-#   $ ./subx translate 0*.subx apps/random.subx -o apps/random
+#   $ ./subx translate init.linux 0*.subx apps/random.subx -o apps/random
 #   $ ./subx run apps/random
 
 == code 0x09000000
diff --git a/apps/sigils.subx b/apps/sigils.subx
index 1e2d27b7..e495483e 100644
--- a/apps/sigils.subx
+++ b/apps/sigils.subx
@@ -2,7 +2,7 @@
 # other related arguments.
 #
 # To run:
-#   $ ./subx translate 0*.subx apps/subx-common.subx apps/sigils.subx  -o apps/sigils
+#   $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/sigils.subx  -o apps/sigils
 #
 # We currently support the following notations:
 #
diff --git a/apps/survey.subx b/apps/survey.subx
index 2738da38..e685d436 100644
--- a/apps/survey.subx
+++ b/apps/survey.subx
@@ -5,7 +5,7 @@
 #   b) add segment headers with addresses and offsets correctly filled in
 #
 # To build:
-#   $ ./subx translate 0*.subx apps/subx-common.subx apps/survey.subx  -o apps/survey
+#   $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/survey.subx  -o apps/survey
 #
 # The expected input is a stream of bytes with segment headers, comments and
 # some interspersed labels.
@@ -1994,7 +1994,7 @@ emit-segments:  # in : (address stream), out : (address buffered-file), segments
     #           abort
     #         if has-metadata?(word-slice, "imm8")
     #           abort
-    #         emit(out, info->address, 4)  # global variables always translate to absolute addresses
+    #         emit(out, info->address, 4)  # global variables always translate init.linux to absolute addresses
     #       # code segment cases
     #       else if has-metadata?(word-slice, "imm8")
     #         abort  # label should never go to imm8
diff --git a/apps/tests.subx b/apps/tests.subx
index 92447067..cb6bd034 100644
--- a/apps/tests.subx
+++ b/apps/tests.subx
@@ -2,7 +2,7 @@
 # all functions starting with 'test-'.
 #
 # To build:
-#   $ ./subx translate 0*.subx apps/subx-common.subx apps/tests.subx  -o apps/tests
+#   $ ./subx translate init.linux 0*.subx apps/subx-common.subx apps/tests.subx  -o apps/tests
 
 == code
 #   instruction                     effective address                                                   register    displacement    immediate