diff options
Diffstat (limited to 'html/apps/crenshaw2-1.subx.html')
-rw-r--r-- | html/apps/crenshaw2-1.subx.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/html/apps/crenshaw2-1.subx.html b/html/apps/crenshaw2-1.subx.html index 1c9ae904..42bfe4d6 100644 --- a/html/apps/crenshaw2-1.subx.html +++ b/html/apps/crenshaw2-1.subx.html @@ -64,8 +64,8 @@ if ('onhashchange' in window) { <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># except that we support hex digits.</span> <span id="L4" class="LineNr"> 4 </span><span class="subxComment">#</span> <span id="L5" class="LineNr"> 5 </span><span class="subxComment"># To run:</span> -<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># $ ./subx translate init.linux 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1</span> -<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo '3' |./subx run apps/crenshaw2-1</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># $ ./bootstrap translate init.linux 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo '3' |./bootstrap run apps/crenshaw2-1</span> <span id="L8" class="LineNr"> 8 </span><span class="subxComment"># Expected output:</span> <span id="L9" class="LineNr"> 9 </span><span class="subxComment"># # syscall(exit, 3)</span> <span id="L10" class="LineNr"> 10 </span><span class="subxComment"># bb/copy-to-ebx 3/imm32</span> @@ -73,14 +73,14 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr"> 12 </span><span class="subxComment"># cd/syscall 0x80/imm8</span> <span id="L13" class="LineNr"> 13 </span><span class="subxComment">#</span> <span id="L14" class="LineNr"> 14 </span><span class="subxComment"># To run the generated output:</span> -<span id="L15" class="LineNr"> 15 </span><span class="subxComment"># $ echo '3' |./subx run apps/crenshaw2-1 > z1.subx</span> -<span id="L16" class="LineNr"> 16 </span><span class="subxComment"># $ ./subx translate init.linux z1.subx -o z1</span> -<span id="L17" class="LineNr"> 17 </span><span class="subxComment"># $ ./subx run z1</span> +<span id="L15" class="LineNr"> 15 </span><span class="subxComment"># $ echo '3' |./bootstrap run apps/crenshaw2-1 > z1.subx</span> +<span id="L16" class="LineNr"> 16 </span><span class="subxComment"># $ ./bootstrap translate init.linux z1.subx -o z1</span> +<span id="L17" class="LineNr"> 17 </span><span class="subxComment"># $ ./bootstrap run z1</span> <span id="L18" class="LineNr"> 18 </span><span class="subxComment"># $ echo $?</span> <span id="L19" class="LineNr"> 19 </span><span class="subxComment"># 3</span> <span id="L20" class="LineNr"> 20 </span><span class="subxComment">#</span> <span id="L21" class="LineNr"> 21 </span><span class="subxComment"># Stdin must contain just a single hex digit. Other input will print an error:</span> -<span id="L22" class="LineNr"> 22 </span><span class="subxComment"># $ echo 'xyz' |./subx run apps/crenshaw2-1</span> +<span id="L22" class="LineNr"> 22 </span><span class="subxComment"># $ echo 'xyz' |./bootstrap run apps/crenshaw2-1</span> <span id="L23" class="LineNr"> 23 </span><span class="subxComment"># Error: integer expected</span> <span id="L24" class="LineNr"> 24 </span><span class="subxComment">#</span> <span id="L25" class="LineNr"> 25 </span><span class="subxComment"># Names in this file sometimes follow Crenshaw's original rather than my usual</span> |