diff options
Diffstat (limited to 'html/subx/apps/hex.subx.html')
-rw-r--r-- | html/subx/apps/hex.subx.html | 1374 |
1 files changed, 671 insertions, 703 deletions
diff --git a/html/subx/apps/hex.subx.html b/html/subx/apps/hex.subx.html index 4d7dd8cf..a7c0c903 100644 --- a/html/subx/apps/hex.subx.html +++ b/html/subx/apps/hex.subx.html @@ -283,14 +283,14 @@ if ('onhashchange' in window) { <span id="L220" class="LineNr"> 220 </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="L221" class="LineNr"> 221 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> <span id="L222" class="LineNr"> 222 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L223" class="LineNr"> 223 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 +<span id="L223" class="LineNr"> 223 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 <span id="L224" class="LineNr"> 224 </span> <span class="subxS2Comment"># . . call</span> <span id="L225" class="LineNr"> 225 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L226" class="LineNr"> 226 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L227" class="LineNr"> 227 </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="L228" class="LineNr"> 228 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> <span id="L229" class="LineNr"> 229 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L230" class="LineNr"> 230 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L230" class="LineNr"> 230 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L231" class="LineNr"> 231 </span> 05/add-to-EAX 4/imm32 <span id="L232" class="LineNr"> 232 </span> 50/push-EAX <span id="L233" class="LineNr"> 233 </span> <span class="subxS2Comment"># . . call</span> @@ -321,7 +321,7 @@ if ('onhashchange' in window) { <span id="L258" class="LineNr"> 258 </span> <span class="subxComment"># EAX = convert-next-octet(_test-buffered-file, _test-error-buffered-file, ed)</span> <span id="L259" class="LineNr"> 259 </span> <span class="subxS2Comment"># . . push args</span> <span id="L260" class="LineNr"> 260 </span> 51/push-ECX/ed -<span id="L261" class="LineNr"> 261 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L261" class="LineNr"> 261 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L262" class="LineNr"> 262 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 <span id="L263" class="LineNr"> 263 </span> <span class="subxS2Comment"># . . call</span> <span id="L264" class="LineNr"> 264 </span> e8/call <a href='hex.subx.html#L131'>convert-next-octet</a>/disp32 @@ -385,14 +385,14 @@ if ('onhashchange' in window) { <span id="L322" class="LineNr"> 322 </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="L323" class="LineNr"> 323 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> <span id="L324" class="LineNr"> 324 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L325" class="LineNr"> 325 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 +<span id="L325" class="LineNr"> 325 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 <span id="L326" class="LineNr"> 326 </span> <span class="subxS2Comment"># . . call</span> <span id="L327" class="LineNr"> 327 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L328" class="LineNr"> 328 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L329" class="LineNr"> 329 </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="L330" class="LineNr"> 330 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> <span id="L331" class="LineNr"> 331 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L332" class="LineNr"> 332 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L332" class="LineNr"> 332 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L333" class="LineNr"> 333 </span> 05/add-to-EAX 4/imm32 <span id="L334" class="LineNr"> 334 </span> 50/push-EAX <span id="L335" class="LineNr"> 335 </span> <span class="subxS2Comment"># . . call</span> @@ -415,7 +415,7 @@ if ('onhashchange' in window) { <span id="L352" class="LineNr"> 352 </span> <span class="subxComment"># EAX = convert-next-octet(_test-buffered-file, _test-error-buffered-file, ed)</span> <span id="L353" class="LineNr"> 353 </span> <span class="subxS2Comment"># . . push args</span> <span id="L354" class="LineNr"> 354 </span> 51/push-ECX/ed -<span id="L355" class="LineNr"> 355 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L355" class="LineNr"> 355 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L356" class="LineNr"> 356 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 <span id="L357" class="LineNr"> 357 </span> <span class="subxS2Comment"># . . call</span> <span id="L358" class="LineNr"> 358 </span> e8/call <a href='hex.subx.html#L131'>convert-next-octet</a>/disp32 @@ -479,14 +479,14 @@ if ('onhashchange' in window) { <span id="L416" class="LineNr"> 416 </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="L417" class="LineNr"> 417 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> <span id="L418" class="LineNr"> 418 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L419" class="LineNr"> 419 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 +<span id="L419" class="LineNr"> 419 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 <span id="L420" class="LineNr"> 420 </span> <span class="subxS2Comment"># . . call</span> <span id="L421" class="LineNr"> 421 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L422" class="LineNr"> 422 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L423" class="LineNr"> 423 </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="L424" class="LineNr"> 424 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> <span id="L425" class="LineNr"> 425 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L426" class="LineNr"> 426 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L426" class="LineNr"> 426 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L427" class="LineNr"> 427 </span> 05/add-to-EAX 4/imm32 <span id="L428" class="LineNr"> 428 </span> 50/push-EAX <span id="L429" class="LineNr"> 429 </span> <span class="subxS2Comment"># . . call</span> @@ -517,7 +517,7 @@ if ('onhashchange' in window) { <span id="L454" class="LineNr"> 454 </span> <span class="subxComment"># EAX = convert-next-octet(_test-buffered-file, _test-error-buffered-file, ed)</span> <span id="L455" class="LineNr"> 455 </span> <span class="subxS2Comment"># . . push args</span> <span id="L456" class="LineNr"> 456 </span> 51/push-ECX/ed -<span id="L457" class="LineNr"> 457 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L457" class="LineNr"> 457 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L458" class="LineNr"> 458 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 <span id="L459" class="LineNr"> 459 </span> <span class="subxS2Comment"># . . call</span> <span id="L460" class="LineNr"> 460 </span> e8/call <a href='hex.subx.html#L131'>convert-next-octet</a>/disp32 @@ -608,7 +608,7 @@ if ('onhashchange' in window) { <span id="L545" class="LineNr"> 545 </span> <span class="subxS2Comment"># . . push args</span> <span id="L546" class="LineNr"> 546 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EBP+8)</span> <span id="L547" class="LineNr"> 547 </span> <span class="subxS2Comment"># . . call</span> -<span id="L548" class="LineNr"> 548 </span> e8/call <a href='hex.subx.html#L1412'>skip-until-newline</a>/disp32 +<span id="L548" class="LineNr"> 548 </span> e8/call <a href='hex.subx.html#L1388'>skip-until-newline</a>/disp32 <span id="L549" class="LineNr"> 549 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L550" class="LineNr"> 550 </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="L551" class="LineNr"> 551 </span> eb/jump $scan-next-byte:loop/disp8 @@ -652,14 +652,14 @@ if ('onhashchange' in window) { <span id="L589" class="LineNr"> 589 </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="L590" class="LineNr"> 590 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> <span id="L591" class="LineNr"> 591 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L592" class="LineNr"> 592 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 +<span id="L592" class="LineNr"> 592 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 <span id="L593" class="LineNr"> 593 </span> <span class="subxS2Comment"># . . call</span> <span id="L594" class="LineNr"> 594 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L595" class="LineNr"> 595 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L596" class="LineNr"> 596 </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="L597" class="LineNr"> 597 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> <span id="L598" class="LineNr"> 598 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L599" class="LineNr"> 599 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L599" class="LineNr"> 599 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L600" class="LineNr"> 600 </span> 05/add-to-EAX 4/imm32 <span id="L601" class="LineNr"> 601 </span> 50/push-EAX <span id="L602" class="LineNr"> 602 </span> <span class="subxS2Comment"># . . call</span> @@ -690,7 +690,7 @@ if ('onhashchange' in window) { <span id="L627" class="LineNr"> 627 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> <span id="L628" class="LineNr"> 628 </span> <span class="subxS2Comment"># . . push args</span> <span id="L629" class="LineNr"> 629 </span> 51/push-ECX/ed -<span id="L630" class="LineNr"> 630 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L630" class="LineNr"> 630 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L631" class="LineNr"> 631 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 <span id="L632" class="LineNr"> 632 </span> <span class="subxS2Comment"># . . call</span> <span id="L633" class="LineNr"> 633 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 @@ -754,14 +754,14 @@ if ('onhashchange' in window) { <span id="L691" class="LineNr"> 691 </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="L692" class="LineNr"> 692 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> <span id="L693" class="LineNr"> 693 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L694" class="LineNr"> 694 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 +<span id="L694" class="LineNr"> 694 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 <span id="L695" class="LineNr"> 695 </span> <span class="subxS2Comment"># . . call</span> <span id="L696" class="LineNr"> 696 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L697" class="LineNr"> 697 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L698" class="LineNr"> 698 </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="L699" class="LineNr"> 699 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> <span id="L700" class="LineNr"> 700 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L701" class="LineNr"> 701 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L701" class="LineNr"> 701 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L702" class="LineNr"> 702 </span> 05/add-to-EAX 4/imm32 <span id="L703" class="LineNr"> 703 </span> 50/push-EAX <span id="L704" class="LineNr"> 704 </span> <span class="subxS2Comment"># . . call</span> @@ -792,7 +792,7 @@ if ('onhashchange' in window) { <span id="L729" class="LineNr"> 729 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> <span id="L730" class="LineNr"> 730 </span> <span class="subxS2Comment"># . . push args</span> <span id="L731" class="LineNr"> 731 </span> 51/push-ECX/ed -<span id="L732" class="LineNr"> 732 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L732" class="LineNr"> 732 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L733" class="LineNr"> 733 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 <span id="L734" class="LineNr"> 734 </span> <span class="subxS2Comment"># . . call</span> <span id="L735" class="LineNr"> 735 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 @@ -856,14 +856,14 @@ if ('onhashchange' in window) { <span id="L793" class="LineNr"> 793 </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="L794" class="LineNr"> 794 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> <span id="L795" class="LineNr"> 795 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L796" class="LineNr"> 796 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 +<span id="L796" class="LineNr"> 796 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 <span id="L797" class="LineNr"> 797 </span> <span class="subxS2Comment"># . . call</span> <span id="L798" class="LineNr"> 798 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L799" class="LineNr"> 799 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L800" class="LineNr"> 800 </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="L801" class="LineNr"> 801 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> <span id="L802" class="LineNr"> 802 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L803" class="LineNr"> 803 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 +<span id="L803" class="LineNr"> 803 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L804" class="LineNr"> 804 </span> 05/add-to-EAX 4/imm32 <span id="L805" class="LineNr"> 805 </span> 50/push-EAX <span id="L806" class="LineNr"> 806 </span> <span class="subxS2Comment"># . . call</span> @@ -873,737 +873,705 @@ if ('onhashchange' in window) { <span id="L810" class="LineNr"> 810 </span> <span class="subxComment"># initialize '_test-stream' to input with leading comment</span> <span id="L811" class="LineNr"> 811 </span> <span class="subxS1Comment"># . write(_test-stream, comment)</span> <span id="L812" class="LineNr"> 812 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L813" class="LineNr"> 813 </span> 68/push <span class="Constant">"#x"</span>/imm32 +<span id="L813" class="LineNr"> 813 </span> 68/push <span class="Constant">"#x\n"</span>/imm32 <span id="L814" class="LineNr"> 814 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 <span id="L815" class="LineNr"> 815 </span> <span class="subxS2Comment"># . . call</span> <span id="L816" class="LineNr"> 816 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 <span id="L817" class="LineNr"> 817 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L818" class="LineNr"> 818 </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="L819" class="LineNr"> 819 </span> <span class="subxS1Comment"># . write(_test-stream, Newline)</span> +<span id="L819" class="LineNr"> 819 </span> <span class="subxS1Comment"># . write(_test-stream, real text)</span> <span id="L820" class="LineNr"> 820 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L821" class="LineNr"> 821 </span> 68/push <span class="SpecialChar"><a href='../051test.subx.html#L83'>Newline</a></span>/imm32 +<span id="L821" class="LineNr"> 821 </span> 68/push <span class="Constant">"ab"</span>/imm32 <span id="L822" class="LineNr"> 822 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 <span id="L823" class="LineNr"> 823 </span> <span class="subxS2Comment"># . . call</span> <span id="L824" class="LineNr"> 824 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 <span id="L825" class="LineNr"> 825 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L826" class="LineNr"> 826 </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="L827" class="LineNr"> 827 </span> <span class="subxS1Comment"># . write(_test-stream, real text)</span> -<span id="L828" class="LineNr"> 828 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L829" class="LineNr"> 829 </span> 68/push <span class="Constant">"ab"</span>/imm32 -<span id="L830" class="LineNr"> 830 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L831" class="LineNr"> 831 </span> <span class="subxS2Comment"># . . call</span> -<span id="L832" class="LineNr"> 832 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L833" class="LineNr"> 833 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L834" class="LineNr"> 834 </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="L835" class="LineNr"> 835 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> -<span id="L836" class="LineNr"> 836 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> -<span id="L837" class="LineNr"> 837 </span> 81 5/subop/subtract 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"># subtract from ESP</span> -<span id="L838" class="LineNr"> 838 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> -<span id="L839" class="LineNr"> 839 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> +<span id="L827" class="LineNr"> 827 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> +<span id="L828" class="LineNr"> 828 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> +<span id="L829" class="LineNr"> 829 </span> 81 5/subop/subtract 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"># subtract from ESP</span> +<span id="L830" class="LineNr"> 830 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> +<span id="L831" class="LineNr"> 831 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> +<span id="L832" class="LineNr"> 832 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L833" class="LineNr"> 833 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte +<span id="L834" class="LineNr"> 834 </span> 51/push-ECX/ed +<span id="L835" class="LineNr"> 835 </span> <span class="subxS2Comment"># . . call</span> +<span id="L836" class="LineNr"> 836 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L837" class="LineNr"> 837 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L838" class="LineNr"> 838 </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="L839" class="LineNr"> 839 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> <span id="L840" class="LineNr"> 840 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L841" class="LineNr"> 841 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte -<span id="L842" class="LineNr"> 842 </span> 51/push-ECX/ed -<span id="L843" class="LineNr"> 843 </span> <span class="subxS2Comment"># . . call</span> -<span id="L844" class="LineNr"> 844 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 -<span id="L845" class="LineNr"> 845 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L846" class="LineNr"> 846 </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="L847" class="LineNr"> 847 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> -<span id="L848" class="LineNr"> 848 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L849" class="LineNr"> 849 </span> 51/push-ECX/ed -<span id="L850" class="LineNr"> 850 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L851" class="LineNr"> 851 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L852" class="LineNr"> 852 </span> <span class="subxS2Comment"># . . call</span> -<span id="L853" class="LineNr"> 853 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 -<span id="L854" class="LineNr"> 854 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> -<span id="L855" class="LineNr"> 855 </span> <span class="subxComment"># pop args to scan-next-byte</span> -<span id="L856" class="LineNr"> 856 </span> <span class="subxS2Comment"># . . discard first 2 args</span> -<span id="L857" class="LineNr"> 857 </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="L858" class="LineNr"> 858 </span> <span class="subxS2Comment"># . . restore ed</span> -<span id="L859" class="LineNr"> 859 </span> 59/pop-to-ECX -<span id="L860" class="LineNr"> 860 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> -<span id="L861" class="LineNr"> 861 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> -<span id="L862" class="LineNr"> 862 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L863" class="LineNr"> 863 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L772'>test-scan-next-byte-skips-comment</a>: unexpected abort"</span>/imm32 -<span id="L864" class="LineNr"> 864 </span> 68/push 0/imm32 -<span id="L865" class="LineNr"> 865 </span> <span class="subxS2Comment"># . . push ed->value</span> -<span id="L866" class="LineNr"> 866 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> -<span id="L867" class="LineNr"> 867 </span> <span class="subxS2Comment"># . . call</span> -<span id="L868" class="LineNr"> 868 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L869" class="LineNr"> 869 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L870" class="LineNr"> 870 </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="L871" class="LineNr"> 871 </span> <span class="subxComment"># return if abort</span> -<span id="L872" class="LineNr"> 872 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> -<span id="L873" class="LineNr"> 873 </span> 75/jump-if-not-equal $test-scan-next-byte-skips-comment:end/disp8 -<span id="L874" class="LineNr"> 874 </span> <span class="subxComment"># check-ints-equal(EAX, 0x61/a, msg)</span> -<span id="L875" class="LineNr"> 875 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L876" class="LineNr"> 876 </span> 68/push <span class="Constant">"F - test-scan-next-byte-skips-comment"</span>/imm32 -<span id="L877" class="LineNr"> 877 </span> 68/push 0x61/imm32/a -<span id="L878" class="LineNr"> 878 </span> 50/push-EAX -<span id="L879" class="LineNr"> 879 </span> <span class="subxS2Comment"># . . call</span> -<span id="L880" class="LineNr"> 880 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L881" class="LineNr"> 881 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L882" class="LineNr"> 882 </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="L883" class="LineNr"> 883 </span><span class="Constant">$test-scan-next-byte-skips-comment:end</span>: -<span id="L884" class="LineNr"> 884 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L885" class="LineNr"> 885 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> -<span id="L886" class="LineNr"> 886 </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="L887" class="LineNr"> 887 </span> 5d/pop-to-EBP -<span id="L888" class="LineNr"> 888 </span> c3/return -<span id="L889" class="LineNr"> 889 </span> -<span id="L890" class="LineNr"> 890 </span><span class="subxTest">test-scan-next-byte-skips-comment-and-whitespace</span>: -<span id="L891" class="LineNr"> 891 </span> <span class="subxH1Comment"># - check that the first byte after a comment and any further whitespace is returned</span> -<span id="L892" class="LineNr"> 892 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> -<span id="L893" class="LineNr"> 893 </span> 55/push-EBP -<span id="L894" class="LineNr"> 894 </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="L895" class="LineNr"> 895 </span> <span class="subxComment"># clear all streams</span> -<span id="L896" class="LineNr"> 896 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> -<span id="L897" class="LineNr"> 897 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L898" class="LineNr"> 898 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L899" class="LineNr"> 899 </span> <span class="subxS2Comment"># . . call</span> -<span id="L900" class="LineNr"> 900 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L901" class="LineNr"> 901 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L902" class="LineNr"> 902 </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="L903" class="LineNr"> 903 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> -<span id="L904" class="LineNr"> 904 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L905" class="LineNr"> 905 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L906" class="LineNr"> 906 </span> 05/add-to-EAX 4/imm32 -<span id="L907" class="LineNr"> 907 </span> 50/push-EAX -<span id="L908" class="LineNr"> 908 </span> <span class="subxS2Comment"># . . call</span> -<span id="L909" class="LineNr"> 909 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L910" class="LineNr"> 910 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L911" class="LineNr"> 911 </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="L912" class="LineNr"> 912 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> -<span id="L913" class="LineNr"> 913 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L914" class="LineNr"> 914 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 -<span id="L915" class="LineNr"> 915 </span> <span class="subxS2Comment"># . . call</span> -<span id="L916" class="LineNr"> 916 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L917" class="LineNr"> 917 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L918" class="LineNr"> 918 </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="L919" class="LineNr"> 919 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> -<span id="L920" class="LineNr"> 920 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L921" class="LineNr"> 921 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L922" class="LineNr"> 922 </span> 05/add-to-EAX 4/imm32 -<span id="L923" class="LineNr"> 923 </span> 50/push-EAX -<span id="L924" class="LineNr"> 924 </span> <span class="subxS2Comment"># . . call</span> -<span id="L925" class="LineNr"> 925 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L926" class="LineNr"> 926 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L927" class="LineNr"> 927 </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="L928" class="LineNr"> 928 </span> <span class="subxComment"># initialize '_test-stream' to input with leading comment and more whitespace after newline</span> -<span id="L929" class="LineNr"> 929 </span> <span class="subxS1Comment"># . write(_test-stream, comment)</span> +<span id="L841" class="LineNr"> 841 </span> 51/push-ECX/ed +<span id="L842" class="LineNr"> 842 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L843" class="LineNr"> 843 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L844" class="LineNr"> 844 </span> <span class="subxS2Comment"># . . call</span> +<span id="L845" class="LineNr"> 845 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 +<span id="L846" class="LineNr"> 846 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> +<span id="L847" class="LineNr"> 847 </span> <span class="subxComment"># pop args to scan-next-byte</span> +<span id="L848" class="LineNr"> 848 </span> <span class="subxS2Comment"># . . discard first 2 args</span> +<span id="L849" class="LineNr"> 849 </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="L850" class="LineNr"> 850 </span> <span class="subxS2Comment"># . . restore ed</span> +<span id="L851" class="LineNr"> 851 </span> 59/pop-to-ECX +<span id="L852" class="LineNr"> 852 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> +<span id="L853" class="LineNr"> 853 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> +<span id="L854" class="LineNr"> 854 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L855" class="LineNr"> 855 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L772'>test-scan-next-byte-skips-comment</a>: unexpected abort"</span>/imm32 +<span id="L856" class="LineNr"> 856 </span> 68/push 0/imm32 +<span id="L857" class="LineNr"> 857 </span> <span class="subxS2Comment"># . . push ed->value</span> +<span id="L858" class="LineNr"> 858 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> +<span id="L859" class="LineNr"> 859 </span> <span class="subxS2Comment"># . . call</span> +<span id="L860" class="LineNr"> 860 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L861" class="LineNr"> 861 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L862" class="LineNr"> 862 </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="L863" class="LineNr"> 863 </span> <span class="subxComment"># return if abort</span> +<span id="L864" class="LineNr"> 864 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> +<span id="L865" class="LineNr"> 865 </span> 75/jump-if-not-equal $test-scan-next-byte-skips-comment:end/disp8 +<span id="L866" class="LineNr"> 866 </span> <span class="subxComment"># check-ints-equal(EAX, 0x61/a, msg)</span> +<span id="L867" class="LineNr"> 867 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L868" class="LineNr"> 868 </span> 68/push <span class="Constant">"F - test-scan-next-byte-skips-comment"</span>/imm32 +<span id="L869" class="LineNr"> 869 </span> 68/push 0x61/imm32/a +<span id="L870" class="LineNr"> 870 </span> 50/push-EAX +<span id="L871" class="LineNr"> 871 </span> <span class="subxS2Comment"># . . call</span> +<span id="L872" class="LineNr"> 872 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L873" class="LineNr"> 873 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L874" class="LineNr"> 874 </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="L875" class="LineNr"> 875 </span><span class="Constant">$test-scan-next-byte-skips-comment:end</span>: +<span id="L876" class="LineNr"> 876 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L877" class="LineNr"> 877 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> +<span id="L878" class="LineNr"> 878 </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="L879" class="LineNr"> 879 </span> 5d/pop-to-EBP +<span id="L880" class="LineNr"> 880 </span> c3/return +<span id="L881" class="LineNr"> 881 </span> +<span id="L882" class="LineNr"> 882 </span><span class="subxTest">test-scan-next-byte-skips-comment-and-whitespace</span>: +<span id="L883" class="LineNr"> 883 </span> <span class="subxH1Comment"># - check that the first byte after a comment and any further whitespace is returned</span> +<span id="L884" class="LineNr"> 884 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> +<span id="L885" class="LineNr"> 885 </span> 55/push-EBP +<span id="L886" class="LineNr"> 886 </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="L887" class="LineNr"> 887 </span> <span class="subxComment"># clear all streams</span> +<span id="L888" class="LineNr"> 888 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L889" class="LineNr"> 889 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L890" class="LineNr"> 890 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L891" class="LineNr"> 891 </span> <span class="subxS2Comment"># . . call</span> +<span id="L892" class="LineNr"> 892 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L893" class="LineNr"> 893 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L894" class="LineNr"> 894 </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="L895" class="LineNr"> 895 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> +<span id="L896" class="LineNr"> 896 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L897" class="LineNr"> 897 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L898" class="LineNr"> 898 </span> 05/add-to-EAX 4/imm32 +<span id="L899" class="LineNr"> 899 </span> 50/push-EAX +<span id="L900" class="LineNr"> 900 </span> <span class="subxS2Comment"># . . call</span> +<span id="L901" class="LineNr"> 901 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L902" class="LineNr"> 902 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L903" class="LineNr"> 903 </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="L904" class="LineNr"> 904 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L905" class="LineNr"> 905 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L906" class="LineNr"> 906 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 +<span id="L907" class="LineNr"> 907 </span> <span class="subxS2Comment"># . . call</span> +<span id="L908" class="LineNr"> 908 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L909" class="LineNr"> 909 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L910" class="LineNr"> 910 </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="L911" class="LineNr"> 911 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> +<span id="L912" class="LineNr"> 912 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L913" class="LineNr"> 913 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L914" class="LineNr"> 914 </span> 05/add-to-EAX 4/imm32 +<span id="L915" class="LineNr"> 915 </span> 50/push-EAX +<span id="L916" class="LineNr"> 916 </span> <span class="subxS2Comment"># . . call</span> +<span id="L917" class="LineNr"> 917 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L918" class="LineNr"> 918 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L919" class="LineNr"> 919 </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="L920" class="LineNr"> 920 </span> <span class="subxComment"># initialize '_test-stream' to input with leading comment and more whitespace after newline</span> +<span id="L921" class="LineNr"> 921 </span> <span class="subxS1Comment"># . write(_test-stream, comment)</span> +<span id="L922" class="LineNr"> 922 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L923" class="LineNr"> 923 </span> 68/push <span class="Constant">"#x\n"</span>/imm32 +<span id="L924" class="LineNr"> 924 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L925" class="LineNr"> 925 </span> <span class="subxS2Comment"># . . call</span> +<span id="L926" class="LineNr"> 926 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 +<span id="L927" class="LineNr"> 927 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L928" class="LineNr"> 928 </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="L929" class="LineNr"> 929 </span> <span class="subxS1Comment"># . write(_test-stream, real text)</span> <span id="L930" class="LineNr"> 930 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L931" class="LineNr"> 931 </span> 68/push <span class="Constant">"#x"</span>/imm32 +<span id="L931" class="LineNr"> 931 </span> 68/push <span class="Constant">" ab"</span>/imm32 <span id="L932" class="LineNr"> 932 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 <span id="L933" class="LineNr"> 933 </span> <span class="subxS2Comment"># . . call</span> <span id="L934" class="LineNr"> 934 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 <span id="L935" class="LineNr"> 935 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L936" class="LineNr"> 936 </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="L937" class="LineNr"> 937 </span> <span class="subxS1Comment"># . write(_test-stream, Newline)</span> -<span id="L938" class="LineNr"> 938 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L939" class="LineNr"> 939 </span> 68/push <span class="SpecialChar"><a href='../051test.subx.html#L83'>Newline</a></span>/imm32 -<span id="L940" class="LineNr"> 940 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L941" class="LineNr"> 941 </span> <span class="subxS2Comment"># . . call</span> -<span id="L942" class="LineNr"> 942 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L943" class="LineNr"> 943 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L944" class="LineNr"> 944 </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="L945" class="LineNr"> 945 </span> <span class="subxS1Comment"># . write(_test-stream, real text)</span> -<span id="L946" class="LineNr"> 946 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L947" class="LineNr"> 947 </span> 68/push <span class="Constant">" ab"</span>/imm32 -<span id="L948" class="LineNr"> 948 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L949" class="LineNr"> 949 </span> <span class="subxS2Comment"># . . call</span> -<span id="L950" class="LineNr"> 950 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L951" class="LineNr"> 951 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L952" class="LineNr"> 952 </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="L953" class="LineNr"> 953 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> -<span id="L954" class="LineNr"> 954 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> -<span id="L955" class="LineNr"> 955 </span> 81 5/subop/subtract 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"># subtract from ESP</span> -<span id="L956" class="LineNr"> 956 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> -<span id="L957" class="LineNr"> 957 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> -<span id="L958" class="LineNr"> 958 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L959" class="LineNr"> 959 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte -<span id="L960" class="LineNr"> 960 </span> 51/push-ECX/ed -<span id="L961" class="LineNr"> 961 </span> <span class="subxS2Comment"># . . call</span> -<span id="L962" class="LineNr"> 962 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 -<span id="L963" class="LineNr"> 963 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L964" class="LineNr"> 964 </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="L965" class="LineNr"> 965 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> -<span id="L966" class="LineNr"> 966 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L967" class="LineNr"> 967 </span> 51/push-ECX/ed -<span id="L968" class="LineNr"> 968 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L969" class="LineNr"> 969 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L970" class="LineNr"> 970 </span> <span class="subxS2Comment"># . . call</span> -<span id="L971" class="LineNr"> 971 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 -<span id="L972" class="LineNr"> 972 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> -<span id="L973" class="LineNr"> 973 </span> <span class="subxComment"># pop args to scan-next-byte</span> -<span id="L974" class="LineNr"> 974 </span> <span class="subxS2Comment"># . . discard first 2 args</span> -<span id="L975" class="LineNr"> 975 </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="L976" class="LineNr"> 976 </span> <span class="subxS2Comment"># . . restore ed</span> -<span id="L977" class="LineNr"> 977 </span> 59/pop-to-ECX -<span id="L978" class="LineNr"> 978 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> -<span id="L979" class="LineNr"> 979 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> -<span id="L980" class="LineNr"> 980 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L981" class="LineNr"> 981 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L890'>test-scan-next-byte-skips-comment-and-whitespace</a>: unexpected abort"</span>/imm32 -<span id="L982" class="LineNr"> 982 </span> 68/push 0/imm32 -<span id="L983" class="LineNr"> 983 </span> <span class="subxS2Comment"># . . push ed->value</span> -<span id="L984" class="LineNr"> 984 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> -<span id="L985" class="LineNr"> 985 </span> <span class="subxS2Comment"># . . call</span> -<span id="L986" class="LineNr"> 986 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L987" class="LineNr"> 987 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L988" class="LineNr"> 988 </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="L989" class="LineNr"> 989 </span> <span class="subxComment"># return if abort</span> -<span id="L990" class="LineNr"> 990 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> -<span id="L991" class="LineNr"> 991 </span> 75/jump-if-not-equal $test-scan-next-byte-skips-comment-and-whitespace:end/disp8 -<span id="L992" class="LineNr"> 992 </span> <span class="subxComment"># check-ints-equal(EAX, 0x61/a, msg)</span> -<span id="L993" class="LineNr"> 993 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L994" class="LineNr"> 994 </span> 68/push <span class="Constant">"F - test-scan-next-byte-skips-comment-and-whitespace"</span>/imm32 -<span id="L995" class="LineNr"> 995 </span> 68/push 0x61/imm32/a -<span id="L996" class="LineNr"> 996 </span> 50/push-EAX -<span id="L997" class="LineNr"> 997 </span> <span class="subxS2Comment"># . . call</span> -<span id="L998" class="LineNr"> 998 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L999" class="LineNr"> 999 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1000" class="LineNr">1000 </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="L1001" class="LineNr">1001 </span><span class="Constant">$test-scan-next-byte-skips-comment-and-whitespace:end</span>: -<span id="L1002" class="LineNr">1002 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L1003" class="LineNr">1003 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> -<span id="L1004" class="LineNr">1004 </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="L1005" class="LineNr">1005 </span> 5d/pop-to-EBP -<span id="L1006" class="LineNr">1006 </span> c3/return -<span id="L1007" class="LineNr">1007 </span> -<span id="L1008" class="LineNr">1008 </span><span class="subxTest">test-scan-next-byte-skips-whitespace-and-comment</span>: -<span id="L1009" class="LineNr">1009 </span> <span class="subxH1Comment"># - check that the first byte after any whitespace and comments is returned</span> -<span id="L1010" class="LineNr">1010 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> -<span id="L1011" class="LineNr">1011 </span> 55/push-EBP -<span id="L1012" class="LineNr">1012 </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="L1013" class="LineNr">1013 </span> <span class="subxComment"># clear all streams</span> -<span id="L1014" class="LineNr">1014 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L937" class="LineNr"> 937 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> +<span id="L938" class="LineNr"> 938 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> +<span id="L939" class="LineNr"> 939 </span> 81 5/subop/subtract 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"># subtract from ESP</span> +<span id="L940" class="LineNr"> 940 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> +<span id="L941" class="LineNr"> 941 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> +<span id="L942" class="LineNr"> 942 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L943" class="LineNr"> 943 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte +<span id="L944" class="LineNr"> 944 </span> 51/push-ECX/ed +<span id="L945" class="LineNr"> 945 </span> <span class="subxS2Comment"># . . call</span> +<span id="L946" class="LineNr"> 946 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L947" class="LineNr"> 947 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L948" class="LineNr"> 948 </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="L949" class="LineNr"> 949 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> +<span id="L950" class="LineNr"> 950 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L951" class="LineNr"> 951 </span> 51/push-ECX/ed +<span id="L952" class="LineNr"> 952 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L953" class="LineNr"> 953 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L954" class="LineNr"> 954 </span> <span class="subxS2Comment"># . . call</span> +<span id="L955" class="LineNr"> 955 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 +<span id="L956" class="LineNr"> 956 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> +<span id="L957" class="LineNr"> 957 </span> <span class="subxComment"># pop args to scan-next-byte</span> +<span id="L958" class="LineNr"> 958 </span> <span class="subxS2Comment"># . . discard first 2 args</span> +<span id="L959" class="LineNr"> 959 </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="L960" class="LineNr"> 960 </span> <span class="subxS2Comment"># . . restore ed</span> +<span id="L961" class="LineNr"> 961 </span> 59/pop-to-ECX +<span id="L962" class="LineNr"> 962 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> +<span id="L963" class="LineNr"> 963 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> +<span id="L964" class="LineNr"> 964 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L965" class="LineNr"> 965 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L882'>test-scan-next-byte-skips-comment-and-whitespace</a>: unexpected abort"</span>/imm32 +<span id="L966" class="LineNr"> 966 </span> 68/push 0/imm32 +<span id="L967" class="LineNr"> 967 </span> <span class="subxS2Comment"># . . push ed->value</span> +<span id="L968" class="LineNr"> 968 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> +<span id="L969" class="LineNr"> 969 </span> <span class="subxS2Comment"># . . call</span> +<span id="L970" class="LineNr"> 970 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L971" class="LineNr"> 971 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L972" class="LineNr"> 972 </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="L973" class="LineNr"> 973 </span> <span class="subxComment"># return if abort</span> +<span id="L974" class="LineNr"> 974 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> +<span id="L975" class="LineNr"> 975 </span> 75/jump-if-not-equal $test-scan-next-byte-skips-comment-and-whitespace:end/disp8 +<span id="L976" class="LineNr"> 976 </span> <span class="subxComment"># check-ints-equal(EAX, 0x61/a, msg)</span> +<span id="L977" class="LineNr"> 977 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L978" class="LineNr"> 978 </span> 68/push <span class="Constant">"F - test-scan-next-byte-skips-comment-and-whitespace"</span>/imm32 +<span id="L979" class="LineNr"> 979 </span> 68/push 0x61/imm32/a +<span id="L980" class="LineNr"> 980 </span> 50/push-EAX +<span id="L981" class="LineNr"> 981 </span> <span class="subxS2Comment"># . . call</span> +<span id="L982" class="LineNr"> 982 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L983" class="LineNr"> 983 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L984" class="LineNr"> 984 </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="L985" class="LineNr"> 985 </span><span class="Constant">$test-scan-next-byte-skips-comment-and-whitespace:end</span>: +<span id="L986" class="LineNr"> 986 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L987" class="LineNr"> 987 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> +<span id="L988" class="LineNr"> 988 </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="L989" class="LineNr"> 989 </span> 5d/pop-to-EBP +<span id="L990" class="LineNr"> 990 </span> c3/return +<span id="L991" class="LineNr"> 991 </span> +<span id="L992" class="LineNr"> 992 </span><span class="subxTest">test-scan-next-byte-skips-whitespace-and-comment</span>: +<span id="L993" class="LineNr"> 993 </span> <span class="subxH1Comment"># - check that the first byte after any whitespace and comments is returned</span> +<span id="L994" class="LineNr"> 994 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> +<span id="L995" class="LineNr"> 995 </span> 55/push-EBP +<span id="L996" class="LineNr"> 996 </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="L997" class="LineNr"> 997 </span> <span class="subxComment"># clear all streams</span> +<span id="L998" class="LineNr"> 998 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L999" class="LineNr"> 999 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1000" class="LineNr">1000 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1001" class="LineNr">1001 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1002" class="LineNr">1002 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1003" class="LineNr">1003 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1004" class="LineNr">1004 </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="L1005" class="LineNr">1005 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> +<span id="L1006" class="LineNr">1006 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1007" class="LineNr">1007 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1008" class="LineNr">1008 </span> 05/add-to-EAX 4/imm32 +<span id="L1009" class="LineNr">1009 </span> 50/push-EAX +<span id="L1010" class="LineNr">1010 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1011" class="LineNr">1011 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1012" class="LineNr">1012 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1013" class="LineNr">1013 </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="L1014" class="LineNr">1014 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> <span id="L1015" class="LineNr">1015 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1016" class="LineNr">1016 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1016" class="LineNr">1016 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 <span id="L1017" class="LineNr">1017 </span> <span class="subxS2Comment"># . . call</span> <span id="L1018" class="LineNr">1018 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L1019" class="LineNr">1019 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1020" class="LineNr">1020 </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="L1021" class="LineNr">1021 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> +<span id="L1021" class="LineNr">1021 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> <span id="L1022" class="LineNr">1022 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1023" class="LineNr">1023 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1023" class="LineNr">1023 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 <span id="L1024" class="LineNr">1024 </span> 05/add-to-EAX 4/imm32 <span id="L1025" class="LineNr">1025 </span> 50/push-EAX <span id="L1026" class="LineNr">1026 </span> <span class="subxS2Comment"># . . call</span> <span id="L1027" class="LineNr">1027 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L1028" class="LineNr">1028 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1029" class="LineNr">1029 </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="L1030" class="LineNr">1030 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> -<span id="L1031" class="LineNr">1031 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1032" class="LineNr">1032 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 -<span id="L1033" class="LineNr">1033 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1034" class="LineNr">1034 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1035" class="LineNr">1035 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1036" class="LineNr">1036 </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="L1037" class="LineNr">1037 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> -<span id="L1038" class="LineNr">1038 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1039" class="LineNr">1039 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L1040" class="LineNr">1040 </span> 05/add-to-EAX 4/imm32 -<span id="L1041" class="LineNr">1041 </span> 50/push-EAX -<span id="L1042" class="LineNr">1042 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1043" class="LineNr">1043 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1044" class="LineNr">1044 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1045" class="LineNr">1045 </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="L1046" class="LineNr">1046 </span> <span class="subxComment"># initialize '_test-stream' to input with leading whitespace and comment</span> -<span id="L1047" class="LineNr">1047 </span> <span class="subxS1Comment"># . write(_test-stream, comment)</span> -<span id="L1048" class="LineNr">1048 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1049" class="LineNr">1049 </span> 68/push <span class="Constant">" #x"</span>/imm32 -<span id="L1050" class="LineNr">1050 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1051" class="LineNr">1051 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1052" class="LineNr">1052 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L1053" class="LineNr">1053 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1054" class="LineNr">1054 </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="L1055" class="LineNr">1055 </span> <span class="subxS1Comment"># . write(_test-stream, Newline)</span> -<span id="L1056" class="LineNr">1056 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1057" class="LineNr">1057 </span> 68/push <span class="SpecialChar"><a href='../051test.subx.html#L83'>Newline</a></span>/imm32 -<span id="L1058" class="LineNr">1058 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1059" class="LineNr">1059 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1060" class="LineNr">1060 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L1061" class="LineNr">1061 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1062" class="LineNr">1062 </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="L1063" class="LineNr">1063 </span> <span class="subxS1Comment"># . write(_test-stream, real text)</span> -<span id="L1064" class="LineNr">1064 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1065" class="LineNr">1065 </span> 68/push <span class="Constant">"ab"</span>/imm32 -<span id="L1066" class="LineNr">1066 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1067" class="LineNr">1067 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1068" class="LineNr">1068 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L1069" class="LineNr">1069 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1070" class="LineNr">1070 </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="L1071" class="LineNr">1071 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> -<span id="L1072" class="LineNr">1072 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> -<span id="L1073" class="LineNr">1073 </span> 81 5/subop/subtract 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"># subtract from ESP</span> -<span id="L1074" class="LineNr">1074 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> -<span id="L1075" class="LineNr">1075 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> -<span id="L1076" class="LineNr">1076 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1077" class="LineNr">1077 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte -<span id="L1078" class="LineNr">1078 </span> 51/push-ECX/ed +<span id="L1030" class="LineNr">1030 </span> <span class="subxComment"># initialize '_test-stream' to input with leading whitespace and comment</span> +<span id="L1031" class="LineNr">1031 </span> <span class="subxS1Comment"># . write(_test-stream, comment)</span> +<span id="L1032" class="LineNr">1032 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1033" class="LineNr">1033 </span> 68/push <span class="Constant">" #x\n"</span>/imm32 +<span id="L1034" class="LineNr">1034 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1035" class="LineNr">1035 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1036" class="LineNr">1036 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 +<span id="L1037" class="LineNr">1037 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1038" class="LineNr">1038 </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="L1039" class="LineNr">1039 </span> <span class="subxS1Comment"># . write(_test-stream, real text)</span> +<span id="L1040" class="LineNr">1040 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1041" class="LineNr">1041 </span> 68/push <span class="Constant">"ab"</span>/imm32 +<span id="L1042" class="LineNr">1042 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1043" class="LineNr">1043 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1044" class="LineNr">1044 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 +<span id="L1045" class="LineNr">1045 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1046" class="LineNr">1046 </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="L1047" class="LineNr">1047 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> +<span id="L1048" class="LineNr">1048 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> +<span id="L1049" class="LineNr">1049 </span> 81 5/subop/subtract 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"># subtract from ESP</span> +<span id="L1050" class="LineNr">1050 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> +<span id="L1051" class="LineNr">1051 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> +<span id="L1052" class="LineNr">1052 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1053" class="LineNr">1053 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte +<span id="L1054" class="LineNr">1054 </span> 51/push-ECX/ed +<span id="L1055" class="LineNr">1055 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1056" class="LineNr">1056 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L1057" class="LineNr">1057 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1058" class="LineNr">1058 </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="L1059" class="LineNr">1059 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> +<span id="L1060" class="LineNr">1060 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1061" class="LineNr">1061 </span> 51/push-ECX/ed +<span id="L1062" class="LineNr">1062 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L1063" class="LineNr">1063 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1064" class="LineNr">1064 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1065" class="LineNr">1065 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 +<span id="L1066" class="LineNr">1066 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> +<span id="L1067" class="LineNr">1067 </span> <span class="subxComment"># pop args to scan-next-byte</span> +<span id="L1068" class="LineNr">1068 </span> <span class="subxS2Comment"># . . discard first 2 args</span> +<span id="L1069" class="LineNr">1069 </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="L1070" class="LineNr">1070 </span> <span class="subxS2Comment"># . . restore ed</span> +<span id="L1071" class="LineNr">1071 </span> 59/pop-to-ECX +<span id="L1072" class="LineNr">1072 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> +<span id="L1073" class="LineNr">1073 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> +<span id="L1074" class="LineNr">1074 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1075" class="LineNr">1075 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L992'>test-scan-next-byte-skips-whitespace-and-comment</a>: unexpected abort"</span>/imm32 +<span id="L1076" class="LineNr">1076 </span> 68/push 0/imm32 +<span id="L1077" class="LineNr">1077 </span> <span class="subxS2Comment"># . . push ed->value</span> +<span id="L1078" class="LineNr">1078 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> <span id="L1079" class="LineNr">1079 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1080" class="LineNr">1080 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L1080" class="LineNr">1080 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 <span id="L1081" class="LineNr">1081 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1082" class="LineNr">1082 </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="L1083" class="LineNr">1083 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> -<span id="L1084" class="LineNr">1084 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1085" class="LineNr">1085 </span> 51/push-ECX/ed -<span id="L1086" class="LineNr">1086 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L1087" class="LineNr">1087 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1088" class="LineNr">1088 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1089" class="LineNr">1089 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 -<span id="L1090" class="LineNr">1090 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> -<span id="L1091" class="LineNr">1091 </span> <span class="subxComment"># pop args to scan-next-byte</span> -<span id="L1092" class="LineNr">1092 </span> <span class="subxS2Comment"># . . discard first 2 args</span> -<span id="L1093" class="LineNr">1093 </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="L1094" class="LineNr">1094 </span> <span class="subxS2Comment"># . . restore ed</span> -<span id="L1095" class="LineNr">1095 </span> 59/pop-to-ECX -<span id="L1096" class="LineNr">1096 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> -<span id="L1097" class="LineNr">1097 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> -<span id="L1098" class="LineNr">1098 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1099" class="LineNr">1099 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L1008'>test-scan-next-byte-skips-whitespace-and-comment</a>: unexpected abort"</span>/imm32 -<span id="L1100" class="LineNr">1100 </span> 68/push 0/imm32 -<span id="L1101" class="LineNr">1101 </span> <span class="subxS2Comment"># . . push ed->value</span> -<span id="L1102" class="LineNr">1102 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> -<span id="L1103" class="LineNr">1103 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1104" class="LineNr">1104 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L1105" class="LineNr">1105 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1106" class="LineNr">1106 </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="L1107" class="LineNr">1107 </span> <span class="subxComment"># return if abort</span> -<span id="L1108" class="LineNr">1108 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> -<span id="L1109" class="LineNr">1109 </span> 75/jump-if-not-equal $test-scan-next-byte-skips-whitespace-and-comment:end/disp8 -<span id="L1110" class="LineNr">1110 </span> <span class="subxComment"># check-ints-equal(EAX, 0x61/a, msg)</span> -<span id="L1111" class="LineNr">1111 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1112" class="LineNr">1112 </span> 68/push <span class="Constant">"F - test-scan-next-byte-skips-whitespace-and-comment"</span>/imm32 -<span id="L1113" class="LineNr">1113 </span> 68/push 0x61/imm32/a -<span id="L1114" class="LineNr">1114 </span> 50/push-EAX -<span id="L1115" class="LineNr">1115 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1116" class="LineNr">1116 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L1117" class="LineNr">1117 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1118" class="LineNr">1118 </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="L1119" class="LineNr">1119 </span><span class="Constant">$test-scan-next-byte-skips-whitespace-and-comment:end</span>: -<span id="L1120" class="LineNr">1120 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L1121" class="LineNr">1121 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> -<span id="L1122" class="LineNr">1122 </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="L1123" class="LineNr">1123 </span> 5d/pop-to-EBP -<span id="L1124" class="LineNr">1124 </span> c3/return -<span id="L1125" class="LineNr">1125 </span> -<span id="L1126" class="LineNr">1126 </span><span class="subxTest">test-scan-next-byte-reads-final-byte</span>: -<span id="L1127" class="LineNr">1127 </span> <span class="subxH1Comment"># - check that the final byte in input is returned</span> -<span id="L1128" class="LineNr">1128 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> -<span id="L1129" class="LineNr">1129 </span> 55/push-EBP -<span id="L1130" class="LineNr">1130 </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="L1131" class="LineNr">1131 </span> <span class="subxComment"># clear all streams</span> -<span id="L1132" class="LineNr">1132 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> -<span id="L1133" class="LineNr">1133 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1134" class="LineNr">1134 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1135" class="LineNr">1135 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1136" class="LineNr">1136 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1137" class="LineNr">1137 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1138" class="LineNr">1138 </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="L1139" class="LineNr">1139 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> -<span id="L1140" class="LineNr">1140 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1141" class="LineNr">1141 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1142" class="LineNr">1142 </span> 05/add-to-EAX 4/imm32 -<span id="L1143" class="LineNr">1143 </span> 50/push-EAX -<span id="L1144" class="LineNr">1144 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1145" class="LineNr">1145 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1146" class="LineNr">1146 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1147" class="LineNr">1147 </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="L1148" class="LineNr">1148 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> -<span id="L1149" class="LineNr">1149 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1150" class="LineNr">1150 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 -<span id="L1151" class="LineNr">1151 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1152" class="LineNr">1152 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1153" class="LineNr">1153 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1154" class="LineNr">1154 </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="L1155" class="LineNr">1155 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> -<span id="L1156" class="LineNr">1156 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1157" class="LineNr">1157 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L1158" class="LineNr">1158 </span> 05/add-to-EAX 4/imm32 -<span id="L1159" class="LineNr">1159 </span> 50/push-EAX -<span id="L1160" class="LineNr">1160 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1161" class="LineNr">1161 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1162" class="LineNr">1162 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1163" class="LineNr">1163 </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="L1164" class="LineNr">1164 </span> <span class="subxComment"># initialize '_test-stream' to input with single character</span> -<span id="L1165" class="LineNr">1165 </span> <span class="subxS1Comment"># . write(_test-stream, character)</span> -<span id="L1166" class="LineNr">1166 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1167" class="LineNr">1167 </span> 68/push <span class="Constant">"a"</span>/imm32 -<span id="L1168" class="LineNr">1168 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1169" class="LineNr">1169 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1170" class="LineNr">1170 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L1171" class="LineNr">1171 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1172" class="LineNr">1172 </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="L1173" class="LineNr">1173 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> -<span id="L1174" class="LineNr">1174 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> -<span id="L1175" class="LineNr">1175 </span> 81 5/subop/subtract 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"># subtract from ESP</span> -<span id="L1176" class="LineNr">1176 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> -<span id="L1177" class="LineNr">1177 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> -<span id="L1178" class="LineNr">1178 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1179" class="LineNr">1179 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte -<span id="L1180" class="LineNr">1180 </span> 51/push-ECX/ed +<span id="L1082" class="LineNr">1082 </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="L1083" class="LineNr">1083 </span> <span class="subxComment"># return if abort</span> +<span id="L1084" class="LineNr">1084 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> +<span id="L1085" class="LineNr">1085 </span> 75/jump-if-not-equal $test-scan-next-byte-skips-whitespace-and-comment:end/disp8 +<span id="L1086" class="LineNr">1086 </span> <span class="subxComment"># check-ints-equal(EAX, 0x61/a, msg)</span> +<span id="L1087" class="LineNr">1087 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1088" class="LineNr">1088 </span> 68/push <span class="Constant">"F - test-scan-next-byte-skips-whitespace-and-comment"</span>/imm32 +<span id="L1089" class="LineNr">1089 </span> 68/push 0x61/imm32/a +<span id="L1090" class="LineNr">1090 </span> 50/push-EAX +<span id="L1091" class="LineNr">1091 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1092" class="LineNr">1092 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L1093" class="LineNr">1093 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1094" class="LineNr">1094 </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="L1095" class="LineNr">1095 </span><span class="Constant">$test-scan-next-byte-skips-whitespace-and-comment:end</span>: +<span id="L1096" class="LineNr">1096 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L1097" class="LineNr">1097 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> +<span id="L1098" class="LineNr">1098 </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="L1099" class="LineNr">1099 </span> 5d/pop-to-EBP +<span id="L1100" class="LineNr">1100 </span> c3/return +<span id="L1101" class="LineNr">1101 </span> +<span id="L1102" class="LineNr">1102 </span><span class="subxTest">test-scan-next-byte-reads-final-byte</span>: +<span id="L1103" class="LineNr">1103 </span> <span class="subxH1Comment"># - check that the final byte in input is returned</span> +<span id="L1104" class="LineNr">1104 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> +<span id="L1105" class="LineNr">1105 </span> 55/push-EBP +<span id="L1106" class="LineNr">1106 </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="L1107" class="LineNr">1107 </span> <span class="subxComment"># clear all streams</span> +<span id="L1108" class="LineNr">1108 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L1109" class="LineNr">1109 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1110" class="LineNr">1110 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1111" class="LineNr">1111 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1112" class="LineNr">1112 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1113" class="LineNr">1113 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1114" class="LineNr">1114 </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="L1115" class="LineNr">1115 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> +<span id="L1116" class="LineNr">1116 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1117" class="LineNr">1117 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1118" class="LineNr">1118 </span> 05/add-to-EAX 4/imm32 +<span id="L1119" class="LineNr">1119 </span> 50/push-EAX +<span id="L1120" class="LineNr">1120 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1121" class="LineNr">1121 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1122" class="LineNr">1122 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1123" class="LineNr">1123 </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="L1124" class="LineNr">1124 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L1125" class="LineNr">1125 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1126" class="LineNr">1126 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 +<span id="L1127" class="LineNr">1127 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1128" class="LineNr">1128 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1129" class="LineNr">1129 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1130" class="LineNr">1130 </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="L1131" class="LineNr">1131 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> +<span id="L1132" class="LineNr">1132 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1133" class="LineNr">1133 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L1134" class="LineNr">1134 </span> 05/add-to-EAX 4/imm32 +<span id="L1135" class="LineNr">1135 </span> 50/push-EAX +<span id="L1136" class="LineNr">1136 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1137" class="LineNr">1137 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1138" class="LineNr">1138 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1139" class="LineNr">1139 </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="L1140" class="LineNr">1140 </span> <span class="subxComment"># initialize '_test-stream' to input with single character</span> +<span id="L1141" class="LineNr">1141 </span> <span class="subxS1Comment"># . write(_test-stream, character)</span> +<span id="L1142" class="LineNr">1142 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1143" class="LineNr">1143 </span> 68/push <span class="Constant">"a"</span>/imm32 +<span id="L1144" class="LineNr">1144 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1145" class="LineNr">1145 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1146" class="LineNr">1146 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 +<span id="L1147" class="LineNr">1147 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1148" class="LineNr">1148 </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="L1149" class="LineNr">1149 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> +<span id="L1150" class="LineNr">1150 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> +<span id="L1151" class="LineNr">1151 </span> 81 5/subop/subtract 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"># subtract from ESP</span> +<span id="L1152" class="LineNr">1152 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> +<span id="L1153" class="LineNr">1153 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> +<span id="L1154" class="LineNr">1154 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1155" class="LineNr">1155 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte +<span id="L1156" class="LineNr">1156 </span> 51/push-ECX/ed +<span id="L1157" class="LineNr">1157 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1158" class="LineNr">1158 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L1159" class="LineNr">1159 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1160" class="LineNr">1160 </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="L1161" class="LineNr">1161 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> +<span id="L1162" class="LineNr">1162 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1163" class="LineNr">1163 </span> 51/push-ECX/ed +<span id="L1164" class="LineNr">1164 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L1165" class="LineNr">1165 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1166" class="LineNr">1166 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1167" class="LineNr">1167 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 +<span id="L1168" class="LineNr">1168 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> +<span id="L1169" class="LineNr">1169 </span> <span class="subxComment"># pop args to scan-next-byte</span> +<span id="L1170" class="LineNr">1170 </span> <span class="subxS2Comment"># . . discard first 2 args</span> +<span id="L1171" class="LineNr">1171 </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="L1172" class="LineNr">1172 </span> <span class="subxS2Comment"># . . restore ed</span> +<span id="L1173" class="LineNr">1173 </span> 59/pop-to-ECX +<span id="L1174" class="LineNr">1174 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> +<span id="L1175" class="LineNr">1175 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> +<span id="L1176" class="LineNr">1176 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1177" class="LineNr">1177 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L1102'>test-scan-next-byte-reads-final-byte</a>: unexpected abort"</span>/imm32 +<span id="L1178" class="LineNr">1178 </span> 68/push 0/imm32 +<span id="L1179" class="LineNr">1179 </span> <span class="subxS2Comment"># . . push ed->value</span> +<span id="L1180" class="LineNr">1180 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> <span id="L1181" class="LineNr">1181 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1182" class="LineNr">1182 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L1182" class="LineNr">1182 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 <span id="L1183" class="LineNr">1183 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1184" class="LineNr">1184 </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="L1185" class="LineNr">1185 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> -<span id="L1186" class="LineNr">1186 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1187" class="LineNr">1187 </span> 51/push-ECX/ed -<span id="L1188" class="LineNr">1188 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L1189" class="LineNr">1189 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1190" class="LineNr">1190 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1191" class="LineNr">1191 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 -<span id="L1192" class="LineNr">1192 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> -<span id="L1193" class="LineNr">1193 </span> <span class="subxComment"># pop args to scan-next-byte</span> -<span id="L1194" class="LineNr">1194 </span> <span class="subxS2Comment"># . . discard first 2 args</span> -<span id="L1195" class="LineNr">1195 </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="L1196" class="LineNr">1196 </span> <span class="subxS2Comment"># . . restore ed</span> -<span id="L1197" class="LineNr">1197 </span> 59/pop-to-ECX -<span id="L1198" class="LineNr">1198 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> -<span id="L1199" class="LineNr">1199 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> -<span id="L1200" class="LineNr">1200 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1201" class="LineNr">1201 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L1126'>test-scan-next-byte-reads-final-byte</a>: unexpected abort"</span>/imm32 -<span id="L1202" class="LineNr">1202 </span> 68/push 0/imm32 -<span id="L1203" class="LineNr">1203 </span> <span class="subxS2Comment"># . . push ed->value</span> -<span id="L1204" class="LineNr">1204 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> -<span id="L1205" class="LineNr">1205 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1206" class="LineNr">1206 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L1207" class="LineNr">1207 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1208" class="LineNr">1208 </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="L1209" class="LineNr">1209 </span> <span class="subxComment"># return if abort</span> -<span id="L1210" class="LineNr">1210 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> -<span id="L1211" class="LineNr">1211 </span> 75/jump-if-not-equal $test-scan-next-byte-reads-final-byte:end/disp8 -<span id="L1212" class="LineNr">1212 </span> <span class="subxComment"># check-ints-equal(EAX, 0x61/a, msg)</span> -<span id="L1213" class="LineNr">1213 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1214" class="LineNr">1214 </span> 68/push <span class="Constant">"F - test-scan-next-byte-reads-final-byte"</span>/imm32 -<span id="L1215" class="LineNr">1215 </span> 68/push 0x61/imm32/a -<span id="L1216" class="LineNr">1216 </span> 50/push-EAX -<span id="L1217" class="LineNr">1217 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1218" class="LineNr">1218 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L1219" class="LineNr">1219 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1220" class="LineNr">1220 </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="L1221" class="LineNr">1221 </span><span class="Constant">$test-scan-next-byte-reads-final-byte:end</span>: -<span id="L1222" class="LineNr">1222 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L1223" class="LineNr">1223 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> -<span id="L1224" class="LineNr">1224 </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="L1225" class="LineNr">1225 </span> 5d/pop-to-EBP -<span id="L1226" class="LineNr">1226 </span> c3/return -<span id="L1227" class="LineNr">1227 </span> -<span id="L1228" class="LineNr">1228 </span><span class="subxTest">test-scan-next-byte-handles-Eof</span>: -<span id="L1229" class="LineNr">1229 </span> <span class="subxH1Comment"># - check that the right sentinel value is returned when there's no data remaining to be read</span> -<span id="L1230" class="LineNr">1230 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> -<span id="L1231" class="LineNr">1231 </span> 55/push-EBP -<span id="L1232" class="LineNr">1232 </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="L1233" class="LineNr">1233 </span> <span class="subxComment"># clear all streams</span> -<span id="L1234" class="LineNr">1234 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> -<span id="L1235" class="LineNr">1235 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1236" class="LineNr">1236 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1237" class="LineNr">1237 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1238" class="LineNr">1238 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1239" class="LineNr">1239 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1240" class="LineNr">1240 </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="L1241" class="LineNr">1241 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> -<span id="L1242" class="LineNr">1242 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1243" class="LineNr">1243 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1244" class="LineNr">1244 </span> 05/add-to-EAX 4/imm32 -<span id="L1245" class="LineNr">1245 </span> 50/push-EAX -<span id="L1246" class="LineNr">1246 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1247" class="LineNr">1247 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1248" class="LineNr">1248 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1249" class="LineNr">1249 </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="L1250" class="LineNr">1250 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> -<span id="L1251" class="LineNr">1251 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1252" class="LineNr">1252 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 -<span id="L1253" class="LineNr">1253 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1254" class="LineNr">1254 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1255" class="LineNr">1255 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1256" class="LineNr">1256 </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="L1257" class="LineNr">1257 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> -<span id="L1258" class="LineNr">1258 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1259" class="LineNr">1259 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L1260" class="LineNr">1260 </span> 05/add-to-EAX 4/imm32 -<span id="L1261" class="LineNr">1261 </span> 50/push-EAX -<span id="L1262" class="LineNr">1262 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1263" class="LineNr">1263 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1264" class="LineNr">1264 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1265" class="LineNr">1265 </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="L1266" class="LineNr">1266 </span> <span class="subxComment"># leave '_test-stream' empty</span> -<span id="L1267" class="LineNr">1267 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> -<span id="L1268" class="LineNr">1268 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> -<span id="L1269" class="LineNr">1269 </span> 81 5/subop/subtract 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"># subtract from ESP</span> -<span id="L1270" class="LineNr">1270 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> -<span id="L1271" class="LineNr">1271 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> -<span id="L1272" class="LineNr">1272 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1273" class="LineNr">1273 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte -<span id="L1274" class="LineNr">1274 </span> 51/push-ECX/ed +<span id="L1184" class="LineNr">1184 </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="L1185" class="LineNr">1185 </span> <span class="subxComment"># return if abort</span> +<span id="L1186" class="LineNr">1186 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> +<span id="L1187" class="LineNr">1187 </span> 75/jump-if-not-equal $test-scan-next-byte-reads-final-byte:end/disp8 +<span id="L1188" class="LineNr">1188 </span> <span class="subxComment"># check-ints-equal(EAX, 0x61/a, msg)</span> +<span id="L1189" class="LineNr">1189 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1190" class="LineNr">1190 </span> 68/push <span class="Constant">"F - test-scan-next-byte-reads-final-byte"</span>/imm32 +<span id="L1191" class="LineNr">1191 </span> 68/push 0x61/imm32/a +<span id="L1192" class="LineNr">1192 </span> 50/push-EAX +<span id="L1193" class="LineNr">1193 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1194" class="LineNr">1194 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L1195" class="LineNr">1195 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1196" class="LineNr">1196 </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="L1197" class="LineNr">1197 </span><span class="Constant">$test-scan-next-byte-reads-final-byte:end</span>: +<span id="L1198" class="LineNr">1198 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L1199" class="LineNr">1199 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> +<span id="L1200" class="LineNr">1200 </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="L1201" class="LineNr">1201 </span> 5d/pop-to-EBP +<span id="L1202" class="LineNr">1202 </span> c3/return +<span id="L1203" class="LineNr">1203 </span> +<span id="L1204" class="LineNr">1204 </span><span class="subxTest">test-scan-next-byte-handles-Eof</span>: +<span id="L1205" class="LineNr">1205 </span> <span class="subxH1Comment"># - check that the right sentinel value is returned when there's no data remaining to be read</span> +<span id="L1206" class="LineNr">1206 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> +<span id="L1207" class="LineNr">1207 </span> 55/push-EBP +<span id="L1208" class="LineNr">1208 </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="L1209" class="LineNr">1209 </span> <span class="subxComment"># clear all streams</span> +<span id="L1210" class="LineNr">1210 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L1211" class="LineNr">1211 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1212" class="LineNr">1212 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1213" class="LineNr">1213 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1214" class="LineNr">1214 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1215" class="LineNr">1215 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1216" class="LineNr">1216 </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="L1217" class="LineNr">1217 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> +<span id="L1218" class="LineNr">1218 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1219" class="LineNr">1219 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1220" class="LineNr">1220 </span> 05/add-to-EAX 4/imm32 +<span id="L1221" class="LineNr">1221 </span> 50/push-EAX +<span id="L1222" class="LineNr">1222 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1223" class="LineNr">1223 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1224" class="LineNr">1224 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1225" class="LineNr">1225 </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="L1226" class="LineNr">1226 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L1227" class="LineNr">1227 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1228" class="LineNr">1228 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 +<span id="L1229" class="LineNr">1229 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1230" class="LineNr">1230 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1231" class="LineNr">1231 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1232" class="LineNr">1232 </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="L1233" class="LineNr">1233 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> +<span id="L1234" class="LineNr">1234 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1235" class="LineNr">1235 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L1236" class="LineNr">1236 </span> 05/add-to-EAX 4/imm32 +<span id="L1237" class="LineNr">1237 </span> 50/push-EAX +<span id="L1238" class="LineNr">1238 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1239" class="LineNr">1239 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1240" class="LineNr">1240 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1241" class="LineNr">1241 </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="L1242" class="LineNr">1242 </span> <span class="subxComment"># leave '_test-stream' empty</span> +<span id="L1243" class="LineNr">1243 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> +<span id="L1244" class="LineNr">1244 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> +<span id="L1245" class="LineNr">1245 </span> 81 5/subop/subtract 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"># subtract from ESP</span> +<span id="L1246" class="LineNr">1246 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> +<span id="L1247" class="LineNr">1247 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> +<span id="L1248" class="LineNr">1248 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1249" class="LineNr">1249 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte +<span id="L1250" class="LineNr">1250 </span> 51/push-ECX/ed +<span id="L1251" class="LineNr">1251 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1252" class="LineNr">1252 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L1253" class="LineNr">1253 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1254" class="LineNr">1254 </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="L1255" class="LineNr">1255 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> +<span id="L1256" class="LineNr">1256 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1257" class="LineNr">1257 </span> 51/push-ECX/ed +<span id="L1258" class="LineNr">1258 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L1259" class="LineNr">1259 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1260" class="LineNr">1260 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1261" class="LineNr">1261 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 +<span id="L1262" class="LineNr">1262 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> +<span id="L1263" class="LineNr">1263 </span> <span class="subxComment"># pop args to scan-next-byte</span> +<span id="L1264" class="LineNr">1264 </span> <span class="subxS2Comment"># . . discard first 2 args</span> +<span id="L1265" class="LineNr">1265 </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="L1266" class="LineNr">1266 </span> <span class="subxS2Comment"># . . restore ed</span> +<span id="L1267" class="LineNr">1267 </span> 59/pop-to-ECX +<span id="L1268" class="LineNr">1268 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> +<span id="L1269" class="LineNr">1269 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> +<span id="L1270" class="LineNr">1270 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1271" class="LineNr">1271 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L1204'>test-scan-next-byte-handles-Eof</a>: unexpected abort"</span>/imm32 +<span id="L1272" class="LineNr">1272 </span> 68/push 0/imm32 +<span id="L1273" class="LineNr">1273 </span> <span class="subxS2Comment"># . . push ed->value</span> +<span id="L1274" class="LineNr">1274 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> <span id="L1275" class="LineNr">1275 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1276" class="LineNr">1276 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L1276" class="LineNr">1276 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 <span id="L1277" class="LineNr">1277 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1278" class="LineNr">1278 </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="L1279" class="LineNr">1279 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> -<span id="L1280" class="LineNr">1280 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1281" class="LineNr">1281 </span> 51/push-ECX/ed -<span id="L1282" class="LineNr">1282 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L1283" class="LineNr">1283 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1284" class="LineNr">1284 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1285" class="LineNr">1285 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 -<span id="L1286" class="LineNr">1286 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> -<span id="L1287" class="LineNr">1287 </span> <span class="subxComment"># pop args to scan-next-byte</span> -<span id="L1288" class="LineNr">1288 </span> <span class="subxS2Comment"># . . discard first 2 args</span> -<span id="L1289" class="LineNr">1289 </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="L1290" class="LineNr">1290 </span> <span class="subxS2Comment"># . . restore ed</span> -<span id="L1291" class="LineNr">1291 </span> 59/pop-to-ECX -<span id="L1292" class="LineNr">1292 </span> <span class="subxComment"># check that scan-next-byte didn't abort</span> -<span id="L1293" class="LineNr">1293 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 0, msg)</span> -<span id="L1294" class="LineNr">1294 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1295" class="LineNr">1295 </span> 68/push <span class="Constant">"F - <a href='hex.subx.html#L1228'>test-scan-next-byte-handles-Eof</a>: unexpected abort"</span>/imm32 -<span id="L1296" class="LineNr">1296 </span> 68/push 0/imm32 -<span id="L1297" class="LineNr">1297 </span> <span class="subxS2Comment"># . . push ed->value</span> -<span id="L1298" class="LineNr">1298 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> -<span id="L1299" class="LineNr">1299 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1300" class="LineNr">1300 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L1301" class="LineNr">1301 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1302" class="LineNr">1302 </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="L1303" class="LineNr">1303 </span> <span class="subxComment"># return if abort</span> -<span id="L1304" class="LineNr">1304 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> -<span id="L1305" class="LineNr">1305 </span> 75/jump-if-not-equal $test-scan-next-byte-handles-Eof:end/disp8 -<span id="L1306" class="LineNr">1306 </span> <span class="subxComment"># check-ints-equal(EAX, Eof, msg)</span> -<span id="L1307" class="LineNr">1307 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1308" class="LineNr">1308 </span> 68/push <span class="Constant">"F - test-scan-next-byte-handles-Eof"</span>/imm32 -<span id="L1309" class="LineNr">1309 </span> 68/push 0xffffffff/imm32/Eof -<span id="L1310" class="LineNr">1310 </span> 50/push-EAX -<span id="L1311" class="LineNr">1311 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1312" class="LineNr">1312 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L1313" class="LineNr">1313 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1314" class="LineNr">1314 </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="L1315" class="LineNr">1315 </span><span class="Constant">$test-scan-next-byte-handles-Eof:end</span>: -<span id="L1316" class="LineNr">1316 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L1317" class="LineNr">1317 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> -<span id="L1318" class="LineNr">1318 </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="L1319" class="LineNr">1319 </span> 5d/pop-to-EBP -<span id="L1320" class="LineNr">1320 </span> c3/return -<span id="L1321" class="LineNr">1321 </span> -<span id="L1322" class="LineNr">1322 </span><span class="subxTest">test-scan-next-byte-aborts-on-invalid-byte</span>: -<span id="L1323" class="LineNr">1323 </span> <span class="subxH1Comment"># - check that the a bad byte immediately aborts</span> -<span id="L1324" class="LineNr">1324 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> -<span id="L1325" class="LineNr">1325 </span> 55/push-EBP -<span id="L1326" class="LineNr">1326 </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="L1327" class="LineNr">1327 </span> <span class="subxComment"># clear all streams</span> -<span id="L1328" class="LineNr">1328 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> -<span id="L1329" class="LineNr">1329 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1330" class="LineNr">1330 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1331" class="LineNr">1331 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1332" class="LineNr">1332 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1333" class="LineNr">1333 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1334" class="LineNr">1334 </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="L1335" class="LineNr">1335 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> -<span id="L1336" class="LineNr">1336 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1337" class="LineNr">1337 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1338" class="LineNr">1338 </span> 05/add-to-EAX 4/imm32 -<span id="L1339" class="LineNr">1339 </span> 50/push-EAX -<span id="L1340" class="LineNr">1340 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1341" class="LineNr">1341 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1342" class="LineNr">1342 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1343" class="LineNr">1343 </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="L1344" class="LineNr">1344 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> -<span id="L1345" class="LineNr">1345 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1346" class="LineNr">1346 </span> 68/push <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 -<span id="L1347" class="LineNr">1347 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1348" class="LineNr">1348 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1349" class="LineNr">1349 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1350" class="LineNr">1350 </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="L1351" class="LineNr">1351 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> -<span id="L1352" class="LineNr">1352 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1353" class="LineNr">1353 </span> b8/copy-to-EAX <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L1354" class="LineNr">1354 </span> 05/add-to-EAX 4/imm32 -<span id="L1355" class="LineNr">1355 </span> 50/push-EAX -<span id="L1356" class="LineNr">1356 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1357" class="LineNr">1357 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1358" class="LineNr">1358 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1359" class="LineNr">1359 </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="L1360" class="LineNr">1360 </span> <span class="subxComment"># initialize '_test-stream' to "x"</span> -<span id="L1361" class="LineNr">1361 </span> <span class="subxS1Comment"># . write(_test-stream, "x")</span> -<span id="L1362" class="LineNr">1362 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1363" class="LineNr">1363 </span> 68/push <span class="Constant">"x"</span>/imm32 -<span id="L1364" class="LineNr">1364 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1365" class="LineNr">1365 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1366" class="LineNr">1366 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L1367" class="LineNr">1367 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1368" class="LineNr">1368 </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="L1369" class="LineNr">1369 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> -<span id="L1370" class="LineNr">1370 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> -<span id="L1371" class="LineNr">1371 </span> 81 5/subop/subtract 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"># subtract from ESP</span> -<span id="L1372" class="LineNr">1372 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> -<span id="L1373" class="LineNr">1373 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> -<span id="L1374" class="LineNr">1374 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1375" class="LineNr">1375 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte -<span id="L1376" class="LineNr">1376 </span> 51/push-ECX/ed +<span id="L1278" class="LineNr">1278 </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="L1279" class="LineNr">1279 </span> <span class="subxComment"># return if abort</span> +<span id="L1280" class="LineNr">1280 </span> 81 7/subop/compare 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 0/imm32 <span class="subxComment"># compare *(ECX+4)</span> +<span id="L1281" class="LineNr">1281 </span> 75/jump-if-not-equal $test-scan-next-byte-handles-Eof:end/disp8 +<span id="L1282" class="LineNr">1282 </span> <span class="subxComment"># check-ints-equal(EAX, Eof, msg)</span> +<span id="L1283" class="LineNr">1283 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1284" class="LineNr">1284 </span> 68/push <span class="Constant">"F - test-scan-next-byte-handles-Eof"</span>/imm32 +<span id="L1285" class="LineNr">1285 </span> 68/push 0xffffffff/imm32/Eof +<span id="L1286" class="LineNr">1286 </span> 50/push-EAX +<span id="L1287" class="LineNr">1287 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1288" class="LineNr">1288 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L1289" class="LineNr">1289 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1290" class="LineNr">1290 </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="L1291" class="LineNr">1291 </span><span class="Constant">$test-scan-next-byte-handles-Eof:end</span>: +<span id="L1292" class="LineNr">1292 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L1293" class="LineNr">1293 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> +<span id="L1294" class="LineNr">1294 </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="L1295" class="LineNr">1295 </span> 5d/pop-to-EBP +<span id="L1296" class="LineNr">1296 </span> c3/return +<span id="L1297" class="LineNr">1297 </span> +<span id="L1298" class="LineNr">1298 </span><span class="subxTest">test-scan-next-byte-aborts-on-invalid-byte</span>: +<span id="L1299" class="LineNr">1299 </span> <span class="subxH1Comment"># - check that the a bad byte immediately aborts</span> +<span id="L1300" class="LineNr">1300 </span> <span class="subxComment"># This test uses exit-descriptors. Use EBP for setting up local variables.</span> +<span id="L1301" class="LineNr">1301 </span> 55/push-EBP +<span id="L1302" class="LineNr">1302 </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="L1303" class="LineNr">1303 </span> <span class="subxComment"># clear all streams</span> +<span id="L1304" class="LineNr">1304 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L1305" class="LineNr">1305 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1306" class="LineNr">1306 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1307" class="LineNr">1307 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1308" class="LineNr">1308 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1309" class="LineNr">1309 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1310" class="LineNr">1310 </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="L1311" class="LineNr">1311 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> +<span id="L1312" class="LineNr">1312 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1313" class="LineNr">1313 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1314" class="LineNr">1314 </span> 05/add-to-EAX 4/imm32 +<span id="L1315" class="LineNr">1315 </span> 50/push-EAX +<span id="L1316" class="LineNr">1316 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1317" class="LineNr">1317 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1318" class="LineNr">1318 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1319" class="LineNr">1319 </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="L1320" class="LineNr">1320 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L1321" class="LineNr">1321 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1322" class="LineNr">1322 </span> 68/push <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 +<span id="L1323" class="LineNr">1323 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1324" class="LineNr">1324 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1325" class="LineNr">1325 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1326" class="LineNr">1326 </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="L1327" class="LineNr">1327 </span> <span class="subxS1Comment"># . clear-stream(_test-error-buffered-file+4)</span> +<span id="L1328" class="LineNr">1328 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1329" class="LineNr">1329 </span> b8/copy-to-EAX <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L1330" class="LineNr">1330 </span> 05/add-to-EAX 4/imm32 +<span id="L1331" class="LineNr">1331 </span> 50/push-EAX +<span id="L1332" class="LineNr">1332 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1333" class="LineNr">1333 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1334" class="LineNr">1334 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1335" class="LineNr">1335 </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="L1336" class="LineNr">1336 </span> <span class="subxComment"># initialize '_test-stream' to "x"</span> +<span id="L1337" class="LineNr">1337 </span> <span class="subxS1Comment"># . write(_test-stream, "x")</span> +<span id="L1338" class="LineNr">1338 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1339" class="LineNr">1339 </span> 68/push <span class="Constant">"x"</span>/imm32 +<span id="L1340" class="LineNr">1340 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1341" class="LineNr">1341 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1342" class="LineNr">1342 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 +<span id="L1343" class="LineNr">1343 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1344" class="LineNr">1344 </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="L1345" class="LineNr">1345 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'scan-next-byte' below</span> +<span id="L1346" class="LineNr">1346 </span> <span class="subxS1Comment"># . var ed/ECX : exit-descriptor</span> +<span id="L1347" class="LineNr">1347 </span> 81 5/subop/subtract 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"># subtract from ESP</span> +<span id="L1348" class="LineNr">1348 </span> 89/copy 3/mod/direct 1/rm32/ECX <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 ECX</span> +<span id="L1349" class="LineNr">1349 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 12)</span> +<span id="L1350" class="LineNr">1350 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1351" class="LineNr">1351 </span> 68/push 0xc/imm32/nbytes-of-args-for-scan-next-byte +<span id="L1352" class="LineNr">1352 </span> 51/push-ECX/ed +<span id="L1353" class="LineNr">1353 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1354" class="LineNr">1354 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L1355" class="LineNr">1355 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1356" class="LineNr">1356 </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="L1357" class="LineNr">1357 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> +<span id="L1358" class="LineNr">1358 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1359" class="LineNr">1359 </span> 51/push-ECX/ed +<span id="L1360" class="LineNr">1360 </span> 68/push <a href='hex.subx.html#L1499'>_test-error-buffered-file</a>/imm32 +<span id="L1361" class="LineNr">1361 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1362" class="LineNr">1362 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1363" class="LineNr">1363 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 +<span id="L1364" class="LineNr">1364 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> +<span id="L1365" class="LineNr">1365 </span> <span class="subxComment"># pop args to scan-next-byte</span> +<span id="L1366" class="LineNr">1366 </span> <span class="subxS2Comment"># . . discard first 2 args</span> +<span id="L1367" class="LineNr">1367 </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="L1368" class="LineNr">1368 </span> <span class="subxS2Comment"># . . restore ed</span> +<span id="L1369" class="LineNr">1369 </span> 59/pop-to-ECX +<span id="L1370" class="LineNr">1370 </span> <span class="subxComment"># check that scan-next-byte aborted</span> +<span id="L1371" class="LineNr">1371 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 2, msg)</span> +<span id="L1372" class="LineNr">1372 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1373" class="LineNr">1373 </span> 68/push <span class="Constant">"F - test-scan-next-byte-aborts-on-invalid-byte"</span>/imm32 +<span id="L1374" class="LineNr">1374 </span> 68/push 2/imm32 +<span id="L1375" class="LineNr">1375 </span> <span class="subxS2Comment"># . . push ed->value</span> +<span id="L1376" class="LineNr">1376 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> <span id="L1377" class="LineNr">1377 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1378" class="LineNr">1378 </span> e8/call <a href='../059stop.subx.html#L50'>tailor-exit-descriptor</a>/disp32 +<span id="L1378" class="LineNr">1378 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 <span id="L1379" class="LineNr">1379 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1380" class="LineNr">1380 </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="L1381" class="LineNr">1381 </span> <span class="subxComment"># EAX = scan-next-byte(_test-buffered-file, _test-error-buffered-file, ed)</span> -<span id="L1382" class="LineNr">1382 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1383" class="LineNr">1383 </span> 51/push-ECX/ed -<span id="L1384" class="LineNr">1384 </span> 68/push <a href='hex.subx.html#L1531'>_test-error-buffered-file</a>/imm32 -<span id="L1385" class="LineNr">1385 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1386" class="LineNr">1386 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1387" class="LineNr">1387 </span> e8/call <a href='hex.subx.html#L489'>scan-next-byte</a>/disp32 -<span id="L1388" class="LineNr">1388 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> -<span id="L1389" class="LineNr">1389 </span> <span class="subxComment"># pop args to scan-next-byte</span> -<span id="L1390" class="LineNr">1390 </span> <span class="subxS2Comment"># . . discard first 2 args</span> -<span id="L1391" class="LineNr">1391 </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="L1392" class="LineNr">1392 </span> <span class="subxS2Comment"># . . restore ed</span> -<span id="L1393" class="LineNr">1393 </span> 59/pop-to-ECX -<span id="L1394" class="LineNr">1394 </span> <span class="subxComment"># check that scan-next-byte aborted</span> -<span id="L1395" class="LineNr">1395 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 2, msg)</span> -<span id="L1396" class="LineNr">1396 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1397" class="LineNr">1397 </span> 68/push <span class="Constant">"F - test-scan-next-byte-aborts-on-invalid-byte"</span>/imm32 -<span id="L1398" class="LineNr">1398 </span> 68/push 2/imm32 -<span id="L1399" class="LineNr">1399 </span> <span class="subxS2Comment"># . . push ed->value</span> -<span id="L1400" class="LineNr">1400 </span> ff 6/subop/push 1/mod/*+disp8 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ECX+4)</span> -<span id="L1401" class="LineNr">1401 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1402" class="LineNr">1402 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L1403" class="LineNr">1403 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1404" class="LineNr">1404 </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="L1405" class="LineNr">1405 </span><span class="Constant">$test-scan-next-byte-aborts-on-invalid-byte:end</span>: -<span id="L1406" class="LineNr">1406 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L1407" class="LineNr">1407 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> -<span id="L1408" class="LineNr">1408 </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="L1409" class="LineNr">1409 </span> 5d/pop-to-EBP -<span id="L1410" class="LineNr">1410 </span> c3/return -<span id="L1411" class="LineNr">1411 </span> -<span id="L1412" class="LineNr">1412 </span><span class="subxFunction">skip-until-newline</span>: <span class="subxComment"># in : (address buffered-file) -> <void></span> -<span id="L1413" class="LineNr">1413 </span> <span class="subxComment"># pseudocode:</span> -<span id="L1414" class="LineNr">1414 </span> <span class="subxComment"># push EAX</span> -<span id="L1415" class="LineNr">1415 </span> <span class="subxComment"># while true</span> -<span id="L1416" class="LineNr">1416 </span> <span class="subxComment"># EAX = read-byte(in)</span> -<span id="L1417" class="LineNr">1417 </span> <span class="subxComment"># if (EAX == Eof) break</span> -<span id="L1418" class="LineNr">1418 </span> <span class="subxComment"># if (EAX == 0x0a) break</span> -<span id="L1419" class="LineNr">1419 </span> <span class="subxComment"># pop EAX</span> -<span id="L1420" class="LineNr">1420 </span> <span class="subxS1Comment"># . prolog</span> -<span id="L1421" class="LineNr">1421 </span> 55/push-EBP -<span id="L1422" class="LineNr">1422 </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="L1423" class="LineNr">1423 </span> <span class="subxS1Comment"># . save registers</span> -<span id="L1424" class="LineNr">1424 </span> 50/push-EAX -<span id="L1425" class="LineNr">1425 </span><span class="Constant">$skip-until-newline:loop</span>: -<span id="L1426" class="LineNr">1426 </span> <span class="subxS1Comment"># . EAX = read-byte(in)</span> +<span id="L1380" class="LineNr">1380 </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="L1381" class="LineNr">1381 </span><span class="Constant">$test-scan-next-byte-aborts-on-invalid-byte:end</span>: +<span id="L1382" class="LineNr">1382 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L1383" class="LineNr">1383 </span> <span class="subxComment"># don't restore ESP from EBP; manually reclaim locals</span> +<span id="L1384" class="LineNr">1384 </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="L1385" class="LineNr">1385 </span> 5d/pop-to-EBP +<span id="L1386" class="LineNr">1386 </span> c3/return +<span id="L1387" class="LineNr">1387 </span> +<span id="L1388" class="LineNr">1388 </span><span class="subxFunction">skip-until-newline</span>: <span class="subxComment"># in : (address buffered-file) -> <void></span> +<span id="L1389" class="LineNr">1389 </span> <span class="subxComment"># pseudocode:</span> +<span id="L1390" class="LineNr">1390 </span> <span class="subxComment"># push EAX</span> +<span id="L1391" class="LineNr">1391 </span> <span class="subxComment"># while true</span> +<span id="L1392" class="LineNr">1392 </span> <span class="subxComment"># EAX = read-byte(in)</span> +<span id="L1393" class="LineNr">1393 </span> <span class="subxComment"># if (EAX == Eof) break</span> +<span id="L1394" class="LineNr">1394 </span> <span class="subxComment"># if (EAX == 0x0a) break</span> +<span id="L1395" class="LineNr">1395 </span> <span class="subxComment"># pop EAX</span> +<span id="L1396" class="LineNr">1396 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L1397" class="LineNr">1397 </span> 55/push-EBP +<span id="L1398" class="LineNr">1398 </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="L1399" class="LineNr">1399 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L1400" class="LineNr">1400 </span> 50/push-EAX +<span id="L1401" class="LineNr">1401 </span><span class="Constant">$skip-until-newline:loop</span>: +<span id="L1402" class="LineNr">1402 </span> <span class="subxS1Comment"># . EAX = read-byte(in)</span> +<span id="L1403" class="LineNr">1403 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1404" class="LineNr">1404 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EBP+8)</span> +<span id="L1405" class="LineNr">1405 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1406" class="LineNr">1406 </span> e8/call <a href='../061read-byte.subx.html#L44'>read-byte</a>/disp32 +<span id="L1407" class="LineNr">1407 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1408" class="LineNr">1408 </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="L1409" class="LineNr">1409 </span> <span class="subxS1Comment"># . if (EAX == Eof) break</span> +<span id="L1410" class="LineNr">1410 </span> 3d/compare-EAX-and 0xffffffff/imm32/Eof +<span id="L1411" class="LineNr">1411 </span> 74/jump-if-equal $skip-until-newline:end/disp8 +<span id="L1412" class="LineNr">1412 </span> <span class="subxS1Comment"># . if (EAX != 0xa/newline) loop</span> +<span id="L1413" class="LineNr">1413 </span> 3d/compare-EAX-and 0xa/imm32/newline +<span id="L1414" class="LineNr">1414 </span> 75/jump-if-not-equal $skip-until-newline:loop/disp8 +<span id="L1415" class="LineNr">1415 </span><span class="Constant">$skip-until-newline:end</span>: +<span id="L1416" class="LineNr">1416 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L1417" class="LineNr">1417 </span> 58/pop-to-EAX +<span id="L1418" class="LineNr">1418 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L1419" class="LineNr">1419 </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="L1420" class="LineNr">1420 </span> 5d/pop-to-EBP +<span id="L1421" class="LineNr">1421 </span> c3/return +<span id="L1422" class="LineNr">1422 </span> +<span id="L1423" class="LineNr">1423 </span><span class="subxTest">test-skip-until-newline</span>: +<span id="L1424" class="LineNr">1424 </span> <span class="subxH1Comment"># - check that the read pointer points after the newline</span> +<span id="L1425" class="LineNr">1425 </span> <span class="subxComment"># setup</span> +<span id="L1426" class="LineNr">1426 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> <span id="L1427" class="LineNr">1427 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1428" class="LineNr">1428 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EBP+8)</span> +<span id="L1428" class="LineNr">1428 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 <span id="L1429" class="LineNr">1429 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1430" class="LineNr">1430 </span> e8/call <a href='../061read-byte.subx.html#L44'>read-byte</a>/disp32 +<span id="L1430" class="LineNr">1430 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L1431" class="LineNr">1431 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1432" class="LineNr">1432 </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="L1433" class="LineNr">1433 </span> <span class="subxS1Comment"># . if (EAX == Eof) break</span> -<span id="L1434" class="LineNr">1434 </span> 3d/compare-EAX-and 0xffffffff/imm32/Eof -<span id="L1435" class="LineNr">1435 </span> 74/jump-if-equal $skip-until-newline:end/disp8 -<span id="L1436" class="LineNr">1436 </span> <span class="subxS1Comment"># . if (EAX != 0xa/newline) loop</span> -<span id="L1437" class="LineNr">1437 </span> 3d/compare-EAX-and 0xa/imm32/newline -<span id="L1438" class="LineNr">1438 </span> 75/jump-if-not-equal $skip-until-newline:loop/disp8 -<span id="L1439" class="LineNr">1439 </span><span class="Constant">$skip-until-newline:end</span>: -<span id="L1440" class="LineNr">1440 </span> <span class="subxS1Comment"># . restore registers</span> -<span id="L1441" class="LineNr">1441 </span> 58/pop-to-EAX -<span id="L1442" class="LineNr">1442 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L1443" class="LineNr">1443 </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="L1444" class="LineNr">1444 </span> 5d/pop-to-EBP -<span id="L1445" class="LineNr">1445 </span> c3/return -<span id="L1446" class="LineNr">1446 </span> -<span id="L1447" class="LineNr">1447 </span><span class="subxTest">test-skip-until-newline</span>: -<span id="L1448" class="LineNr">1448 </span> <span class="subxH1Comment"># - check that the read pointer points after the newline</span> -<span id="L1449" class="LineNr">1449 </span> <span class="subxComment"># setup</span> -<span id="L1450" class="LineNr">1450 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> -<span id="L1451" class="LineNr">1451 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1452" class="LineNr">1452 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1453" class="LineNr">1453 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1454" class="LineNr">1454 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 -<span id="L1455" class="LineNr">1455 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1456" class="LineNr">1456 </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="L1457" class="LineNr">1457 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> -<span id="L1458" class="LineNr">1458 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1459" class="LineNr">1459 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1460" class="LineNr">1460 </span> 05/add-to-EAX 4/imm32 -<span id="L1461" class="LineNr">1461 </span> 50/push-EAX +<span id="L1433" class="LineNr">1433 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span> +<span id="L1434" class="LineNr">1434 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1435" class="LineNr">1435 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1436" class="LineNr">1436 </span> 05/add-to-EAX 4/imm32 +<span id="L1437" class="LineNr">1437 </span> 50/push-EAX +<span id="L1438" class="LineNr">1438 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1439" class="LineNr">1439 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1440" class="LineNr">1440 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1441" class="LineNr">1441 </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="L1442" class="LineNr">1442 </span> <span class="subxComment"># initialize '_test-stream' to "abc\nde"</span> +<span id="L1443" class="LineNr">1443 </span> <span class="subxS1Comment"># . write(_test-stream, "abc")</span> +<span id="L1444" class="LineNr">1444 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1445" class="LineNr">1445 </span> 68/push <span class="Constant">"abc\n"</span>/imm32 +<span id="L1446" class="LineNr">1446 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1447" class="LineNr">1447 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1448" class="LineNr">1448 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 +<span id="L1449" class="LineNr">1449 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1450" class="LineNr">1450 </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="L1451" class="LineNr">1451 </span> <span class="subxS1Comment"># . write(_test-stream, "de")</span> +<span id="L1452" class="LineNr">1452 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1453" class="LineNr">1453 </span> 68/push <span class="Constant">"de"</span>/imm32 +<span id="L1454" class="LineNr">1454 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 +<span id="L1455" class="LineNr">1455 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1456" class="LineNr">1456 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 +<span id="L1457" class="LineNr">1457 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1458" class="LineNr">1458 </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="L1459" class="LineNr">1459 </span> <span class="subxComment"># skip-until-newline(_test-buffered-file)</span> +<span id="L1460" class="LineNr">1460 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1461" class="LineNr">1461 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 <span id="L1462" class="LineNr">1462 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1463" class="LineNr">1463 </span> e8/call <a href='../055stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L1463" class="LineNr">1463 </span> e8/call <a href='hex.subx.html#L1388'>skip-until-newline</a>/disp32 <span id="L1464" class="LineNr">1464 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1465" class="LineNr">1465 </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="L1466" class="LineNr">1466 </span> <span class="subxComment"># initialize '_test-stream' to "abc\nde"</span> -<span id="L1467" class="LineNr">1467 </span> <span class="subxS1Comment"># . write(_test-stream, "abc")</span> -<span id="L1468" class="LineNr">1468 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1469" class="LineNr">1469 </span> 68/push <span class="Constant">"abc"</span>/imm32 -<span id="L1470" class="LineNr">1470 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1471" class="LineNr">1471 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1472" class="LineNr">1472 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L1473" class="LineNr">1473 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1474" class="LineNr">1474 </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="L1475" class="LineNr">1475 </span> <span class="subxS1Comment"># . write(_test-stream, Newline)</span> -<span id="L1476" class="LineNr">1476 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1477" class="LineNr">1477 </span> 68/push <span class="SpecialChar"><a href='../051test.subx.html#L83'>Newline</a></span>/imm32 -<span id="L1478" class="LineNr">1478 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1479" class="LineNr">1479 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1480" class="LineNr">1480 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L1481" class="LineNr">1481 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1482" class="LineNr">1482 </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="L1483" class="LineNr">1483 </span> <span class="subxS1Comment"># . write(_test-stream, "de")</span> -<span id="L1484" class="LineNr">1484 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1485" class="LineNr">1485 </span> 68/push <span class="Constant">"de"</span>/imm32 -<span id="L1486" class="LineNr">1486 </span> 68/push <a href='../057write.subx.html#L148'>_test-stream</a>/imm32 -<span id="L1487" class="LineNr">1487 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1488" class="LineNr">1488 </span> e8/call <a href='../057write.subx.html#L24'>write</a>/disp32 -<span id="L1489" class="LineNr">1489 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1490" class="LineNr">1490 </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="L1491" class="LineNr">1491 </span> <span class="subxComment"># skip-until-newline(_test-buffered-file)</span> -<span id="L1492" class="LineNr">1492 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1493" class="LineNr">1493 </span> 68/push <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1494" class="LineNr">1494 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1495" class="LineNr">1495 </span> e8/call <a href='hex.subx.html#L1412'>skip-until-newline</a>/disp32 -<span id="L1496" class="LineNr">1496 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1497" class="LineNr">1497 </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="L1498" class="LineNr">1498 </span> <span class="subxComment"># check-ints-equal(_test-buffered-file->read, 4, msg)</span> -<span id="L1499" class="LineNr">1499 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L1500" class="LineNr">1500 </span> 68/push <span class="Constant">"F - test-skip-until-newline"</span>/imm32 -<span id="L1501" class="LineNr">1501 </span> 68/push 4/imm32 -<span id="L1502" class="LineNr">1502 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 -<span id="L1503" class="LineNr">1503 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/EAX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EAX+8)</span> -<span id="L1504" class="LineNr">1504 </span> <span class="subxS2Comment"># . . call</span> -<span id="L1505" class="LineNr">1505 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 -<span id="L1506" class="LineNr">1506 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L1507" class="LineNr">1507 </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="L1508" class="LineNr">1508 </span> <span class="subxS1Comment"># . end</span> -<span id="L1509" class="LineNr">1509 </span> c3/return +<span id="L1466" class="LineNr">1466 </span> <span class="subxComment"># check-ints-equal(_test-buffered-file->read, 4, msg)</span> +<span id="L1467" class="LineNr">1467 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L1468" class="LineNr">1468 </span> 68/push <span class="Constant">"F - test-skip-until-newline"</span>/imm32 +<span id="L1469" class="LineNr">1469 </span> 68/push 4/imm32 +<span id="L1470" class="LineNr">1470 </span> b8/copy-to-EAX <a href='../061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 +<span id="L1471" class="LineNr">1471 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/EAX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EAX+8)</span> +<span id="L1472" class="LineNr">1472 </span> <span class="subxS2Comment"># . . call</span> +<span id="L1473" class="LineNr">1473 </span> e8/call <a href='../051test.subx.html#L24'>check-ints-equal</a>/disp32 +<span id="L1474" class="LineNr">1474 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L1475" class="LineNr">1475 </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="L1476" class="LineNr">1476 </span> <span class="subxS1Comment"># . end</span> +<span id="L1477" class="LineNr">1477 </span> c3/return +<span id="L1478" class="LineNr">1478 </span> +<span id="L1479" class="LineNr">1479 </span>== data +<span id="L1480" class="LineNr">1480 </span> +<span id="L1481" class="LineNr">1481 </span><span class="subxMinorFunction">_test-error-stream</span>: +<span id="L1482" class="LineNr">1482 </span> <span class="subxComment"># current write index</span> +<span id="L1483" class="LineNr">1483 </span> 0/imm32 +<span id="L1484" class="LineNr">1484 </span> <span class="subxComment"># current read index</span> +<span id="L1485" class="LineNr">1485 </span> 0/imm32 +<span id="L1486" class="LineNr">1486 </span> <span class="subxComment"># line</span> +<span id="L1487" class="LineNr">1487 </span> 0x80/imm32 <span class="subxComment"># 128 bytes</span> +<span id="L1488" class="LineNr">1488 </span> <span class="subxComment"># data (8 lines x 16 bytes/line)</span> +<span id="L1489" class="LineNr">1489 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L1490" class="LineNr">1490 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L1491" class="LineNr">1491 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L1492" class="LineNr">1492 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L1493" class="LineNr">1493 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L1494" class="LineNr">1494 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L1495" class="LineNr">1495 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L1496" class="LineNr">1496 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L1497" class="LineNr">1497 </span> +<span id="L1498" class="LineNr">1498 </span><span class="subxComment"># a test buffered file for _test-error-stream</span> +<span id="L1499" class="LineNr">1499 </span><span class="subxMinorFunction">_test-error-buffered-file</span>: +<span id="L1500" class="LineNr">1500 </span> <span class="subxComment"># file descriptor or (address stream)</span> +<span id="L1501" class="LineNr">1501 </span> <a href='hex.subx.html#L1481'>_test-error-stream</a>/imm32 +<span id="L1502" class="LineNr">1502 </span> <span class="subxComment"># current write index</span> +<span id="L1503" class="LineNr">1503 </span> 0/imm32 +<span id="L1504" class="LineNr">1504 </span> <span class="subxComment"># current read index</span> +<span id="L1505" class="LineNr">1505 </span> 0/imm32 +<span id="L1506" class="LineNr">1506 </span> <span class="subxComment"># length</span> +<span id="L1507" class="LineNr">1507 </span> 6/imm32 +<span id="L1508" class="LineNr">1508 </span> <span class="subxComment"># data</span> +<span id="L1509" class="LineNr">1509 </span> 00 00 00 00 00 00 <span class="subxComment"># 6 bytes</span> <span id="L1510" class="LineNr">1510 </span> -<span id="L1511" class="LineNr">1511 </span>== data -<span id="L1512" class="LineNr">1512 </span> -<span id="L1513" class="LineNr">1513 </span><span class="subxMinorFunction">_test-error-stream</span>: -<span id="L1514" class="LineNr">1514 </span> <span class="subxComment"># current write index</span> -<span id="L1515" class="LineNr">1515 </span> 0/imm32 -<span id="L1516" class="LineNr">1516 </span> <span class="subxComment"># current read index</span> -<span id="L1517" class="LineNr">1517 </span> 0/imm32 -<span id="L1518" class="LineNr">1518 </span> <span class="subxComment"># line</span> -<span id="L1519" class="LineNr">1519 </span> 0x80/imm32 <span class="subxComment"># 128 bytes</span> -<span id="L1520" class="LineNr">1520 </span> <span class="subxComment"># data (8 lines x 16 bytes/line)</span> -<span id="L1521" class="LineNr">1521 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L1522" class="LineNr">1522 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L1523" class="LineNr">1523 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L1524" class="LineNr">1524 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L1525" class="LineNr">1525 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L1526" class="LineNr">1526 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L1527" class="LineNr">1527 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L1528" class="LineNr">1528 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L1529" class="LineNr">1529 </span> -<span id="L1530" class="LineNr">1530 </span><span class="subxComment"># a test buffered file for _test-error-stream</span> -<span id="L1531" class="LineNr">1531 </span><span class="subxMinorFunction">_test-error-buffered-file</span>: -<span id="L1532" class="LineNr">1532 </span> <span class="subxComment"># file descriptor or (address stream)</span> -<span id="L1533" class="LineNr">1533 </span> <a href='hex.subx.html#L1513'>_test-error-stream</a>/imm32 -<span id="L1534" class="LineNr">1534 </span> <span class="subxComment"># current write index</span> -<span id="L1535" class="LineNr">1535 </span> 0/imm32 -<span id="L1536" class="LineNr">1536 </span> <span class="subxComment"># current read index</span> -<span id="L1537" class="LineNr">1537 </span> 0/imm32 -<span id="L1538" class="LineNr">1538 </span> <span class="subxComment"># length</span> -<span id="L1539" class="LineNr">1539 </span> 6/imm32 -<span id="L1540" class="LineNr">1540 </span> <span class="subxComment"># data</span> -<span id="L1541" class="LineNr">1541 </span> 00 00 00 00 00 00 <span class="subxComment"># 6 bytes</span> -<span id="L1542" class="LineNr">1542 </span> -<span id="L1543" class="LineNr">1543 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +<span id="L1511" class="LineNr">1511 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> </pre> </body> </html> |