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/colors.mu.html | 53 ++++++++++++++++++++++++++--------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) (limited to 'html/colors.mu.html') diff --git a/html/colors.mu.html b/html/colors.mu.html index 0c5a02bb..16f6f87c 100644 --- a/html/colors.mu.html +++ b/html/colors.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; } -.muRegEcx { color: #af875f; } -.muComment { color: #005faf; } -.CommentedCode { color: #8a8a8a; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muComment { color: #005faf; } --> @@ -79,19 +78,19 @@ if ('onhashchange' in window) { 15 var in/esi: (addr stream byte) <- address in-storage 16 { 17 # print prompt - 18 var x/eax: int <- draw-text-rightward screen, "Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space> ", 0x10/x, 0x80/xmax, 0x28/y, 3/fg/cyan, 0/bg + 18 var x/eax: int <- draw-text-rightward screen, "Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space> ", 0x10/x, 0x80/xmax, 0x28/y, 3/fg/cyan, 0/bg 19 # read line from keyboard 20 clear-stream in 21 { 22 draw-cursor screen, 0x20/space - 23 var key/eax: byte <- read-key keyboard + 23 var key/eax: byte <- read-key keyboard 24 compare key, 0xa/newline 25 break-if-= 26 compare key, 0 27 loop-if-= - 28 var key2/eax: int <- copy key + 28 var key2/eax: int <- copy key 29 append-byte in, key2 - 30 var g/eax: grapheme <- copy key2 + 30 var g/eax: grapheme <- copy key2 31 draw-grapheme-at-cursor screen, g, 0xf/fg, 0/bg 32 move-cursor-right 0 33 loop @@ -121,9 +120,9 @@ if ('onhashchange' in window) { 57 # Each word consists of exactly 1 or 2 hex bytes. No hex prefix. 58 fn parse in: (addr stream byte) -> _/ecx: int, _/edx: int, _/ebx: int { 59 # read first byte of r - 60 var tmp/eax: byte <- read-byte in + 60 var tmp/eax: byte <- read-byte in 61 { - 62 var valid?/eax: boolean <- hex-digit? tmp + 62 var valid?/eax: boolean <- hex-digit? tmp 63 compare valid?, 0/false 64 break-if-!= 65 abort "invalid byte 0 of r" @@ -136,7 +135,7 @@ if ('onhashchange' in window) { 72 tmp <- read-byte in 73 { 74 { - 75 var valid?/eax: boolean <- hex-digit? tmp + 75 var valid?/eax: boolean <- hex-digit? tmp 76 compare valid?, 0/false 77 } 78 break-if-= @@ -155,9 +154,9 @@ if ('onhashchange' in window) { 91 tmp <- read-byte in # skip space 92 } 93 # read first byte of g - 94 var tmp/eax: byte <- read-byte in + 94 var tmp/eax: byte <- read-byte in 95 { - 96 var valid?/eax: boolean <- hex-digit? tmp + 96 var valid?/eax: boolean <- hex-digit? tmp 97 compare valid?, 0/false 98 break-if-!= 99 abort "invalid byte 0 of g" @@ -170,7 +169,7 @@ if ('onhashchange' in window) { 106 tmp <- read-byte in 107 { 108 { -109 var valid?/eax: boolean <- hex-digit? tmp +109 var valid?/eax: boolean <- hex-digit? tmp 110 compare valid?, 0/false 111 } 112 break-if-= @@ -189,9 +188,9 @@ if ('onhashchange' in window) { 125 tmp <- read-byte in # skip space 126 } 127 # read first byte of b -128 var tmp/eax: byte <- read-byte in +128 var tmp/eax: byte <- read-byte in 129 { -130 var valid?/eax: boolean <- hex-digit? tmp +130 var valid?/eax: boolean <- hex-digit? tmp 131 compare valid?, 0/false 132 break-if-!= 133 abort "invalid byte 0 of b" @@ -203,13 +202,13 @@ if ('onhashchange' in window) { 139 # read second byte of b 140 { 141 { -142 var done?/eax: boolean <- stream-empty? in +142 var done?/eax: boolean <- stream-empty? in 143 compare done?, 0/false 144 } 145 break-if-!= 146 tmp <- read-byte in 147 { -148 var valid?/eax: boolean <- hex-digit? tmp +148 var valid?/eax: boolean <- hex-digit? tmp 149 compare valid?, 0/false 150 } 151 break-if-= @@ -230,8 +229,8 @@ if ('onhashchange' in window) { 166 } 167 168 # no error checking -169 fn fast-hex-digit-value in: byte -> _/eax: byte { -170 var result/eax: byte <- copy in +169 fn fast-hex-digit-value in: byte -> _/eax: byte { +170 var result/eax: byte <- copy in 171 compare result, 0x39 172 { 173 break-if-> @@ -263,7 +262,7 @@ if ('onhashchange' in window) { 199 var a/ecx: int <- copy 0 200 var b/edx: int <- copy 0 201 var c/ebx: int <- copy 0 -202 var color/eax: int <- copy 0 +202 var color/eax: int <- copy 0 203 var y/esi: int <- copy 2 204 { 205 compare color, 0x100 -- cgit 1.4.1-2-gfad0