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/tile/value-stack.mu.html | 65 ++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 33 deletions(-) (limited to 'html/linux/tile/value-stack.mu.html') diff --git a/html/linux/tile/value-stack.mu.html b/html/linux/tile/value-stack.mu.html index d359cd35..b8bd621a 100644 --- a/html/linux/tile/value-stack.mu.html +++ b/html/linux/tile/value-stack.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> @@ -74,13 +73,13 @@ if ('onhashchange' in window) { 9 var self/esi: (addr value-stack) <- copy _self 10 var d/edi: (addr handle array value) <- get self, data 11 populate d, n - 12 var top/eax: (addr int) <- get self, top + 12 var top/eax: (addr int) <- get self, top 13 copy-to *top, 0 14 } 15 16 fn clear-value-stack _self: (addr value-stack) { 17 var self/esi: (addr value-stack) <- copy _self - 18 var top/eax: (addr int) <- get self, top + 18 var top/eax: (addr int) <- get self, top 19 copy-to *top, 0 20 } 21 @@ -88,16 +87,16 @@ if ('onhashchange' in window) { 23 var self/esi: (addr value-stack) <- copy _self 24 var top-addr/ecx: (addr int) <- get self, top 25 var data-ah/edx: (addr handle array value) <- get self, data - 26 var data/eax: (addr array value) <- lookup *data-ah + 26 var data/eax: (addr array value) <- lookup *data-ah 27 var top/edx: int <- copy *top-addr 28 var dest-offset/edx: (offset value) <- compute-offset data, top 29 var dest-addr/edx: (addr value) <- index data, dest-offset - 30 var dest-addr2/eax: (addr float) <- get dest-addr, number-data + 30 var dest-addr2/eax: (addr float) <- get dest-addr, number-data 31 var val/xmm0: float <- copy _val 32 #? print-float-decimal-approximate 0, val, 3 33 copy-to *dest-addr2, val 34 increment *top-addr - 35 var type-addr/eax: (addr int) <- get dest-addr, type + 35 var type-addr/eax: (addr int) <- get dest-addr, type 36 copy-to *type-addr, 0/number 37 } 38 @@ -105,13 +104,13 @@ if ('onhashchange' in window) { 40 var self/esi: (addr value-stack) <- copy _self 41 var top-addr/ecx: (addr int) <- get self, top 42 var data-ah/edx: (addr handle array value) <- get self, data - 43 var data/eax: (addr array value) <- lookup *data-ah + 43 var data/eax: (addr array value) <- lookup *data-ah 44 var top/edx: int <- copy *top-addr 45 var dest-offset/edx: (offset value) <- compute-offset data, top 46 var dest-addr/edx: (addr value) <- index data, dest-offset - 47 var dest-addr2/eax: (addr handle array byte) <- get dest-addr, text-data + 47 var dest-addr2/eax: (addr handle array byte) <- get dest-addr, text-data 48 copy-handle val, dest-addr2 - 49 var dest-addr3/eax: (addr int) <- get dest-addr, type + 49 var dest-addr3/eax: (addr int) <- get dest-addr, type 50 #? print-string 0, "setting type to 1: " 51 #? { 52 #? var foo/eax: int <- copy dest-addr3 @@ -126,14 +125,14 @@ if ('onhashchange' in window) { 61 var self/esi: (addr value-stack) <- copy _self 62 var top-addr/ecx: (addr int) <- get self, top 63 var data-ah/edx: (addr handle array value) <- get self, data - 64 var data/eax: (addr array value) <- lookup *data-ah + 64 var data/eax: (addr array value) <- lookup *data-ah 65 var top/edx: int <- copy *top-addr 66 var dest-offset/edx: (offset value) <- compute-offset data, top 67 var dest-addr/edx: (addr value) <- index data, dest-offset - 68 var dest-addr2/eax: (addr handle array value) <- get dest-addr, array-data + 68 var dest-addr2/eax: (addr handle array value) <- get dest-addr, array-data 69 copy-handle val, dest-addr2 70 # update type - 71 var dest-addr3/eax: (addr int) <- get dest-addr, type + 71 var dest-addr3/eax: (addr int) <- get dest-addr, type 72 copy-to *dest-addr3, 2/array 73 increment *top-addr 74 } @@ -142,7 +141,7 @@ if ('onhashchange' in window) { 77 var self/esi: (addr value-stack) <- copy _self 78 var top-addr/ecx: (addr int) <- get self, top 79 var data-ah/edx: (addr handle array value) <- get self, data - 80 var data/eax: (addr array value) <- lookup *data-ah + 80 var data/eax: (addr array value) <- lookup *data-ah 81 var top/edx: int <- copy *top-addr 82 var dest-offset/edx: (offset value) <- compute-offset data, top 83 var dest-addr/edx: (addr value) <- index data, dest-offset @@ -156,23 +155,23 @@ if ('onhashchange' in window) { 91 { 92 compare *top-addr, 0 93 break-if-> - 94 var minus-one/eax: int <- copy -1 + 94 var minus-one/eax: int <- copy -1 95 var minus-one-f/xmm0: float <- convert minus-one 96 return minus-one-f 97 } 98 decrement *top-addr 99 var data-ah/edx: (addr handle array value) <- get self, data -100 var data/eax: (addr array value) <- lookup *data-ah +100 var data/eax: (addr array value) <- lookup *data-ah 101 var top/edx: int <- copy *top-addr 102 var dest-offset/edx: (offset value) <- compute-offset data, top -103 var result-addr/eax: (addr value) <- index data, dest-offset -104 var result-addr2/eax: (addr float) <- get result-addr, number-data +103 var result-addr/eax: (addr value) <- index data, dest-offset +104 var result-addr2/eax: (addr float) <- get result-addr, number-data 105 return *result-addr2 106 } 107 -108 fn value-stack-empty? _self: (addr value-stack) -> _/eax: boolean { +108 fn value-stack-empty? _self: (addr value-stack) -> _/eax: boolean { 109 var self/esi: (addr value-stack) <- copy _self -110 var top/eax: (addr int) <- get self, top +110 var top/eax: (addr int) <- get self, top 111 compare *top, 0 112 { 113 break-if-!= @@ -181,19 +180,19 @@ if ('onhashchange' in window) { 116 return 0/false 117 } 118 -119 fn value-stack-length _self: (addr value-stack) -> _/eax: int { +119 fn value-stack-length _self: (addr value-stack) -> _/eax: int { 120 var self/esi: (addr value-stack) <- copy _self -121 var top-addr/eax: (addr int) <- get self, top +121 var top-addr/eax: (addr int) <- get self, top 122 return *top-addr 123 } 124 125 fn save-lines in-h: (handle array (handle array byte)), _out-ah: (addr handle array value) { -126 var _in/eax: (addr array (handle array byte)) <- lookup in-h +126 var _in/eax: (addr array (handle array byte)) <- lookup in-h 127 var in/esi: (addr array (handle array byte)) <- copy _in 128 var len/ecx: int <- length in 129 var out-ah/edi: (addr handle array value) <- copy _out-ah 130 populate out-ah, len -131 var out/eax: (addr array value) <- lookup *out-ah +131 var out/eax: (addr array value) <- lookup *out-ah 132 # copy in into out 133 var i/ebx: int <- copy 0 134 { @@ -204,7 +203,7 @@ if ('onhashchange' in window) { 139 var src/ecx: (addr handle array byte) <- index in, i 140 var dest-offset/edx: (offset value) <- compute-offset out, i 141 var dest-val/edx: (addr value) <- index out, dest-offset -142 var dest/eax: (addr handle array byte) <- get dest-val, text-data +142 var dest/eax: (addr handle array byte) <- get dest-val, text-data 143 copy-object src, dest 144 var type/edx: (addr int) <- get dest-val, type 145 copy-to *type, 1/string -- cgit 1.4.1-2-gfad0