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/402time.mu.html | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'html/linux/402time.mu.html') diff --git a/html/linux/402time.mu.html b/html/linux/402time.mu.html index 804cf2f2..e3610037 100644 --- a/html/linux/402time.mu.html +++ b/html/linux/402time.mu.html @@ -14,16 +14,15 @@ 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; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.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; } +.muComment { color: #005faf; } --> @@ -66,24 +65,24 @@ if ('onhashchange' in window) { 5 6 # return time in seconds since epoch 7 # TODO: y2038 - 8 fn time -> _/eax: int { + 8 fn time -> _/eax: int { 9 var t: timespec 10 var clock/ebx: int <- copy 0/CLOCK_MONOTONIC 11 var t-addr/ecx: (addr timespec) <- address t 12 syscall_clock_gettime 13 var t-secs-addr/ecx: (addr int) <- get t-addr, tv_sec -14 var secs/eax: int <- copy *t-secs-addr +14 var secs/eax: int <- copy *t-secs-addr 15 return secs 16 } 17 18 # return time in nanoseconds since epoch -19 fn ntime -> _/eax: int { +19 fn ntime -> _/eax: int { 20 var t: timespec 21 var clock/ebx: int <- copy 0/CLOCK_MONOTONIC 22 var t-addr/ecx: (addr timespec) <- address t 23 syscall_clock_gettime 24 var t-nsecs-addr/ecx: (addr int) <- get t-addr, tv_nsec -25 var nsecs/eax: int <- copy *t-nsecs-addr +25 var nsecs/eax: int <- copy *t-nsecs-addr 26 return nsecs 27 } 28 @@ -91,7 +90,7 @@ if ('onhashchange' in window) { 30 fn sleep secs: int, nsecs: int { 31 var t: timespec 32 # initialize t -33 var tmp/eax: (addr int) <- get t, tv_sec +33 var tmp/eax: (addr int) <- get t, tv_sec 34 var tmp2/ecx: int <- copy secs 35 copy-to *tmp, tmp2 36 tmp <- get t, tv_nsec -- cgit 1.4.1-2-gfad0