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/parse-int.mu.html | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'html/linux/parse-int.mu.html') diff --git a/html/linux/parse-int.mu.html b/html/linux/parse-int.mu.html index a7606797..8c28b002 100644 --- a/html/linux/parse-int.mu.html +++ b/html/linux/parse-int.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; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } +.LineNr { } .Constant { color: #008787; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } -.muRegEdi { color: #87ffd7; } +.muComment { color: #005faf; } --> @@ -82,11 +81,11 @@ if ('onhashchange' in window) { 18 } 19 # otherwise parse the first arg as an integer 20 var in/ecx: (addr addr array byte) <- index args, 1 -21 var out/eax: int <- parse-int *in +21 var out/eax: int <- parse-int *in 22 return out 23 } 24 -25 fn parse-int _in: (addr array byte) -> _/eax: int { +25 fn parse-int _in: (addr array byte) -> _/eax: int { 26 var in/esi: (addr array byte) <- copy _in 27 var len/edx: int <- length in 28 var i/ecx: int <- copy 0 @@ -95,14 +94,14 @@ if ('onhashchange' in window) { 31 compare i, len 32 break-if->= 33 # result *= 10 -34 var ten/eax: int <- copy 0xa +34 var ten/eax: int <- copy 0xa 35 result <- multiply ten 36 # c = in[i] 37 var tmp/ebx: (addr byte) <- index in, i -38 var c/eax: byte <- copy-byte *tmp +38 var c/eax: byte <- copy-byte *tmp 39 # -40 var g/eax: grapheme <- copy c -41 var digit/eax: int <- to-decimal-digit g +40 var g/eax: grapheme <- copy c +41 var digit/eax: int <- to-decimal-digit g 42 result <- add digit 43 i <- increment 44 loop -- cgit 1.4.1-2-gfad0