about summary refs log tree commit diff stats
path: root/html/linux/409print-float-hex.mu.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-06-24 21:44:18 -0700
committerKartik Agaram <vc@akkartik.com>2021-06-24 21:46:45 -0700
commitec32c11d3bde6772ddd250d3b217e0541409e0ce (patch)
treeb6a6838412dc0b81eec92842753aef415b1e94af /html/linux/409print-float-hex.mu.html
parent296a5a5f12080384e813df5594339298f6f1fe8e (diff)
downloadmu-ec32c11d3bde6772ddd250d3b217e0541409e0ce.tar.gz
.
Switch html rendering to a white background.
Diffstat (limited to 'html/linux/409print-float-hex.mu.html')
-rw-r--r--html/linux/409print-float-hex.mu.html43
1 files changed, 24 insertions, 19 deletions
diff --git a/html/linux/409print-float-hex.mu.html b/html/linux/409print-float-hex.mu.html
index e9ab0f09..d73d47f5 100644
--- a/html/linux/409print-float-hex.mu.html
+++ b/html/linux/409print-float-hex.mu.html
@@ -7,22 +7,27 @@
 <meta name="plugin-version" content="vim8.1_v1">
 <meta name="syntax" content="none">
 <meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
-<meta name="colorscheme" content="minimal-dark">
+<meta name="colorscheme" content="minimal-light">
 <style type="text/css">
 <!--
-pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #a8a8a8; }
-body { font-size:12pt; font-family: monospace; color: #000000; background-color: #a8a8a8; }
+pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #eeeeee; }
+body { font-size:12pt; font-family: monospace; color: #000000; background-color: #eeeeee; }
 a { color:inherit; }
 * { font-size:12pt; font-size: 1em; }
-.PreProc { color: #c000c0; }
 .LineNr { }
-.Constant { color: #008787; }
-.muFunction { color: #af5f00; text-decoration: underline; }
-.CommentedCode { color: #8a8a8a; }
 .Delimiter { color: #c000c0; }
+.CommentedCode { color: #8a8a8a; }
+.muRegEdx { color: #878700; }
+.muRegEbx { color: #8787af; }
+.muRegEsi { color: #87d787; }
+.Constant { color: #008787; }
 .Special { color: #ff6060; }
+.PreProc { color: #c000c0; }
+.muFunction { color: #af5f00; text-decoration: underline; }
 .muTest { color: #5f8700; }
 .muComment { color: #005faf; }
+.muRegEax { color: #875f00; }
+.muRegEcx { color: #af875f; }
 -->
 </style>
 
@@ -72,7 +77,7 @@ if ('onhashchange' in window) {
 <span id="L12" class="LineNr"> 12 </span><span class="muComment">#                   =   +1.000000                   P -01</span>
 <span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muTest"><a href='409print-float-hex.mu.html#L13'>test-print-float-hex-normal</a></span> <span class="Delimiter">{</span>
 <span id="L14" class="LineNr"> 14 </span>  <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a>
-<span id="L15" class="LineNr"> 15 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
+<span id="L15" class="LineNr"> 15 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
 <span id="L16" class="LineNr"> 16 </span>  <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">0x20</span>  <span class="muComment"># 32 columns should be more than enough</span>
 <span id="L17" class="LineNr"> 17 </span>  <span class="muComment"># 0.5</span>
 <span id="L18" class="LineNr"> 18 </span>  <span class="PreProc">var</span> half/<span class="Constant">xmm0</span>: float <span class="Special">&lt;-</span> <a href='408float.mu.html#L18'>rational</a> <span class="Constant">1</span>, <span class="Constant">2</span>
@@ -97,7 +102,7 @@ if ('onhashchange' in window) {
 <span id="L37" class="LineNr"> 37 </span>
 <span id="L38" class="LineNr"> 38 </span><span class="PreProc">fn</span> <span class="muTest"><a href='409print-float-hex.mu.html#L38'>test-print-float-hex-integer</a></span> <span class="Delimiter">{</span>
 <span id="L39" class="LineNr"> 39 </span>  <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a>
-<span id="L40" class="LineNr"> 40 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
+<span id="L40" class="LineNr"> 40 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
 <span id="L41" class="LineNr"> 41 </span>  <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">0x20</span>  <span class="muComment"># 32 columns should be more than enough</span>
 <span id="L42" class="LineNr"> 42 </span>  <span class="muComment"># 1</span>
 <span id="L43" class="LineNr"> 43 </span>  <span class="PreProc">var</span> one-f/<span class="Constant">xmm0</span>: float <span class="Special">&lt;-</span> <a href='408float.mu.html#L18'>rational</a> <span class="Constant">1</span>, <span class="Constant">1</span>
@@ -122,7 +127,7 @@ if ('onhashchange' in window) {
 <span id="L62" class="LineNr"> 62 </span>
 <span id="L63" class="LineNr"> 63 </span><span class="PreProc">fn</span> <span class="muTest"><a href='409print-float-hex.mu.html#L63'>test-print-float-hex-zero</a></span> <span class="Delimiter">{</span>
 <span id="L64" class="LineNr"> 64 </span>  <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a>
-<span id="L65" class="LineNr"> 65 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
+<span id="L65" class="LineNr"> 65 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
 <span id="L66" class="LineNr"> 66 </span>  <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">0x20</span>  <span class="muComment"># 32 columns should be more than enough</span>
 <span id="L67" class="LineNr"> 67 </span>  <span class="PreProc">var</span> zero: float
 <span id="L68" class="LineNr"> 68 </span>  <a href='409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='405screen.mu.html#L9'>screen</a>, zero
@@ -131,7 +136,7 @@ if ('onhashchange' in window) {
 <span id="L71" class="LineNr"> 71 </span>
 <span id="L72" class="LineNr"> 72 </span><span class="PreProc">fn</span> <span class="muTest"><a href='409print-float-hex.mu.html#L72'>test-print-float-hex-negative-zero</a></span> <span class="Delimiter">{</span>
 <span id="L73" class="LineNr"> 73 </span>  <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a>
-<span id="L74" class="LineNr"> 74 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
+<span id="L74" class="LineNr"> 74 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
 <span id="L75" class="LineNr"> 75 </span>  <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">0x20</span>  <span class="muComment"># 32 columns should be more than enough</span>
 <span id="L76" class="LineNr"> 76 </span>  <span class="PreProc">var</span> n: int
 <span id="L77" class="LineNr"> 77 </span>  copy-to n, <span class="Constant">0x80000000</span>
@@ -142,7 +147,7 @@ if ('onhashchange' in window) {
 <span id="L82" class="LineNr"> 82 </span>
 <span id="L83" class="LineNr"> 83 </span><span class="PreProc">fn</span> <span class="muTest"><a href='409print-float-hex.mu.html#L83'>test-print-float-hex-infinity</a></span> <span class="Delimiter">{</span>
 <span id="L84" class="LineNr"> 84 </span>  <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a>
-<span id="L85" class="LineNr"> 85 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
+<span id="L85" class="LineNr"> 85 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
 <span id="L86" class="LineNr"> 86 </span>  <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">0x20</span>  <span class="muComment"># 32 columns should be more than enough</span>
 <span id="L87" class="LineNr"> 87 </span>  <span class="PreProc">var</span> n: int
 <span id="L88" class="LineNr"> 88 </span>  <span class="muComment">#          0|11111111|00000000000000000000000</span>
@@ -155,7 +160,7 @@ if ('onhashchange' in window) {
 <span id="L95" class="LineNr"> 95 </span>
 <span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muTest"><a href='409print-float-hex.mu.html#L96'>test-print-float-hex-negative-infinity</a></span> <span class="Delimiter">{</span>
 <span id="L97" class="LineNr"> 97 </span>  <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a>
-<span id="L98" class="LineNr"> 98 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
+<span id="L98" class="LineNr"> 98 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
 <span id="L99" class="LineNr"> 99 </span>  <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">0x20</span>  <span class="muComment"># 32 columns should be more than enough</span>
 <span id="L100" class="LineNr">100 </span>  <span class="PreProc">var</span> n: int
 <span id="L101" class="LineNr">101 </span>  copy-to n, <span class="Constant">0xff800000</span>
@@ -166,7 +171,7 @@ if ('onhashchange' in window) {
 <span id="L106" class="LineNr">106 </span>
 <span id="L107" class="LineNr">107 </span><span class="PreProc">fn</span> <span class="muTest"><a href='409print-float-hex.mu.html#L107'>test-print-float-hex-not-a-number</a></span> <span class="Delimiter">{</span>
 <span id="L108" class="LineNr">108 </span>  <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a>
-<span id="L109" class="LineNr">109 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
+<span id="L109" class="LineNr">109 </span>  <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special">&lt;-</span> address screen-on-stack
 <span id="L110" class="LineNr">110 </span>  <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">0x20</span>  <span class="muComment"># 32 columns should be more than enough</span>
 <span id="L111" class="LineNr">111 </span>  <span class="PreProc">var</span> n: int
 <span id="L112" class="LineNr">112 </span>  copy-to n, <span class="Constant">0xffffffff</span>  <span class="muComment"># exponent must be all 1's, and mantissa must be non-zero</span>
@@ -177,7 +182,7 @@ if ('onhashchange' in window) {
 <span id="L117" class="LineNr">117 </span>
 <span id="L118" class="LineNr">118 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='409print-float-hex.mu.html#L118'>print-float-hex</a></span> <a href='405screen.mu.html#L9'>screen</a>: (addr <a href='405screen.mu.html#L9'>screen</a>), n: float <span class="Delimiter">{</span>
 <span id="L119" class="LineNr">119 </span>  <span class="muComment"># - special names</span>
-<span id="L120" class="LineNr">120 </span>  <span class="PreProc">var</span> bits/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> reinterpret n
+<span id="L120" class="LineNr">120 </span>  <span class="PreProc">var</span> bits/<span class="muRegEax">eax</span>: int <span class="Special">&lt;-</span> reinterpret n
 <span id="L121" class="LineNr">121 </span>  compare bits, <span class="Constant">0</span>
 <span id="L122" class="LineNr">122 </span>  <span class="Delimiter">{</span>
 <span id="L123" class="LineNr">123 </span>    <span class="PreProc">break-if-!=</span>
@@ -202,7 +207,7 @@ if ('onhashchange' in window) {
 <span id="L142" class="LineNr">142 </span>    <a href='405screen.mu.html#L169'>print-string</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot;-Inf&quot;</span>
 <span id="L143" class="LineNr">143 </span>    <span class="PreProc">return</span>
 <span id="L144" class="LineNr">144 </span>  <span class="Delimiter">}</span>
-<span id="L145" class="LineNr">145 </span>  <span class="PreProc">var</span> exponent/<span class="Constant">ecx</span>: int <span class="Special">&lt;-</span> copy bits
+<span id="L145" class="LineNr">145 </span>  <span class="PreProc">var</span> exponent/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy bits
 <span id="L146" class="LineNr">146 </span>  exponent <span class="Special">&lt;-</span> shift-right <span class="Constant">0x17</span>  <span class="muComment"># 23 bits of mantissa</span>
 <span id="L147" class="LineNr">147 </span>  exponent <span class="Special">&lt;-</span> and <span class="Constant">0xff</span>
 <span id="L148" class="LineNr">148 </span>  exponent <span class="Special">&lt;-</span> subtract <span class="Constant">0x7f</span>
@@ -213,7 +218,7 @@ if ('onhashchange' in window) {
 <span id="L153" class="LineNr">153 </span>    <span class="PreProc">return</span>
 <span id="L154" class="LineNr">154 </span>  <span class="Delimiter">}</span>
 <span id="L155" class="LineNr">155 </span>  <span class="muComment"># - regular numbers</span>
-<span id="L156" class="LineNr">156 </span>  <span class="PreProc">var</span> sign/<span class="Constant">edx</span>: int <span class="Special">&lt;-</span> copy bits
+<span id="L156" class="LineNr">156 </span>  <span class="PreProc">var</span> sign/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy bits
 <span id="L157" class="LineNr">157 </span>  sign <span class="Special">&lt;-</span> shift-right <span class="Constant">0x1f</span>
 <span id="L158" class="LineNr">158 </span>  <span class="Delimiter">{</span>
 <span id="L159" class="LineNr">159 </span>    compare sign, <span class="Constant">1</span>
@@ -232,7 +237,7 @@ if ('onhashchange' in window) {
 <span id="L172" class="LineNr">172 </span>    <span class="muComment"># normal numbers</span>
 <span id="L173" class="LineNr">173 </span>    <a href='405screen.mu.html#L169'>print-string</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot;1.&quot;</span>
 <span id="L174" class="LineNr">174 </span>  <span class="Delimiter">}</span>
-<span id="L175" class="LineNr">175 </span>  <span class="PreProc">var</span> mantissa/<span class="Constant">ebx</span>: int <span class="Special">&lt;-</span> copy bits
+<span id="L175" class="LineNr">175 </span>  <span class="PreProc">var</span> mantissa/<span class="muRegEbx">ebx</span>: int <span class="Special">&lt;-</span> copy bits
 <span id="L176" class="LineNr">176 </span>  mantissa <span class="Special">&lt;-</span> and <span class="Constant">0x7fffff</span>
 <span id="L177" class="LineNr">177 </span>  mantissa <span class="Special">&lt;-</span> shift-left <span class="Constant">1</span>  <span class="muComment"># pad to whole nibbles</span>
 <span id="L178" class="LineNr">178 </span>  <a href='405screen.mu.html#L462'>print-int32-hex-bits</a> <a href='405screen.mu.html#L9'>screen</a>, mantissa, <span class="Constant">0x18</span>
@@ -243,7 +248,7 @@ if ('onhashchange' in window) {
 <span id="L183" class="LineNr">183 </span>    <span class="PreProc">break-if-&gt;=</span>
 <span id="L184" class="LineNr">184 </span>    <a href='405screen.mu.html#L169'>print-string</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot;-&quot;</span>
 <span id="L185" class="LineNr">185 </span>  <span class="Delimiter">}</span>
-<span id="L186" class="LineNr">186 </span>  <span class="PreProc">var</span> exp-magnitude/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> <a href='406int32.mu.html#L31'>abs</a> exponent
+<span id="L186" class="LineNr">186 </span>  <span class="PreProc">var</span> exp-magnitude/<span class="muRegEax">eax</span>: int <span class="Special">&lt;-</span> <a href='406int32.mu.html#L31'>abs</a> exponent
 <span id="L187" class="LineNr">187 </span>  <a href='405screen.mu.html#L462'>print-int32-hex-bits</a> <a href='405screen.mu.html#L9'>screen</a>, exp-magnitude, <span class="Constant">8</span>
 <span id="L188" class="LineNr">188 </span><span class="Delimiter">}</span>
 <span id="L189" class="LineNr">189 </span>