From dd60caa3f51c5117c0193f8f3272e1c7f5230eb7 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 15 Jun 2021 21:50:13 -0700 Subject: . --- html/509bezier.mu.html | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'html/509bezier.mu.html') diff --git a/html/509bezier.mu.html b/html/509bezier.mu.html index a956621f..1f00a2eb 100644 --- a/html/509bezier.mu.html +++ b/html/509bezier.mu.html @@ -15,9 +15,13 @@ body { font-size:12pt; font-family: monospace; color: #000000; background-color: a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #af875f; } .Special { color: #ff6060; } .LineNr { } +.muRegEbx { color: #8787af; } +.muRegEdx { color: #878700; } .Constant { color: #008787; } +.muRegEax { color: #875f00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } @@ -76,7 +80,7 @@ if ('onhashchange' in window) { 18 var sx: int 19 var sy: int 20 # sx = x2-x1 - 21 var tmp/eax: int <- copy x2 + 21 var tmp/eax: int <- copy x2 22 tmp <- subtract x1 23 copy-to sx, tmp 24 # sy = y2-y1 @@ -120,7 +124,7 @@ if ('onhashchange' in window) { 62 # swap P0 and P2 if necessary 63 { 64 # dist1 = sx*sx + sy*sy - 65 var dist1/ecx: int <- copy sx + 65 var dist1/ecx: int <- copy sx 66 { 67 dist1 <- multiply sx 68 { @@ -136,7 +140,7 @@ if ('onhashchange' in window) { 78 dist1 <- add tmp 79 } 80 # dist2 = xx*xx + yy*yy - 81 var dist2/edx: int <- copy xx + 81 var dist2/edx: int <- copy xx 82 { 83 dist2 <- multiply xx 84 { @@ -167,12 +171,12 @@ if ('onhashchange' in window) { 109 tmp <- add y1 110 copy-to y0, tmp 111 # cur = -cur -112 var negative-1/eax: int <- copy -1 +112 var negative-1/eax: int <- copy -1 113 var negative-1-f/xmm1: float <- convert negative-1 114 cur-f <- multiply negative-1-f 115 } -116 var x/ecx: int <- copy x0 -117 var y/edx: int <- copy y0 +116 var x/ecx: int <- copy x0 +117 var y/edx: int <- copy y0 118 var zero-f: float 119 # plot a curved part if necessary 120 $draw-monotonic-bezier:curve: { @@ -245,11 +249,11 @@ if ('onhashchange' in window) { 187 negate yy 188 negate xy 189 # cur = -cur -190 var negative-1/eax: int <- copy -1 +190 var negative-1/eax: int <- copy -1 191 var negative-1-f/xmm1: float <- convert negative-1 192 cur-f <- multiply negative-1-f 193 } -194 var four/ebx: int <- copy 4 +194 var four/ebx: int <- copy 4 195 var dx-f/xmm5: float <- convert four 196 var dy-f/xmm6: float <- convert four 197 # dx = 4*sy*cur*(x1-x0) + xx - xy @@ -293,7 +297,7 @@ if ('onhashchange' in window) { 235 err-f <- add xy-f 236 # 237 $draw-monotonic-bezier:loop: { -238 pixel screen, x, y, color +238 pixel screen, x, y, color 239 # if (x == x2 && y == y2) return 240 { 241 compare x, x2 @@ -303,10 +307,10 @@ if ('onhashchange' in window) { 245 return 246 } 247 # perform-y-step? = (2*err < dx) -248 var perform-y-step?/eax: boolean <- copy 0/false +248 var perform-y-step?/eax: boolean <- copy 0/false 249 var two-err-f/xmm0: float <- copy err-f 250 { -251 var two/ebx: int <- copy 2 +251 var two/ebx: int <- copy 2 252 var two-f/xmm1: float <- convert two 253 two-err-f <- multiply two-f 254 compare two-err-f, dx-f @@ -353,8 +357,8 @@ if ('onhashchange' in window) { 295 } 296 297 # 0 <= u <= 1 -298 fn bezier-point u: float, x0: int, x1: int, x2: int -> _/eax: int { -299 var one/eax: int <- copy 1 +298 fn bezier-point u: float, x0: int, x1: int, x2: int -> _/eax: int { +299 var one/eax: int <- copy 1 300 var u-prime/xmm0: float <- convert one 301 u-prime <- subtract u 302 var result/xmm1: float <- convert x0 @@ -369,7 +373,7 @@ if ('onhashchange' in window) { 311 term3 <- multiply u 312 term3 <- multiply u 313 result <- add term3 -314 var result/eax: int <- convert result +314 var result/eax: int <- convert result 315 return result 316 } -- cgit 1.4.1-2-gfad0