fix other mandelbrot variants
[mu.git] / html / 318counter.subx.html
blob65d0bc184c622a5ab3b2b07192abdab980fb1f4c
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
5 <title>Mu - 318counter.subx</title>
6 <meta name="Generator" content="Vim/8.1">
7 <meta name="plugin-version" content="vim8.1_v1">
8 <meta name="syntax" content="none">
9 <meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
10 <meta name="colorscheme" content="minimal-light">
11 <style type="text/css">
12 <!--
13 pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; }
14 body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; }
15 a { color:inherit; }
16 * { font-size:12pt; font-size: 1em; }
17 .subxComment { color: #005faf; }
18 .LineNr { }
19 .SpecialChar { color: #d70000; }
20 .subxS1Comment { color: #0000af; }
21 .subxFunction { color: #af5f00; text-decoration: underline; }
22 .Constant { color: #008787; }
23 -->
24 </style>
26 <script type='text/javascript'>
27 <!--
29 /* function to open any folds containing a jumped-to line before jumping to it */
30 function JumpToLine()
32 var lineNum;
33 lineNum = window.location.hash;
34 lineNum = lineNum.substr(1); /* strip off '#' */
36 if (lineNum.indexOf('L') == -1) {
37 lineNum = 'L'+lineNum;
39 var lineElem = document.getElementById(lineNum);
40 /* Always jump to new location even if the line was hidden inside a fold, or
41 * we corrected the raw number to a line ID.
43 if (lineElem) {
44 lineElem.scrollIntoView(true);
46 return true;
48 if ('onhashchange' in window) {
49 window.onhashchange = JumpToLine;
52 -->
53 </script>
54 </head>
55 <body onload='JumpToLine();'>
56 <a href='https://github.com/akkartik/mu/blob/main/318counter.subx'>https://github.com/akkartik/mu/blob/main/318counter.subx</a>
57 <pre id='vimCodeElement'>
58 <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># A rudimentary counter that can be called from anywhere.</span>
59 <span id="L2" class="LineNr"> 2 </span>
60 <span id="L3" class="LineNr"> 3 </span>== code
61 <span id="L4" class="LineNr"> 4 </span>
62 <span id="L5" class="LineNr"> 5 </span><span class="subxFunction">count-event</span>:
63 <span id="L6" class="LineNr"> 6 </span> <span class="subxS1Comment"># . prologue</span>
64 <span id="L7" class="LineNr"> 7 </span> 55/push-ebp
65 <span id="L8" class="LineNr"> 8 </span> 89/&lt;- %ebp 4/r32/esp
66 <span id="L9" class="LineNr"> 9 </span> <span class="subxComment">#</span>
67 <span id="L10" class="LineNr">10 </span> ff 0/subop/increment *<span class="SpecialChar"><a href='318counter.subx.html#L30'>Foo</a></span>
68 <span id="L11" class="LineNr">11 </span><span class="Constant">$count-event:end</span>:
69 <span id="L12" class="LineNr">12 </span> <span class="subxS1Comment"># . epilogue</span>
70 <span id="L13" class="LineNr">13 </span> 89/&lt;- %esp 5/r32/ebp
71 <span id="L14" class="LineNr">14 </span> 5d/pop-to-ebp
72 <span id="L15" class="LineNr">15 </span> c3/return
73 <span id="L16" class="LineNr">16 </span>
74 <span id="L17" class="LineNr">17 </span><span class="subxFunction">count-of-events</span>: <span class="subxComment"># -&gt; _/eax: int</span>
75 <span id="L18" class="LineNr">18 </span> <span class="subxS1Comment"># . prologue</span>
76 <span id="L19" class="LineNr">19 </span> 55/push-ebp
77 <span id="L20" class="LineNr">20 </span> 89/&lt;- %ebp 4/r32/esp
78 <span id="L21" class="LineNr">21 </span> <span class="subxComment">#</span>
79 <span id="L22" class="LineNr">22 </span> 8b/-&gt; *<span class="SpecialChar"><a href='318counter.subx.html#L30'>Foo</a></span> 0/r32/eax
80 <span id="L23" class="LineNr">23 </span><span class="Constant">$count-of-events:end</span>:
81 <span id="L24" class="LineNr">24 </span> <span class="subxS1Comment"># . epilogue</span>
82 <span id="L25" class="LineNr">25 </span> 89/&lt;- %esp 5/r32/ebp
83 <span id="L26" class="LineNr">26 </span> 5d/pop-to-ebp
84 <span id="L27" class="LineNr">27 </span> c3/return
85 <span id="L28" class="LineNr">28 </span>
86 <span id="L29" class="LineNr">29 </span>== data
87 <span id="L30" class="LineNr">30 </span><span class="SpecialChar">Foo</span>:
88 <span id="L31" class="LineNr">31 </span> 0/imm32
89 </pre>
90 </body>
91 </html>
92 <!-- vim: set foldmethod=manual : -->