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/hex.subx.html | 50 ++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'html/subx/apps/hex.subx.html') 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