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/506math.mu.html | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'html/506math.mu.html') diff --git a/html/506math.mu.html b/html/506math.mu.html index 25732479..76390e16 100644 --- a/html/506math.mu.html +++ b/html/506math.mu.html @@ -14,14 +14,13 @@ 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; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } .LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEax { color: #875f00; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.Special { color: #ff6060; } --> @@ -57,7 +56,7 @@ if ('onhashchange' in window) { https://github.com/akkartik/mu/blob/main/506math.mu
- 1 fn abs n: int -> _/eax: int {
+ 1 fn abs n: int -> _/eax: int {
  2   compare n, 0
  3   {
  4     break-if->=
@@ -66,7 +65,7 @@ if ('onhashchange' in window) {
  7   return n
  8 }
  9 
-10 fn sgn n: int -> _/eax: int {
+10 fn sgn n: int -> _/eax: int {
 11   compare n, 0
 12   {
 13     break-if-<=
@@ -79,8 +78,8 @@ if ('onhashchange' in window) {
 20   return 0
 21 }
 22 
-23 fn shift-left-by n: int, bits: int -> _/eax: int {
-24   var i/eax: int <- copy bits
+23 fn shift-left-by n: int, bits: int -> _/eax: int {
+24   var i/eax: int <- copy bits
 25   {
 26     compare i, 0
 27     break-if-<=
@@ -91,8 +90,8 @@ if ('onhashchange' in window) {
 32   return n
 33 }
 34 
-35 fn shift-right-by n: int, bits: int -> _/eax: int {
-36   var i/eax: int <- copy bits
+35 fn shift-right-by n: int, bits: int -> _/eax: int {
+36   var i/eax: int <- copy bits
 37   {
 38     compare i, 0
 39     break-if-<=
@@ -105,7 +104,7 @@ if ('onhashchange' in window) {
 46 
 47 fn clear-lowest-bits _n: (addr int), bits: int {
 48   var dest/edi: (addr int) <- copy _n
-49   var n/eax: int <- copy *dest
+49   var n/eax: int <- copy *dest
 50   n <- shift-right-by n, bits
 51   n <- shift-left-by n, bits
 52   copy-to *dest, n
-- 
cgit 1.4.1-2-gfad0