about summary refs log tree commit diff stats
path: root/html/apps/raytracing/2.mu.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-02 21:24:53 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-02 21:24:53 -0800
commit3d1c4216ede8c628558c9fe700fb2be1aa08b473 (patch)
tree9d566827573d2b329a4872762c025a646fe2729d /html/apps/raytracing/2.mu.html
parent571ad49190f17272bd7665ba09b5f14c86b1e649 (diff)
downloadmu-3d1c4216ede8c628558c9fe700fb2be1aa08b473.tar.gz
7162
Diffstat (limited to 'html/apps/raytracing/2.mu.html')
-rw-r--r--html/apps/raytracing/2.mu.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/html/apps/raytracing/2.mu.html b/html/apps/raytracing/2.mu.html
index 66e60f05..5bc16803 100644
--- a/html/apps/raytracing/2.mu.html
+++ b/html/apps/raytracing/2.mu.html
@@ -65,8 +65,8 @@ if ('onhashchange' in window) {
 <span id="L6" class="LineNr"> 6 </span><span class="muComment">#   $ ./translate_mu apps/raytracing/2.mu</span>
 <span id="L7" class="LineNr"> 7 </span><span class="muComment">#   $ ./a.elf &gt; 2.ppm</span>
 <span id="L8" class="LineNr"> 8 </span>
-<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2.mu.html#L9'>main</a></span><span class="PreProc"> -&gt; </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span>
-<span id="L10" class="LineNr">10 </span>  <a href='../../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;P3\n256 256\n255\n&quot;</span>
+<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2.mu.html#L9'>main</a></span><span class="PreProc"> -&gt; </span>_/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span>
+<span id="L10" class="LineNr">10 </span>  <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;P3\n256 256\n255\n&quot;</span>
 <span id="L11" class="LineNr">11 </span>  <span class="PreProc">var</span> _four/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">4</span>
 <span id="L12" class="LineNr">12 </span>  <span class="PreProc">var</span> four/<span class="Constant">xmm1</span>: float <span class="SpecialChar">&lt;-</span> convert _four
 <span id="L13" class="LineNr">13 </span>  <span class="PreProc">var</span> one-fourth/<span class="Constant">xmm1</span>: float <span class="SpecialChar">&lt;-</span> reciprocal four
@@ -106,7 +106,7 @@ if ('onhashchange' in window) {
 <span id="L47" class="LineNr">47 </span>    j <span class="SpecialChar">&lt;-</span> decrement
 <span id="L48" class="LineNr">48 </span>    <span class="PreProc">loop</span>
 <span id="L49" class="LineNr">49 </span>  <span class="Delimiter">}</span>
-<span id="L50" class="LineNr">50 </span>  exit-status <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
+<span id="L50" class="LineNr">50 </span>  <span class="PreProc">return</span> <span class="Constant">0</span>
 <span id="L51" class="LineNr">51 </span><span class="Delimiter">}</span>
 <span id="L52" class="LineNr">52 </span>
 <span id="L53" class="LineNr">53 </span><span class="PreProc">type</span> <a href='2.mu.html#L53'>rgb</a> <span class="Delimiter">{</span>
@@ -127,21 +127,21 @@ if ('onhashchange' in window) {
 <span id="L68" class="LineNr">68 </span>  result <span class="SpecialChar">&lt;-</span> multiply *src-addr
 <span id="L69" class="LineNr">69 </span>  <span class="PreProc">var</span> result-int/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> convert result
 <span id="L70" class="LineNr">70 </span>  <a href='../../405screen.mu.html#L481'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int
-<span id="L71" class="LineNr">71 </span>  <a href='../../405screen.mu.html#L179'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot; &quot;</span>
+<span id="L71" class="LineNr">71 </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="L72" class="LineNr">72 </span>  <span class="muComment"># print 255 * c-&gt;g</span>
 <span id="L73" class="LineNr">73 </span>  src-addr <span class="SpecialChar">&lt;-</span> <a href='../../131table.subx.html#L26'>get</a> c, g
 <span id="L74" class="LineNr">74 </span>  result <span class="SpecialChar">&lt;-</span> copy xn
 <span id="L75" class="LineNr">75 </span>  result <span class="SpecialChar">&lt;-</span> multiply *src-addr
 <span id="L76" class="LineNr">76 </span>  result-int <span class="SpecialChar">&lt;-</span> convert result
 <span id="L77" class="LineNr">77 </span>  <a href='../../405screen.mu.html#L481'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int
-<span id="L78" class="LineNr">78 </span>  <a href='../../405screen.mu.html#L179'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot; &quot;</span>
+<span id="L78" class="LineNr">78 </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="L79" class="LineNr">79 </span>  <span class="muComment"># print 255 * c-&gt;b</span>
 <span id="L80" class="LineNr">80 </span>  src-addr <span class="SpecialChar">&lt;-</span> <a href='../../131table.subx.html#L26'>get</a> c, b
 <span id="L81" class="LineNr">81 </span>  result <span class="SpecialChar">&lt;-</span> copy xn
 <span id="L82" class="LineNr">82 </span>  result <span class="SpecialChar">&lt;-</span> multiply *src-addr
 <span id="L83" class="LineNr">83 </span>  result-int <span class="SpecialChar">&lt;-</span> convert result
 <span id="L84" class="LineNr">84 </span>  <a href='../../405screen.mu.html#L481'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int
-<span id="L85" class="LineNr">85 </span>  <a href='../../405screen.mu.html#L179'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot;\n&quot;</span>
+<span id="L85" class="LineNr">85 </span>  <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot;\n&quot;</span>
 <span id="L86" class="LineNr">86 </span><span class="Delimiter">}</span>
 </pre>
 </body>
^
9ec914e3 ^





6d985a2c ^
f027adc0 ^

9dc6fe07 ^
f027adc0 ^
7740d525 ^
9dc6fe07 ^
aea67778 ^
f027adc0 ^
34c131ef ^







f027adc0 ^

9dc6fe07 ^
f027adc0 ^
9ec914e3 ^

ea87d005 ^
9ec914e3 ^

f027adc0 ^
9ec914e3 ^
9dc6fe07 ^
9dc6fe07 ^
54c8375a ^
165bde56 ^

9ec914e3 ^
54c8375a ^
51d9c72e ^

2e74a4d0 ^
51d9c72e ^











eaaeed3d ^



51d9c72e ^
a2853ab6 ^
51d9c72e ^
a4570538 ^

51d9c72e ^



a4570538 ^
51d9c72e ^
a4570538 ^
51d9c72e ^
df031abc ^
51d9c72e ^



2e74a4d0 ^




51d9c72e ^
df031abc ^
51d9c72e ^

df031abc ^
51d9c72e ^









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164