From 3ff2fe607c2cb5690d201d3b83ddcc957e949b7a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 9 Nov 2021 09:23:31 -0800 Subject: . --- html/linux/tile/word.mu.html | 58 ++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'html/linux/tile/word.mu.html') diff --git a/html/linux/tile/word.mu.html b/html/linux/tile/word.mu.html index f619aa82..4d1e86d3 100644 --- a/html/linux/tile/word.mu.html +++ b/html/linux/tile/word.mu.html @@ -15,18 +15,18 @@ body { font-size:12pt; font-family: monospace; color: #000000; background-color: a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .LineNr { } +.Constant { color: #008787; } +.CommentedCode { color: #8a8a8a; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.Constant { color: #008787; } +.muComment { color: #005faf; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muRegEbx { color: #5f00ff; } -.Delimiter { color: #c000c0; } .Special { color: #ff6060; } -.muComment { color: #005faf; } --> @@ -122,15 +122,15 @@ if ('onhashchange' in window) { 58 cursor-to-start src 59 var src-data-ah/eax: (addr handle gap-buffer) <- get src, scalar-data 60 var src-data/eax: (addr gap-buffer) <- lookup *src-data-ah - 61 var src-stack/ecx: (addr grapheme-stack) <- get src-data, right + 61 var src-stack/ecx: (addr code-point-utf8-stack) <- get src-data, right 62 { - 63 var done?/eax: boolean <- grapheme-stack-empty? src-stack + 63 var done?/eax: boolean <- code-point-utf8-stack-empty? src-stack 64 compare done?, 0/false 65 break-if-!= - 66 var g/eax: grapheme <- pop-grapheme-stack src-stack - 67 #? print-grapheme 0, g + 66 var g/eax: code-point-utf8 <- pop-code-point-utf8-stack src-stack + 67 #? print-code-point-utf8 0, g 68 #? print-string 0, "\n" - 69 add-grapheme-to-word dest, g + 69 add-code-point-utf8-to-word dest, g 70 loop 71 } 72 } @@ -143,17 +143,17 @@ if ('onhashchange' in window) { 79 var src/eax: (addr word) <- lookup *src-ah 80 var src-data-ah/eax: (addr handle gap-buffer) <- get src, scalar-data 81 var src-data/eax: (addr gap-buffer) <- lookup *src-data-ah - 82 var src-stack/ecx: (addr grapheme-stack) <- get src-data, left - 83 var src-stack-data-ah/eax: (addr handle array grapheme) <- get src-stack, data - 84 var _src-stack-data/eax: (addr array grapheme) <- lookup *src-stack-data-ah - 85 var src-stack-data/edx: (addr array grapheme) <- copy _src-stack-data + 82 var src-stack/ecx: (addr code-point-utf8-stack) <- get src-data, left + 83 var src-stack-data-ah/eax: (addr handle array code-point-utf8) <- get src-stack, data + 84 var _src-stack-data/eax: (addr array code-point-utf8) <- lookup *src-stack-data-ah + 85 var src-stack-data/edx: (addr array code-point-utf8) <- copy _src-stack-data 86 var top-addr/ecx: (addr int) <- get src-stack, top 87 var i/eax: int <- copy 0 88 { 89 compare i, *top-addr 90 break-if->= - 91 var g/edx: (addr grapheme) <- index src-stack-data, i - 92 add-grapheme-to-word dest, *g + 91 var g/edx: (addr code-point-utf8) <- index src-stack-data, i + 92 add-code-point-utf8-to-word dest, *g 93 i <- increment 94 loop 95 } @@ -193,27 +193,27 @@ if ('onhashchange' in window) { 129 copy-object curr-ah, out # modify 'out' right at the end, just in case it's same as 'in' 130 } 131 -132 fn first-grapheme _self: (addr word) -> _/eax: grapheme { +132 fn first-code-point-utf8 _self: (addr word) -> _/eax: code-point-utf8 { 133 var self/esi: (addr word) <- copy _self 134 var data-ah/eax: (addr handle gap-buffer) <- get self, scalar-data 135 var data/eax: (addr gap-buffer) <- lookup *data-ah -136 var result/eax: grapheme <- first-grapheme-in-gap-buffer data +136 var result/eax: code-point-utf8 <- first-code-point-utf8-in-gap-buffer data 137 return result 138 } 139 -140 fn grapheme-before-cursor _self: (addr word) -> _/eax: grapheme { +140 fn code-point-utf8-before-cursor _self: (addr word) -> _/eax: code-point-utf8 { 141 var self/esi: (addr word) <- copy _self 142 var data-ah/eax: (addr handle gap-buffer) <- get self, scalar-data 143 var data/eax: (addr gap-buffer) <- lookup *data-ah -144 var result/eax: grapheme <- grapheme-before-cursor-in-gap-buffer data +144 var result/eax: code-point-utf8 <- code-point-utf8-before-cursor-in-gap-buffer data 145 return result 146 } 147 -148 fn add-grapheme-to-word _self: (addr word), c: grapheme { +148 fn add-code-point-utf8-to-word _self: (addr word), c: code-point-utf8 { 149 var self/esi: (addr word) <- copy _self 150 var data-ah/eax: (addr handle gap-buffer) <- get self, scalar-data 151 var data/eax: (addr gap-buffer) <- lookup *data-ah -152 add-grapheme-at-gap data, c +152 add-code-point-utf8-at-gap data, c 153 } 154 155 fn cursor-at-start? _self: (addr word) -> _/eax: boolean { @@ -236,14 +236,14 @@ if ('onhashchange' in window) { 172 var self/esi: (addr word) <- copy _self 173 var data-ah/eax: (addr handle gap-buffer) <- get self, scalar-data 174 var data/eax: (addr gap-buffer) <- lookup *data-ah -175 var dummy/eax: grapheme <- gap-left data +175 var dummy/eax: code-point-utf8 <- gap-left data 176 } 177 178 fn cursor-right _self: (addr word) { 179 var self/esi: (addr word) <- copy _self 180 var data-ah/eax: (addr handle gap-buffer) <- get self, scalar-data 181 var data/eax: (addr gap-buffer) <- lookup *data-ah -182 var dummy/eax: grapheme <- gap-right data +182 var dummy/eax: code-point-utf8 <- gap-right data 183 } 184 185 fn cursor-to-start _self: (addr word) { @@ -275,11 +275,11 @@ if ('onhashchange' in window) { 211 delete-before-gap data 212 } 213 -214 fn pop-after-cursor _self: (addr word) -> _/eax: grapheme { +214 fn pop-after-cursor _self: (addr word) -> _/eax: code-point-utf8 { 215 var self/esi: (addr word) <- copy _self 216 var data-ah/eax: (addr handle gap-buffer) <- get self, scalar-data 217 var data/eax: (addr gap-buffer) <- lookup *data-ah -218 var result/eax: grapheme <- pop-after-gap data +218 var result/eax: code-point-utf8 <- pop-after-gap data 219 return result 220 } 221 @@ -617,14 +617,14 @@ if ('onhashchange' in window) { 553 var done?/eax: boolean <- stream-empty? in-stream-a 554 compare done?, 0/false 555 break-if-!= -556 var _g/eax: grapheme <- read-grapheme in-stream-a -557 var g/ecx: grapheme <- copy _g +556 var _g/eax: code-point-utf8 <- read-code-point-utf8 in-stream-a +557 var g/ecx: code-point-utf8 <- copy _g 558 # if not space, insert 559 compare g, 0x20/space 560 { 561 break-if-= 562 var cursor-word/eax: (addr word) <- lookup *cursor-word-ah -563 add-grapheme-to-word cursor-word, g +563 add-code-point-utf8-to-word cursor-word, g 564 loop $parse-words:loop 565 } 566 # otherwise insert word after and move cursor to it -- cgit 1.4.1-2-gfad0