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/examples/ex10.subx.html | 2 +- html/subx/examples/ex11.subx.html | 26 +++++++++++++------------- html/subx/examples/ex12.subx.html | 2 +- html/subx/examples/ex4.subx.html | 2 +- html/subx/examples/ex6.subx.html | 4 ++-- html/subx/examples/ex7.subx.html | 8 ++++---- html/subx/examples/ex8.subx.html | 2 +- html/subx/examples/ex9.subx.html | 2 +- 8 files changed, 24 insertions(+), 24 deletions(-) (limited to 'html/subx/examples') diff --git a/html/subx/examples/ex10.subx.html b/html/subx/examples/ex10.subx.html index 329f698d..49383f99 100644 --- a/html/subx/examples/ex10.subx.html +++ b/html/subx/examples/ex10.subx.html @@ -92,7 +92,7 @@ if ('onhashchange' in window) { 34 35 # compare two null-terminated ascii strings 36 # reason for the name: the only place we should have null-terminated ascii strings is from commandline args -37 argv-equal: # (s1, s2) : null-terminated ascii strings -> EAX : boolean +37 argv-equal: # (s1, s2) : null-terminated ascii strings -> EAX : boolean 38 # initialize s1 (ECX) and s2 (EDX) 39 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none . 1/r32/ECX 4/disp8 . # copy *(ESP+4) to ECX 40 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none . 2/r32/EDX 8/disp8 . # copy *(ESP+8) to EDX diff --git a/html/subx/examples/ex11.subx.html b/html/subx/examples/ex11.subx.html index 30b462f4..54d5982c 100644 --- a/html/subx/examples/ex11.subx.html +++ b/html/subx/examples/ex11.subx.html @@ -89,7 +89,7 @@ if ('onhashchange' in window) { 28 29 # compare a null-terminated ascii string with a more idiomatic length-prefixed byte array 30 # reason for the name: the only place we should have null-terminated ascii strings is from commandline args - 31 kernel-string-equal: # s : null-terminated ascii string, benchmark : length-prefixed ascii string -> EAX : boolean + 31 kernel-string-equal: # s : null-terminated ascii string, benchmark : length-prefixed ascii string -> EAX : boolean 32 # . prolog 33 55/push-EBP 34 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -171,7 +171,7 @@ if ('onhashchange' in window) { 110 111 # - tests 112 -113 test-compare-null-kernel-string-with-empty-array: +113 test-compare-null-kernel-string-with-empty-array: 114 # EAX = kernel-string-equal(Null-kernel-string, "") 115 # . . push args 116 68/push ""/imm32 @@ -191,7 +191,7 @@ if ('onhashchange' in window) { 130 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 131 c3/return 132 -133 test-compare-null-kernel-string-with-non-empty-array: +133 test-compare-null-kernel-string-with-non-empty-array: 134 # EAX = kernel-string-equal(Null-kernel-string, "Abc") 135 # . . push args 136 68/push "Abc"/imm32 @@ -211,7 +211,7 @@ if ('onhashchange' in window) { 150 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 151 c3/return 152 -153 test-compare-kernel-string-with-equal-array: +153 test-compare-kernel-string-with-equal-array: 154 # EAX = kernel-string-equal(Abc-kernel-string, "Abc") 155 # . . push args 156 68/push "Abc"/imm32 @@ -231,7 +231,7 @@ if ('onhashchange' in window) { 170 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 171 c3/return 172 -173 test-compare-kernel-string-with-inequal-array: +173 test-compare-kernel-string-with-inequal-array: 174 # EAX = kernel-string-equal(Abc-kernel-string, "Adc") 175 # . . push args 176 68/push "Adc"/imm32 @@ -251,7 +251,7 @@ if ('onhashchange' in window) { 190 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 191 c3/return 192 -193 test-compare-kernel-string-with-empty-array: +193 test-compare-kernel-string-with-empty-array: 194 # EAX = kernel-string-equal(Abc-kernel-string, "") 195 # . . push args 196 68/push ""/imm32 @@ -271,7 +271,7 @@ if ('onhashchange' in window) { 210 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 211 c3/return 212 -213 test-compare-kernel-string-with-shorter-array: +213 test-compare-kernel-string-with-shorter-array: 214 # EAX = kernel-string-equal(Abc-kernel-string, "Ab") 215 # . . push args 216 68/push "Ab"/imm32 @@ -291,7 +291,7 @@ if ('onhashchange' in window) { 230 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP 231 c3/return 232 -233 test-compare-kernel-string-with-longer-array: +233 test-compare-kernel-string-with-longer-array: 234 # EAX = kernel-string-equal(Abc-kernel-string, "Abcd") 235 # . . push args 236 68/push "Abcd"/imm32 @@ -314,7 +314,7 @@ if ('onhashchange' in window) { 253 # - helpers 254 255 # print msg to stderr if a != b, otherwise print "." -256 check-ints-equal: # (a : int, b : int, msg : (address array byte)) -> boolean +256 check-ints-equal: # (a : int, b : int, msg : (address array byte)) -> boolean 257 # . prolog 258 55/push-EBP 259 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -363,7 +363,7 @@ if ('onhashchange' in window) { 302 5d/pop-to-EBP 303 c3/return 304 -305 write-stderr: # s : (address array byte) -> <void> +305 write-stderr: # s : (address array byte) -> <void> 306 # . prolog 307 55/push-EBP 308 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP @@ -396,16 +396,16 @@ if ('onhashchange' in window) { 335 336 == data 337 -338 Newline: +338 Newline: 339 # size 340 01 00 00 00 341 # data 342 0a/newline 343 344 # for kernel-string-equal tests -345 Null-kernel-string: +345 Null-kernel-string: 346 00/null -347 Abc-kernel-string: +347 Abc-kernel-string: 348 41/A 62/b 63/c 00/null 349 350 # . . vim:nowrap:textwidth=0 diff --git a/html/subx/examples/ex12.subx.html b/html/subx/examples/ex12.subx.html index e6c1470a..88e939cb 100644 --- a/html/subx/examples/ex12.subx.html +++ b/html/subx/examples/ex12.subx.html @@ -84,7 +84,7 @@ if ('onhashchange' in window) { 27 == data 28 29 # various constants used here were found in the Linux sources (search for file mman-common.h) -30 Mmap-new-segment: # type mmap_arg_struct +30 Mmap-new-segment: # type mmap_arg_struct 31 # addr 32 00 00 00 00 # null 33 # len diff --git a/html/subx/examples/ex4.subx.html b/html/subx/examples/ex4.subx.html index 21d9c19d..98c31507 100644 --- a/html/subx/examples/ex4.subx.html +++ b/html/subx/examples/ex4.subx.html @@ -90,7 +90,7 @@ if ('onhashchange' in window) { 34 35 == data 36 -37 X: +37 X: 38 00 00 00 00 # space for read() to write to 39 40 # . . vim:nowrap:textwidth=0 diff --git a/html/subx/examples/ex6.subx.html b/html/subx/examples/ex6.subx.html index e06a0885..d2d01bed 100644 --- a/html/subx/examples/ex6.subx.html +++ b/html/subx/examples/ex6.subx.html @@ -84,9 +84,9 @@ if ('onhashchange' in window) { 27 28 == data 29 -30 Size: # size of string +30 Size: # size of string 31 0e 00 00 00 # 14 -32 X: # string to print +32 X: # string to print 33 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21 0a 00 34 # H e l l o , ␣ w o r l d ! newline null 35 diff --git a/html/subx/examples/ex7.subx.html b/html/subx/examples/ex7.subx.html index 942b9ab2..60cd3ccc 100644 --- a/html/subx/examples/ex7.subx.html +++ b/html/subx/examples/ex7.subx.html @@ -150,13 +150,13 @@ if ('onhashchange' in window) { 93 94 == data 95 - 96 Stream: + 96 Stream: 97 00 00 00 00 - 98 A: + 98 A: 99 61 00 00 00 -100 B: +100 B: 101 00 00 00 00 -102 Filename: +102 Filename: 103 2e 66 6f 6f 00 00 00 00 104 105 # . . vim:nowrap:textwidth=0 diff --git a/html/subx/examples/ex8.subx.html b/html/subx/examples/ex8.subx.html index cadea305..8495f188 100644 --- a/html/subx/examples/ex8.subx.html +++ b/html/subx/examples/ex8.subx.html @@ -92,7 +92,7 @@ if ('onhashchange' in window) { 34 b8/copy-to-EAX 1/imm32/exit 35 cd/syscall 0x80/imm8 36 -37 ascii-length: # s : (address array byte) -> n/EAX +37 ascii-length: # s : (address array byte) -> n/EAX 38 # EDX = s 39 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none . 2/r32/EDX 4/disp8 . # copy *(ESP+4) to EDX 40 # var result/EAX = 0 diff --git a/html/subx/examples/ex9.subx.html b/html/subx/examples/ex9.subx.html index dfe0a8ba..ab4693d3 100644 --- a/html/subx/examples/ex9.subx.html +++ b/html/subx/examples/ex9.subx.html @@ -95,7 +95,7 @@ if ('onhashchange' in window) { 38 b8/copy-to-EAX 1/imm32/exit 39 cd/syscall 0x80/imm8 40 -41 ascii-difference: # (s1, s2) : null-terminated ascii strings +41 ascii-difference: # (s1, s2) : null-terminated ascii strings 42 # a = first letter of s1 (ECX) 43 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none 0/r32/EAX 4/disp8 . # copy *(ESP+4) to EAX 44 8b/copy 0/mod/indirect 0/rm32/EAX . . . 0/r32/EAX . . # copy *EAX to EAX -- cgit 1.4.1-2-gfad0