From 372367f59a897162912d0646158bdea1e07d6e66 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 26 Jun 2021 20:55:36 -0700 Subject: html: better highlighting for int registers --- html/linux/411string.mu.html | 47 ++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 24 deletions(-) (limited to 'html/linux/411string.mu.html') diff --git a/html/linux/411string.mu.html b/html/linux/411string.mu.html index f1891150..35bbd19f 100644 --- a/html/linux/411string.mu.html +++ b/html/linux/411string.mu.html @@ -14,19 +14,18 @@ pre { white-space: pre-wrap; font-family: monospace; color: #000000; background- body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.muRegEax { color: #875f00; } -.muComment { color: #005faf; } -.CommentedCode { color: #8a8a8a; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.CommentedCode { color: #8a8a8a; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> @@ -71,12 +70,12 @@ if ('onhashchange' in window) { 7 var out-stream-addr/edi: (addr stream byte) <- address out-stream 8 $substring:core: { 9 # skip 'start' graphemes - 10 var i/eax: int <- copy 0 + 10 var i/eax: int <- copy 0 11 { 12 compare i, start 13 break-if->= 14 { - 15 var dummy/eax: grapheme <- read-grapheme in-stream-addr + 15 var dummy/eax: grapheme <- read-grapheme in-stream-addr 16 compare dummy, 0xffffffff/end-of-file 17 break-if-= $substring:core 18 } @@ -89,7 +88,7 @@ if ('onhashchange' in window) { 25 compare i, len 26 break-if->= 27 { - 28 var g/eax: grapheme <- read-grapheme in-stream-addr + 28 var g/eax: grapheme <- read-grapheme in-stream-addr 29 compare g, 0xffffffff/end-of-file 30 break-if-= $substring:core 31 write-grapheme out-stream-addr, g @@ -106,46 +105,46 @@ if ('onhashchange' in window) { 42 var out-ah/edi: (addr handle array byte) <- address out-h 43 # prefix substrings 44 substring 0, 0, 3, out-ah - 45 var out/eax: (addr array byte) <- lookup *out-ah + 45 var out/eax: (addr array byte) <- lookup *out-ah 46 check-strings-equal out, "", "F - test-substring/null" 47 substring "", 0, 3, out-ah - 48 var out/eax: (addr array byte) <- lookup *out-ah + 48 var out/eax: (addr array byte) <- lookup *out-ah 49 #? print-string-to-real-screen out 50 #? print-string-to-real-screen "\n" 51 check-strings-equal out, "", "F - test-substring/empty" 52 # 53 substring "abcde", 0, 3, out-ah - 54 var out/eax: (addr array byte) <- lookup *out-ah + 54 var out/eax: (addr array byte) <- lookup *out-ah 55 #? print-string-to-real-screen out 56 #? print-string-to-real-screen "\n" 57 check-strings-equal out, "abc", "F - test-substring/truncate" 58 # 59 substring "abcde", 0, 5, out-ah - 60 var out/eax: (addr array byte) <- lookup *out-ah + 60 var out/eax: (addr array byte) <- lookup *out-ah 61 check-strings-equal out, "abcde", "F - test-substring/all" 62 # 63 substring "abcde", 0, 7, out-ah - 64 var out/eax: (addr array byte) <- lookup *out-ah + 64 var out/eax: (addr array byte) <- lookup *out-ah 65 check-strings-equal out, "abcde", "F - test-substring/too-small" 66 # substrings outside string 67 substring "abcde", 6, 1, out-ah - 68 var out/eax: (addr array byte) <- lookup *out-ah + 68 var out/eax: (addr array byte) <- lookup *out-ah 69 check-strings-equal out, "", "F - test-substring/start-too-large" 70 # trim prefix 71 substring "", 2, 3, out-ah - 72 var out/eax: (addr array byte) <- lookup *out-ah + 72 var out/eax: (addr array byte) <- lookup *out-ah 73 check-strings-equal out, "", "F - test-substring/middle-empty" 74 # 75 substring "abcde", 1, 2, out-ah - 76 var out/eax: (addr array byte) <- lookup *out-ah + 76 var out/eax: (addr array byte) <- lookup *out-ah 77 check-strings-equal out, "bc", "F - test-substring/middle-truncate" 78 # 79 substring "abcde", 1, 4, out-ah - 80 var out/eax: (addr array byte) <- lookup *out-ah + 80 var out/eax: (addr array byte) <- lookup *out-ah 81 check-strings-equal out, "bcde", "F - test-substring/middle-all" 82 # 83 substring "abcde", 1, 5, out-ah - 84 var out/eax: (addr array byte) <- lookup *out-ah + 84 var out/eax: (addr array byte) <- lookup *out-ah 85 check-strings-equal out, "bcde", "F - test-substring/middle-too-small" 86 } 87 @@ -158,7 +157,7 @@ if ('onhashchange' in window) { 94 var curr-stream: (stream byte 0x100) 95 var curr-stream-addr/ecx: (addr stream byte) <- address curr-stream 96 $split-string:core: { - 97 var g/eax: grapheme <- read-grapheme in-stream-addr + 97 var g/eax: grapheme <- read-grapheme in-stream-addr 98 compare g, 0xffffffff 99 break-if-= 100 #? print-grapheme-to-real-screen g @@ -168,7 +167,7 @@ if ('onhashchange' in window) { 104 break-if-!= 105 # token complete; flush 106 var token: (handle array byte) -107 var token-ah/eax: (addr handle array byte) <- address token +107 var token-ah/eax: (addr handle array byte) <- address token 108 stream-to-array curr-stream-addr, token-ah 109 write-to-stream tokens-stream-addr, token-ah 110 clear-stream curr-stream-addr -- cgit 1.4.1-2-gfad0