From 901ae474300d70bcc00e7e0b420ca87c8cbf6f55 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 30 Dec 2018 20:24:37 -0800 Subject: 4899 Bug in my linkify tool introduced in commit 4891. --- html/subx/apps/crenshaw2-1.subx.html | 20 +++++++------- html/subx/apps/crenshaw2-1b.subx.html | 24 ++++++++--------- html/subx/apps/factorial.subx.html | 4 +-- html/subx/apps/handle.subx.html | 14 +++++----- html/subx/apps/hex.subx.html | 50 +++++++++++++++++------------------ 5 files changed, 56 insertions(+), 56 deletions(-) (limited to 'html/subx/apps') diff --git a/html/subx/apps/crenshaw2-1.subx.html b/html/subx/apps/crenshaw2-1.subx.html index f64afa4c..de7cf5c0 100644 --- a/html/subx/apps/crenshaw2-1.subx.html +++ b/html/subx/apps/crenshaw2-1.subx.html @@ -144,7 +144,7 @@ if ('onhashchange' in window) { 81 cd/syscall 0x80/imm8 82 83 # the main entry point - 84 compile: # in : (address buffered-file), out : fd or (address stream), err : fd or (address stream), ed : (address exit-descriptor) -> <void> + 84 compile: # in : (address buffered-file), out : fd or (address stream), err : fd or (address stream), ed : (address exit-descriptor) -> <void> 85 # . prolog 86 55/push-EBP 87 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -260,7 +260,7 @@ if ('onhashchange' in window) { 197 # Read a single digit into 'out'. Abort if there are none, or if there is no space in 'out'. 198 # Input comes from the global variable 'Look', and we leave the next byte from 199 # 'in' into it on exit. -200 get-num: # in : (address buffered-file), out : (address stream), err : fd or (address stream), ed : (address exit-descriptor) -> <void> +200 get-num: # in : (address buffered-file), out : (address stream), err : fd or (address stream), ed : (address exit-descriptor) -> <void> 201 # pseudocode: 202 # if !is-digit?(Look) expected(ed, err, "integer") 203 # if out->write >= out->length @@ -364,7 +364,7 @@ if ('onhashchange' in window) { 301 5d/pop-to-EBP 302 c3/return 303 -304 test-get-num-reads-single-digit: +304 test-get-num-reads-single-digit: 305 # - check that get-num returns first character if it's a digit 306 # This test uses exit-descriptors. Use EBP for setting up local variables. 307 55/push-EBP @@ -455,7 +455,7 @@ if ('onhashchange' in window) { 392 5d/pop-to-EBP 393 c3/return 394 -395 test-get-num-aborts-on-non-digit-in-Look: +395 test-get-num-aborts-on-non-digit-in-Look: 396 # - check that get-num returns first character if it's a digit 397 # This test uses exit-descriptors. Use EBP for setting up local variables. 398 55/push-EBP @@ -543,7 +543,7 @@ if ('onhashchange' in window) { 480 ## helpers 481 482 # write(f, "Error: "+s+" expected\n") then stop(ed, 1) -483 expected: # ed : (address exit-descriptor), f : fd or (address stream), s : (address array byte) -> <void> +483 expected: # ed : (address exit-descriptor), f : fd or (address stream), s : (address array byte) -> <void> 484 # . prolog 485 55/push-EBP 486 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -593,7 +593,7 @@ if ('onhashchange' in window) { 530 c3/return 531 532 # read a byte from 'f', and save it in 'Look' -533 get-char: # f : (address buffered-file) -> <void> +533 get-char: # f : (address buffered-file) -> <void> 534 # . prolog 535 55/push-EBP 536 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -616,7 +616,7 @@ if ('onhashchange' in window) { 553 5d/pop-to-EBP 554 c3/return 555 -556 is-digit?: # c : int -> bool/EAX +556 is-digit?: # c : int -> bool/EAX 557 # . prolog 558 55/push-EBP 559 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -638,10 +638,10 @@ if ('onhashchange' in window) { 575 576 == data 577 -578 Look: # (char) +578 Look: # (char) 579 00 00 00 00 # = 0 580 -581 _test-output-stream: +581 _test-output-stream: 582 # current write index 583 00 00 00 00 584 # current read index @@ -651,7 +651,7 @@ if ('onhashchange' in window) { 588 # data 589 00 00 00 00 00 00 00 00 # 8 bytes 590 -591 _test-error-stream: +591 _test-error-stream: 592 # current write index 593 00 00 00 00 594 # current read index diff --git a/html/subx/apps/crenshaw2-1b.subx.html b/html/subx/apps/crenshaw2-1b.subx.html index 4445c081..b059f0fc 100644 --- a/html/subx/apps/crenshaw2-1b.subx.html +++ b/html/subx/apps/crenshaw2-1b.subx.html @@ -144,7 +144,7 @@ if ('onhashchange' in window) { 81 cd/syscall 0x80/imm8 82 83 # the main entry point - 84 compile: # in : (address buffered-file), out : fd or (address stream), err : fd or (address stream), ed : (address exit-descriptor) -> <void> + 84 compile: # in : (address buffered-file), out : fd or (address stream), err : fd or (address stream), ed : (address exit-descriptor) -> <void> 85 # . prolog 86 55/push-EBP 87 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -261,7 +261,7 @@ if ('onhashchange' in window) { 198 # no space in 'out'. 199 # Input comes from the global variable 'Look' (first byte) and the argument 200 # 'in' (rest). We leave the next byte from 'in' into 'Look' on exit. -201 get-num: # in : (address buffered-file), out : (address stream), err : fd or (address stream), ed : (address exit-descriptor) -> <void> +201 get-num: # in : (address buffered-file), out : (address stream), err : fd or (address stream), ed : (address exit-descriptor) -> <void> 202 # pseudocode: 203 # if !is-digit?(Look) expected(ed, err, "integer") 204 # do @@ -381,7 +381,7 @@ if ('onhashchange' in window) { 318 5d/pop-to-EBP 319 c3/return 320 -321 test-get-num-reads-single-digit: +321 test-get-num-reads-single-digit: 322 # - check that get-num returns first character if it's a digit 323 # This test uses exit-descriptors. Use EBP for setting up local variables. 324 55/push-EBP @@ -472,7 +472,7 @@ if ('onhashchange' in window) { 409 5d/pop-to-EBP 410 c3/return 411 -412 test-get-num-aborts-on-non-digit-in-Look: +412 test-get-num-aborts-on-non-digit-in-Look: 413 # - check that get-num returns first character if it's a digit 414 # This test uses exit-descriptors. Use EBP for setting up local variables. 415 55/push-EBP @@ -557,7 +557,7 @@ if ('onhashchange' in window) { 494 5d/pop-to-EBP 495 c3/return 496 -497 test-get-num-reads-multiple-digits: +497 test-get-num-reads-multiple-digits: 498 # - check that get-num returns all initial digits until it encounters a non-digit 499 # This test uses exit-descriptors. Use EBP for setting up local variables. 500 55/push-EBP @@ -648,7 +648,7 @@ if ('onhashchange' in window) { 585 5d/pop-to-EBP 586 c3/return 587 -588 test-get-num-reads-multiple-digits-followed-by-nondigit: +588 test-get-num-reads-multiple-digits-followed-by-nondigit: 589 # - check that get-num returns all initial digits until it encounters a non-digit 590 # This test uses exit-descriptors. Use EBP for setting up local variables. 591 55/push-EBP @@ -742,7 +742,7 @@ if ('onhashchange' in window) { 679 ## helpers 680 681 # write(f, "Error: "+s+" expected\n") then stop(ed, 1) -682 expected: # ed : (address exit-descriptor), f : fd or (address stream), s : (address array byte) -> <void> +682 expected: # ed : (address exit-descriptor), f : fd or (address stream), s : (address array byte) -> <void> 683 # . prolog 684 55/push-EBP 685 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -791,7 +791,7 @@ if ('onhashchange' in window) { 728 c3/return 729 730 # read a byte from 'f', and save it in 'Look' -731 get-char: # f : (address buffered-file) -> <void> +731 get-char: # f : (address buffered-file) -> <void> 732 # . prolog 733 55/push-EBP 734 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -813,7 +813,7 @@ if ('onhashchange' in window) { 750 5d/pop-to-EBP 751 c3/return 752 -753 is-digit?: # c : int -> bool/EAX +753 is-digit?: # c : int -> bool/EAX 754 # . prolog 755 55/push-EBP 756 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -835,10 +835,10 @@ if ('onhashchange' in window) { 772 773 == data 774 -775 Look: # (char) +775 Look: # (char) 776 00 00 00 00 # = 0 777 -778 _test-output-stream: +778 _test-output-stream: 779 # current write index 780 00 00 00 00 781 # current read index @@ -848,7 +848,7 @@ if ('onhashchange' in window) { 785 # data 786 00 00 00 00 00 00 00 00 # 8 bytes 787 -788 _test-error-stream: +788 _test-error-stream: 789 # current write index 790 00 00 00 00 791 # current read index diff --git a/html/subx/apps/factorial.subx.html b/html/subx/apps/factorial.subx.html index e1e954c6..2999bbe9 100644 --- a/html/subx/apps/factorial.subx.html +++ b/html/subx/apps/factorial.subx.html @@ -116,7 +116,7 @@ if ('onhashchange' in window) { 55 b8/copy-to-EAX 1/imm32/exit 56 cd/syscall 0x80/imm8 57 - 58 factorial: # n : int -> int/EAX + 58 factorial: # n : int -> int/EAX 59 # . prolog 60 55/push-EBP 61 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -146,7 +146,7 @@ if ('onhashchange' in window) { 85 5d/pop-to-EBP 86 c3/return 87 - 88 test-factorial: + 88 test-factorial: 89 # factorial(5) 90 # . . push args 91 68/push 5/imm32 diff --git a/html/subx/apps/handle.subx.html b/html/subx/apps/handle.subx.html index a7c7c993..3b846c48 100644 --- a/html/subx/apps/handle.subx.html +++ b/html/subx/apps/handle.subx.html @@ -91,7 +91,7 @@ if ('onhashchange' in window) { 30 b8/copy-to-EAX 1/imm32/exit 31 cd/syscall 0x80/imm8 32 - 33 new: # ad : (address allocation-descriptor), n : int, out : (address handle) + 33 new: # ad : (address allocation-descriptor), n : int, out : (address handle) 34 # . prolog 35 55/push-EBP 36 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -139,7 +139,7 @@ if ('onhashchange' in window) { 78 5d/pop-to-EBP 79 c3/return 80 - 81 test-new: # - this test uses the bottom of the stack segment as scratch space + 81 test-new: # - this test uses the bottom of the stack segment as scratch space 82 # . prolog 83 55/push-EBP 84 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -207,7 +207,7 @@ if ('onhashchange' in window) { 146 5d/pop-to-EBP 147 c3/return 148 -149 test-new-failure: +149 test-new-failure: 150 # . prolog 151 55/push-EBP 152 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -269,7 +269,7 @@ if ('onhashchange' in window) { 208 5d/pop-to-EBP 209 c3/return 210 -211 lookup: # h : (handle T) -> EAX : (address T) +211 lookup: # h : (handle T) -> EAX : (address T) 212 # . prolog 213 55/push-EBP 214 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -311,7 +311,7 @@ if ('onhashchange' in window) { 250 5d/pop-to-EBP 251 c3/return 252 -253 test-lookup-success: +253 test-lookup-success: 254 # . prolog 255 55/push-EBP 256 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -361,7 +361,7 @@ if ('onhashchange' in window) { 300 5d/pop-to-EBP 301 c3/return 302 -303 test-lookup-failure: +303 test-lookup-failure: 304 # . prolog 305 55/push-EBP 306 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -426,7 +426,7 @@ if ('onhashchange' in window) { 365 == data 366 367 # Monotonically increasing counter for calls to 'new' -368 Next-alloc-id: +368 Next-alloc-id: 369 01 00 00 00 # 1 370 371 # . . vim:nowrap:textwidth=0 diff --git a/html/subx/apps/hex.subx.html b/html/subx/apps/hex.subx.html index 763f9999..17d17854 100644 --- a/html/subx/apps/hex.subx.html +++ b/html/subx/apps/hex.subx.html @@ -138,7 +138,7 @@ if ('onhashchange' in window) { 75 cd/syscall 0x80/imm8 76 77 # the main entry point - 78 convert: # in : (address buffered-file), out : (address buffered-file), err : (address buffered-file), ed : (address exit-descriptor) -> <void> + 78 convert: # in : (address buffered-file), out : (address buffered-file), err : (address buffered-file), ed : (address exit-descriptor) -> <void> 79 # pseudocode: 80 # repeatedly 81 # EAX = convert-next-octet(in, err, ed) @@ -196,7 +196,7 @@ if ('onhashchange' in window) { 133 # raise an error and abort on all other unexpected bytes 134 # return in EAX an _octet_ containing the binary value of the two hex characters 135 # return 0xffffffff on end of file - 136 convert-next-octet: # in : (address buffered-file), err : (address buffered-file), ed : (address exit-descriptor) -> byte-or-eof/EAX + 136 convert-next-octet: # in : (address buffered-file), err : (address buffered-file), ed : (address exit-descriptor) -> byte-or-eof/EAX 137 # pseudocode: 138 # EAX = scan-next-byte(in, err, ed) 139 # if (EAX == 0xffffffff) return @@ -264,7 +264,7 @@ if ('onhashchange' in window) { 201 5d/pop-to-EBP 202 c3/return 203 - 204 test-convert-next-octet: + 204 test-convert-next-octet: 205 # - check that the first two bytes of the input are assembled into the resulting octet 206 # This test uses exit-descriptors. Use EBP for setting up local variables. 207 55/push-EBP @@ -366,7 +366,7 @@ if ('onhashchange' in window) { 303 5d/pop-to-EBP 304 c3/return 305 - 306 test-convert-next-octet-handles-eof: + 306 test-convert-next-octet-handles-eof: 307 # - check that eof returns the sentinel octet 308 # This test uses exit-descriptors. Use EBP for setting up local variables. 309 55/push-EBP @@ -460,7 +460,7 @@ if ('onhashchange' in window) { 397 5d/pop-to-EBP 398 c3/return 399 - 400 test-convert-next-octet-aborts-on-single-hex-byte: + 400 test-convert-next-octet-aborts-on-single-hex-byte: 401 # - check that a single unaccompanied hex byte aborts 402 # This test uses exit-descriptors. Use EBP for setting up local variables. 403 55/push-EBP @@ -554,7 +554,7 @@ if ('onhashchange' in window) { 491 # return 0xffffffff if file ends without finding a hex byte 492 # on '#' skip all bytes until newline 493 # abort on any other byte - 494 scan-next-byte: # in : (address buffered-file), err : (address buffered-file), ed : (address exit-descriptor) -> byte-or-eof/EAX + 494 scan-next-byte: # in : (address buffered-file), err : (address buffered-file), ed : (address exit-descriptor) -> byte-or-eof/EAX 495 # pseudocode: 496 # repeatedly 497 # EAX = read-byte(in) @@ -633,7 +633,7 @@ if ('onhashchange' in window) { 570 5d/pop-to-EBP 571 c3/return 572 - 573 test-scan-next-byte: + 573 test-scan-next-byte: 574 # - check that the first byte of the input is returned 575 # This test uses exit-descriptors. Use EBP for setting up local variables. 576 55/push-EBP @@ -735,7 +735,7 @@ if ('onhashchange' in window) { 672 5d/pop-to-EBP 673 c3/return 674 - 675 test-scan-next-byte-skips-whitespace: + 675 test-scan-next-byte-skips-whitespace: 676 # - check that the first byte after whitespace is returned 677 # This test uses exit-descriptors. Use EBP for setting up local variables. 678 55/push-EBP @@ -837,7 +837,7 @@ if ('onhashchange' in window) { 774 5d/pop-to-EBP 775 c3/return 776 - 777 test-scan-next-byte-skips-comment: + 777 test-scan-next-byte-skips-comment: 778 # - check that the first byte after a comment (and newline) is returned 779 # This test uses exit-descriptors. Use EBP for setting up local variables. 780 55/push-EBP @@ -955,7 +955,7 @@ if ('onhashchange' in window) { 892 5d/pop-to-EBP 893 c3/return 894 - 895 test-scan-next-byte-skips-comment-and-whitespace: + 895 test-scan-next-byte-skips-comment-and-whitespace: 896 # - check that the first byte after a comment and any further whitespace is returned 897 # This test uses exit-descriptors. Use EBP for setting up local variables. 898 55/push-EBP @@ -1073,7 +1073,7 @@ if ('onhashchange' in window) { 1010 5d/pop-to-EBP 1011 c3/return 1012 -1013 test-scan-next-byte-skips-whitespace-and-comment: +1013 test-scan-next-byte-skips-whitespace-and-comment: 1014 # - check that the first byte after any whitespace and comments is returned 1015 # This test uses exit-descriptors. Use EBP for setting up local variables. 1016 55/push-EBP @@ -1191,7 +1191,7 @@ if ('onhashchange' in window) { 1128 5d/pop-to-EBP 1129 c3/return 1130 -1131 test-scan-next-byte-reads-final-byte: +1131 test-scan-next-byte-reads-final-byte: 1132 # - check that the final byte in input is returned 1133 # This test uses exit-descriptors. Use EBP for setting up local variables. 1134 55/push-EBP @@ -1293,7 +1293,7 @@ if ('onhashchange' in window) { 1230 5d/pop-to-EBP 1231 c3/return 1232 -1233 test-scan-next-byte-handles-eof: +1233 test-scan-next-byte-handles-eof: 1234 # - check that the right sentinel value is returned when there's no data remaining to be read 1235 # This test uses exit-descriptors. Use EBP for setting up local variables. 1236 55/push-EBP @@ -1387,7 +1387,7 @@ if ('onhashchange' in window) { 1324 5d/pop-to-EBP 1325 c3/return 1326 -1327 test-scan-next-byte-aborts-on-invalid-byte: +1327 test-scan-next-byte-aborts-on-invalid-byte: 1328 # - check that the a bad byte immediately aborts 1329 # This test uses exit-descriptors. Use EBP for setting up local variables. 1330 55/push-EBP @@ -1477,7 +1477,7 @@ if ('onhashchange' in window) { 1414 5d/pop-to-EBP 1415 c3/return 1416 -1417 is-hex-lowercase-byte?: # c : byte -> bool/EAX +1417 is-hex-lowercase-byte?: # c : byte -> bool/EAX 1418 # . prolog 1419 55/push-EBP 1420 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -1509,7 +1509,7 @@ if ('onhashchange' in window) { 1446 5d/pop-to-EBP 1447 c3/return 1448 -1449 test-hex-below-0: +1449 test-hex-below-0: 1450 # is-hex-lowercase-byte?(0x2f) 1451 # . . push args 1452 68/push 0x2f/imm32 @@ -1528,7 +1528,7 @@ if ('onhashchange' in window) { 1465 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 1466 c3/return 1467 -1468 test-hex-0-to-9: +1468 test-hex-0-to-9: 1469 # is-hex-lowercase-byte?(0x30) 1470 # . . push args 1471 68/push 0x30/imm32 @@ -1563,7 +1563,7 @@ if ('onhashchange' in window) { 1500 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 1501 c3/return 1502 -1503 test-hex-above-9-to-a: +1503 test-hex-above-9-to-a: 1504 # is-hex-lowercase-byte?(0x3a) 1505 # . . push args 1506 68/push 0x3a/imm32 @@ -1582,7 +1582,7 @@ if ('onhashchange' in window) { 1519 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 1520 c3/return 1521 -1522 test-hex-a-to-f: +1522 test-hex-a-to-f: 1523 # is-hex-lowercase-byte?(0x61) 1524 # . . push args 1525 68/push 0x61/imm32 @@ -1617,7 +1617,7 @@ if ('onhashchange' in window) { 1554 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 1555 c3/return 1556 -1557 test-hex-above-f: +1557 test-hex-above-f: 1558 # is-hex-lowercase-byte?(0x67) 1559 # . . push args 1560 68/push 0x67/imm32 @@ -1636,7 +1636,7 @@ if ('onhashchange' in window) { 1573 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 1574 c3/return 1575 -1576 parse-hex-digit: # in/EAX : byte -> out/EAX : num +1576 parse-hex-digit: # in/EAX : byte -> out/EAX : num 1577 # no error checking; accepts argument in EAX 1578 # if EAX <= '9' return EAX - '0' 1579 3d/compare-EAX 0x39/imm32/9 @@ -1648,7 +1648,7 @@ if ('onhashchange' in window) { 1585 2d/subtract-from-EAX 0x57/imm32/a-10 1586 c3/return 1587 -1588 skip-until-newline: # in : (address buffered-file) -> <void> +1588 skip-until-newline: # in : (address buffered-file) -> <void> 1589 # pseudocode: 1590 # push EAX 1591 # repeatedly: @@ -1683,7 +1683,7 @@ if ('onhashchange' in window) { 1620 5d/pop-to-EBP 1621 c3/return 1622 -1623 test-skip-until-newline: +1623 test-skip-until-newline: 1624 # - check that the read pointer points after the newline 1625 # setup 1626 # . clear-stream(_test-stream) @@ -1749,7 +1749,7 @@ if ('onhashchange' in window) { 1686 1687 == data 1688 -1689 _test-error-stream: +1689 _test-error-stream: 1690 # current write index 1691 00 00 00 00 1692 # current read index @@ -1760,7 +1760,7 @@ if ('onhashchange' in window) { 1697 00 00 00 00 00 00 00 00 # 8 bytes 1698 1699 # a test buffered file for _test-stream -1700 _test-error-buffered-file: +1700 _test-error-buffered-file: 1701 # file descriptor or (address stream) 1702 _test-error-stream/imm32 1703 # current write index -- cgit 1.4.1-2-gfad0