diff options
-rw-r--r-- | apps/assort.subx | 6 | ||||
-rw-r--r-- | apps/crenshaw2-1.subx | 6 | ||||
-rw-r--r-- | apps/crenshaw2-1b.subx | 6 | ||||
-rw-r--r-- | apps/dquotes.subx | 6 | ||||
-rw-r--r-- | apps/factorial.subx | 3 | ||||
-rw-r--r-- | apps/hex.subx | 6 | ||||
-rw-r--r-- | apps/pack.subx | 6 | ||||
-rw-r--r-- | apps/sigils.subx | 4 | ||||
-rw-r--r-- | apps/survey.subx | 4 | ||||
-rw-r--r-- | apps/tests.subx | 4 | ||||
-rw-r--r-- | html/apps/assort.subx.html | 6 | ||||
-rw-r--r-- | html/apps/crenshaw2-1.subx.html | 6 | ||||
-rw-r--r-- | html/apps/crenshaw2-1b.subx.html | 6 | ||||
-rw-r--r-- | html/apps/dquotes.subx.html | 6 | ||||
-rw-r--r-- | html/apps/factorial.subx.html | 127 | ||||
-rw-r--r-- | html/apps/hex.subx.html | 6 | ||||
-rw-r--r-- | html/apps/pack.subx.html | 6 | ||||
-rw-r--r-- | html/apps/sigils.subx.html | 4 | ||||
-rw-r--r-- | html/apps/survey.subx.html | 4 | ||||
-rw-r--r-- | html/apps/tests.subx.html | 4 |
20 files changed, 114 insertions, 112 deletions
diff --git a/apps/assort.subx b/apps/assort.subx index f1d76df6..57ed1eb2 100644 --- a/apps/assort.subx +++ b/apps/assort.subx @@ -55,7 +55,7 @@ Entry: # run tests if necessary, convert stdin if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -66,7 +66,7 @@ $run-main: # configure ed to really exit() # . ed->target = 0 c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # return convert(Stdin, Stdout, Stderr, ed) + # convert(Stdin, Stdout, Stderr, ed) # . . push args 50/push-eax/ed 68/push Stderr/imm32 @@ -76,7 +76,7 @@ $run-main: e8/call convert/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0x10/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/apps/crenshaw2-1.subx b/apps/crenshaw2-1.subx index e4e78e9c..5d1c9c0c 100644 --- a/apps/crenshaw2-1.subx +++ b/apps/crenshaw2-1.subx @@ -62,7 +62,7 @@ Entry: # run tests if necessary, call 'compile' if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -73,7 +73,7 @@ $run-main: # configure ed to really exit() # . ed->target = 0 c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # return compile(Stdin, 1/stdout, 2/stderr, ed) + # compile(Stdin, 1/stdout, 2/stderr, ed) # . . push args 50/push-eax/ed 68/push 2/imm32/stderr @@ -83,7 +83,7 @@ $run-main: e8/call compile/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0x10/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/apps/crenshaw2-1b.subx b/apps/crenshaw2-1b.subx index cbd18d46..908ca942 100644 --- a/apps/crenshaw2-1b.subx +++ b/apps/crenshaw2-1b.subx @@ -62,7 +62,7 @@ Entry: # run tests if necessary, call 'compile' if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -73,7 +73,7 @@ $run-main: # configure ed to really exit() # . ed->target = 0 c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # return compile(Stdin, 1/stdout, 2/stderr, ed) + # compile(Stdin, 1/stdout, 2/stderr, ed) # . . push args 50/push-eax/ed 68/push 2/imm32/stderr @@ -83,7 +83,7 @@ $run-main: e8/call compile/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0x10/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/apps/dquotes.subx b/apps/dquotes.subx index 95d3bc15..b22758de 100644 --- a/apps/dquotes.subx +++ b/apps/dquotes.subx @@ -51,7 +51,7 @@ Entry: # run tests if necessary, convert stdin if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -62,7 +62,7 @@ $run-main: # configure ed to really exit() # . ed->target = 0 c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # return convert(Stdin, 1/stdout, 2/stderr, ed) + # convert(Stdin, 1/stdout, 2/stderr, ed) # . . push args 50/push-eax/ed 68/push Stderr/imm32 @@ -72,7 +72,7 @@ $run-main: e8/call convert/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0x10/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/apps/factorial.subx b/apps/factorial.subx index 1fb111d0..23cb8294 100644 --- a/apps/factorial.subx +++ b/apps/factorial.subx @@ -50,11 +50,12 @@ Entry: # run tests if necessary, compute `factorial(5)` if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: # - otherwise return factorial(5) + # eax = factorial(5) # . . push args 68/push 5/imm32 # . . call diff --git a/apps/hex.subx b/apps/hex.subx index a28d9461..57b112ab 100644 --- a/apps/hex.subx +++ b/apps/hex.subx @@ -49,7 +49,7 @@ Entry: # run tests if necessary, convert stdin if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -60,7 +60,7 @@ $run-main: # configure ed to really exit() # . ed->target = 0 c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # return convert(Stdin, 1/stdout, 2/stderr, ed) + # convert(Stdin, 1/stdout, 2/stderr, ed) # . . push args 50/push-eax/ed 68/push Stderr/imm32 @@ -70,7 +70,7 @@ $run-main: e8/call convert/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0x10/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/apps/pack.subx b/apps/pack.subx index fe695c4f..36896669 100644 --- a/apps/pack.subx +++ b/apps/pack.subx @@ -50,7 +50,7 @@ Entry: # run tests if necessary, convert stdin if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -61,7 +61,7 @@ $run-main: # configure ed to really exit() # . ed->target = 0 c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # return convert(Stdin, Stdout, Stderr, ed) + # convert(Stdin, Stdout, Stderr, ed) # . . push args 50/push-eax/ed 68/push Stderr/imm32 @@ -71,7 +71,7 @@ $run-main: e8/call convert/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0x10/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/apps/sigils.subx b/apps/sigils.subx index 35ebf6cd..2e1daa4a 100644 --- a/apps/sigils.subx +++ b/apps/sigils.subx @@ -83,7 +83,7 @@ Entry: # run tests if necessary, convert stdin if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -96,7 +96,7 @@ $run-main: e8/call convert/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/apps/survey.subx b/apps/survey.subx index e19befc2..2738da38 100644 --- a/apps/survey.subx +++ b/apps/survey.subx @@ -79,7 +79,7 @@ Entry: # run tests if necessary, convert stdin if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -100,7 +100,7 @@ $run-main: #? e8/call write-stream/disp32 #? # . . discard args #? 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/apps/tests.subx b/apps/tests.subx index 8f825a3a..92447067 100644 --- a/apps/tests.subx +++ b/apps/tests.subx @@ -48,7 +48,7 @@ Entry: # run tests if necessary, convert stdin if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -61,7 +61,7 @@ $run-main: e8/call convert/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/assort.subx.html b/html/apps/assort.subx.html index 3e4cc6f7..80e53122 100644 --- a/html/apps/assort.subx.html +++ b/html/apps/assort.subx.html @@ -117,7 +117,7 @@ if ('onhashchange' in window) { <span id="L55" class="LineNr"> 55 </span> 74/jump-if-equal $run-main/disp8 <span id="L56" class="LineNr"> 56 </span> <span class="subxComment"># run-tests()</span> <span id="L57" class="LineNr"> 57 </span> e8/call run-tests/disp32 -<span id="L58" class="LineNr"> 58 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L58" class="LineNr"> 58 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L59" class="LineNr"> 59 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L60" class="LineNr"> 60 </span> eb/jump $main:end/disp8 <span id="L61" class="LineNr"> 61 </span><span class="Constant">$run-main</span>: @@ -128,7 +128,7 @@ if ('onhashchange' in window) { <span id="L66" class="LineNr"> 66 </span> <span class="subxComment"># configure ed to really exit()</span> <span id="L67" class="LineNr"> 67 </span> <span class="subxS1Comment"># . ed->target = 0</span> <span id="L68" class="LineNr"> 68 </span> c7 0/subop/copy 0/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># copy to *eax</span> -<span id="L69" class="LineNr"> 69 </span> <span class="subxComment"># return convert(Stdin, Stdout, Stderr, ed)</span> +<span id="L69" class="LineNr"> 69 </span> <span class="subxComment"># convert(Stdin, Stdout, Stderr, ed)</span> <span id="L70" class="LineNr"> 70 </span> <span class="subxS2Comment"># . . push args</span> <span id="L71" class="LineNr"> 71 </span> 50/push-eax/ed <span id="L72" class="LineNr"> 72 </span> 68/push <span class="SpecialChar"><a href='../065write-buffered.subx.html#L213'>Stderr</a></span>/imm32 @@ -138,7 +138,7 @@ if ('onhashchange' in window) { <span id="L76" class="LineNr"> 76 </span> e8/call <a href='assort.subx.html#L89'>convert</a>/disp32 <span id="L77" class="LineNr"> 77 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L78" class="LineNr"> 78 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/imm32 <span class="subxComment"># add to esp</span> -<span id="L79" class="LineNr"> 79 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L79" class="LineNr"> 79 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L80" class="LineNr"> 80 </span> bb/copy-to-ebx 0/imm32 <span id="L81" class="LineNr"> 81 </span><span class="Constant">$main:end</span>: <span id="L82" class="LineNr"> 82 </span> b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/crenshaw2-1.subx.html b/html/apps/crenshaw2-1.subx.html index dd730bae..088f2973 100644 --- a/html/apps/crenshaw2-1.subx.html +++ b/html/apps/crenshaw2-1.subx.html @@ -123,7 +123,7 @@ if ('onhashchange' in window) { <span id="L62" class="LineNr"> 62 </span> 74/jump-if-equal $run-main/disp8 <span id="L63" class="LineNr"> 63 </span> <span class="subxComment"># run-tests()</span> <span id="L64" class="LineNr"> 64 </span> e8/call run-tests/disp32 -<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L66" class="LineNr"> 66 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L67" class="LineNr"> 67 </span> eb/jump $main:end/disp8 <span id="L68" class="LineNr"> 68 </span><span class="Constant">$run-main</span>: @@ -134,7 +134,7 @@ if ('onhashchange' in window) { <span id="L73" class="LineNr"> 73 </span> <span class="subxComment"># configure ed to really exit()</span> <span id="L74" class="LineNr"> 74 </span> <span class="subxS1Comment"># . ed->target = 0</span> <span id="L75" class="LineNr"> 75 </span> c7 0/subop/copy 0/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># copy to *eax</span> -<span id="L76" class="LineNr"> 76 </span> <span class="subxComment"># return compile(Stdin, 1/stdout, 2/stderr, ed)</span> +<span id="L76" class="LineNr"> 76 </span> <span class="subxComment"># compile(Stdin, 1/stdout, 2/stderr, ed)</span> <span id="L77" class="LineNr"> 77 </span> <span class="subxS2Comment"># . . push args</span> <span id="L78" class="LineNr"> 78 </span> 50/push-eax/ed <span id="L79" class="LineNr"> 79 </span> 68/push 2/imm32/stderr @@ -144,7 +144,7 @@ if ('onhashchange' in window) { <span id="L83" class="LineNr"> 83 </span> e8/call <a href='crenshaw2-1.subx.html#L93'>compile</a>/disp32 <span id="L84" class="LineNr"> 84 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L85" class="LineNr"> 85 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/imm32 <span class="subxComment"># add to esp</span> -<span id="L86" class="LineNr"> 86 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L86" class="LineNr"> 86 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L87" class="LineNr"> 87 </span> bb/copy-to-ebx 0/imm32 <span id="L88" class="LineNr"> 88 </span><span class="Constant">$main:end</span>: <span id="L89" class="LineNr"> 89 </span> b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/crenshaw2-1b.subx.html b/html/apps/crenshaw2-1b.subx.html index 7088439a..4918134a 100644 --- a/html/apps/crenshaw2-1b.subx.html +++ b/html/apps/crenshaw2-1b.subx.html @@ -123,7 +123,7 @@ if ('onhashchange' in window) { <span id="L62" class="LineNr"> 62 </span> 74/jump-if-equal $run-main/disp8 <span id="L63" class="LineNr"> 63 </span> <span class="subxComment"># run-tests()</span> <span id="L64" class="LineNr"> 64 </span> e8/call run-tests/disp32 -<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L66" class="LineNr"> 66 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L67" class="LineNr"> 67 </span> eb/jump $main:end/disp8 <span id="L68" class="LineNr"> 68 </span><span class="Constant">$run-main</span>: @@ -134,7 +134,7 @@ if ('onhashchange' in window) { <span id="L73" class="LineNr"> 73 </span> <span class="subxComment"># configure ed to really exit()</span> <span id="L74" class="LineNr"> 74 </span> <span class="subxS1Comment"># . ed->target = 0</span> <span id="L75" class="LineNr"> 75 </span> c7 0/subop/copy 0/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># copy to *eax</span> -<span id="L76" class="LineNr"> 76 </span> <span class="subxComment"># return compile(Stdin, 1/stdout, 2/stderr, ed)</span> +<span id="L76" class="LineNr"> 76 </span> <span class="subxComment"># compile(Stdin, 1/stdout, 2/stderr, ed)</span> <span id="L77" class="LineNr"> 77 </span> <span class="subxS2Comment"># . . push args</span> <span id="L78" class="LineNr"> 78 </span> 50/push-eax/ed <span id="L79" class="LineNr"> 79 </span> 68/push 2/imm32/stderr @@ -144,7 +144,7 @@ if ('onhashchange' in window) { <span id="L83" class="LineNr"> 83 </span> e8/call <a href='crenshaw2-1b.subx.html#L93'>compile</a>/disp32 <span id="L84" class="LineNr"> 84 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L85" class="LineNr"> 85 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/imm32 <span class="subxComment"># add to esp</span> -<span id="L86" class="LineNr"> 86 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L86" class="LineNr"> 86 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L87" class="LineNr"> 87 </span> bb/copy-to-ebx 0/imm32 <span id="L88" class="LineNr"> 88 </span><span class="Constant">$main:end</span>: <span id="L89" class="LineNr"> 89 </span> b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/dquotes.subx.html b/html/apps/dquotes.subx.html index b74502a2..34dbe1ff 100644 --- a/html/apps/dquotes.subx.html +++ b/html/apps/dquotes.subx.html @@ -114,7 +114,7 @@ if ('onhashchange' in window) { <span id="L51" class="LineNr"> 51 </span> 74/jump-if-equal $run-main/disp8 <span id="L52" class="LineNr"> 52 </span> <span class="subxComment"># run-tests()</span> <span id="L53" class="LineNr"> 53 </span> e8/call run-tests/disp32 -<span id="L54" class="LineNr"> 54 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L54" class="LineNr"> 54 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L55" class="LineNr"> 55 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L56" class="LineNr"> 56 </span> eb/jump $main:end/disp8 <span id="L57" class="LineNr"> 57 </span><span class="Constant">$run-main</span>: @@ -125,7 +125,7 @@ if ('onhashchange' in window) { <span id="L62" class="LineNr"> 62 </span> <span class="subxComment"># configure ed to really exit()</span> <span id="L63" class="LineNr"> 63 </span> <span class="subxS1Comment"># . ed->target = 0</span> <span id="L64" class="LineNr"> 64 </span> c7 0/subop/copy 0/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># copy to *eax</span> -<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># return convert(Stdin, 1/stdout, 2/stderr, ed)</span> +<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># convert(Stdin, 1/stdout, 2/stderr, ed)</span> <span id="L66" class="LineNr"> 66 </span> <span class="subxS2Comment"># . . push args</span> <span id="L67" class="LineNr"> 67 </span> 50/push-eax/ed <span id="L68" class="LineNr"> 68 </span> 68/push <span class="SpecialChar"><a href='../065write-buffered.subx.html#L213'>Stderr</a></span>/imm32 @@ -135,7 +135,7 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr"> 72 </span> e8/call <a href='dquotes.subx.html#L85'>convert</a>/disp32 <span id="L73" class="LineNr"> 73 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L74" class="LineNr"> 74 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/imm32 <span class="subxComment"># add to esp</span> -<span id="L75" class="LineNr"> 75 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L75" class="LineNr"> 75 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L76" class="LineNr"> 76 </span> bb/copy-to-ebx 0/imm32 <span id="L77" class="LineNr"> 77 </span><span class="Constant">$main:end</span>: <span id="L78" class="LineNr"> 78 </span> b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/factorial.subx.html b/html/apps/factorial.subx.html index e2154a6a..1c8d35b7 100644 --- a/html/apps/factorial.subx.html +++ b/html/apps/factorial.subx.html @@ -111,73 +111,74 @@ if ('onhashchange' in window) { <span id="L50" class="LineNr"> 50 </span> 74/jump-if-equal $run-main/disp8 <span id="L51" class="LineNr"> 51 </span> <span class="subxComment"># run-tests()</span> <span id="L52" class="LineNr"> 52 </span> e8/call run-tests/disp32 -<span id="L53" class="LineNr"> 53 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L53" class="LineNr"> 53 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L54" class="LineNr"> 54 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L55" class="LineNr"> 55 </span> eb/jump $main:end/disp8 <span id="L56" class="LineNr"> 56 </span><span class="Constant">$run-main</span>: <span id="L57" class="LineNr"> 57 </span> <span class="subxH1Comment"># - otherwise return factorial(5)</span> -<span id="L58" class="LineNr"> 58 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L59" class="LineNr"> 59 </span> 68/push 5/imm32 -<span id="L60" class="LineNr"> 60 </span> <span class="subxS2Comment"># . . call</span> -<span id="L61" class="LineNr"> 61 </span> e8/call <a href='factorial.subx.html#L70'>factorial</a>/disp32 -<span id="L62" class="LineNr"> 62 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L63" class="LineNr"> 63 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span> -<span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># syscall(exit, eax)</span> -<span id="L65" class="LineNr"> 65 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> -<span id="L66" class="LineNr"> 66 </span><span class="Constant">$main:end</span>: -<span id="L67" class="LineNr"> 67 </span> b8/copy-to-eax 1/imm32/exit -<span id="L68" class="LineNr"> 68 </span> cd/syscall 0x80/imm8 -<span id="L69" class="LineNr"> 69 </span> -<span id="L70" class="LineNr"> 70 </span><span class="subxFunction">factorial</span>: <span class="subxComment"># n : int -> int/eax</span> -<span id="L71" class="LineNr"> 71 </span> <span class="subxS1Comment"># . prolog</span> -<span id="L72" class="LineNr"> 72 </span> 55/push-ebp -<span id="L73" class="LineNr"> 73 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> -<span id="L74" class="LineNr"> 74 </span> 53/push-ebx -<span id="L75" class="LineNr"> 75 </span> <span class="subxComment"># if (n <= 1) return 1</span> -<span id="L76" class="LineNr"> 76 </span> b8/copy-to-eax 1/imm32 -<span id="L77" class="LineNr"> 77 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 1/imm32 <span class="subxComment"># compare *(ebp+8)</span> -<span id="L78" class="LineNr"> 78 </span> 7e/jump-if-<= $factorial:end/disp8 -<span id="L79" class="LineNr"> 79 </span> <span class="subxComment"># ebx = n-1</span> -<span id="L80" class="LineNr"> 80 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to ebx</span> -<span id="L81" class="LineNr"> 81 </span> 81 5/subop/subtract 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/imm32 <span class="subxComment"># subtract from ebx</span> -<span id="L82" class="LineNr"> 82 </span> <span class="subxComment"># eax = factorial(n-1)</span> -<span id="L83" class="LineNr"> 83 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L84" class="LineNr"> 84 </span> 53/push-ebx -<span id="L85" class="LineNr"> 85 </span> <span class="subxS2Comment"># . . call</span> -<span id="L86" class="LineNr"> 86 </span> e8/call <a href='factorial.subx.html#L70'>factorial</a>/disp32 -<span id="L87" class="LineNr"> 87 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L88" class="LineNr"> 88 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span> -<span id="L89" class="LineNr"> 89 </span> <span class="subxComment"># return n * factorial(n-1)</span> -<span id="L90" class="LineNr"> 90 </span> f7 4/subop/multiply 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># multiply *(ebp+8) into eax</span> -<span id="L91" class="LineNr"> 91 </span> <span class="subxComment"># TODO: check for overflow</span> -<span id="L92" class="LineNr"> 92 </span><span class="Constant">$factorial:end</span>: -<span id="L93" class="LineNr"> 93 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L94" class="LineNr"> 94 </span> 5b/pop-to-ebx -<span id="L95" class="LineNr"> 95 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> -<span id="L96" class="LineNr"> 96 </span> 5d/pop-to-ebp -<span id="L97" class="LineNr"> 97 </span> c3/return -<span id="L98" class="LineNr"> 98 </span> -<span id="L99" class="LineNr"> 99 </span><span class="subxTest">test-factorial</span>: -<span id="L100" class="LineNr">100 </span> <span class="subxComment"># factorial(5)</span> -<span id="L101" class="LineNr">101 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L102" class="LineNr">102 </span> 68/push 5/imm32 -<span id="L103" class="LineNr">103 </span> <span class="subxS2Comment"># . . call</span> -<span id="L104" class="LineNr">104 </span> e8/call <a href='factorial.subx.html#L70'>factorial</a>/disp32 -<span id="L105" class="LineNr">105 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L106" class="LineNr">106 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span> -<span id="L107" class="LineNr">107 </span> <span class="subxComment"># check-ints-equal(eax, 120, msg)</span> -<span id="L108" class="LineNr">108 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L109" class="LineNr">109 </span> 68/push <span class="Constant">"F - test-factorial"</span>/imm32 -<span id="L110" class="LineNr">110 </span> 68/push 0x78/imm32/expected-120 -<span id="L111" class="LineNr">111 </span> 50/push-eax -<span id="L112" class="LineNr">112 </span> <span class="subxS2Comment"># . . call</span> -<span id="L113" class="LineNr">113 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L114" class="LineNr">114 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L115" class="LineNr">115 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span> -<span id="L116" class="LineNr">116 </span> <span class="subxComment"># end</span> -<span id="L117" class="LineNr">117 </span> c3/return -<span id="L118" class="LineNr">118 </span> -<span id="L119" class="LineNr">119 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +<span id="L58" class="LineNr"> 58 </span> <span class="subxComment"># eax = factorial(5)</span> +<span id="L59" class="LineNr"> 59 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L60" class="LineNr"> 60 </span> 68/push 5/imm32 +<span id="L61" class="LineNr"> 61 </span> <span class="subxS2Comment"># . . call</span> +<span id="L62" class="LineNr"> 62 </span> e8/call <a href='factorial.subx.html#L71'>factorial</a>/disp32 +<span id="L63" class="LineNr"> 63 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L64" class="LineNr"> 64 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span> +<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># syscall(exit, eax)</span> +<span id="L66" class="LineNr"> 66 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> +<span id="L67" class="LineNr"> 67 </span><span class="Constant">$main:end</span>: +<span id="L68" class="LineNr"> 68 </span> b8/copy-to-eax 1/imm32/exit +<span id="L69" class="LineNr"> 69 </span> cd/syscall 0x80/imm8 +<span id="L70" class="LineNr"> 70 </span> +<span id="L71" class="LineNr"> 71 </span><span class="subxFunction">factorial</span>: <span class="subxComment"># n : int -> int/eax</span> +<span id="L72" class="LineNr"> 72 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L73" class="LineNr"> 73 </span> 55/push-ebp +<span id="L74" class="LineNr"> 74 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L75" class="LineNr"> 75 </span> 53/push-ebx +<span id="L76" class="LineNr"> 76 </span> <span class="subxComment"># if (n <= 1) return 1</span> +<span id="L77" class="LineNr"> 77 </span> b8/copy-to-eax 1/imm32 +<span id="L78" class="LineNr"> 78 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 1/imm32 <span class="subxComment"># compare *(ebp+8)</span> +<span id="L79" class="LineNr"> 79 </span> 7e/jump-if-<= $factorial:end/disp8 +<span id="L80" class="LineNr"> 80 </span> <span class="subxComment"># ebx = n-1</span> +<span id="L81" class="LineNr"> 81 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to ebx</span> +<span id="L82" class="LineNr"> 82 </span> 81 5/subop/subtract 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/imm32 <span class="subxComment"># subtract from ebx</span> +<span id="L83" class="LineNr"> 83 </span> <span class="subxComment"># eax = factorial(n-1)</span> +<span id="L84" class="LineNr"> 84 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L85" class="LineNr"> 85 </span> 53/push-ebx +<span id="L86" class="LineNr"> 86 </span> <span class="subxS2Comment"># . . call</span> +<span id="L87" class="LineNr"> 87 </span> e8/call <a href='factorial.subx.html#L71'>factorial</a>/disp32 +<span id="L88" class="LineNr"> 88 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L89" class="LineNr"> 89 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span> +<span id="L90" class="LineNr"> 90 </span> <span class="subxComment"># return n * factorial(n-1)</span> +<span id="L91" class="LineNr"> 91 </span> f7 4/subop/multiply 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># multiply *(ebp+8) into eax</span> +<span id="L92" class="LineNr"> 92 </span> <span class="subxComment"># TODO: check for overflow</span> +<span id="L93" class="LineNr"> 93 </span><span class="Constant">$factorial:end</span>: +<span id="L94" class="LineNr"> 94 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L95" class="LineNr"> 95 </span> 5b/pop-to-ebx +<span id="L96" class="LineNr"> 96 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L97" class="LineNr"> 97 </span> 5d/pop-to-ebp +<span id="L98" class="LineNr"> 98 </span> c3/return +<span id="L99" class="LineNr"> 99 </span> +<span id="L100" class="LineNr">100 </span><span class="subxTest">test-factorial</span>: +<span id="L101" class="LineNr">101 </span> <span class="subxComment"># factorial(5)</span> +<span id="L102" class="LineNr">102 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L103" class="LineNr">103 </span> 68/push 5/imm32 +<span id="L104" class="LineNr">104 </span> <span class="subxS2Comment"># . . call</span> +<span id="L105" class="LineNr">105 </span> e8/call <a href='factorial.subx.html#L71'>factorial</a>/disp32 +<span id="L106" class="LineNr">106 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L107" class="LineNr">107 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span> +<span id="L108" class="LineNr">108 </span> <span class="subxComment"># check-ints-equal(eax, 120, msg)</span> +<span id="L109" class="LineNr">109 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L110" class="LineNr">110 </span> 68/push <span class="Constant">"F - test-factorial"</span>/imm32 +<span id="L111" class="LineNr">111 </span> 68/push 0x78/imm32/expected-120 +<span id="L112" class="LineNr">112 </span> 50/push-eax +<span id="L113" class="LineNr">113 </span> <span class="subxS2Comment"># . . call</span> +<span id="L114" class="LineNr">114 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L115" class="LineNr">115 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L116" class="LineNr">116 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span> +<span id="L117" class="LineNr">117 </span> <span class="subxComment"># end</span> +<span id="L118" class="LineNr">118 </span> c3/return +<span id="L119" class="LineNr">119 </span> +<span id="L120" class="LineNr">120 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> </pre> </body> </html> diff --git a/html/apps/hex.subx.html b/html/apps/hex.subx.html index 6478a270..d8a455e4 100644 --- a/html/apps/hex.subx.html +++ b/html/apps/hex.subx.html @@ -110,7 +110,7 @@ if ('onhashchange' in window) { <span id="L49" class="LineNr"> 49 </span> 74/jump-if-equal $run-main/disp8 <span id="L50" class="LineNr"> 50 </span> <span class="subxComment"># run-tests()</span> <span id="L51" class="LineNr"> 51 </span> e8/call run-tests/disp32 -<span id="L52" class="LineNr"> 52 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L52" class="LineNr"> 52 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L53" class="LineNr"> 53 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L54" class="LineNr"> 54 </span> eb/jump $main:end/disp8 <span id="L55" class="LineNr"> 55 </span><span class="Constant">$run-main</span>: @@ -121,7 +121,7 @@ if ('onhashchange' in window) { <span id="L60" class="LineNr"> 60 </span> <span class="subxComment"># configure ed to really exit()</span> <span id="L61" class="LineNr"> 61 </span> <span class="subxS1Comment"># . ed->target = 0</span> <span id="L62" class="LineNr"> 62 </span> c7 0/subop/copy 0/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># copy to *eax</span> -<span id="L63" class="LineNr"> 63 </span> <span class="subxComment"># return convert(Stdin, 1/stdout, 2/stderr, ed)</span> +<span id="L63" class="LineNr"> 63 </span> <span class="subxComment"># convert(Stdin, 1/stdout, 2/stderr, ed)</span> <span id="L64" class="LineNr"> 64 </span> <span class="subxS2Comment"># . . push args</span> <span id="L65" class="LineNr"> 65 </span> 50/push-eax/ed <span id="L66" class="LineNr"> 66 </span> 68/push <span class="SpecialChar"><a href='../065write-buffered.subx.html#L213'>Stderr</a></span>/imm32 @@ -131,7 +131,7 @@ if ('onhashchange' in window) { <span id="L70" class="LineNr"> 70 </span> e8/call <a href='hex.subx.html#L80'>convert</a>/disp32 <span id="L71" class="LineNr"> 71 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L72" class="LineNr"> 72 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/imm32 <span class="subxComment"># add to esp</span> -<span id="L73" class="LineNr"> 73 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L73" class="LineNr"> 73 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L74" class="LineNr"> 74 </span> bb/copy-to-ebx 0/imm32 <span id="L75" class="LineNr"> 75 </span><span class="Constant">$main:end</span>: <span id="L76" class="LineNr"> 76 </span> b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/pack.subx.html b/html/apps/pack.subx.html index 0c74da8e..f8caafb6 100644 --- a/html/apps/pack.subx.html +++ b/html/apps/pack.subx.html @@ -112,7 +112,7 @@ if ('onhashchange' in window) { <span id="L50" class="LineNr"> 50 </span> 74/jump-if-equal $run-main/disp8 <span id="L51" class="LineNr"> 51 </span> <span class="subxComment"># run-tests()</span> <span id="L52" class="LineNr"> 52 </span> e8/call run-tests/disp32 -<span id="L53" class="LineNr"> 53 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L53" class="LineNr"> 53 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L54" class="LineNr"> 54 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L55" class="LineNr"> 55 </span> eb/jump $main:end/disp8 <span id="L56" class="LineNr"> 56 </span><span class="Constant">$run-main</span>: @@ -123,7 +123,7 @@ if ('onhashchange' in window) { <span id="L61" class="LineNr"> 61 </span> <span class="subxComment"># configure ed to really exit()</span> <span id="L62" class="LineNr"> 62 </span> <span class="subxS1Comment"># . ed->target = 0</span> <span id="L63" class="LineNr"> 63 </span> c7 0/subop/copy 0/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># copy to *eax</span> -<span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># return convert(Stdin, Stdout, Stderr, ed)</span> +<span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># convert(Stdin, Stdout, Stderr, ed)</span> <span id="L65" class="LineNr"> 65 </span> <span class="subxS2Comment"># . . push args</span> <span id="L66" class="LineNr"> 66 </span> 50/push-eax/ed <span id="L67" class="LineNr"> 67 </span> 68/push <span class="SpecialChar"><a href='../065write-buffered.subx.html#L213'>Stderr</a></span>/imm32 @@ -133,7 +133,7 @@ if ('onhashchange' in window) { <span id="L71" class="LineNr"> 71 </span> e8/call <a href='pack.subx.html#L100'>convert</a>/disp32 <span id="L72" class="LineNr"> 72 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L73" class="LineNr"> 73 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/imm32 <span class="subxComment"># add to esp</span> -<span id="L74" class="LineNr"> 74 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L74" class="LineNr"> 74 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L75" class="LineNr"> 75 </span> bb/copy-to-ebx 0/imm32 <span id="L76" class="LineNr"> 76 </span><span class="Constant">$main:end</span>: <span id="L77" class="LineNr"> 77 </span> b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/sigils.subx.html b/html/apps/sigils.subx.html index 5a61c9fc..901a7707 100644 --- a/html/apps/sigils.subx.html +++ b/html/apps/sigils.subx.html @@ -145,7 +145,7 @@ if ('onhashchange' in window) { <span id="L83" class="LineNr"> 83 </span> 74/jump-if-equal $run-main/disp8 <span id="L84" class="LineNr"> 84 </span> <span class="subxComment"># run-tests()</span> <span id="L85" class="LineNr"> 85 </span> e8/call run-tests/disp32 -<span id="L86" class="LineNr"> 86 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L86" class="LineNr"> 86 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L87" class="LineNr"> 87 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L88" class="LineNr"> 88 </span> eb/jump $main:end/disp8 <span id="L89" class="LineNr"> 89 </span><span class="Constant">$run-main</span>: @@ -158,7 +158,7 @@ if ('onhashchange' in window) { <span id="L96" class="LineNr"> 96 </span> e8/call <a href='sigils.subx.html#L107'>convert</a>/disp32 <span id="L97" class="LineNr"> 97 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L98" class="LineNr"> 98 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L99" class="LineNr"> 99 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L99" class="LineNr"> 99 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L100" class="LineNr"> 100 </span> bb/copy-to-ebx 0/imm32 <span id="L101" class="LineNr"> 101 </span><span class="Constant">$main:end</span>: <span id="L102" class="LineNr"> 102 </span> b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/survey.subx.html b/html/apps/survey.subx.html index 09b59be7..b83ec98d 100644 --- a/html/apps/survey.subx.html +++ b/html/apps/survey.subx.html @@ -142,7 +142,7 @@ if ('onhashchange' in window) { <span id="L79" class="LineNr"> 79 </span> 74/jump-if-equal $run-main/disp8 <span id="L80" class="LineNr"> 80 </span> <span class="subxComment"># run-tests()</span> <span id="L81" class="LineNr"> 81 </span> e8/call run-tests/disp32 -<span id="L82" class="LineNr"> 82 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L82" class="LineNr"> 82 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L83" class="LineNr"> 83 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L84" class="LineNr"> 84 </span> eb/jump $main:end/disp8 <span id="L85" class="LineNr"> 85 </span><span class="Constant">$run-main</span>: @@ -163,7 +163,7 @@ if ('onhashchange' in window) { <span id="L100" class="LineNr"> 100 </span><span class="CommentedCode">#? e8/call write-stream/disp32</span> <span id="L101" class="LineNr"> 101 </span><span class="CommentedCode">#? # . . discard args</span> <span id="L102" class="LineNr"> 102 </span><span class="CommentedCode">#? 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp</span> -<span id="L103" class="LineNr"> 103 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L103" class="LineNr"> 103 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L104" class="LineNr"> 104 </span> bb/copy-to-ebx 0/imm32 <span id="L105" class="LineNr"> 105 </span><span class="Constant">$main:end</span>: <span id="L106" class="LineNr"> 106 </span> b8/copy-to-eax 1/imm32/exit diff --git a/html/apps/tests.subx.html b/html/apps/tests.subx.html index c1dc59f0..16270e28 100644 --- a/html/apps/tests.subx.html +++ b/html/apps/tests.subx.html @@ -108,7 +108,7 @@ if ('onhashchange' in window) { <span id="L48" class="LineNr"> 48 </span> 74/jump-if-equal $run-main/disp8 <span id="L49" class="LineNr"> 49 </span> <span class="subxComment"># run-tests()</span> <span id="L50" class="LineNr"> 50 </span> e8/call run-tests/disp32 -<span id="L51" class="LineNr"> 51 </span> <span class="subxComment"># return *Num-test-failures</span> +<span id="L51" class="LineNr"> 51 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> <span id="L52" class="LineNr"> 52 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../051test.subx.html#L90'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> <span id="L53" class="LineNr"> 53 </span> eb/jump $main:end/disp8 <span id="L54" class="LineNr"> 54 </span><span class="Constant">$run-main</span>: @@ -121,7 +121,7 @@ if ('onhashchange' in window) { <span id="L61" class="LineNr"> 61 </span> e8/call <a href='tests.subx.html#L70'>convert</a>/disp32 <span id="L62" class="LineNr"> 62 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L63" class="LineNr"> 63 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L64" class="LineNr"> 64 </span> <span class="subxS1Comment"># . syscall(exit, 0)</span> +<span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L65" class="LineNr"> 65 </span> bb/copy-to-ebx 0/imm32 <span id="L66" class="LineNr"> 66 </span><span class="Constant">$main:end</span>: <span id="L67" class="LineNr"> 67 </span> b8/copy-to-eax 1/imm32/exit |