diff options
Diffstat (limited to 'html')
106 files changed, 4803 insertions, 4903 deletions
diff --git a/html/400.mu.html b/html/400.mu.html index c608bddf..5febaa75 100644 --- a/html/400.mu.html +++ b/html/400.mu.html @@ -14,13 +14,12 @@ 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 { } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } .PreProc { color: #c000c0; } +.LineNr { } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } +.muComment { color: #005faf; } --> </style> @@ -60,113 +59,113 @@ if ('onhashchange' in window) { <span id="L2" class="LineNr"> 2 </span><span class="PreProc">sig</span> <a href='101screen.subx.html#L8'>pixel-on-real-screen</a> x: int, y: int, color: int <span id="L3" class="LineNr"> 3 </span><span class="PreProc">sig</span> <a href='103grapheme.subx.html#L17'>draw-grapheme-on-real-screen</a> g: grapheme, x: int, y: int, color: int, background-color: int <span id="L4" class="LineNr"> 4 </span><span class="PreProc">sig</span> <a href='103grapheme.subx.html#L29'>draw-grapheme-on-screen-array</a> screen-data: (addr array byte), g: grapheme, x: int, y: int, color: int, background-color: int, screen-width: int, screen-height: int -<span id="L5" class="LineNr"> 5 </span><span class="PreProc">sig</span> <a href='103grapheme.subx.html#L157'>cursor-position-on-real-screen</a><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int +<span id="L5" class="LineNr"> 5 </span><span class="PreProc">sig</span> <a href='103grapheme.subx.html#L157'>cursor-position-on-real-screen</a><span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span id="L6" class="LineNr"> 6 </span><span class="PreProc">sig</span> <a href='103grapheme.subx.html#L170'>set-cursor-position-on-real-screen</a> x: int, y: int <span id="L7" class="LineNr"> 7 </span><span class="PreProc">sig</span> <a href='103grapheme.subx.html#L195'>draw-cursor-on-real-screen</a> g: grapheme <span id="L8" class="LineNr"> 8 </span><span class="PreProc">sig</span> <a href='316colors.subx.html#L7'>color-rgb</a> color: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int <span id="L9" class="LineNr"> 9 </span> <span id="L10" class="LineNr"> 10 </span><span class="muComment"># keyboard</span> -<span id="L11" class="LineNr"> 11 </span><span class="PreProc">sig</span> <a href='102keyboard.subx.html#L21'>read-key</a> kbd: (addr keyboard)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte +<span id="L11" class="LineNr"> 11 </span><span class="PreProc">sig</span> <a href='102keyboard.subx.html#L21'>read-key</a> kbd: (addr keyboard)<span class="PreProc"> -> </span>_/eax: byte <span id="L12" class="LineNr"> 12 </span> <span id="L13" class="LineNr"> 13 </span><span class="muComment"># disk</span> <span id="L14" class="LineNr"> 14 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L974'>load-sectors</a> disk: (addr disk), lba: int, n: int, out: (addr stream byte) <span id="L15" class="LineNr"> 15 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L1037'>store-sectors</a> disk: (addr disk), lba: int, n: int, out: (addr stream byte) <span id="L16" class="LineNr"> 16 </span> <span id="L17" class="LineNr"> 17 </span><span class="muComment"># mouse</span> -<span id="L18" class="LineNr"> 18 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L1443'>read-mouse-event</a><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int +<span id="L18" class="LineNr"> 18 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L1443'>read-mouse-event</a><span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span id="L19" class="LineNr"> 19 </span> <span id="L20" class="LineNr"> 20 </span><span class="muComment"># tests</span> <span id="L21" class="LineNr"> 21 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L5'>count-test-failure</a> -<span id="L22" class="LineNr"> 22 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L17'>num-test-failures</a><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L23" class="LineNr"> 23 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L29'>running-tests?</a><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L22" class="LineNr"> 22 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L17'>num-test-failures</a><span class="PreProc"> -> </span>_/eax: int +<span id="L23" class="LineNr"> 23 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L29'>running-tests?</a><span class="PreProc"> -> </span>_/eax: boolean <span id="L24" class="LineNr"> 24 </span> -<span id="L25" class="LineNr"> 25 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L8'>string-equal?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L26" class="LineNr"> 26 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L50'>string-starts-with?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L25" class="LineNr"> 25 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L8'>string-equal?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L26" class="LineNr"> 26 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L50'>string-starts-with?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L27" class="LineNr"> 27 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> s: (addr array byte), expected: (addr array byte), msg: (addr array byte) <span id="L28" class="LineNr"> 28 </span> <span id="L29" class="LineNr"> 29 </span><span class="muComment"># debugging</span> <span id="L30" class="LineNr"> 30 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L5'>check-stack</a> <span id="L31" class="LineNr"> 31 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L26'>show-stack-state</a> <span id="L32" class="LineNr"> 32 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L56'>debug-print</a> x: (addr array byte), fg: int, bg: int -<span id="L33" class="LineNr"> 33 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L84'>debug-print?</a><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L33" class="LineNr"> 33 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L84'>debug-print?</a><span class="PreProc"> -> </span>_/eax: boolean <span id="L34" class="LineNr"> 34 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L96'>turn-on-debug-print</a> <span id="L35" class="LineNr"> 35 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L108'>turn-off-debug-print</a> <span id="L36" class="LineNr"> 36 </span><span class="PreProc">sig</span> <a href='317abort.subx.html#L5'>abort</a> e: (addr array byte) <span id="L37" class="LineNr"> 37 </span><span class="PreProc">sig</span> <a href='317abort.subx.html#L21'>dump-call-stack</a> <span id="L38" class="LineNr"> 38 </span> <span id="L39" class="LineNr"> 39 </span><span class="PreProc">sig</span> <a href='318counter.subx.html#L5'>count-event</a> -<span id="L40" class="LineNr"> 40 </span><span class="PreProc">sig</span> <a href='318counter.subx.html#L17'>count-of-events</a><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L40" class="LineNr"> 40 </span><span class="PreProc">sig</span> <a href='318counter.subx.html#L17'>count-of-events</a><span class="PreProc"> -> </span>_/eax: int <span id="L41" class="LineNr"> 41 </span> <span id="L42" class="LineNr"> 42 </span><span class="muComment"># streams</span> <span id="L43" class="LineNr"> 43 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L20'>clear-stream</a> f: (addr stream _) <span id="L44" class="LineNr"> 44 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L59'>rewind-stream</a> f: (addr stream _) -<span id="L45" class="LineNr"> 45 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L9'>stream-data-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L46" class="LineNr"> 46 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L211'>streams-data-equal?</a> a: (addr stream byte), b: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L45" class="LineNr"> 45 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L9'>stream-data-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L46" class="LineNr"> 46 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L211'>streams-data-equal?</a> a: (addr stream byte), b: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L47" class="LineNr"> 47 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte) <span id="L48" class="LineNr"> 48 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L300'>check-streams-data-equal</a> s: (addr stream _), expected: (addr stream _), msg: (addr array byte) -<span id="L49" class="LineNr"> 49 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L230'>next-stream-line-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L49" class="LineNr"> 49 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L230'>next-stream-line-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L50" class="LineNr"> 50 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte) <span id="L51" class="LineNr"> 51 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L11'>write</a> f: (addr stream byte), s: (addr array byte) -<span id="L52" class="LineNr"> 52 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L138'>try-write</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L52" class="LineNr"> 52 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L138'>try-write</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L53" class="LineNr"> 53 </span><span class="muComment"># probably a bad idea; I definitely want to discourage its use for streams of non-bytes</span> -<span id="L54" class="LineNr"> 54 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L194'>stream-size</a> f: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L55" class="LineNr"> 55 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L176'>space-remaining-in-stream</a> f: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L54" class="LineNr"> 54 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L194'>stream-size</a> f: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L55" class="LineNr"> 55 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L176'>space-remaining-in-stream</a> f: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span id="L56" class="LineNr"> 56 </span><span class="PreProc">sig</span> <a href='113write-stream.subx.html#L8'>write-stream</a> f: (addr stream byte), s: (addr stream byte) -<span id="L57" class="LineNr"> 57 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L13'>read-byte</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte +<span id="L57" class="LineNr"> 57 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L13'>read-byte</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte <span id="L58" class="LineNr"> 58 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L12'>append-byte</a> f: (addr stream byte), n: int <span class="muComment"># really just a byte, but I want to pass in literal numbers</span> <span id="L59" class="LineNr"> 59 </span><span class="muComment">#sig to-hex-char in/eax: int -> out/eax: int</span> <span id="L60" class="LineNr"> 60 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L21'>append-byte-hex</a> f: (addr stream byte), n: int <span class="muComment"># really just a byte, but I want to pass in literal numbers</span> <span id="L61" class="LineNr"> 61 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L92'>write-int32-hex</a> f: (addr stream byte), n: int <span id="L62" class="LineNr"> 62 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L123'>write-int32-hex-bits</a> f: (addr stream byte), n: int, bits: int -<span id="L63" class="LineNr"> 63 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L9'>hex-int?</a> in: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L64" class="LineNr"> 64 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L65" class="LineNr"> 65 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L63" class="LineNr"> 63 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L9'>hex-int?</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L64" class="LineNr"> 64 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L65" class="LineNr"> 65 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: int <span id="L66" class="LineNr"> 66 </span><span class="muComment">#sig parse-hex-int-helper start: (addr byte), end: (addr byte) -> _/eax: int</span> -<span id="L67" class="LineNr"> 67 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> c: byte<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L67" class="LineNr"> 67 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> c: byte<span class="PreProc"> -> </span>_/eax: boolean <span id="L68" class="LineNr"> 68 </span><span class="muComment">#sig from-hex-char in/eax: byte -> out/eax: nibble</span> -<span id="L69" class="LineNr"> 69 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L23'>parse-decimal-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L70" class="LineNr"> 70 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L71" class="LineNr"> 71 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L69" class="LineNr"> 69 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L23'>parse-decimal-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L70" class="LineNr"> 70 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: int +<span id="L71" class="LineNr"> 71 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span id="L72" class="LineNr"> 72 </span><span class="muComment">#sig parse-decimal-int-helper start: (addr byte), end: (addr byte) -> _/eax: int</span> -<span id="L73" class="LineNr"> 73 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L312'>decimal-size</a> n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L73" class="LineNr"> 73 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L312'>decimal-size</a> n: int<span class="PreProc"> -> </span>_/eax: int <span id="L74" class="LineNr"> 74 </span><span class="muComment">#sig allocate ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> <span id="L75" class="LineNr"> 75 </span><span class="muComment">#sig allocate-raw ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> -<span id="L76" class="LineNr"> 76 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L223'>lookup</a> h: (handle _T)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: (addr _T) -<span id="L77" class="LineNr"> 77 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L76" class="LineNr"> 76 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L223'>lookup</a> h: (handle _T)<span class="PreProc"> -> </span>_/eax: (addr _T) +<span id="L77" class="LineNr"> 77 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -> </span>_/eax: boolean <span id="L78" class="LineNr"> 78 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L479'>copy-handle</a> src: (handle _T), dest: (addr handle _T) <span id="L79" class="LineNr"> 79 </span><span class="muComment">#sig allocate-region ad: (addr allocation-descriptor), n: int, out: (addr handle allocation-descriptor)</span> <span id="L80" class="LineNr"> 80 </span><span class="muComment">#sig allocate-array ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> <span id="L81" class="LineNr"> 81 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L690'>copy-array</a> ad: (addr allocation-descriptor), src: (addr array _T), out: (addr handle array _T) <span id="L82" class="LineNr"> 82 </span><span class="muComment">#sig zero-out start: (addr byte), size: int</span> -<span id="L83" class="LineNr"> 83 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L84" class="LineNr"> 84 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L85" class="LineNr"> 85 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L83" class="LineNr"> 83 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L84" class="LineNr"> 84 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L85" class="LineNr"> 85 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L86" class="LineNr"> 86 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L793'>write-slice</a> out: (addr stream byte), s: (addr slice) <span id="L87" class="LineNr"> 87 </span><span class="muComment"># bad name alert</span> <span id="L88" class="LineNr"> 88 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L898'>slice-to-string</a> ad: (addr allocation-descriptor), in: (addr slice), out: (addr handle array byte) <span id="L89" class="LineNr"> 89 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> out: (addr stream byte), n: int -<span id="L90" class="LineNr"> 90 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L296'>decimal-digit?</a> c: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L91" class="LineNr"> 91 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L395'>to-decimal-digit</a> in: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L90" class="LineNr"> 90 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L296'>decimal-digit?</a> c: grapheme<span class="PreProc"> -> </span>_/eax: boolean +<span id="L91" class="LineNr"> 91 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L395'>to-decimal-digit</a> in: grapheme<span class="PreProc"> -> </span>_/eax: int <span id="L92" class="LineNr"> 92 </span><span class="muComment"># bad name alert</span> <span id="L93" class="LineNr"> 93 </span><span class="muComment"># next-word really tokenizes</span> <span id="L94" class="LineNr"> 94 </span><span class="muComment"># next-raw-word really reads whitespace-separated words</span> <span id="L95" class="LineNr"> 95 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L11'>next-word</a> line: (addr stream byte), out: (addr slice) <span class="muComment"># skips '#' comments</span> <span id="L96" class="LineNr"> 96 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L306'>next-raw-word</a> line: (addr stream byte), out: (addr slice) <span class="muComment"># does not skip '#' comments</span> -<span id="L97" class="LineNr"> 97 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L98" class="LineNr"> 98 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L30'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L97" class="LineNr"> 97 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L98" class="LineNr"> 98 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L30'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/eax: boolean <span id="L99" class="LineNr"> 99 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L60'>stream-to-array</a> in: (addr stream _), out: (addr handle array _) <span id="L100" class="LineNr">100 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L120'>unquote-stream-to-array</a> in: (addr stream _), out: (addr handle array _) -<span id="L101" class="LineNr">101 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L154'>stream-first</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte -<span id="L102" class="LineNr">102 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L181'>stream-final</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte +<span id="L101" class="LineNr">101 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L154'>stream-first</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte +<span id="L102" class="LineNr">102 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L181'>stream-final</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte <span id="L103" class="LineNr">103 </span> <span id="L104" class="LineNr">104 </span><span class="muComment">#sig copy-bytes src: (addr byte), dest: (addr byte), n: int</span> <span id="L105" class="LineNr">105 </span><span class="PreProc">sig</span> <a href='312copy.subx.html#L3'>copy-array-object</a> src: (addr array _), dest-ah: (addr handle array _) -<span id="L106" class="LineNr">106 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L106" class="LineNr">106 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -> </span>_/eax: boolean <span id="L107" class="LineNr">107 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L368'>parse-array-of-ints</a> s: (addr array byte), out: (addr handle array int) <span id="L108" class="LineNr">108 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L623'>parse-array-of-decimal-ints</a> s: (addr array byte), out: (addr handle array int) <span id="L109" class="LineNr">109 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L382'>check-array-equal</a> a: (addr array int), expected: (addr string), msg: (addr string) <span id="L110" class="LineNr">110 </span> -<span id="L111" class="LineNr">111 </span><span class="PreProc">sig</span> <a href='314divide.subx.html#L3'>integer-divide</a> a: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEdx">edx</span>: int +<span id="L111" class="LineNr">111 </span><span class="PreProc">sig</span> <a href='314divide.subx.html#L3'>integer-divide</a> a: int, b: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEdx">edx</span>: int </pre> </body> </html> diff --git a/html/403unicode.mu.html b/html/403unicode.mu.html index 2acbbaf6..6cee5b30 100644 --- a/html/403unicode.mu.html +++ b/html/403unicode.mu.html @@ -14,18 +14,17 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEsi { color: #87d787; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -82,8 +81,8 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr"> 19 </span><span class="muComment">#</span> <span id="L20" class="LineNr"> 20 </span><span class="muComment"># The day we want to support combining characters, this function will need to</span> <span id="L21" class="LineNr"> 21 </span><span class="muComment"># take multiple code points. Or something.</span> -<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L22'>to-grapheme</a></span> in: code-point<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy in +<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L22'>to-grapheme</a></span> in: code-point<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> c/eax: int <span class="Special"><-</span> copy in <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> num-trailers/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> first/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L26" class="LineNr"> 26 </span> $to-grapheme:compute-length: <span class="Delimiter">{</span> @@ -91,7 +90,7 @@ if ('onhashchange' in window) { <span id="L28" class="LineNr"> 28 </span> compare c, <span class="Constant">0x7f</span> <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">{</span> <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">break-if-></span> -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L32" class="LineNr"> 32 </span> <span class="PreProc">return</span> g <span id="L33" class="LineNr"> 33 </span> <span class="Delimiter">}</span> <span id="L34" class="LineNr"> 34 </span> <span class="muComment"># 2 bytes</span> @@ -152,28 +151,28 @@ if ('onhashchange' in window) { <span id="L89" class="LineNr"> 89 </span><span class="muComment"># TODO: bring in tests once we have check-ints-equal</span> <span id="L90" class="LineNr"> 90 </span> <span id="L91" class="LineNr"> 91 </span><span class="muComment"># read the next grapheme from a stream of bytes</span> -<span id="L92" class="LineNr"> 92 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L92'>read-grapheme</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L92" class="LineNr"> 92 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L92'>read-grapheme</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L93" class="LineNr"> 93 </span> <span class="muComment"># if at eof, return EOF</span> <span id="L94" class="LineNr"> 94 </span> <span class="Delimiter">{</span> -<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> eof?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in +<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> eof?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in <span id="L96" class="LineNr"> 96 </span> compare eof?, <span class="Constant">0</span>/false <span id="L97" class="LineNr"> 97 </span> <span class="PreProc">break-if-=</span> <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">return</span> <span class="Constant">0xffffffff</span> <span id="L99" class="LineNr"> 99 </span> <span class="Delimiter">}</span> -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> num-trailers/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L102" class="LineNr">102 </span> $read-grapheme:compute-length: <span class="Delimiter">{</span> <span id="L103" class="LineNr">103 </span> <span class="muComment"># single byte: just return it</span> <span id="L104" class="LineNr">104 </span> compare c, <span class="Constant">0xc0</span> <span id="L105" class="LineNr">105 </span> <span class="Delimiter">{</span> <span id="L106" class="LineNr">106 </span> <span class="PreProc">break-if->=</span> -<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L108" class="LineNr">108 </span> <span class="PreProc">return</span> g <span id="L109" class="LineNr">109 </span> <span class="Delimiter">}</span> <span id="L110" class="LineNr">110 </span> compare c, <span class="Constant">0xfe</span> <span id="L111" class="LineNr">111 </span> <span class="Delimiter">{</span> <span id="L112" class="LineNr">112 </span> <span class="PreProc">break-if-<</span> -<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L114" class="LineNr">114 </span> <span class="PreProc">return</span> g <span id="L115" class="LineNr">115 </span> <span class="Delimiter">}</span> <span id="L116" class="LineNr">116 </span> <span class="muComment"># 2 bytes</span> @@ -206,8 +205,8 @@ if ('onhashchange' in window) { <span id="L143" class="LineNr">143 </span> <span class="Delimiter">{</span> <span id="L144" class="LineNr">144 </span> compare num-trailers, <span class="Constant">0</span> <span id="L145" class="LineNr">145 </span> <span class="PreProc">break-if-<=</span> -<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in -<span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy tmp +<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in +<span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> tmp2/eax: int <span class="Special"><-</span> copy tmp <span id="L148" class="LineNr">148 </span> tmp2 <span class="Special"><-</span> <a href='403unicode.mu.html#L159'>shift-left-bytes</a> tmp2, num-byte-shifts <span id="L149" class="LineNr">149 </span> result <span class="Special"><-</span> or tmp2 <span id="L150" class="LineNr">150 </span> <span class="muComment"># update loop state</span> @@ -219,9 +218,9 @@ if ('onhashchange' in window) { <span id="L156" class="LineNr">156 </span><span class="Delimiter">}</span> <span id="L157" class="LineNr">157 </span> <span id="L158" class="LineNr">158 </span><span class="muComment"># needed because available primitives only shift by a literal/constant number of bits</span> -<span id="L159" class="LineNr">159 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L159'>shift-left-bytes</a></span> n: int, k: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L159" class="LineNr">159 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L159'>shift-left-bytes</a></span> n: int, k: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy n +<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy n <span id="L162" class="LineNr">162 </span> <span class="Delimiter">{</span> <span id="L163" class="LineNr">163 </span> compare i, k <span id="L164" class="LineNr">164 </span> <span class="PreProc">break-if->=</span> @@ -238,7 +237,7 @@ if ('onhashchange' in window) { <span id="L175" class="LineNr">175 </span><span class="muComment"># this is like write-to-stream, except we skip leading 0 bytes</span> <span id="L176" class="LineNr">176 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L176'>write-grapheme</a></span> out: (addr stream byte), g: grapheme <span class="Delimiter">{</span> <span id="L177" class="LineNr">177 </span>$write-grapheme:body: <span class="Delimiter">{</span> -<span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> c/eax: int <span class="Special"><-</span> copy g <span id="L179" class="LineNr">179 </span> <a href='115write-byte.subx.html#L12'>append-byte</a> out, c <span class="muComment"># first byte is always written</span> <span id="L180" class="LineNr">180 </span> c <span class="Special"><-</span> shift-right <span class="Constant">8</span> <span id="L181" class="LineNr">181 </span> compare c, <span class="Constant">0</span> diff --git a/html/408float.mu.html b/html/408float.mu.html index 2a7b6256..b6be4fab 100644 --- a/html/408float.mu.html +++ b/html/408float.mu.html @@ -14,14 +14,14 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> diff --git a/html/411string.mu.html b/html/411string.mu.html index 4a0f0874..1d1baa8f 100644 --- a/html/411string.mu.html +++ b/html/411string.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEax { color: #875f00; } -.muComment { color: #005faf; } -.CommentedCode { color: #8a8a8a; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.CommentedCode { color: #8a8a8a; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -71,12 +70,12 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> out-stream-addr/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-stream <span id="L8" class="LineNr"> 8 </span> $substring:core: <span class="Delimiter">{</span> <span id="L9" class="LineNr"> 9 </span> <span class="muComment"># skip 'start' graphemes</span> -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L11" class="LineNr"> 11 </span> <span class="Delimiter">{</span> <span id="L12" class="LineNr"> 12 </span> compare i, start <span id="L13" class="LineNr"> 13 </span> <span class="PreProc">break-if->=</span> <span id="L14" class="LineNr"> 14 </span> <span class="Delimiter">{</span> -<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in-stream-addr +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in-stream-addr <span id="L16" class="LineNr"> 16 </span> compare dummy, <span class="Constant">0xffffffff</span>/end-of-file <span id="L17" class="LineNr"> 17 </span> <span class="PreProc">break-if-=</span> $substring:core <span id="L18" class="LineNr"> 18 </span> <span class="Delimiter">}</span> @@ -89,7 +88,7 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr"> 25 </span> compare i, len <span id="L26" class="LineNr"> 26 </span> <span class="PreProc">break-if->=</span> <span id="L27" class="LineNr"> 27 </span> <span class="Delimiter">{</span> -<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in-stream-addr +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in-stream-addr <span id="L29" class="LineNr"> 29 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">break-if-=</span> $substring:core <span id="L31" class="LineNr"> 31 </span> <a href='403unicode.mu.html#L176'>write-grapheme</a> out-stream-addr, g @@ -106,46 +105,46 @@ if ('onhashchange' in window) { <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle array byte) <span class="Special"><-</span> address out-h <span id="L43" class="LineNr"> 43 </span> <span class="muComment"># prefix substrings</span> <span id="L44" class="LineNr"> 44 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">0</span>, <span class="Constant">0</span>, <span class="Constant">3</span>, out-ah -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L46" class="LineNr"> 46 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/null"</span> <span id="L47" class="LineNr"> 47 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">""</span>, <span class="Constant">0</span>, <span class="Constant">3</span>, out-ah -<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L49" class="LineNr"> 49 </span><span class="CommentedCode">#? print-string-to-real-screen out</span> <span id="L50" class="LineNr"> 50 </span><span class="CommentedCode">#? print-string-to-real-screen "\n"</span> <span id="L51" class="LineNr"> 51 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/empty"</span> <span id="L52" class="LineNr"> 52 </span> <span class="muComment">#</span> <span id="L53" class="LineNr"> 53 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">0</span>, <span class="Constant">3</span>, out-ah -<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L55" class="LineNr"> 55 </span><span class="CommentedCode">#? print-string-to-real-screen out</span> <span id="L56" class="LineNr"> 56 </span><span class="CommentedCode">#? print-string-to-real-screen "\n"</span> <span id="L57" class="LineNr"> 57 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">"abc"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/truncate"</span> <span id="L58" class="LineNr"> 58 </span> <span class="muComment">#</span> <span id="L59" class="LineNr"> 59 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">0</span>, <span class="Constant">5</span>, out-ah -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L61" class="LineNr"> 61 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">"abcde"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/all"</span> <span id="L62" class="LineNr"> 62 </span> <span class="muComment">#</span> <span id="L63" class="LineNr"> 63 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">0</span>, <span class="Constant">7</span>, out-ah -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L65" class="LineNr"> 65 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">"abcde"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/too-small"</span> <span id="L66" class="LineNr"> 66 </span> <span class="muComment"># substrings outside string</span> <span id="L67" class="LineNr"> 67 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">6</span>, <span class="Constant">1</span>, out-ah -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L69" class="LineNr"> 69 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/start-too-large"</span> <span id="L70" class="LineNr"> 70 </span> <span class="muComment"># trim prefix</span> <span id="L71" class="LineNr"> 71 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">""</span>, <span class="Constant">2</span>, <span class="Constant">3</span>, out-ah -<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L73" class="LineNr"> 73 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/middle-empty"</span> <span id="L74" class="LineNr"> 74 </span> <span class="muComment">#</span> <span id="L75" class="LineNr"> 75 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">1</span>, <span class="Constant">2</span>, out-ah -<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L77" class="LineNr"> 77 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">"bc"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/middle-truncate"</span> <span id="L78" class="LineNr"> 78 </span> <span class="muComment">#</span> <span id="L79" class="LineNr"> 79 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">1</span>, <span class="Constant">4</span>, out-ah -<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L81" class="LineNr"> 81 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">"bcde"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/middle-all"</span> <span id="L82" class="LineNr"> 82 </span> <span class="muComment">#</span> <span id="L83" class="LineNr"> 83 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">1</span>, <span class="Constant">5</span>, out-ah -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L85" class="LineNr"> 85 </span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> out, <span class="Constant">"bcde"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/middle-too-small"</span> <span id="L86" class="LineNr"> 86 </span><span class="Delimiter">}</span> <span id="L87" class="LineNr"> 87 </span> @@ -158,7 +157,7 @@ if ('onhashchange' in window) { <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> curr-stream: (stream byte <span class="Constant">0x100</span>) <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> curr-stream-addr/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address curr-stream <span id="L96" class="LineNr"> 96 </span> $split-string:core: <span class="Delimiter">{</span> -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in-stream-addr +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in-stream-addr <span id="L98" class="LineNr"> 98 </span> compare g, <span class="Constant">0xffffffff</span> <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">break-if-=</span> <span id="L100" class="LineNr">100 </span><span class="CommentedCode">#? print-grapheme-to-real-screen g</span> @@ -168,7 +167,7 @@ if ('onhashchange' in window) { <span id="L104" class="LineNr">104 </span> <span class="PreProc">break-if-!=</span> <span id="L105" class="LineNr">105 </span> <span class="muComment"># token complete; flush</span> <span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> token: (handle array byte) -<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> token-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address token +<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> token-ah/eax: (addr handle array byte) <span class="Special"><-</span> address token <span id="L108" class="LineNr">108 </span> <a href='310copy-bytes.subx.html#L60'>stream-to-array</a> curr-stream-addr, token-ah <span id="L109" class="LineNr">109 </span> <a href='309stream.subx.html#L54'>write-to-stream</a> tokens-stream-addr, token-ah <span id="L110" class="LineNr">110 </span> <a href='106stream.subx.html#L20'>clear-stream</a> curr-stream-addr diff --git a/html/412render-float-decimal.mu.html b/html/412render-float-decimal.mu.html index 9157fed3..ae8caf91 100644 --- a/html/412render-float-decimal.mu.html +++ b/html/412render-float-decimal.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.Delimiter { color: #c000c0; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEdi { color: #00af00; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } +.Special { color: #ff6060; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -157,7 +156,7 @@ if ('onhashchange' in window) { <span id="L92" class="LineNr"> 92 </span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> s, <span class="Constant">"1.00e3"</span>, <span class="Constant">"F - <a href='412render-float-decimal.mu.html#L61'>test-write-float-decimal-approximate-integer</a> 1000"</span> <span id="L93" class="LineNr"> 93 </span> <span class="muComment"># 100,000</span> <span id="L94" class="LineNr"> 94 </span> <a href='106stream.subx.html#L20'>clear-stream</a> s -<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> hundred-thousand/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0x186a0</span> +<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> hundred-thousand/eax: int <span class="Special"><-</span> copy <span class="Constant">0x186a0</span> <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> hundred-thousand-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert hundred-thousand <span id="L97" class="LineNr"> 97 </span> <a href='412render-float-decimal.mu.html#L163'>write-float-decimal-approximate</a> s, hundred-thousand-f, <span class="Constant">3</span> <span id="L98" class="LineNr"> 98 </span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> s, <span class="Constant">"1.00e5"</span>, <span class="Constant">"F - <a href='412render-float-decimal.mu.html#L61'>test-write-float-decimal-approximate-integer</a> 100,000"</span> @@ -213,21 +212,21 @@ if ('onhashchange' in window) { <span id="L148" class="LineNr">148 </span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> s, <span class="Constant">"NaN"</span>, <span class="Constant">"F - test-write-float-decimal-approximate-not-a-number"</span> <span id="L149" class="LineNr">149 </span><span class="Delimiter">}</span> <span id="L150" class="LineNr">150 </span> -<span id="L151" class="LineNr">151 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L151'>render-float-decimal</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), in: float, precision: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L151" class="LineNr">151 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L151'>render-float-decimal</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), in: float, precision: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> s-storage: (stream byte <span class="Constant">0x10</span>) <span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> s/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address s-storage <span id="L154" class="LineNr">154 </span> <a href='412render-float-decimal.mu.html#L163'>write-float-decimal-approximate</a> s, in, precision -<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L157" class="LineNr">157 </span> width, height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L111'>draw-stream-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, s, x, width, y, color, background-color +<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L111'>draw-stream-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, s, x, width, y, color, background-color <span id="L159" class="LineNr">159 </span> <span class="PreProc">return</span> result <span id="L160" class="LineNr">160 </span><span class="Delimiter">}</span> <span id="L161" class="LineNr">161 </span> <span id="L162" class="LineNr">162 </span><span class="muComment"># 'precision' controls the maximum width past which we resort to scientific notation</span> <span id="L163" class="LineNr">163 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L163'>write-float-decimal-approximate</a></span> out: (addr stream byte), in: float, precision: int <span class="Delimiter">{</span> <span id="L164" class="LineNr">164 </span> <span class="muComment"># - special names</span> -<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> bits/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> reinterpret in +<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> bits/eax: int <span class="Special"><-</span> reinterpret in <span id="L166" class="LineNr">166 </span> compare bits, <span class="Constant">0</span> <span id="L167" class="LineNr">167 </span> <span class="Delimiter">{</span> <span id="L168" class="LineNr">168 </span> <span class="PreProc">break-if-!=</span> @@ -283,7 +282,7 @@ if ('onhashchange' in window) { <span id="L218" class="LineNr">218 </span> <span class="muComment"># unlike <a href="https://research.swtch.com/ftoa">https://research.swtch.com/ftoa</a>, no ascii here</span> <span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> buf-storage: (array byte <span class="Constant">0x7f</span>) <span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> address buf-storage -<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='412render-float-decimal.mu.html#L251'>decimal-digits</a> v, buf +<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='412render-float-decimal.mu.html#L251'>decimal-digits</a> v, buf <span id="L222" class="LineNr">222 </span> <span class="muComment"># I suspect we can do without reversing, but we'll follow <a href="https://research.swtch.com/ftoa">https://research.swtch.com/ftoa</a></span> <span id="L223" class="LineNr">223 </span> <span class="muComment"># closely for now.</span> <span id="L224" class="LineNr">224 </span> <a href='412render-float-decimal.mu.html#L268'>reverse-digits</a> buf, n @@ -313,10 +312,10 @@ if ('onhashchange' in window) { <span id="L248" class="LineNr">248 </span> <span id="L249" class="LineNr">249 </span><span class="muComment"># store the decimal digits of 'n' into 'buf', units first</span> <span id="L250" class="LineNr">250 </span><span class="muComment"># n must be positive</span> -<span id="L251" class="LineNr">251 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L251'>decimal-digits</a></span> n: int, _buf: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L251" class="LineNr">251 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L251'>decimal-digits</a></span> n: int, _buf: (addr array byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L252" class="LineNr">252 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _buf <span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy n +<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> curr/eax: int <span class="Special"><-</span> copy n <span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> curr-byte/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L256" class="LineNr">256 </span> <span class="Delimiter">{</span> <span id="L257" class="LineNr">257 </span> compare curr, <span class="Constant">0</span> @@ -342,7 +341,7 @@ if ('onhashchange' in window) { <span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> l-a/<span class="muRegEcx">ecx</span>: (addr byte) <span class="Special"><-</span> index buf, left <span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> r-a/<span class="muRegEdx">edx</span>: (addr byte) <span class="Special"><-</span> index buf, right <span id="L279" class="LineNr">279 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: byte <span class="Special"><-</span> copy-byte *l-a -<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> r/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *r-a +<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> r/eax: byte <span class="Special"><-</span> copy-byte *r-a <span id="L281" class="LineNr">281 </span> copy-byte-to *l-a, r <span id="L282" class="LineNr">282 </span> copy-byte-to *r-a, l <span id="L283" class="LineNr">283 </span> <span class="Delimiter">}</span> @@ -352,19 +351,19 @@ if ('onhashchange' in window) { <span id="L287" class="LineNr">287 </span> <span class="Delimiter">}</span> <span id="L288" class="LineNr">288 </span><span class="Delimiter">}</span> <span id="L289" class="LineNr">289 </span> -<span id="L290" class="LineNr">290 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L290'>double-array-of-decimal-digits</a></span> _buf: (addr array byte), _n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L290" class="LineNr">290 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L290'>double-array-of-decimal-digits</a></span> _buf: (addr array byte), _n: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _buf <span id="L292" class="LineNr">292 </span> <span class="muComment"># initialize delta</span> <span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> delta/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L294" class="LineNr">294 </span> <span class="Delimiter">{</span> <span id="L295" class="LineNr">295 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr byte) <span class="Special"><-</span> index buf, <span class="Constant">0</span> -<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *curr +<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> copy-byte *curr <span id="L297" class="LineNr">297 </span> compare tmp, <span class="Constant">5</span> <span id="L298" class="LineNr">298 </span> <span class="PreProc">break-if-<</span> <span id="L299" class="LineNr">299 </span> delta <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L300" class="LineNr">300 </span> <span class="Delimiter">}</span> <span id="L301" class="LineNr">301 </span> <span class="muComment"># loop</span> -<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L303" class="LineNr">303 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _n <span id="L304" class="LineNr">304 </span> i <span class="Special"><-</span> decrement <span id="L305" class="LineNr">305 </span> <span class="Delimiter">{</span> @@ -391,7 +390,7 @@ if ('onhashchange' in window) { <span id="L326" class="LineNr">326 </span> <span class="PreProc">loop</span> <span id="L327" class="LineNr">327 </span> <span class="Delimiter">}</span> <span id="L328" class="LineNr">328 </span> <span class="muComment"># final patch-up</span> -<span id="L329" class="LineNr">329 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _n +<span id="L329" class="LineNr">329 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy _n <span id="L330" class="LineNr">330 </span> compare delta, <span class="Constant">1</span> <span id="L331" class="LineNr">331 </span> <span class="Delimiter">{</span> <span id="L332" class="LineNr">332 </span> <span class="PreProc">break-if-!=</span> @@ -403,9 +402,9 @@ if ('onhashchange' in window) { <span id="L338" class="LineNr">338 </span> <span class="PreProc">return</span> n <span id="L339" class="LineNr">339 </span><span class="Delimiter">}</span> <span id="L340" class="LineNr">340 </span> -<span id="L341" class="LineNr">341 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L341'>halve-array-of-decimal-digits</a></span> _buf: (addr array byte), _n: int, _dp: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> +<span id="L341" class="LineNr">341 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L341'>halve-array-of-decimal-digits</a></span> _buf: (addr array byte), _n: int, _dp: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> <span id="L342" class="LineNr">342 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _buf -<span id="L343" class="LineNr">343 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _n +<span id="L343" class="LineNr">343 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy _n <span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> dp/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _dp <span id="L345" class="LineNr">345 </span> <span class="muComment"># initialize one side</span> <span id="L346" class="LineNr">346 </span> <span class="Delimiter">{</span> @@ -417,7 +416,7 @@ if ('onhashchange' in window) { <span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> right-int/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy right <span id="L353" class="LineNr">353 </span> <span class="PreProc">var</span> remainder/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L354" class="LineNr">354 </span> <span class="Delimiter">{</span> -<span id="L355" class="LineNr">355 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L355" class="LineNr">355 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L356" class="LineNr">356 </span> dummy, remainder <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> right-int, <span class="Constant">2</span> <span id="L357" class="LineNr">357 </span> <span class="Delimiter">}</span> <span id="L358" class="LineNr">358 </span> compare remainder, <span class="Constant">0</span> @@ -463,7 +462,7 @@ if ('onhashchange' in window) { <span id="L398" class="LineNr">398 </span> <span class="Delimiter">}</span> <span id="L399" class="LineNr">399 </span> <span class="muComment"># buf[i], x = x/2, x%2</span> <span id="L400" class="LineNr">400 </span> <span class="Delimiter">{</span> -<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> quotient/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> quotient/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L402" class="LineNr">402 </span> <span class="PreProc">var</span> remainder/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L403" class="LineNr">403 </span> quotient, remainder <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> x, <span class="Constant">2</span> <span id="L404" class="LineNr">404 </span> x <span class="Special"><-</span> copy remainder @@ -486,7 +485,7 @@ if ('onhashchange' in window) { <span id="L421" class="LineNr">421 </span> <span class="PreProc">return</span> <span id="L422" class="LineNr">422 </span> <span class="Delimiter">}</span> <span id="L423" class="LineNr">423 </span> <span class="Delimiter">{</span> -<span id="L424" class="LineNr">424 </span> <span class="PreProc">var</span> dp2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy dp +<span id="L424" class="LineNr">424 </span> <span class="PreProc">var</span> dp2/eax: int <span class="Special"><-</span> copy dp <span id="L425" class="LineNr">425 </span> compare dp2, precision <span id="L426" class="LineNr">426 </span> <span class="PreProc">break-if-<=</span> <span id="L427" class="LineNr">427 </span> <a href='412render-float-decimal.mu.html#L464'>_write-float-array-of-decimal-digits-in-scientific-notation</a> out, buf, n, dp, precision @@ -497,7 +496,7 @@ if ('onhashchange' in window) { <span id="L432" class="LineNr">432 </span> <span class="PreProc">break-if-!=</span> <span id="L433" class="LineNr">433 </span> <a href='115write-byte.subx.html#L12'>append-byte</a> out, <span class="Constant">0x30</span>/<span class="Constant">0</span> <span id="L434" class="LineNr">434 </span> <span class="Delimiter">}</span> -<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L436" class="LineNr">436 </span> <span class="muComment"># bounds = min(n, dp+3)</span> <span id="L437" class="LineNr">437 </span> <span class="PreProc">var</span> limit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy dp <span id="L438" class="LineNr">438 </span> limit <span class="Special"><-</span> add <span class="Constant">3</span> @@ -528,7 +527,7 @@ if ('onhashchange' in window) { <span id="L463" class="LineNr">463 </span> <span id="L464" class="LineNr">464 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L464'>_write-float-array-of-decimal-digits-in-scientific-notation</a></span> out: (addr stream byte), _buf: (addr array byte), n: int, dp: int, precision: int <span class="Delimiter">{</span> <span id="L465" class="LineNr">465 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _buf -<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L467" class="LineNr">467 </span> <span class="Delimiter">{</span> <span id="L468" class="LineNr">468 </span> compare i, n <span id="L469" class="LineNr">469 </span> <span class="PreProc">break-if->=</span> @@ -555,9 +554,9 @@ if ('onhashchange' in window) { <span id="L490" class="LineNr">490 </span> <span id="L491" class="LineNr">491 </span><span class="muComment"># follows the structure of write-float-decimal-approximate</span> <span id="L492" class="LineNr">492 </span><span class="muComment"># 'precision' controls the maximum width past which we resort to scientific notation</span> -<span id="L493" class="LineNr">493 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L493'>float-size</a></span> in: float, precision: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L493" class="LineNr">493 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412render-float-decimal.mu.html#L493'>float-size</a></span> in: float, precision: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L494" class="LineNr">494 </span> <span class="muComment"># - special names</span> -<span id="L495" class="LineNr">495 </span> <span class="PreProc">var</span> bits/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> reinterpret in +<span id="L495" class="LineNr">495 </span> <span class="PreProc">var</span> bits/eax: int <span class="Special"><-</span> reinterpret in <span id="L496" class="LineNr">496 </span> compare bits, <span class="Constant">0</span> <span id="L497" class="LineNr">497 </span> <span class="Delimiter">{</span> <span id="L498" class="LineNr">498 </span> <span class="PreProc">break-if-!=</span> @@ -599,7 +598,7 @@ if ('onhashchange' in window) { <span id="L534" class="LineNr">534 </span> <span class="muComment"># initialize buffer with decimal representation of v</span> <span id="L535" class="LineNr">535 </span> <span class="PreProc">var</span> buf-storage: (array byte <span class="Constant">0x7f</span>) <span id="L536" class="LineNr">536 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> address buf-storage -<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='412render-float-decimal.mu.html#L251'>decimal-digits</a> v, buf +<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='412render-float-decimal.mu.html#L251'>decimal-digits</a> v, buf <span id="L538" class="LineNr">538 </span> <a href='412render-float-decimal.mu.html#L268'>reverse-digits</a> buf, n <span id="L539" class="LineNr">539 </span> <span id="L540" class="LineNr">540 </span> <span class="muComment"># loop if e > 0</span> @@ -628,7 +627,7 @@ if ('onhashchange' in window) { <span id="L563" class="LineNr">563 </span> <span class="PreProc">return</span> <span class="Constant">8</span> <span class="muComment"># hacky for scientific notation</span> <span id="L564" class="LineNr">564 </span> <span class="Delimiter">}</span> <span id="L565" class="LineNr">565 </span> <span class="Delimiter">{</span> -<span id="L566" class="LineNr">566 </span> <span class="PreProc">var</span> dp2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy dp +<span id="L566" class="LineNr">566 </span> <span class="PreProc">var</span> dp2/eax: int <span class="Special"><-</span> copy dp <span id="L567" class="LineNr">567 </span> compare dp2, precision <span id="L568" class="LineNr">568 </span> <span class="PreProc">break-if-<=</span> <span id="L569" class="LineNr">569 </span> <span class="PreProc">return</span> <span class="Constant">8</span> <span class="muComment"># hacky for scientific notation</span> diff --git a/html/500fake-screen.mu.html b/html/500fake-screen.mu.html index 11fd849a..3060c3c3 100644 --- a/html/500fake-screen.mu.html +++ b/html/500fake-screen.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdi { color: #87ffd7; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEdx { color: #878700; } +.muComment { color: #005faf; } --> </style> @@ -96,7 +95,7 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr"> 32 </span> <span id="L33" class="LineNr"> 33 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L33'>initialize-screen</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), width: int, height: int, pixel-graphics?: boolean <span class="Delimiter">{</span> <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L37" class="LineNr"> 37 </span> <span class="muComment"># screen->width = width</span> <span id="L38" class="LineNr"> 38 </span> dest <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width @@ -109,7 +108,7 @@ if ('onhashchange' in window) { <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># populate screen->data</span> <span id="L46" class="LineNr"> 46 </span> <span class="Delimiter">{</span> <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data -<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> capacity/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy width +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> capacity/eax: int <span class="Special"><-</span> copy width <span id="L49" class="LineNr"> 49 </span> capacity <span class="Special"><-</span> multiply height <span id="L50" class="LineNr"> 50 </span> <span class="muComment"># add 1 for sentinel</span> <span id="L51" class="LineNr"> 51 </span> capacity <span class="Special"><-</span> increment @@ -125,7 +124,7 @@ if ('onhashchange' in window) { <span id="L61" class="LineNr"> 61 </span> compare pixel-graphics?, <span class="Constant">0</span>/false <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">break-if-=</span> <span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> pixels-ah/<span class="muRegEdi">edi</span>: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> capacity/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy width +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> capacity/eax: int <span class="Special"><-</span> copy width <span id="L65" class="LineNr"> 65 </span> capacity <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width <span id="L66" class="LineNr"> 66 </span> capacity <span class="Special"><-</span> multiply height <span id="L67" class="LineNr"> 67 </span> capacity <span class="Special"><-</span> shift-left <span class="Constant">4</span>/log2-font-height @@ -147,9 +146,9 @@ if ('onhashchange' in window) { <span id="L83" class="LineNr"> 83 </span><span class="Delimiter">}</span> <span id="L84" class="LineNr"> 84 </span> <span id="L85" class="LineNr"> 85 </span><span class="muComment"># in graphemes</span> -<span id="L86" class="LineNr"> 86 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L86'>screen-size</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L86" class="LineNr"> 86 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L86'>screen-size</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>)<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L90" class="LineNr"> 90 </span> compare <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span> <span id="L91" class="LineNr"> 91 </span> <span class="Delimiter">{</span> @@ -175,14 +174,14 @@ if ('onhashchange' in window) { <span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> <span id="L112" class="LineNr">112 </span> <span class="muComment"># fake screen</span> <span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L136'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y -<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data -<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data +<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx <span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> dest-cell/<span class="muRegEcx">ecx</span>: (addr <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> dest-grapheme/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> get dest-cell, data +<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> dest-grapheme/eax: (addr grapheme) <span class="Special"><-</span> get dest-cell, data <span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> g2/<span class="muRegEdx">edx</span>: grapheme <span class="Special"><-</span> copy g <span id="L120" class="LineNr">120 </span> copy-to *dest-grapheme, g2 -<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> dest-color/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get dest-cell, color +<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> dest-color/eax: (addr int) <span class="Special"><-</span> get dest-cell, color <span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> src-color/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy color <span id="L123" class="LineNr">123 </span> copy-to *dest-color, src-color <span id="L124" class="LineNr">124 </span> dest-color <span class="Special"><-</span> get dest-cell, background-color @@ -192,7 +191,7 @@ if ('onhashchange' in window) { <span id="L128" class="LineNr">128 </span> <span id="L129" class="LineNr">129 </span><span class="muComment"># we can't really render non-ASCII yet, but when we do we'll be ready</span> <span id="L130" class="LineNr">130 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L130'>draw-code-point</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), c: code-point, x: int, y: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L132" class="LineNr">132 </span> <a href='500fake-screen.mu.html#L104'>draw-grapheme</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, x, y, color, background-color <span id="L133" class="LineNr">133 </span><span class="Delimiter">}</span> <span id="L134" class="LineNr">134 </span> @@ -203,50 +202,50 @@ if ('onhashchange' in window) { <span id="L139" class="LineNr">139 </span> <span class="Delimiter">{</span> <span id="L140" class="LineNr">140 </span> compare x, <span class="Constant">0</span> <span id="L141" class="LineNr">141 </span> <span class="PreProc">break-if->=</span> -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> invalid/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-cell-index +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> invalid/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-cell-index <span id="L143" class="LineNr">143 </span> <span class="PreProc">return</span> *invalid <span id="L144" class="LineNr">144 </span> <span class="Delimiter">}</span> <span id="L145" class="LineNr">145 </span> <span class="Delimiter">{</span> -<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> xmax/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width +<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> xmax/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x <span id="L148" class="LineNr">148 </span> compare xcurr, *xmax <span id="L149" class="LineNr">149 </span> <span class="PreProc">break-if-<</span> -<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> invalid/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-cell-index +<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> invalid/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-cell-index <span id="L151" class="LineNr">151 </span> <span class="PreProc">return</span> *invalid <span id="L152" class="LineNr">152 </span> <span class="Delimiter">}</span> <span id="L153" class="LineNr">153 </span> <span class="Delimiter">{</span> <span id="L154" class="LineNr">154 </span> compare y, <span class="Constant">0</span> <span id="L155" class="LineNr">155 </span> <span class="PreProc">break-if->=</span> -<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> invalid/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-cell-index +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> invalid/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-cell-index <span id="L157" class="LineNr">157 </span> <span class="PreProc">return</span> *invalid <span id="L158" class="LineNr">158 </span> <span class="Delimiter">}</span> <span id="L159" class="LineNr">159 </span> <span class="Delimiter">{</span> -<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> ymax/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height +<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> ymax/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height <span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y <span id="L162" class="LineNr">162 </span> compare ycurr, *ymax <span id="L163" class="LineNr">163 </span> <span class="PreProc">break-if-<</span> -<span id="L164" class="LineNr">164 </span> <span class="PreProc">var</span> invalid/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-cell-index +<span id="L164" class="LineNr">164 </span> <span class="PreProc">var</span> invalid/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-cell-index <span id="L165" class="LineNr">165 </span> <span class="PreProc">return</span> *invalid <span id="L166" class="LineNr">166 </span> <span class="Delimiter">}</span> -<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> width-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width +<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> width-addr/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width <span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> result/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y <span id="L169" class="LineNr">169 </span> result <span class="Special"><-</span> multiply *width-addr <span id="L170" class="LineNr">170 </span> result <span class="Special"><-</span> add x <span id="L171" class="LineNr">171 </span> <span class="PreProc">return</span> result <span id="L172" class="LineNr">172 </span><span class="Delimiter">}</span> <span id="L173" class="LineNr">173 </span> -<span id="L174" class="LineNr">174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L174'>cursor-position</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L174" class="LineNr">174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L174'>cursor-position</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>)<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L176" class="LineNr">176 </span> <span class="Delimiter">{</span> <span id="L177" class="LineNr">177 </span> compare <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span> <span id="L178" class="LineNr">178 </span> <span class="PreProc">break-if-!=</span> -<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L181" class="LineNr">181 </span> x, y <span class="Special"><-</span> <a href='103grapheme.subx.html#L157'>cursor-position-on-real-screen</a> <span id="L182" class="LineNr">182 </span> <span class="PreProc">return</span> x, y <span id="L183" class="LineNr">183 </span> <span class="Delimiter">}</span> <span id="L184" class="LineNr">184 </span> <span class="muComment"># fake screen</span> -<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> cursor-x-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x +<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> cursor-x-addr/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x <span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> cursor-y-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-y <span id="L187" class="LineNr">187 </span> <span class="PreProc">return</span> *cursor-x-addr, *cursor-y-addr <span id="L188" class="LineNr">188 </span><span class="Delimiter">}</span> @@ -268,8 +267,8 @@ if ('onhashchange' in window) { <span id="L204" class="LineNr">204 </span> <span class="Delimiter">}</span> <span id="L205" class="LineNr">205 </span> <span class="muComment"># ignore x >= width</span> <span id="L206" class="LineNr">206 </span> <span class="Delimiter">{</span> -<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> width-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width -<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *width-addr +<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> width-addr/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy *width-addr <span id="L209" class="LineNr">209 </span> compare x, width <span id="L210" class="LineNr">210 </span> <span class="PreProc">break-if-<=</span> <span id="L211" class="LineNr">211 </span> <span class="PreProc">return</span> @@ -282,15 +281,15 @@ if ('onhashchange' in window) { <span id="L218" class="LineNr">218 </span> <span class="Delimiter">}</span> <span id="L219" class="LineNr">219 </span> <span class="muComment"># ignore y >= height</span> <span id="L220" class="LineNr">220 </span> <span class="Delimiter">{</span> -<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> height-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height -<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> height/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *height-addr +<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> height-addr/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height +<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> height/eax: int <span class="Special"><-</span> copy *height-addr <span id="L223" class="LineNr">223 </span> compare y, height <span id="L224" class="LineNr">224 </span> <span class="PreProc">break-if-<</span> <span id="L225" class="LineNr">225 </span> <span class="PreProc">return</span> <span id="L226" class="LineNr">226 </span> <span class="Delimiter">}</span> <span id="L227" class="LineNr">227 </span> <span class="muComment"># screen->cursor-x = x</span> <span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x -<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x +<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> copy x <span id="L230" class="LineNr">230 </span> copy-to *dest, src <span id="L231" class="LineNr">231 </span> <span class="muComment"># screen->cursor-y = y</span> <span id="L232" class="LineNr">232 </span> dest <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-y @@ -306,7 +305,7 @@ if ('onhashchange' in window) { <span id="L242" class="LineNr">242 </span> <span class="PreProc">return</span> <span id="L243" class="LineNr">243 </span> <span class="Delimiter">}</span> <span id="L244" class="LineNr">244 </span> <span class="muComment"># fake screen</span> -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L247" class="LineNr">247 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L248" class="LineNr">248 </span> <a href='500fake-screen.mu.html#L104'>draw-grapheme</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, cursor-x, cursor-y, <span class="Constant">0</span>/fg, <span class="Constant">7</span>/bg @@ -322,7 +321,7 @@ if ('onhashchange' in window) { <span id="L258" class="LineNr">258 </span> <span class="Delimiter">}</span> <span id="L259" class="LineNr">259 </span> <span class="muComment"># fake screen</span> <span id="L260" class="LineNr">260 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>, <span class="Constant">0</span> -<span id="L261" class="LineNr">261 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L261" class="LineNr">261 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height <span id="L263" class="LineNr">263 </span> <span class="Delimiter">{</span> <span id="L264" class="LineNr">264 </span> compare y, *height @@ -340,14 +339,14 @@ if ('onhashchange' in window) { <span id="L276" class="LineNr">276 </span> <span class="PreProc">loop</span> <span id="L277" class="LineNr">277 </span> <span class="Delimiter">}</span> <span id="L278" class="LineNr">278 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>, <span class="Constant">0</span> -<span id="L279" class="LineNr">279 </span> <span class="PreProc">var</span> pixels-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels -<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> pixels/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *pixels-ah +<span id="L279" class="LineNr">279 </span> <span class="PreProc">var</span> pixels-ah/eax: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels +<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> pixels/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *pixels-ah <span id="L281" class="LineNr">281 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> max/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length pixels <span id="L283" class="LineNr">283 </span> <span class="Delimiter">{</span> <span id="L284" class="LineNr">284 </span> compare i, max <span id="L285" class="LineNr">285 </span> <span class="PreProc">break-if->=</span> -<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr byte) <span class="Special"><-</span> index pixels, i +<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> curr/eax: (addr byte) <span class="Special"><-</span> index pixels, i <span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> zero/<span class="muRegEbx">ebx</span>: byte <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L288" class="LineNr">288 </span> copy-byte-to *curr, zero <span id="L289" class="LineNr">289 </span> i <span class="Special"><-</span> increment @@ -355,9 +354,9 @@ if ('onhashchange' in window) { <span id="L291" class="LineNr">291 </span> <span class="Delimiter">}</span> <span id="L292" class="LineNr">292 </span><span class="Delimiter">}</span> <span id="L293" class="LineNr">293 </span> -<span id="L294" class="LineNr">294 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L294'>fake-screen-empty?</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L294" class="LineNr">294 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L294'>fake-screen-empty?</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L295" class="LineNr">295 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height <span id="L298" class="LineNr">298 </span> <span class="Delimiter">{</span> <span id="L299" class="LineNr">299 </span> compare y, *height @@ -367,7 +366,7 @@ if ('onhashchange' in window) { <span id="L303" class="LineNr">303 </span> <span class="Delimiter">{</span> <span id="L304" class="LineNr">304 </span> compare x, *width <span id="L305" class="LineNr">305 </span> <span class="PreProc">break-if->=</span> -<span id="L306" class="LineNr">306 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L427'>screen-grapheme-at</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y +<span id="L306" class="LineNr">306 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L427'>screen-grapheme-at</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y <span id="L307" class="LineNr">307 </span> <span class="Delimiter">{</span> <span id="L308" class="LineNr">308 </span> compare g, <span class="Constant">0</span> <span id="L309" class="LineNr">309 </span> <span class="PreProc">break-if-=</span> @@ -381,8 +380,8 @@ if ('onhashchange' in window) { <span id="L317" class="LineNr">317 </span> y <span class="Special"><-</span> increment <span id="L318" class="LineNr">318 </span> <span class="PreProc">loop</span> <span id="L319" class="LineNr">319 </span> <span class="Delimiter">}</span> -<span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> pixels-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels -<span id="L321" class="LineNr">321 </span> <span class="PreProc">var</span> pixels/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *pixels-ah +<span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> pixels-ah/eax: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels +<span id="L321" class="LineNr">321 </span> <span class="PreProc">var</span> pixels/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *pixels-ah <span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> y/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> height-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height <span id="L324" class="LineNr">324 </span> <span class="PreProc">var</span> height/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *height-addr @@ -424,7 +423,7 @@ if ('onhashchange' in window) { <span id="L360" class="LineNr">360 </span> <span class="Delimiter">}</span> <span id="L361" class="LineNr">361 </span> <span class="muComment"># fake screen</span> <span id="L362" class="LineNr">362 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>, <span class="Constant">0</span> -<span id="L363" class="LineNr">363 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy ymin +<span id="L363" class="LineNr">363 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy ymin <span id="L364" class="LineNr">364 </span> <span class="PreProc">var</span> ymax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymax <span id="L365" class="LineNr">365 </span> <span class="Delimiter">{</span> <span id="L366" class="LineNr">366 </span> compare y, ymax @@ -447,7 +446,7 @@ if ('onhashchange' in window) { <span id="L383" class="LineNr">383 </span><span class="muComment"># there's no grapheme that guarantees to cover every pixel, so we'll bump down</span> <span id="L384" class="LineNr">384 </span><span class="muComment"># to pixels for a real screen</span> <span id="L385" class="LineNr">385 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L385'>clear-real-screen</a></span> <span class="Delimiter">{</span> -<span id="L386" class="LineNr">386 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L386" class="LineNr">386 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L387" class="LineNr">387 </span> <span class="Delimiter">{</span> <span id="L388" class="LineNr">388 </span> compare y, <span class="Constant">0x300</span>/screen-height=<span class="Constant">768</span> <span id="L389" class="LineNr">389 </span> <span class="PreProc">break-if->=</span> @@ -465,7 +464,7 @@ if ('onhashchange' in window) { <span id="L401" class="LineNr">401 </span><span class="Delimiter">}</span> <span id="L402" class="LineNr">402 </span> <span id="L403" class="LineNr">403 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L403'>clear-rect-on-real-screen</a></span> xmin: int, ymin: int, xmax: int, ymax: int, background-color: int <span class="Delimiter">{</span> -<span id="L404" class="LineNr">404 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy ymin +<span id="L404" class="LineNr">404 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy ymin <span id="L405" class="LineNr">405 </span> y <span class="Special"><-</span> shift-left <span class="Constant">4</span>/log2-font-height <span id="L406" class="LineNr">406 </span> <span class="PreProc">var</span> ymax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymax <span id="L407" class="LineNr">407 </span> ymax <span class="Special"><-</span> shift-left <span class="Constant">4</span>/log2-font-height @@ -488,59 +487,59 @@ if ('onhashchange' in window) { <span id="L424" class="LineNr">424 </span> <span class="Delimiter">}</span> <span id="L425" class="LineNr">425 </span><span class="Delimiter">}</span> <span id="L426" class="LineNr">426 </span> -<span id="L427" class="LineNr">427 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L427'>screen-grapheme-at</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L427" class="LineNr">427 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L427'>screen-grapheme-at</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L428" class="LineNr">428 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L429" class="LineNr">429 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L136'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y -<span id="L430" class="LineNr">430 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L430" class="LineNr">430 </span> <span class="PreProc">var</span> result/eax: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L431" class="LineNr">431 </span> <span class="PreProc">return</span> result <span id="L432" class="LineNr">432 </span><span class="Delimiter">}</span> <span id="L433" class="LineNr">433 </span> -<span id="L434" class="LineNr">434 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L434" class="LineNr">434 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L436" class="LineNr">436 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data -<span id="L437" class="LineNr">437 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L436" class="LineNr">436 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data +<span id="L437" class="LineNr">437 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L438" class="LineNr">438 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L440" class="LineNr">440 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L441" class="LineNr">441 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> get cell, data +<span id="L440" class="LineNr">440 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L441" class="LineNr">441 </span> <span class="PreProc">var</span> src/eax: (addr grapheme) <span class="Special"><-</span> get cell, data <span id="L442" class="LineNr">442 </span> <span class="PreProc">return</span> *src <span id="L443" class="LineNr">443 </span><span class="Delimiter">}</span> <span id="L444" class="LineNr">444 </span> -<span id="L445" class="LineNr">445 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L445'>screen-color-at</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L445" class="LineNr">445 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L445'>screen-color-at</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L446" class="LineNr">446 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L447" class="LineNr">447 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L136'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y -<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L452'>screen-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L452'>screen-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L449" class="LineNr">449 </span> <span class="PreProc">return</span> result <span id="L450" class="LineNr">450 </span><span class="Delimiter">}</span> <span id="L451" class="LineNr">451 </span> -<span id="L452" class="LineNr">452 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L452'>screen-color-at-idx</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L452" class="LineNr">452 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L452'>screen-color-at-idx</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L453" class="LineNr">453 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L454" class="LineNr">454 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data -<span id="L455" class="LineNr">455 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L454" class="LineNr">454 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data +<span id="L455" class="LineNr">455 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L456" class="LineNr">456 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L457" class="LineNr">457 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L458" class="LineNr">458 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L459" class="LineNr">459 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get cell, color -<span id="L460" class="LineNr">460 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *src +<span id="L458" class="LineNr">458 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L459" class="LineNr">459 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> get cell, color +<span id="L460" class="LineNr">460 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy *src <span id="L461" class="LineNr">461 </span> <span class="PreProc">return</span> result <span id="L462" class="LineNr">462 </span><span class="Delimiter">}</span> <span id="L463" class="LineNr">463 </span> -<span id="L464" class="LineNr">464 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L464'>screen-background-color-at</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L464" class="LineNr">464 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L464'>screen-background-color-at</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L465" class="LineNr">465 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L136'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y -<span id="L467" class="LineNr">467 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L467" class="LineNr">467 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L468" class="LineNr">468 </span> <span class="PreProc">return</span> result <span id="L469" class="LineNr">469 </span><span class="Delimiter">}</span> <span id="L470" class="LineNr">470 </span> -<span id="L471" class="LineNr">471 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L471" class="LineNr">471 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L472" class="LineNr">472 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L473" class="LineNr">473 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data -<span id="L474" class="LineNr">474 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L473" class="LineNr">473 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, data +<span id="L474" class="LineNr">474 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L475" class="LineNr">475 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L476" class="LineNr">476 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L477" class="LineNr">477 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L478" class="LineNr">478 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get cell, background-color -<span id="L479" class="LineNr">479 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *src +<span id="L477" class="LineNr">477 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L478" class="LineNr">478 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> get cell, background-color +<span id="L479" class="LineNr">479 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy *src <span id="L480" class="LineNr">480 </span> <span class="PreProc">return</span> result <span id="L481" class="LineNr">481 </span><span class="Delimiter">}</span> <span id="L482" class="LineNr">482 </span> @@ -553,8 +552,8 @@ if ('onhashchange' in window) { <span id="L489" class="LineNr">489 </span> <span class="Delimiter">}</span> <span id="L490" class="LineNr">490 </span> <span class="muComment"># fake screen</span> <span id="L491" class="LineNr">491 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L492" class="LineNr">492 </span> <span class="PreProc">var</span> pixels-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels -<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> pixels/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *pixels-ah +<span id="L492" class="LineNr">492 </span> <span class="PreProc">var</span> pixels-ah/eax: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels +<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> pixels/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *pixels-ah <span id="L494" class="LineNr">494 </span> <span class="Delimiter">{</span> <span id="L495" class="LineNr">495 </span> compare pixels, <span class="Constant">0</span> <span id="L496" class="LineNr">496 </span> <span class="PreProc">break-if-!=</span> @@ -562,7 +561,7 @@ if ('onhashchange' in window) { <span id="L498" class="LineNr">498 </span> <span class="Delimiter">}</span> <span id="L499" class="LineNr">499 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L505'>pixel-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y <span id="L500" class="LineNr">500 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr byte) <span class="Special"><-</span> index pixels, idx -<span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte color +<span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> src/eax: byte <span class="Special"><-</span> copy-byte color <span id="L502" class="LineNr">502 </span> copy-byte-to *dest, src <span id="L503" class="LineNr">503 </span><span class="Delimiter">}</span> <span id="L504" class="LineNr">504 </span> @@ -571,34 +570,34 @@ if ('onhashchange' in window) { <span id="L507" class="LineNr">507 </span> <span class="Delimiter">{</span> <span id="L508" class="LineNr">508 </span> compare x, <span class="Constant">0</span> <span id="L509" class="LineNr">509 </span> <span class="PreProc">break-if->=</span> -<span id="L510" class="LineNr">510 </span> <span class="PreProc">var</span> invalid/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-pixel-index +<span id="L510" class="LineNr">510 </span> <span class="PreProc">var</span> invalid/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-pixel-index <span id="L511" class="LineNr">511 </span> <span class="PreProc">return</span> *invalid <span id="L512" class="LineNr">512 </span> <span class="Delimiter">}</span> <span id="L513" class="LineNr">513 </span> <span class="Delimiter">{</span> -<span id="L514" class="LineNr">514 </span> <span class="PreProc">var</span> xmax-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width -<span id="L515" class="LineNr">515 </span> <span class="PreProc">var</span> xmax/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *xmax-a +<span id="L514" class="LineNr">514 </span> <span class="PreProc">var</span> xmax-a/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width +<span id="L515" class="LineNr">515 </span> <span class="PreProc">var</span> xmax/eax: int <span class="Special"><-</span> copy *xmax-a <span id="L516" class="LineNr">516 </span> xmax <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width <span id="L517" class="LineNr">517 </span> compare x, xmax <span id="L518" class="LineNr">518 </span> <span class="PreProc">break-if-<</span> -<span id="L519" class="LineNr">519 </span> <span class="PreProc">var</span> invalid/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-pixel-index +<span id="L519" class="LineNr">519 </span> <span class="PreProc">var</span> invalid/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-pixel-index <span id="L520" class="LineNr">520 </span> <span class="PreProc">return</span> *invalid <span id="L521" class="LineNr">521 </span> <span class="Delimiter">}</span> <span id="L522" class="LineNr">522 </span> <span class="Delimiter">{</span> <span id="L523" class="LineNr">523 </span> compare y, <span class="Constant">0</span> <span id="L524" class="LineNr">524 </span> <span class="PreProc">break-if->=</span> -<span id="L525" class="LineNr">525 </span> <span class="PreProc">var</span> invalid/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-pixel-index +<span id="L525" class="LineNr">525 </span> <span class="PreProc">var</span> invalid/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-pixel-index <span id="L526" class="LineNr">526 </span> <span class="PreProc">return</span> *invalid <span id="L527" class="LineNr">527 </span> <span class="Delimiter">}</span> <span id="L528" class="LineNr">528 </span> <span class="Delimiter">{</span> -<span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> ymax-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height -<span id="L530" class="LineNr">530 </span> <span class="PreProc">var</span> ymax/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *ymax-a +<span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> ymax-a/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height +<span id="L530" class="LineNr">530 </span> <span class="PreProc">var</span> ymax/eax: int <span class="Special"><-</span> copy *ymax-a <span id="L531" class="LineNr">531 </span> ymax <span class="Special"><-</span> shift-left <span class="Constant">4</span>/log2-font-height <span id="L532" class="LineNr">532 </span> compare y, ymax <span id="L533" class="LineNr">533 </span> <span class="PreProc">break-if-<</span> -<span id="L534" class="LineNr">534 </span> <span class="PreProc">var</span> invalid/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-pixel-index +<span id="L534" class="LineNr">534 </span> <span class="PreProc">var</span> invalid/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, invalid-pixel-index <span id="L535" class="LineNr">535 </span> <span class="PreProc">return</span> *invalid <span id="L536" class="LineNr">536 </span> <span class="Delimiter">}</span> -<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> width-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width +<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> width-addr/eax: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width <span id="L538" class="LineNr">538 </span> <span class="PreProc">var</span> result/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y <span id="L539" class="LineNr">539 </span> result <span class="Special"><-</span> multiply *width-addr <span id="L540" class="LineNr">540 </span> result <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width @@ -611,8 +610,8 @@ if ('onhashchange' in window) { <span id="L547" class="LineNr">547 </span><span class="muComment"># Both screens must have the same size.</span> <span id="L548" class="LineNr">548 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='500fake-screen.mu.html#L548'>copy-pixels</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), target-screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> <span id="L549" class="LineNr">549 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L550" class="LineNr">550 </span> <span class="PreProc">var</span> pixels-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels -<span id="L551" class="LineNr">551 </span> <span class="PreProc">var</span> _pixels/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *pixels-ah +<span id="L550" class="LineNr">550 </span> <span class="PreProc">var</span> pixels-ah/eax: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels +<span id="L551" class="LineNr">551 </span> <span class="PreProc">var</span> _pixels/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *pixels-ah <span id="L552" class="LineNr">552 </span> <span class="PreProc">var</span> pixels/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _pixels <span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> width-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width <span id="L554" class="LineNr">554 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *width-a @@ -626,7 +625,7 @@ if ('onhashchange' in window) { <span id="L562" class="LineNr">562 </span> <span class="muComment"># screen top left pixels x y width height</span> <span id="L563" class="LineNr">563 </span> compare y, height <span id="L564" class="LineNr">564 </span> <span class="PreProc">break-if->=</span> -<span id="L565" class="LineNr">565 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L565" class="LineNr">565 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L566" class="LineNr">566 </span> <span class="Delimiter">{</span> <span id="L567" class="LineNr">567 </span> compare x, width <span id="L568" class="LineNr">568 </span> <span class="PreProc">break-if->=</span> @@ -653,8 +652,8 @@ if ('onhashchange' in window) { <span id="L589" class="LineNr">589 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L590" class="LineNr">590 </span> <span class="PreProc">var</span> width-a/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, width <span id="L591" class="LineNr">591 </span> <span class="PreProc">var</span> height-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, height -<span id="L592" class="LineNr">592 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels -<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L592" class="LineNr">592 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get <a href='500fake-screen.mu.html#L14'>screen</a>, pixels +<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> _data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L594" class="LineNr">594 </span> <span class="PreProc">var</span> data: (addr array byte) <span id="L595" class="LineNr">595 </span> copy-to data, _data <span id="L596" class="LineNr">596 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> @@ -666,7 +665,7 @@ if ('onhashchange' in window) { <span id="L602" class="LineNr">602 </span> compare x, *width-a <span id="L603" class="LineNr">603 </span> <span class="PreProc">break-if->=</span> <span id="L604" class="LineNr">604 </span> <span class="Delimiter">{</span> -<span id="L605" class="LineNr">605 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L427'>screen-grapheme-at</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y +<span id="L605" class="LineNr">605 </span> <span class="PreProc">var</span> tmp/eax: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L427'>screen-grapheme-at</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y <span id="L606" class="LineNr">606 </span> <span class="muComment"># skip null graphemes that only get created when clearing screen</span> <span id="L607" class="LineNr">607 </span> <span class="muComment"># there may be other pixels drawn there, and we don't want to clobber them</span> <span id="L608" class="LineNr">608 </span> <span class="muComment"># this is a situation where fake screens aren't faithful to real screens; we don't support overlap between graphemes and raw pixels</span> @@ -674,10 +673,10 @@ if ('onhashchange' in window) { <span id="L610" class="LineNr">610 </span> <span class="PreProc">break-if-=</span> <span id="L611" class="LineNr">611 </span> <span class="PreProc">var</span> g: grapheme <span id="L612" class="LineNr">612 </span> copy-to g, tmp -<span id="L613" class="LineNr">613 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L445'>screen-color-at</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y +<span id="L613" class="LineNr">613 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L445'>screen-color-at</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y <span id="L614" class="LineNr">614 </span> <span class="PreProc">var</span> fg: int <span id="L615" class="LineNr">615 </span> copy-to fg, tmp -<span id="L616" class="LineNr">616 </span> <span class="PreProc">var</span> bg/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L464'>screen-background-color-at</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y +<span id="L616" class="LineNr">616 </span> <span class="PreProc">var</span> bg/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L464'>screen-background-color-at</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y <span id="L617" class="LineNr">617 </span> <a href='103grapheme.subx.html#L29'>draw-grapheme-on-screen-array</a> data, g, x, y, fg, bg, *width-a, *height-a <span id="L618" class="LineNr">618 </span> <span class="Delimiter">}</span> <span id="L619" class="LineNr">619 </span> x <span class="Special"><-</span> increment diff --git a/html/501draw-text.mu.html b/html/501draw-text.mu.html index 8174cee1..576d10b8 100644 --- a/html/501draw-text.mu.html +++ b/html/501draw-text.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEsi { color: #87d787; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEbx { color: #8787af; } +.muComment { color: #005faf; } --> </style> @@ -65,7 +64,7 @@ if ('onhashchange' in window) { <span id="L1" class="LineNr"> 1 </span><span class="muComment"># some primitives for moving the cursor without making assumptions about</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment"># raster order</span> <span id="L3" class="LineNr"> 3 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L3'>move-cursor-left</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> -<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L5" class="LineNr"> 5 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L6" class="LineNr"> 6 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L7" class="LineNr"> 7 </span> compare cursor-x, <span class="Constant">0</span> @@ -78,12 +77,12 @@ if ('onhashchange' in window) { <span id="L14" class="LineNr"> 14 </span><span class="Delimiter">}</span> <span id="L15" class="LineNr"> 15 </span> <span id="L16" class="LineNr"> 16 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L16'>move-cursor-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> -<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> _width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L19" class="LineNr"> 19 </span> _width, dummy <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> limit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _width <span id="L21" class="LineNr"> 21 </span> limit <span class="Special"><-</span> decrement -<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L24" class="LineNr"> 24 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L25" class="LineNr"> 25 </span> compare cursor-x, limit @@ -96,7 +95,7 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr"> 32 </span><span class="Delimiter">}</span> <span id="L33" class="LineNr"> 33 </span> <span id="L34" class="LineNr"> 34 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L34'>move-cursor-up</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L37" class="LineNr"> 37 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L38" class="LineNr"> 38 </span> compare cursor-y, <span class="Constant">0</span> @@ -109,12 +108,12 @@ if ('onhashchange' in window) { <span id="L45" class="LineNr"> 45 </span><span class="Delimiter">}</span> <span id="L46" class="LineNr"> 46 </span> <span id="L47" class="LineNr"> 47 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L47'>move-cursor-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> -<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> _height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L50" class="LineNr"> 50 </span> dummy, _height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> limit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _height <span id="L52" class="LineNr"> 52 </span> limit <span class="Special"><-</span> decrement -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L55" class="LineNr"> 55 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L56" class="LineNr"> 56 </span> compare cursor-y, limit @@ -127,12 +126,12 @@ if ('onhashchange' in window) { <span id="L63" class="LineNr"> 63 </span><span class="Delimiter">}</span> <span id="L64" class="LineNr"> 64 </span> <span id="L65" class="LineNr"> 65 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> -<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> _height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L68" class="LineNr"> 68 </span> dummy, _height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> limit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _height <span id="L70" class="LineNr"> 70 </span> limit <span class="Special"><-</span> decrement -<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L73" class="LineNr"> 73 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L74" class="LineNr"> 74 </span> compare cursor-y, limit @@ -146,7 +145,7 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span><span class="Delimiter">}</span> <span id="L83" class="LineNr"> 83 </span> <span id="L84" class="LineNr"> 84 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), g: grapheme, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L87" class="LineNr"> 87 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L88" class="LineNr"> 88 </span> <a href='500fake-screen.mu.html#L104'>draw-grapheme</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, cursor-x, cursor-y, color, background-color @@ -154,28 +153,28 @@ if ('onhashchange' in window) { <span id="L90" class="LineNr"> 90 </span> <span id="L91" class="LineNr"> 91 </span><span class="muComment"># we can't really render non-ASCII yet, but when we do we'll be ready</span> <span id="L92" class="LineNr"> 92 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L92'>draw-code-point-at-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), c: code-point, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L94" class="LineNr"> 94 </span> <a href='501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, color, background-color <span id="L95" class="LineNr"> 95 </span><span class="Delimiter">}</span> <span id="L96" class="LineNr"> 96 </span> <span id="L97" class="LineNr"> 97 </span><span class="muComment"># draw a single line of text from x, y to xmax</span> <span id="L98" class="LineNr"> 98 </span><span class="muComment"># return the next 'x' coordinate</span> <span id="L99" class="LineNr"> 99 </span><span class="muComment"># if there isn't enough space, truncate</span> -<span id="L100" class="LineNr">100 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L100'>draw-text-rightward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, xmax: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L100" class="LineNr">100 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L100'>draw-text-rightward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, xmax: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x200</span>/print-buffer-size) <span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L103" class="LineNr">103 </span> <a href='108write.subx.html#L11'>write</a> stream, text -<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L111'>draw-stream-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, x, xmax, y, color, background-color +<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> xcurr/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L111'>draw-stream-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, x, xmax, y, color, background-color <span id="L105" class="LineNr">105 </span> <span class="PreProc">return</span> xcurr <span id="L106" class="LineNr">106 </span><span class="Delimiter">}</span> <span id="L107" class="LineNr">107 </span> <span id="L108" class="LineNr">108 </span><span class="muComment"># draw a single-line stream from x, y to xmax</span> <span id="L109" class="LineNr">109 </span><span class="muComment"># return the next 'x' coordinate</span> <span id="L110" class="LineNr">110 </span><span class="muComment"># if there isn't enough space, truncate</span> -<span id="L111" class="LineNr">111 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L111'>draw-stream-rightward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), x: int, xmax: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L111" class="LineNr">111 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L111'>draw-stream-rightward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), x: int, xmax: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x <span id="L113" class="LineNr">113 </span> <span class="Delimiter">{</span> -<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream +<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream <span id="L115" class="LineNr">115 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file <span id="L116" class="LineNr">116 </span> <span class="PreProc">break-if-=</span> <span id="L117" class="LineNr">117 </span> <a href='500fake-screen.mu.html#L104'>draw-grapheme</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, xcurr, y, color, background-color @@ -186,16 +185,16 @@ if ('onhashchange' in window) { <span id="L122" class="LineNr">122 </span> <span class="PreProc">return</span> xcurr <span id="L123" class="LineNr">123 </span><span class="Delimiter">}</span> <span id="L124" class="LineNr">124 </span> -<span id="L125" class="LineNr">125 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L125'>draw-text-rightward-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L125" class="LineNr">125 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L125'>draw-text-rightward-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L128" class="LineNr">128 </span> width, height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, x, width, y, color, background-color +<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, x, width, y, color, background-color <span id="L130" class="LineNr">130 </span> <span class="PreProc">return</span> result <span id="L131" class="LineNr">131 </span><span class="Delimiter">}</span> <span id="L132" class="LineNr">132 </span> <span id="L133" class="LineNr">133 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L133'>draw-text-rightward-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmax: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L136" class="LineNr">136 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L137" class="LineNr">137 </span> cursor-x <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, cursor-x, xmax, cursor-y, color, background-color @@ -203,15 +202,15 @@ if ('onhashchange' in window) { <span id="L139" class="LineNr">139 </span><span class="Delimiter">}</span> <span id="L140" class="LineNr">140 </span> <span id="L141" class="LineNr">141 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L141'>draw-text-rightward-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span> -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L144" class="LineNr">144 </span> width, height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L145" class="LineNr">145 </span> <a href='501draw-text.mu.html#L133'>draw-text-rightward-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, width, color, background-color <span id="L146" class="LineNr">146 </span><span class="Delimiter">}</span> <span id="L147" class="LineNr">147 </span> -<span id="L148" class="LineNr">148 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L148'>render-grapheme</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), g: grapheme, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L148" class="LineNr">148 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L148'>render-grapheme</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), g: grapheme, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L149" class="LineNr">149 </span> compare g, <span class="Constant">0xa</span>/newline -<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x +<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy x <span id="L151" class="LineNr">151 </span> <span class="Delimiter">{</span> <span id="L152" class="LineNr">152 </span> <span class="PreProc">break-if-!=</span> <span id="L153" class="LineNr">153 </span> <span class="muComment"># minimum effort to clear cursor</span> @@ -235,14 +234,14 @@ if ('onhashchange' in window) { <span id="L171" class="LineNr">171 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span> <span id="L172" class="LineNr">172 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span> <span id="L173" class="LineNr">173 </span><span class="muComment"># if there isn't enough space, truncate</span> -<span id="L174" class="LineNr">174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L174" class="LineNr">174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x200</span>/print-buffer-size) <span class="muComment"># 4 rows of text = 1/12th of a real screen</span> <span id="L176" class="LineNr">176 </span> <span class="muComment"># fake screens unlikely to be larger</span> <span id="L177" class="LineNr">177 </span> <span class="muComment"># so this seems a reasonable size</span> <span id="L178" class="LineNr">178 </span> <span class="muComment"># allocated on the stack, so quickly reclaimed</span> <span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> text/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _text -<span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> len/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> length text +<span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> len/eax: int <span class="Special"><-</span> length text <span id="L182" class="LineNr">182 </span> compare len, <span class="Constant">0x200</span> <span id="L183" class="LineNr">183 </span> <span class="Delimiter">{</span> <span id="L184" class="LineNr">184 </span> <span class="PreProc">break-if-<</span> @@ -253,7 +252,7 @@ if ('onhashchange' in window) { <span id="L189" class="LineNr">189 </span> <span class="PreProc">break-if->=</span> <span id="L190" class="LineNr">190 </span> <a href='108write.subx.html#L11'>write</a> stream, text <span id="L191" class="LineNr">191 </span> <span class="Delimiter">}</span> -<span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _x +<span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy _x <span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _y <span id="L194" class="LineNr">194 </span> x, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L202'>draw-stream-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, xmin, ymin, xmax, ymax, x, y, color, background-color <span id="L195" class="LineNr">195 </span> <span class="PreProc">return</span> x, y @@ -263,13 +262,13 @@ if ('onhashchange' in window) { <span id="L199" class="LineNr">199 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span> <span id="L200" class="LineNr">200 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span> <span id="L201" class="LineNr">201 </span><span class="muComment"># if there isn't enough space, truncate</span> -<span id="L202" class="LineNr">202 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L202'>draw-stream-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> -<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x +<span id="L202" class="LineNr">202 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L202'>draw-stream-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> xcurr/eax: int <span class="Special"><-</span> copy x <span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y <span id="L205" class="LineNr">205 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L206" class="LineNr">206 </span> <span class="Delimiter">{</span> <span id="L207" class="LineNr">207 </span> <span class="Delimiter">{</span> -<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream <span id="L209" class="LineNr">209 </span> g <span class="Special"><-</span> copy _g <span id="L210" class="LineNr">210 </span> <span class="Delimiter">}</span> <span id="L211" class="LineNr">211 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file @@ -282,7 +281,7 @@ if ('onhashchange' in window) { <span id="L218" class="LineNr">218 </span><span class="Delimiter">}</span> <span id="L219" class="LineNr">219 </span> <span id="L220" class="LineNr">220 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L220'>draw-stream-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L223" class="LineNr">223 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy cursor-x @@ -297,14 +296,14 @@ if ('onhashchange' in window) { <span id="L233" class="LineNr">233 </span><span class="Delimiter">}</span> <span id="L234" class="LineNr">234 </span> <span id="L235" class="LineNr">235 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L235'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), color: int, background-color: int <span class="Delimiter">{</span> -<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L238" class="LineNr">238 </span> width, height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L239" class="LineNr">239 </span> <a href='501draw-text.mu.html#L220'>draw-stream-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color <span id="L240" class="LineNr">240 </span><span class="Delimiter">}</span> <span id="L241" class="LineNr">241 </span> <span id="L242" class="LineNr">242 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L242'>move-cursor-rightward-and-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), xmin: int, xmax: int <span class="Delimiter">{</span> -<span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L245" class="LineNr">245 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L246" class="LineNr">246 </span> cursor-x <span class="Special"><-</span> increment @@ -317,8 +316,8 @@ if ('onhashchange' in window) { <span id="L253" class="LineNr">253 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y <span id="L254" class="LineNr">254 </span><span class="Delimiter">}</span> <span id="L255" class="LineNr">255 </span> -<span id="L256" class="LineNr">256 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L256'>draw-text-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> -<span id="L257" class="LineNr">257 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L256" class="LineNr">256 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L256'>draw-text-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L257" class="LineNr">257 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L259" class="LineNr">259 </span> x2, y2 <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span> <span id="L260" class="LineNr">260 </span> x2, y2 <span class="Special"><-</span> <a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color @@ -326,7 +325,7 @@ if ('onhashchange' in window) { <span id="L262" class="LineNr">262 </span><span class="Delimiter">}</span> <span id="L263" class="LineNr">263 </span> <span id="L264" class="LineNr">264 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L267" class="LineNr">267 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy cursor-x @@ -341,20 +340,20 @@ if ('onhashchange' in window) { <span id="L277" class="LineNr">277 </span><span class="Delimiter">}</span> <span id="L278" class="LineNr">278 </span> <span id="L279" class="LineNr">279 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span> -<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L281" class="LineNr">281 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L282" class="LineNr">282 </span> width, height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L283" class="LineNr">283 </span> <a href='501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color <span id="L284" class="LineNr">284 </span><span class="Delimiter">}</span> <span id="L285" class="LineNr">285 </span> -<span id="L286" class="LineNr">286 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L286'>draw-int32-hex-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L286" class="LineNr">286 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L286'>draw-int32-hex-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>) <span id="L288" class="LineNr">288 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L289" class="LineNr">289 </span> <a href='117write-int-hex.subx.html#L92'>write-int32-hex</a> stream, n <span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy x <span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y <span id="L292" class="LineNr">292 </span> <span class="Delimiter">{</span> -<span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream +<span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream <span id="L294" class="LineNr">294 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file <span id="L295" class="LineNr">295 </span> <span class="PreProc">break-if-=</span> <span id="L296" class="LineNr">296 </span> <a href='500fake-screen.mu.html#L104'>draw-grapheme</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, xcurr, ycurr, color, background-color @@ -371,8 +370,8 @@ if ('onhashchange' in window) { <span id="L307" class="LineNr">307 </span> <span class="PreProc">return</span> xcurr, ycurr <span id="L308" class="LineNr">308 </span><span class="Delimiter">}</span> <span id="L309" class="LineNr">309 </span> -<span id="L310" class="LineNr">310 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L310'>draw-int32-hex-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> -<span id="L311" class="LineNr">311 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L310" class="LineNr">310 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L310'>draw-int32-hex-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L311" class="LineNr">311 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L313" class="LineNr">313 </span> x2, y2 <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span> <span id="L314" class="LineNr">314 </span> x2, y2 <span class="Special"><-</span> <a href='501draw-text.mu.html#L286'>draw-int32-hex-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color @@ -380,7 +379,7 @@ if ('onhashchange' in window) { <span id="L316" class="LineNr">316 </span><span class="Delimiter">}</span> <span id="L317" class="LineNr">317 </span> <span id="L318" class="LineNr">318 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L318'>draw-int32-hex-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L321" class="LineNr">321 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy cursor-x @@ -395,20 +394,20 @@ if ('onhashchange' in window) { <span id="L331" class="LineNr">331 </span><span class="Delimiter">}</span> <span id="L332" class="LineNr">332 </span> <span id="L333" class="LineNr">333 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L333'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L335" class="LineNr">335 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L336" class="LineNr">336 </span> width, height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L337" class="LineNr">337 </span> <a href='501draw-text.mu.html#L318'>draw-int32-hex-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color <span id="L338" class="LineNr">338 </span><span class="Delimiter">}</span> <span id="L339" class="LineNr">339 </span> -<span id="L340" class="LineNr">340 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L340'>draw-int32-decimal-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L340" class="LineNr">340 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L340'>draw-int32-decimal-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>) <span id="L342" class="LineNr">342 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L343" class="LineNr">343 </span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> stream, n <span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy x <span id="L345" class="LineNr">345 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y <span id="L346" class="LineNr">346 </span> <span class="Delimiter">{</span> -<span id="L347" class="LineNr">347 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream +<span id="L347" class="LineNr">347 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream <span id="L348" class="LineNr">348 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file <span id="L349" class="LineNr">349 </span> <span class="PreProc">break-if-=</span> <span id="L350" class="LineNr">350 </span> <a href='500fake-screen.mu.html#L104'>draw-grapheme</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, xcurr, ycurr, color, background-color @@ -425,8 +424,8 @@ if ('onhashchange' in window) { <span id="L361" class="LineNr">361 </span> <span class="PreProc">return</span> xcurr, ycurr <span id="L362" class="LineNr">362 </span><span class="Delimiter">}</span> <span id="L363" class="LineNr">363 </span> -<span id="L364" class="LineNr">364 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L364'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> -<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L364" class="LineNr">364 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L364'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L367" class="LineNr">367 </span> x2, y2 <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span> <span id="L368" class="LineNr">368 </span> x2, y2 <span class="Special"><-</span> <a href='501draw-text.mu.html#L340'>draw-int32-decimal-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color @@ -434,7 +433,7 @@ if ('onhashchange' in window) { <span id="L370" class="LineNr">370 </span><span class="Delimiter">}</span> <span id="L371" class="LineNr">371 </span> <span id="L372" class="LineNr">372 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L372'>draw-int32-decimal-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L373" class="LineNr">373 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L373" class="LineNr">373 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L374" class="LineNr">374 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L375" class="LineNr">375 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L376" class="LineNr">376 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy cursor-x @@ -449,7 +448,7 @@ if ('onhashchange' in window) { <span id="L385" class="LineNr">385 </span><span class="Delimiter">}</span> <span id="L386" class="LineNr">386 </span> <span id="L387" class="LineNr">387 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L388" class="LineNr">388 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L388" class="LineNr">388 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L389" class="LineNr">389 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L390" class="LineNr">390 </span> width, height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L391" class="LineNr">391 </span> <a href='501draw-text.mu.html#L372'>draw-int32-decimal-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color @@ -460,21 +459,21 @@ if ('onhashchange' in window) { <span id="L396" class="LineNr">396 </span><span class="muComment"># draw a single line of text vertically from x, y to ymax</span> <span id="L397" class="LineNr">397 </span><span class="muComment"># return the next 'y' coordinate</span> <span id="L398" class="LineNr">398 </span><span class="muComment"># if there isn't enough space, truncate</span> -<span id="L399" class="LineNr">399 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L399'>draw-text-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, ymax: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L399" class="LineNr">399 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L399'>draw-text-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, ymax: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L400" class="LineNr">400 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>) <span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L402" class="LineNr">402 </span> <a href='108write.subx.html#L11'>write</a> stream, text -<span id="L403" class="LineNr">403 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L410'>draw-stream-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, x, y, ymax, color, background-color +<span id="L403" class="LineNr">403 </span> <span class="PreProc">var</span> ycurr/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L410'>draw-stream-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, x, y, ymax, color, background-color <span id="L404" class="LineNr">404 </span> <span class="PreProc">return</span> ycurr <span id="L405" class="LineNr">405 </span><span class="Delimiter">}</span> <span id="L406" class="LineNr">406 </span> <span id="L407" class="LineNr">407 </span><span class="muComment"># draw a single-line stream vertically from x, y to ymax</span> <span id="L408" class="LineNr">408 </span><span class="muComment"># return the next 'y' coordinate</span> <span id="L409" class="LineNr">409 </span><span class="muComment"># if there isn't enough space, truncate</span> -<span id="L410" class="LineNr">410 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L410'>draw-stream-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), x: int, y: int, ymax: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L410" class="LineNr">410 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L410'>draw-stream-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), x: int, y: int, ymax: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L411" class="LineNr">411 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y <span id="L412" class="LineNr">412 </span> <span class="Delimiter">{</span> -<span id="L413" class="LineNr">413 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream +<span id="L413" class="LineNr">413 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream <span id="L414" class="LineNr">414 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file <span id="L415" class="LineNr">415 </span> <span class="PreProc">break-if-=</span> <span id="L416" class="LineNr">416 </span> <a href='500fake-screen.mu.html#L104'>draw-grapheme</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, x, ycurr, color, background-color @@ -486,21 +485,21 @@ if ('onhashchange' in window) { <span id="L422" class="LineNr">422 </span><span class="Delimiter">}</span> <span id="L423" class="LineNr">423 </span> <span id="L424" class="LineNr">424 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L424'>draw-text-downward-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), ymax: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L425" class="LineNr">425 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L425" class="LineNr">425 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L426" class="LineNr">426 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L427" class="LineNr">427 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L428" class="LineNr">428 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L399'>draw-text-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, cursor-x, cursor-y, ymax, color, background-color +<span id="L428" class="LineNr">428 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L399'>draw-text-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, cursor-x, cursor-y, ymax, color, background-color <span id="L429" class="LineNr">429 </span><span class="Delimiter">}</span> <span id="L430" class="LineNr">430 </span> <span id="L431" class="LineNr">431 </span><span class="muComment"># draw text down and right in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span> <span id="L432" class="LineNr">432 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span> <span id="L433" class="LineNr">433 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span> <span id="L434" class="LineNr">434 </span><span class="muComment"># if there isn't enough space, truncate</span> -<span id="L435" class="LineNr">435 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L435'>draw-text-wrapping-down-then-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L435" class="LineNr">435 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L435'>draw-text-wrapping-down-then-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L436" class="LineNr">436 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>) <span id="L437" class="LineNr">437 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L438" class="LineNr">438 </span> <a href='108write.subx.html#L11'>write</a> stream, text -<span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _x +<span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy _x <span id="L440" class="LineNr">440 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _y <span id="L441" class="LineNr">441 </span> x, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L449'>draw-stream-wrapping-down-then-right</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, xmin, ymin, xmax, ymax, x, y, color, background-color <span id="L442" class="LineNr">442 </span> <span class="PreProc">return</span> x, y @@ -510,11 +509,11 @@ if ('onhashchange' in window) { <span id="L446" class="LineNr">446 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span> <span id="L447" class="LineNr">447 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span> <span id="L448" class="LineNr">448 </span><span class="muComment"># if there isn't enough space, truncate</span> -<span id="L449" class="LineNr">449 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L449'>draw-stream-wrapping-down-then-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L449" class="LineNr">449 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L449'>draw-stream-wrapping-down-then-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L450" class="LineNr">450 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy x <span id="L451" class="LineNr">451 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y <span id="L452" class="LineNr">452 </span> <span class="Delimiter">{</span> -<span id="L453" class="LineNr">453 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream +<span id="L453" class="LineNr">453 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> stream <span id="L454" class="LineNr">454 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file <span id="L455" class="LineNr">455 </span> <span class="PreProc">break-if-=</span> <span id="L456" class="LineNr">456 </span> <a href='500fake-screen.mu.html#L104'>draw-grapheme</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, xcurr, ycurr, color, background-color @@ -531,8 +530,8 @@ if ('onhashchange' in window) { <span id="L467" class="LineNr">467 </span> <span class="PreProc">return</span> xcurr, ycurr <span id="L468" class="LineNr">468 </span><span class="Delimiter">}</span> <span id="L469" class="LineNr">469 </span> -<span id="L470" class="LineNr">470 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L470'>draw-text-wrapping-down-then-right-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> -<span id="L471" class="LineNr">471 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L470" class="LineNr">470 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L470'>draw-text-wrapping-down-then-right-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L471" class="LineNr">471 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L472" class="LineNr">472 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L473" class="LineNr">473 </span> x2, y2 <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span> <span id="L474" class="LineNr">474 </span> x2, y2 <span class="Special"><-</span> <a href='501draw-text.mu.html#L435'>draw-text-wrapping-down-then-right</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color @@ -540,7 +539,7 @@ if ('onhashchange' in window) { <span id="L476" class="LineNr">476 </span><span class="Delimiter">}</span> <span id="L477" class="LineNr">477 </span> <span id="L478" class="LineNr">478 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L478'>draw-text-wrapping-down-then-right-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span> -<span id="L479" class="LineNr">479 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L479" class="LineNr">479 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L480" class="LineNr">480 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L481" class="LineNr">481 </span> cursor-x, cursor-y <span class="Special"><-</span> <a href='500fake-screen.mu.html#L174'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L482" class="LineNr">482 </span> <span class="PreProc">var</span> end-y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy cursor-y @@ -555,7 +554,7 @@ if ('onhashchange' in window) { <span id="L491" class="LineNr">491 </span><span class="Delimiter">}</span> <span id="L492" class="LineNr">492 </span> <span id="L493" class="LineNr">493 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L493'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span> -<span id="L494" class="LineNr">494 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L494" class="LineNr">494 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L495" class="LineNr">495 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L496" class="LineNr">496 </span> width, height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L497" class="LineNr">497 </span> <a href='501draw-text.mu.html#L478'>draw-text-wrapping-down-then-right-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color diff --git a/html/502test.mu.html b/html/502test.mu.html index a2039d0b..a06d9345 100644 --- a/html/502test.mu.html +++ b/html/502test.mu.html @@ -14,15 +14,14 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -60,7 +59,7 @@ if ('onhashchange' in window) { <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># print msg to screen if a != b, otherwise print "."</span> <span id="L2" class="LineNr"> 2 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='502test.mu.html#L2'>check-ints-equal</a></span> _a: int, b: int, msg: (addr array byte) <span class="Delimiter">{</span> -<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _a +<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy _a <span id="L4" class="LineNr"> 4 </span> compare a, b <span id="L5" class="LineNr"> 5 </span> <span class="Delimiter">{</span> <span id="L6" class="LineNr"> 6 </span> <span class="PreProc">break-if-!=</span> @@ -77,7 +76,7 @@ if ('onhashchange' in window) { <span id="L17" class="LineNr">17 </span><span class="Delimiter">}</span> <span id="L18" class="LineNr">18 </span> <span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='502test.mu.html#L19'>check</a></span> _a: boolean, msg: (addr array byte) <span class="Delimiter">{</span> -<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _a +<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy _a <span id="L21" class="LineNr">21 </span> compare a, <span class="Constant">0</span>/false <span id="L22" class="LineNr">22 </span> <span class="Delimiter">{</span> <span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if-=</span> @@ -90,7 +89,7 @@ if ('onhashchange' in window) { <span id="L30" class="LineNr">30 </span><span class="Delimiter">}</span> <span id="L31" class="LineNr">31 </span> <span id="L32" class="LineNr">32 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='502test.mu.html#L32'>check-not</a></span> _a: boolean, msg: (addr array byte) <span class="Delimiter">{</span> -<span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _a +<span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy _a <span id="L34" class="LineNr">34 </span> compare a, <span class="Constant">0</span>/false <span id="L35" class="LineNr">35 </span> <span class="Delimiter">{</span> <span id="L36" class="LineNr">36 </span> <span class="PreProc">break-if-!=</span> diff --git a/html/503manhattan-line.mu.html b/html/503manhattan-line.mu.html index b9877a31..7dde0592 100644 --- a/html/503manhattan-line.mu.html +++ b/html/503manhattan-line.mu.html @@ -14,12 +14,11 @@ 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; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } .LineNr { } -.muRegEax { color: #875f00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.PreProc { color: #c000c0; } +.Special { color: #ff6060; } --> </style> @@ -63,7 +62,7 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span><span class="Delimiter">}</span> <span id="L7" class="LineNr"> 7 </span> <span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='503manhattan-line.mu.html#L8'>draw-horizontal-line-on-real-screen</a></span> x1: int, x2: int, y: int, color: int <span class="Delimiter">{</span> -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x1 +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy x1 <span id="L10" class="LineNr">10 </span> <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> compare x, x2 <span id="L12" class="LineNr">12 </span> <span class="PreProc">break-if->=</span> @@ -74,7 +73,7 @@ if ('onhashchange' in window) { <span id="L17" class="LineNr">17 </span><span class="Delimiter">}</span> <span id="L18" class="LineNr">18 </span> <span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='503manhattan-line.mu.html#L19'>draw-vertical-line-on-real-screen</a></span> x: int, y1: int, y2: int, color: int <span class="Delimiter">{</span> -<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy y1 +<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy y1 <span id="L21" class="LineNr">21 </span> <span class="Delimiter">{</span> <span id="L22" class="LineNr">22 </span> compare y, y2 <span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if->=</span> diff --git a/html/504test-screen.mu.html b/html/504test-screen.mu.html index a953b41a..0d955bfd 100644 --- a/html/504test-screen.mu.html +++ b/html/504test-screen.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -82,12 +81,12 @@ if ('onhashchange' in window) { <span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L18" class="LineNr"> 18 </span> <a href='108write.subx.html#L11'>write</a> e-addr, expected <span id="L19" class="LineNr"> 19 </span> <span class="Delimiter">{</span> -<span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L21" class="LineNr"> 21 </span> compare done?, <span class="Constant">0</span> <span id="L22" class="LineNr"> 22 </span> <span class="PreProc">break-if-!=</span> -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> e-addr +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> e-addr <span id="L26" class="LineNr"> 26 </span> <span class="muComment"># compare graphemes</span> <span id="L27" class="LineNr"> 27 </span> $check-screen-row-from:compare-graphemes: <span class="Delimiter">{</span> <span id="L28" class="LineNr"> 28 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -145,12 +144,12 @@ if ('onhashchange' in window) { <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L81" class="LineNr"> 81 </span> <a href='108write.subx.html#L11'>write</a> e-addr, expected <span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">{</span> -<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L84" class="LineNr"> 84 </span> compare done?, <span class="Constant">0</span> <span id="L85" class="LineNr"> 85 </span> <span class="PreProc">break-if-!=</span> -<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> _expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> e-addr +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> _expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> e-addr <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEdi">edi</span>: grapheme <span class="Special"><-</span> copy _expected-grapheme <span id="L90" class="LineNr"> 90 </span> $check-screen-row-in-color-from:compare-cells: <span class="Delimiter">{</span> <span id="L91" class="LineNr"> 91 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -164,7 +163,7 @@ if ('onhashchange' in window) { <span id="L99" class="LineNr"> 99 </span> <span class="Delimiter">{</span> <span id="L100" class="LineNr">100 </span> compare expected-grapheme, <span class="Constant">0x20</span> <span id="L101" class="LineNr">101 </span> <span class="PreProc">break-if-!=</span> -<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L452'>screen-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L452'>screen-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L103" class="LineNr">103 </span> compare color, fg <span id="L104" class="LineNr">104 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-color-from:compare-cells <span id="L105" class="LineNr">105 </span> <span class="Delimiter">}</span> @@ -194,7 +193,7 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr">129 </span> <a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen <span id="L130" class="LineNr">130 </span> <span class="Delimiter">}</span> <span id="L131" class="LineNr">131 </span> $check-screen-row-in-color-from:compare-colors: <span class="Delimiter">{</span> -<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L452'>screen-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L452'>screen-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L133" class="LineNr">133 </span> compare fg, color <span id="L134" class="LineNr">134 </span> <span class="Delimiter">{</span> <span id="L135" class="LineNr">135 </span> <span class="PreProc">break-if-!=</span> @@ -236,12 +235,12 @@ if ('onhashchange' in window) { <span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L172" class="LineNr">172 </span> <a href='108write.subx.html#L11'>write</a> e-addr, expected <span id="L173" class="LineNr">173 </span> <span class="Delimiter">{</span> -<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L175" class="LineNr">175 </span> compare done?, <span class="Constant">0</span> <span id="L176" class="LineNr">176 </span> <span class="PreProc">break-if-!=</span> -<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='500fake-screen.mu.html#L434'>screen-grapheme-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> _expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> e-addr +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> _expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> e-addr <span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEdi">edi</span>: grapheme <span class="Special"><-</span> copy _expected-grapheme <span id="L181" class="LineNr">181 </span> $check-screen-row-in-background-color-from:compare-cells: <span class="Delimiter">{</span> <span id="L182" class="LineNr">182 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -255,7 +254,7 @@ if ('onhashchange' in window) { <span id="L190" class="LineNr">190 </span> <span class="Delimiter">{</span> <span id="L191" class="LineNr">191 </span> compare expected-grapheme, <span class="Constant">0x20</span> <span id="L192" class="LineNr">192 </span> <span class="PreProc">break-if-!=</span> -<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> background-color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L194" class="LineNr">194 </span> compare background-color, bg <span id="L195" class="LineNr">195 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-background-color-from:compare-cells <span id="L196" class="LineNr">196 </span> <span class="Delimiter">}</span> @@ -286,7 +285,7 @@ if ('onhashchange' in window) { <span id="L221" class="LineNr">221 </span> <span class="PreProc">break</span> $check-screen-row-in-background-color-from:compare-graphemes <span id="L222" class="LineNr">222 </span> <span class="Delimiter">}</span> <span id="L223" class="LineNr">223 </span> $check-screen-row-in-background-color-from:compare-background-colors: <span class="Delimiter">{</span> -<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> background-color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L225" class="LineNr">225 </span> compare bg, background-color <span id="L226" class="LineNr">226 </span> <span class="Delimiter">{</span> <span id="L227" class="LineNr">227 </span> <span class="PreProc">break-if-!=</span> @@ -332,13 +331,13 @@ if ('onhashchange' in window) { <span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L268" class="LineNr">268 </span> <a href='108write.subx.html#L11'>write</a> e-addr, expected-bitmap <span id="L269" class="LineNr">269 </span> <span class="Delimiter">{</span> -<span id="L270" class="LineNr">270 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L270" class="LineNr">270 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L271" class="LineNr">271 </span> compare done?, <span class="Constant">0</span> <span id="L272" class="LineNr">272 </span> <span class="PreProc">break-if-!=</span> -<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> _expected-bit/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> e-addr +<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> _expected-bit/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> e-addr <span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> expected-bit/<span class="muRegEdi">edi</span>: grapheme <span class="Special"><-</span> copy _expected-bit <span id="L275" class="LineNr">275 </span> $check-background-color-in-screen-row-from:compare-cells: <span class="Delimiter">{</span> -<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> background-color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx +<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special"><-</span> <a href='500fake-screen.mu.html#L471'>screen-background-color-at-idx</a> <a href='500fake-screen.mu.html#L14'>screen</a>, idx <span id="L277" class="LineNr">277 </span> <span class="muComment"># if expected-bit is space, assert that background is NOT bg</span> <span id="L278" class="LineNr">278 </span> compare expected-bit, <span class="Constant">0x20</span> <span id="L279" class="LineNr">279 </span> <span class="Delimiter">{</span> diff --git a/html/505colors.mu.html b/html/505colors.mu.html index 83c5102b..5cd01173 100644 --- a/html/505colors.mu.html +++ b/html/505colors.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEsi { color: #87d787; } -.muComment { color: #005faf; } -.Delimiter { color: #c000c0; } +.PreProc { color: #c000c0; } +.Special { color: #ff6060; } .LineNr { } -.muTest { color: #5f8700; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.Delimiter { color: #c000c0; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.muRegEdx { color: #878700; } -.PreProc { color: #c000c0; } +.muTest { color: #5f8700; } +.muComment { color: #005faf; } --> </style> @@ -67,10 +66,10 @@ if ('onhashchange' in window) { <span id="L3" class="LineNr"> 3 </span><span class="muComment"># hsl are also returned in [0, 256)</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># from <a href="https://www.niwa.nu/2013/05/math-behind-colorspace-conversions-rgb-hsl">https://www.niwa.nu/2013/05/math-behind-colorspace-conversions-rgb-hsl</a></span> <span id="L5" class="LineNr"> 5 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L5'>hsl</a></span> r: int, g: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> _max/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='505colors.mu.html#L216'>maximum</a> r, g +<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> _max/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L216'>maximum</a> r, g <span id="L7" class="LineNr"> 7 </span> _max <span class="Special"><-</span> <a href='505colors.mu.html#L216'>maximum</a> _max, b <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> max/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _max -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> _min/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='505colors.mu.html#L226'>minimum</a> r, g +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> _min/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L226'>minimum</a> r, g <span id="L10" class="LineNr"> 10 </span> _min <span class="Special"><-</span> <a href='505colors.mu.html#L226'>minimum</a> _min, b <span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> min/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _min <span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> luminance/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy min @@ -87,7 +86,7 @@ if ('onhashchange' in window) { <span id="L23" class="LineNr"> 23 </span> <span class="muComment"># otherwise | 255*(max-min)/(2*255 - (max+min))</span> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> nr/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy max <span id="L25" class="LineNr"> 25 </span> nr <span class="Special"><-</span> subtract min -<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> dr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> dr/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L27" class="LineNr"> 27 </span> compare luminance, <span class="Constant">0x80</span> <span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">{</span> <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">break-if->=</span> @@ -104,7 +103,7 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> q/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert nr <span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> tmp/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert dr <span id="L42" class="LineNr"> 42 </span> q <span class="Special"><-</span> divide tmp -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> int-255/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> int-255/eax: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> <span id="L44" class="LineNr"> 44 </span> tmp <span class="Special"><-</span> convert int-255 <span id="L45" class="LineNr"> 45 </span> q <span class="Special"><-</span> multiply tmp <span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> saturation/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> convert q @@ -112,16 +111,16 @@ if ('onhashchange' in window) { <span id="L48" class="LineNr"> 48 </span> <span class="muComment"># red is max | 256.0/6* (g-b)/(max-min)</span> <span id="L49" class="LineNr"> 49 </span> <span class="muComment"># green is max | 256.0/6*(2.0 + (b-r)/(max-min))</span> <span id="L50" class="LineNr"> 50 </span> <span class="muComment"># blue is max | 256.0/6*(4.0 + (r-g)/(max-min))</span> -<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> zero/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> zero/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> hue-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert zero -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> dr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy max +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> dr/eax: int <span class="Special"><-</span> copy max <span id="L54" class="LineNr"> 54 </span> dr <span class="Special"><-</span> subtract min <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> dr-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert dr <span id="L56" class="LineNr"> 56 </span> $hsl:compute-hue-normalized: <span class="Delimiter">{</span> <span id="L57" class="LineNr"> 57 </span> compare r, max <span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">{</span> <span id="L59" class="LineNr"> 59 </span> <span class="PreProc">break-if-!=</span> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> nr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy g <span id="L61" class="LineNr"> 61 </span> nr <span class="Special"><-</span> subtract b <span id="L62" class="LineNr"> 62 </span> hue-f <span class="Special"><-</span> convert nr <span id="L63" class="LineNr"> 63 </span> hue-f <span class="Special"><-</span> divide dr-f @@ -130,7 +129,7 @@ if ('onhashchange' in window) { <span id="L66" class="LineNr"> 66 </span> compare g, max <span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">{</span> <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if-!=</span> -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> nr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy b +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy b <span id="L70" class="LineNr"> 70 </span> nr <span class="Special"><-</span> subtract r <span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert nr <span id="L72" class="LineNr"> 72 </span> f <span class="Special"><-</span> divide dr-f @@ -142,7 +141,7 @@ if ('onhashchange' in window) { <span id="L78" class="LineNr"> 78 </span> compare b, max <span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">{</span> <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">break-if-!=</span> -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> nr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy r +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy r <span id="L82" class="LineNr"> 82 </span> nr <span class="Special"><-</span> subtract g <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert nr <span id="L84" class="LineNr"> 84 </span> f <span class="Special"><-</span> divide dr-f @@ -152,13 +151,13 @@ if ('onhashchange' in window) { <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">break</span> $hsl:compute-hue-normalized <span id="L89" class="LineNr"> 89 </span> <span class="Delimiter">}</span> <span id="L90" class="LineNr"> 90 </span> <span class="Delimiter">}</span> -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> int-256/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0x100</span> +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> int-256/eax: int <span class="Special"><-</span> copy <span class="Constant">0x100</span> <span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> scaling-factor/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert int-256 -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> int-6/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> int-6/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert int-6 <span id="L95" class="LineNr"> 95 </span> scaling-factor <span class="Special"><-</span> divide six-f <span id="L96" class="LineNr"> 96 </span> hue-f <span class="Special"><-</span> multiply scaling-factor -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> hue/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert hue-f +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> hue/eax: int <span class="Special"><-</span> convert hue-f <span id="L98" class="LineNr"> 98 </span> <span class="muComment"># if hue < 0, hue = 256 - hue</span> <span id="L99" class="LineNr"> 99 </span> compare hue, <span class="Constant">0</span> <span id="L100" class="LineNr">100 </span> <span class="Delimiter">{</span> @@ -277,8 +276,8 @@ if ('onhashchange' in window) { <span id="L213" class="LineNr">213 </span> <span id="L214" class="LineNr">214 </span><span class="muComment">###</span> <span id="L215" class="LineNr">215 </span> -<span id="L216" class="LineNr">216 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L216'>maximum</a></span> a: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> a2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy a +<span id="L216" class="LineNr">216 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L216'>maximum</a></span> a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> a2/eax: int <span class="Special"><-</span> copy a <span id="L218" class="LineNr">218 </span> compare a2, b <span id="L219" class="LineNr">219 </span> <span class="Delimiter">{</span> <span id="L220" class="LineNr">220 </span> <span class="PreProc">break-if-<</span> @@ -287,8 +286,8 @@ if ('onhashchange' in window) { <span id="L223" class="LineNr">223 </span> <span class="PreProc">return</span> b <span id="L224" class="LineNr">224 </span><span class="Delimiter">}</span> <span id="L225" class="LineNr">225 </span> -<span id="L226" class="LineNr">226 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L226'>minimum</a></span> a: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> a2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy a +<span id="L226" class="LineNr">226 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L226'>minimum</a></span> a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> a2/eax: int <span class="Special"><-</span> copy a <span id="L228" class="LineNr">228 </span> compare a2, b <span id="L229" class="LineNr">229 </span> <span class="Delimiter">{</span> <span id="L230" class="LineNr">230 </span> <span class="PreProc">break-if-></span> diff --git a/html/506math.mu.html b/html/506math.mu.html index 25732479..76390e16 100644 --- a/html/506math.mu.html +++ b/html/506math.mu.html @@ -14,14 +14,13 @@ 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; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } .LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEax { color: #875f00; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.Special { color: #ff6060; } --> </style> @@ -57,7 +56,7 @@ if ('onhashchange' in window) { <body onload='JumpToLine();'> <a href='https://github.com/akkartik/mu/blob/main/506math.mu'>https://github.com/akkartik/mu/blob/main/506math.mu</a> <pre id='vimCodeElement'> -<span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L1'>abs</a></span> n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L1'>abs</a></span> n: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L2" class="LineNr"> 2 </span> compare n, <span class="Constant">0</span> <span id="L3" class="LineNr"> 3 </span> <span class="Delimiter">{</span> <span id="L4" class="LineNr"> 4 </span> <span class="PreProc">break-if->=</span> @@ -66,7 +65,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="PreProc">return</span> n <span id="L8" class="LineNr"> 8 </span><span class="Delimiter">}</span> <span id="L9" class="LineNr"> 9 </span> -<span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L10'>sgn</a></span> n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L10'>sgn</a></span> n: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> compare n, <span class="Constant">0</span> <span id="L12" class="LineNr">12 </span> <span class="Delimiter">{</span> <span id="L13" class="LineNr">13 </span> <span class="PreProc">break-if-<=</span> @@ -79,8 +78,8 @@ if ('onhashchange' in window) { <span id="L20" class="LineNr">20 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L21" class="LineNr">21 </span><span class="Delimiter">}</span> <span id="L22" class="LineNr">22 </span> -<span id="L23" class="LineNr">23 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L23'>shift-left-by</a></span> n: int, bits: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy bits +<span id="L23" class="LineNr">23 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L23'>shift-left-by</a></span> n: int, bits: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy bits <span id="L25" class="LineNr">25 </span> <span class="Delimiter">{</span> <span id="L26" class="LineNr">26 </span> compare i, <span class="Constant">0</span> <span id="L27" class="LineNr">27 </span> <span class="PreProc">break-if-<=</span> @@ -91,8 +90,8 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr">32 </span> <span class="PreProc">return</span> n <span id="L33" class="LineNr">33 </span><span class="Delimiter">}</span> <span id="L34" class="LineNr">34 </span> -<span id="L35" class="LineNr">35 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L35'>shift-right-by</a></span> n: int, bits: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L36" class="LineNr">36 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy bits +<span id="L35" class="LineNr">35 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L35'>shift-right-by</a></span> n: int, bits: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L36" class="LineNr">36 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy bits <span id="L37" class="LineNr">37 </span> <span class="Delimiter">{</span> <span id="L38" class="LineNr">38 </span> compare i, <span class="Constant">0</span> <span id="L39" class="LineNr">39 </span> <span class="PreProc">break-if-<=</span> @@ -105,7 +104,7 @@ if ('onhashchange' in window) { <span id="L46" class="LineNr">46 </span> <span id="L47" class="LineNr">47 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='506math.mu.html#L47'>clear-lowest-bits</a></span> _n: (addr int), bits: int <span class="Delimiter">{</span> <span id="L48" class="LineNr">48 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> copy _n -<span id="L49" class="LineNr">49 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *dest +<span id="L49" class="LineNr">49 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy *dest <span id="L50" class="LineNr">50 </span> n <span class="Special"><-</span> <a href='506math.mu.html#L35'>shift-right-by</a> n, bits <span id="L51" class="LineNr">51 </span> n <span class="Special"><-</span> <a href='506math.mu.html#L23'>shift-left-by</a> n, bits <span id="L52" class="LineNr">52 </span> copy-to *dest, n diff --git a/html/507line.mu.html b/html/507line.mu.html index c2492436..93615766 100644 --- a/html/507line.mu.html +++ b/html/507line.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } +.PreProc { color: #c000c0; } +.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.muRegEbx { color: #5f00ff; } +.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -69,7 +68,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="muComment"># dx = abs(x1-x0)</span> <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x1 <span id="L9" class="LineNr"> 9 </span> tmp2 <span class="Special"><-</span> subtract x0 -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='506math.mu.html#L1'>abs</a> tmp2 +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='506math.mu.html#L1'>abs</a> tmp2 <span id="L11" class="LineNr"> 11 </span> copy-to dx, tmp <span id="L12" class="LineNr"> 12 </span> <span class="muComment"># sx = sgn(x1-x0)</span> <span id="L13" class="LineNr"> 13 </span> tmp <span class="Special"><-</span> <a href='506math.mu.html#L10'>sgn</a> tmp2 @@ -124,7 +123,7 @@ if ('onhashchange' in window) { <span id="L62" class="LineNr"> 62 </span><span class="Delimiter">}</span> <span id="L63" class="LineNr"> 63 </span> <span id="L64" class="LineNr"> 64 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='507line.mu.html#L64'>draw-horizontal-line</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), y: int, x0: int, x1: int, color: int <span class="Delimiter">{</span> -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x0 +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy x0 <span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span> <span id="L67" class="LineNr"> 67 </span> compare x, x1 <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if->=</span> @@ -135,7 +134,7 @@ if ('onhashchange' in window) { <span id="L73" class="LineNr"> 73 </span><span class="Delimiter">}</span> <span id="L74" class="LineNr"> 74 </span> <span id="L75" class="LineNr"> 75 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='507line.mu.html#L75'>draw-vertical-line</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y0: int, y1: int, color: int <span class="Delimiter">{</span> -<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy y0 +<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy y0 <span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">{</span> <span id="L78" class="LineNr"> 78 </span> compare y, y1 <span id="L79" class="LineNr"> 79 </span> <span class="PreProc">break-if->=</span> @@ -146,7 +145,7 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span><span class="Delimiter">}</span> <span id="L85" class="LineNr"> 85 </span> <span id="L86" class="LineNr"> 86 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='507line.mu.html#L86'>draw-rect</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), xmin: int, ymin: int, xmax: int, ymax: int, color: int <span class="Delimiter">{</span> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy ymin +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy ymin <span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">{</span> <span id="L89" class="LineNr"> 89 </span> compare y, ymax <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">break-if->=</span> @@ -157,8 +156,8 @@ if ('onhashchange' in window) { <span id="L95" class="LineNr"> 95 </span><span class="Delimiter">}</span> <span id="L96" class="LineNr"> 96 </span> <span id="L97" class="LineNr"> 97 </span><span class="muComment"># 0 <= u <= 1</span> -<span id="L98" class="LineNr"> 98 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='507line.mu.html#L98'>line-point</a></span> u: float, x0: int, x1: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> one/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L98" class="LineNr"> 98 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='507line.mu.html#L98'>line-point</a></span> u: float, x0: int, x1: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> u-prime/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert one <span id="L101" class="LineNr">101 </span> u-prime <span class="Special"><-</span> subtract u <span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert x0 @@ -166,7 +165,7 @@ if ('onhashchange' in window) { <span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> term2/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert x1 <span id="L105" class="LineNr">105 </span> term2 <span class="Special"><-</span> multiply u <span id="L106" class="LineNr">106 </span> result <span class="Special"><-</span> add term2 -<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert result +<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> convert result <span id="L108" class="LineNr">108 </span> <span class="PreProc">return</span> result <span id="L109" class="LineNr">109 </span><span class="Delimiter">}</span> </pre> diff --git a/html/508circle.mu.html b/html/508circle.mu.html index a7dcd829..91d8b440 100644 --- a/html/508circle.mu.html +++ b/html/508circle.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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -64,7 +63,7 @@ if ('onhashchange' in window) { <span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> y: int <span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> err: int <span id="L5" class="LineNr"> 5 </span> <span class="muComment"># x = -r</span> -<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy radius +<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy radius <span id="L7" class="LineNr"> 7 </span> tmp <span class="Special"><-</span> negate <span id="L8" class="LineNr"> 8 </span> copy-to x, tmp <span id="L9" class="LineNr"> 9 </span> <span class="muComment"># err = 2 - 2*r</span> @@ -139,7 +138,7 @@ if ('onhashchange' in window) { <span id="L78" class="LineNr">78 </span><span class="Delimiter">}</span> <span id="L79" class="LineNr">79 </span> <span id="L80" class="LineNr">80 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='508circle.mu.html#L80'>draw-disc</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), cx: int, cy: int, radius: int, color: int, border-color: int <span class="Delimiter">{</span> -<span id="L81" class="LineNr">81 </span> <span class="PreProc">var</span> r/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L81" class="LineNr">81 </span> <span class="PreProc">var</span> r/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L82" class="LineNr">82 </span> <span class="Delimiter">{</span> <span id="L83" class="LineNr">83 </span> compare r, radius <span id="L84" class="LineNr">84 </span> <span class="PreProc">break-if->=</span> diff --git a/html/509bezier.mu.html b/html/509bezier.mu.html index 7e002517..7ecbd5b3 100644 --- a/html/509bezier.mu.html +++ b/html/509bezier.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .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; } --> </style> @@ -80,7 +79,7 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> sx: int <span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> sy: int <span id="L20" class="LineNr"> 20 </span> <span class="muComment"># sx = x2-x1</span> -<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x2 +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy x2 <span id="L22" class="LineNr"> 22 </span> tmp <span class="Special"><-</span> subtract x1 <span id="L23" class="LineNr"> 23 </span> copy-to sx, tmp <span id="L24" class="LineNr"> 24 </span> <span class="muComment"># sy = y2-y1</span> @@ -171,7 +170,7 @@ if ('onhashchange' in window) { <span id="L109" class="LineNr">109 </span> tmp <span class="Special"><-</span> add y1 <span id="L110" class="LineNr">110 </span> copy-to y0, tmp <span id="L111" class="LineNr">111 </span> <span class="muComment"># cur = -cur</span> -<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> negative-1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> negative-1/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> <span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> negative-1-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert negative-1 <span id="L114" class="LineNr">114 </span> cur-f <span class="Special"><-</span> multiply negative-1-f <span id="L115" class="LineNr">115 </span> <span class="Delimiter">}</span> @@ -249,7 +248,7 @@ if ('onhashchange' in window) { <span id="L187" class="LineNr">187 </span> negate yy <span id="L188" class="LineNr">188 </span> negate xy <span id="L189" class="LineNr">189 </span> <span class="muComment"># cur = -cur</span> -<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> negative-1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> negative-1/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> <span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> negative-1-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert negative-1 <span id="L192" class="LineNr">192 </span> cur-f <span class="Special"><-</span> multiply negative-1-f <span id="L193" class="LineNr">193 </span> <span class="Delimiter">}</span> @@ -307,7 +306,7 @@ if ('onhashchange' in window) { <span id="L245" class="LineNr">245 </span> <span class="PreProc">return</span> <span id="L246" class="LineNr">246 </span> <span class="Delimiter">}</span> <span id="L247" class="LineNr">247 </span> <span class="muComment"># perform-y-step? = (2*err < dx)</span> -<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> perform-y-step?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> perform-y-step?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> two-err-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy err-f <span id="L250" class="LineNr">250 </span> <span class="Delimiter">{</span> <span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> two/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> @@ -357,8 +356,8 @@ if ('onhashchange' in window) { <span id="L295" class="LineNr">295 </span><span class="Delimiter">}</span> <span id="L296" class="LineNr">296 </span> <span id="L297" class="LineNr">297 </span><span class="muComment"># 0 <= u <= 1</span> -<span id="L298" class="LineNr">298 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='509bezier.mu.html#L298'>bezier-point</a></span> u: float, x0: int, x1: int, x2: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> one/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L298" class="LineNr">298 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='509bezier.mu.html#L298'>bezier-point</a></span> u: float, x0: int, x1: int, x2: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L300" class="LineNr">300 </span> <span class="PreProc">var</span> u-prime/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert one <span id="L301" class="LineNr">301 </span> u-prime <span class="Special"><-</span> subtract u <span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert x0 @@ -373,7 +372,7 @@ if ('onhashchange' in window) { <span id="L311" class="LineNr">311 </span> term3 <span class="Special"><-</span> multiply u <span id="L312" class="LineNr">312 </span> term3 <span class="Special"><-</span> multiply u <span id="L313" class="LineNr">313 </span> result <span class="Special"><-</span> add term3 -<span id="L314" class="LineNr">314 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert result +<span id="L314" class="LineNr">314 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> convert result <span id="L315" class="LineNr">315 </span> <span class="PreProc">return</span> result <span id="L316" class="LineNr">316 </span><span class="Delimiter">}</span> </pre> diff --git a/html/colors.mu.html b/html/colors.mu.html index 0c5a02bb..16f6f87c 100644 --- a/html/colors.mu.html +++ b/html/colors.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEcx { color: #af875f; } -.muComment { color: #005faf; } -.CommentedCode { color: #8a8a8a; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.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; } +.CommentedCode { color: #8a8a8a; } +.muComment { color: #005faf; } --> </style> @@ -79,19 +78,19 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address in-storage <span id="L16" class="LineNr"> 16 </span> <span class="Delimiter">{</span> <span id="L17" class="LineNr"> 17 </span> <span class="muComment"># print prompt</span> -<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space> "</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x28</span>/y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space> "</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x28</span>/y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg <span id="L19" class="LineNr"> 19 </span> <span class="muComment"># read line from keyboard</span> <span id="L20" class="LineNr"> 20 </span> <a href='106stream.subx.html#L20'>clear-stream</a> in <span id="L21" class="LineNr"> 21 </span> <span class="Delimiter">{</span> <span id="L22" class="LineNr"> 22 </span> <a href='500fake-screen.mu.html#L237'>draw-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L24" class="LineNr"> 24 </span> compare key, <span class="Constant">0xa</span>/newline <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">break-if-=</span> <span id="L26" class="LineNr"> 26 </span> compare key, <span class="Constant">0</span> <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">loop-if-=</span> -<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> key2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy key +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> key2/eax: int <span class="Special"><-</span> copy key <span id="L29" class="LineNr"> 29 </span> <a href='115write-byte.subx.html#L12'>append-byte</a> in, key2 -<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy key2 +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy key2 <span id="L31" class="LineNr"> 31 </span> <a href='501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg <span id="L32" class="LineNr"> 32 </span> <a href='501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">loop</span> @@ -121,9 +120,9 @@ if ('onhashchange' in window) { <span id="L57" class="LineNr"> 57 </span><span class="muComment"># Each word consists of exactly 1 or 2 hex bytes. No hex prefix.</span> <span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L58'>parse</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> <span id="L59" class="LineNr"> 59 </span> <span class="muComment"># read first byte of r</span> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span id="L61" class="LineNr"> 61 </span> <span class="Delimiter">{</span> -<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> valid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp <span id="L63" class="LineNr"> 63 </span> compare valid?, <span class="Constant">0</span>/false <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">break-if-!=</span> <span id="L65" class="LineNr"> 65 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of r"</span> @@ -136,7 +135,7 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr"> 72 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> <span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">{</span> -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> valid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp <span id="L76" class="LineNr"> 76 </span> compare valid?, <span class="Constant">0</span>/false <span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">}</span> <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">break-if-=</span> @@ -155,9 +154,9 @@ if ('onhashchange' in window) { <span id="L91" class="LineNr"> 91 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span class="muComment"># skip space</span> <span id="L92" class="LineNr"> 92 </span> <span class="Delimiter">}</span> <span id="L93" class="LineNr"> 93 </span> <span class="muComment"># read first byte of g</span> -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span id="L95" class="LineNr"> 95 </span> <span class="Delimiter">{</span> -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> valid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp <span id="L97" class="LineNr"> 97 </span> compare valid?, <span class="Constant">0</span>/false <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">break-if-!=</span> <span id="L99" class="LineNr"> 99 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of g"</span> @@ -170,7 +169,7 @@ if ('onhashchange' in window) { <span id="L106" class="LineNr">106 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span id="L107" class="LineNr">107 </span> <span class="Delimiter">{</span> <span id="L108" class="LineNr">108 </span> <span class="Delimiter">{</span> -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> valid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp <span id="L110" class="LineNr">110 </span> compare valid?, <span class="Constant">0</span>/false <span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> <span id="L112" class="LineNr">112 </span> <span class="PreProc">break-if-=</span> @@ -189,9 +188,9 @@ if ('onhashchange' in window) { <span id="L125" class="LineNr">125 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span class="muComment"># skip space</span> <span id="L126" class="LineNr">126 </span> <span class="Delimiter">}</span> <span id="L127" class="LineNr">127 </span> <span class="muComment"># read first byte of b</span> -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span id="L129" class="LineNr">129 </span> <span class="Delimiter">{</span> -<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> valid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp <span id="L131" class="LineNr">131 </span> compare valid?, <span class="Constant">0</span>/false <span id="L132" class="LineNr">132 </span> <span class="PreProc">break-if-!=</span> <span id="L133" class="LineNr">133 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of b"</span> @@ -203,13 +202,13 @@ if ('onhashchange' in window) { <span id="L139" class="LineNr">139 </span> <span class="muComment"># read second byte of b</span> <span id="L140" class="LineNr">140 </span> <span class="Delimiter">{</span> <span id="L141" class="LineNr">141 </span> <span class="Delimiter">{</span> -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in <span id="L143" class="LineNr">143 </span> compare done?, <span class="Constant">0</span>/false <span id="L144" class="LineNr">144 </span> <span class="Delimiter">}</span> <span id="L145" class="LineNr">145 </span> <span class="PreProc">break-if-!=</span> <span id="L146" class="LineNr">146 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span id="L147" class="LineNr">147 </span> <span class="Delimiter">{</span> -<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> valid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp <span id="L149" class="LineNr">149 </span> compare valid?, <span class="Constant">0</span>/false <span id="L150" class="LineNr">150 </span> <span class="Delimiter">}</span> <span id="L151" class="LineNr">151 </span> <span class="PreProc">break-if-=</span> @@ -230,8 +229,8 @@ if ('onhashchange' in window) { <span id="L166" class="LineNr">166 </span><span class="Delimiter">}</span> <span id="L167" class="LineNr">167 </span> <span id="L168" class="LineNr">168 </span><span class="muComment"># no error checking</span> -<span id="L169" class="LineNr">169 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L169'>fast-hex-digit-value</a></span> in: byte<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte <span class="Delimiter">{</span> -<span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy in +<span id="L169" class="LineNr">169 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L169'>fast-hex-digit-value</a></span> in: byte<span class="PreProc"> -> </span>_/eax: byte <span class="Delimiter">{</span> +<span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> result/eax: byte <span class="Special"><-</span> copy in <span id="L171" class="LineNr">171 </span> compare result, <span class="Constant">0x39</span> <span id="L172" class="LineNr">172 </span> <span class="Delimiter">{</span> <span id="L173" class="LineNr">173 </span> <span class="PreProc">break-if-></span> @@ -263,7 +262,7 @@ if ('onhashchange' in window) { <span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L201" class="LineNr">201 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> y/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L204" class="LineNr">204 </span> <span class="Delimiter">{</span> <span id="L205" class="LineNr">205 </span> compare color, <span class="Constant">0x100</span> diff --git a/html/ex1.mu.html b/html/ex1.mu.html index fa5b4150..fc07e235 100644 --- a/html/ex1.mu.html +++ b/html/ex1.mu.html @@ -14,10 +14,10 @@ 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; } +.PreProc { color: #c000c0; } .LineNr { } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.PreProc { color: #c000c0; } --> </style> diff --git a/html/ex10.mu.html b/html/ex10.mu.html index 5037bd98..2627880c 100644 --- a/html/ex10.mu.html +++ b/html/ex10.mu.html @@ -14,15 +14,14 @@ 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 { } +.Constant { color: #008787; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -74,7 +73,7 @@ if ('onhashchange' in window) { <span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex10.mu.html#L14'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L15" class="LineNr">15 </span> <span class="muComment"># repeatedly print out mouse driver results if non-zero</span> <span id="L16" class="LineNr">16 </span> $main:event-loop: <span class="Delimiter">{</span> -<span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> dx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> dx/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> dy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L19" class="LineNr">19 </span> dx, dy <span class="Special"><-</span> <a href='boot.subx.html#L1443'>read-mouse-event</a> <span id="L20" class="LineNr">20 </span> <span class="Delimiter">{</span> @@ -85,7 +84,7 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr">25 </span> <span class="PreProc">loop</span> $main:event-loop <span id="L26" class="LineNr">26 </span> <span class="Delimiter">}</span> <span id="L27" class="LineNr">27 </span> <span class="Delimiter">{</span> -<span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> dummy1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> dummy1/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> dummy2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L30" class="LineNr">30 </span> dummy1, dummy2 <span class="Special"><-</span> <a href='501draw-text.mu.html#L256'>draw-text-wrapping-right-then-down-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">0</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg <span id="L31" class="LineNr">31 </span> <span class="Delimiter">}</span> @@ -94,7 +93,7 @@ if ('onhashchange' in window) { <span id="L34" class="LineNr">34 </span> dx, dummy <span class="Special"><-</span> <a href='501draw-text.mu.html#L364'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, dx, <span class="Constant">0</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg <span id="L35" class="LineNr">35 </span> <span class="Delimiter">}</span> <span id="L36" class="LineNr">36 </span> <span class="Delimiter">{</span> -<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L38" class="LineNr">38 </span> dummy, dy <span class="Special"><-</span> <a href='501draw-text.mu.html#L364'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, dy, <span class="Constant">5</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg <span id="L39" class="LineNr">39 </span> <span class="Delimiter">}</span> <span id="L40" class="LineNr">40 </span> <span class="PreProc">loop</span> diff --git a/html/ex11.mu.html b/html/ex11.mu.html index a649ec1d..8c0e2788 100644 --- a/html/ex11.mu.html +++ b/html/ex11.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEcx { color: #af875f; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEdi { color: #87ffd7; } +.muComment { color: #005faf; } --> </style> @@ -102,7 +101,7 @@ if ('onhashchange' in window) { <span id="L38" class="LineNr"> 38 </span> <a href='500fake-screen.mu.html#L251'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p0 -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> tmp/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> p0/<span class="muRegEbx">ebx</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy tmp <span id="L43" class="LineNr"> 43 </span> tmp-ah <span class="Special"><-</span> get self, p1 <span id="L44" class="LineNr"> 44 </span> tmp <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *tmp-ah @@ -120,8 +119,8 @@ if ('onhashchange' in window) { <span id="L56" class="LineNr"> 56 </span> <a href='ex11.mu.html#L226'>disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, p1, <span class="Constant">3</span>/radius, <span class="Constant">7</span>/color <span class="Constant">0xf</span>/border <span id="L57" class="LineNr"> 57 </span> <a href='ex11.mu.html#L226'>disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, p2, <span class="Constant">3</span>/radius, <span class="Constant">7</span>/color <span class="Constant">0xf</span>/border <span id="L58" class="LineNr"> 58 </span> <span class="muComment"># cursor last of all</span> -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEax">eax</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> cursor-ah/eax: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah <span id="L61" class="LineNr"> 61 </span> <a href='ex11.mu.html#L77'>cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <a href='ex11.mu.html#L77'>cursor</a>, <span class="Constant">0xa</span>/side, <span class="Constant">3</span>/color <span id="L62" class="LineNr"> 62 </span><span class="Delimiter">}</span> <span id="L63" class="LineNr"> 63 </span> @@ -131,7 +130,7 @@ if ('onhashchange' in window) { <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> y0/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get p0, y <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> p1/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p1 <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> x1/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get p1, x -<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> y1/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get p1, y +<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> y1/eax: (addr int) <span class="Special"><-</span> get p1, y <span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> p2/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p2 <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> x2/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> get p2, x <span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> y2/<span class="muRegEsi">esi</span>: (addr int) <span class="Special"><-</span> get p2, y @@ -139,7 +138,7 @@ if ('onhashchange' in window) { <span id="L75" class="LineNr"> 75 </span><span class="Delimiter">}</span> <span id="L76" class="LineNr"> 76 </span> <span id="L77" class="LineNr"> 77 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L77'>cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _p: (addr <a href='ex11.mu.html#L32'>point</a>), side: int, color: int <span class="Delimiter">{</span> -<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> half-side/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy side +<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> half-side/eax: int <span class="Special"><-</span> copy side <span id="L79" class="LineNr"> 79 </span> half-side <span class="Special"><-</span> shift-right <span class="Constant">1</span> <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> p/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> x-a/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get p, x @@ -148,7 +147,7 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> y-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get p, y <span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> top-y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *y-a <span id="L86" class="LineNr"> 86 </span> top-y <span class="Special"><-</span> subtract half-side -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> max/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy left-x +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> max/eax: int <span class="Special"><-</span> copy left-x <span id="L88" class="LineNr"> 88 </span> max <span class="Special"><-</span> add side <span id="L89" class="LineNr"> 89 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, top-y, left-x, max, color <span id="L90" class="LineNr"> 90 </span> max <span class="Special"><-</span> copy top-y @@ -164,7 +163,7 @@ if ('onhashchange' in window) { <span id="L100" class="LineNr">100 </span> <span id="L101" class="LineNr">101 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L101'>edit</a></span> keyboard: (addr keyboard), _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L104" class="LineNr">104 </span> compare key, <span class="Constant">0</span> <span id="L105" class="LineNr">105 </span> <span class="PreProc">loop-if-=</span> <span id="L106" class="LineNr">106 </span> <span class="Delimiter">{</span> @@ -206,21 +205,21 @@ if ('onhashchange' in window) { <span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> p1-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p1 <span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> p2-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p2 <span id="L144" class="LineNr">144 </span> <span class="Delimiter">{</span> -<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> p0?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p0-ah, *cursor-ah +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> p0?/eax: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p0-ah, *cursor-ah <span id="L146" class="LineNr">146 </span> compare p0?, <span class="Constant">0</span>/false <span id="L147" class="LineNr">147 </span> <span class="PreProc">break-if-=</span> <span id="L148" class="LineNr">148 </span> copy-object p1-ah, cursor-ah <span id="L149" class="LineNr">149 </span> <span class="PreProc">return</span> <span id="L150" class="LineNr">150 </span> <span class="Delimiter">}</span> <span id="L151" class="LineNr">151 </span> <span class="Delimiter">{</span> -<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> p1?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p1-ah, *cursor-ah +<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> p1?/eax: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p1-ah, *cursor-ah <span id="L153" class="LineNr">153 </span> compare p1?, <span class="Constant">0</span>/false <span id="L154" class="LineNr">154 </span> <span class="PreProc">break-if-=</span> <span id="L155" class="LineNr">155 </span> copy-object p2-ah, cursor-ah <span id="L156" class="LineNr">156 </span> <span class="PreProc">return</span> <span id="L157" class="LineNr">157 </span> <span class="Delimiter">}</span> <span id="L158" class="LineNr">158 </span> <span class="Delimiter">{</span> -<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> p2?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p2-ah, *cursor-ah +<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> p2?/eax: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p2-ah, *cursor-ah <span id="L160" class="LineNr">160 </span> compare p2?, <span class="Constant">0</span>/false <span id="L161" class="LineNr">161 </span> <span class="PreProc">break-if-=</span> <span id="L162" class="LineNr">162 </span> copy-object p0-ah, cursor-ah @@ -232,8 +231,8 @@ if ('onhashchange' in window) { <span id="L168" class="LineNr">168 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L168'>cursor-left</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah -<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, x +<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> cursor-x/eax: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, x <span id="L173" class="LineNr">173 </span> compare *cursor-x, <span class="Constant">0x20</span> <span id="L174" class="LineNr">174 </span> <span class="Delimiter">{</span> <span id="L175" class="LineNr">175 </span> <span class="PreProc">break-if-<</span> @@ -244,8 +243,8 @@ if ('onhashchange' in window) { <span id="L180" class="LineNr">180 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L180'>cursor-right</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah -<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> cursor-x/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, x +<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> cursor-x/eax: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, x <span id="L185" class="LineNr">185 </span> compare *cursor-x, <span class="Constant">0x3f0</span> <span id="L186" class="LineNr">186 </span> <span class="Delimiter">{</span> <span id="L187" class="LineNr">187 </span> <span class="PreProc">break-if-></span> @@ -256,8 +255,8 @@ if ('onhashchange' in window) { <span id="L192" class="LineNr">192 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L192'>cursor-up</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah -<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, y +<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, y <span id="L197" class="LineNr">197 </span> compare *cursor-y, <span class="Constant">0x20</span> <span id="L198" class="LineNr">198 </span> <span class="Delimiter">{</span> <span id="L199" class="LineNr">199 </span> <span class="PreProc">break-if-<</span> @@ -268,8 +267,8 @@ if ('onhashchange' in window) { <span id="L204" class="LineNr">204 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L204'>cursor-down</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L205" class="LineNr">205 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah -<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, y +<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, y <span id="L209" class="LineNr">209 </span> compare *cursor-y, <span class="Constant">0x2f0</span> <span id="L210" class="LineNr">210 </span> <span class="Delimiter">{</span> <span id="L211" class="LineNr">211 </span> <span class="PreProc">break-if-></span> @@ -283,7 +282,7 @@ if ('onhashchange' in window) { <span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> y0/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get p0, y <span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> p1/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p1 <span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> x1/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get p1, x -<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> y1/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get p1, y +<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> y1/eax: (addr int) <span class="Special"><-</span> get p1, y <span id="L223" class="LineNr">223 </span> <a href='507line.mu.html#L1'>draw-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, *x0 *y0, *x1 *y1, color <span id="L224" class="LineNr">224 </span><span class="Delimiter">}</span> <span id="L225" class="LineNr">225 </span> @@ -296,17 +295,17 @@ if ('onhashchange' in window) { <span id="L232" class="LineNr">232 </span> <span id="L233" class="LineNr">233 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L233'>initialize-environment</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>), x0: int, y0: int, x1: int, y1: int, x2: int, y2: int <span class="Delimiter">{</span> <span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L235" class="LineNr">235 </span> <span class="PreProc">var</span> p0-ah/<span class="muRegEax">eax</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p0 +<span id="L235" class="LineNr">235 </span> <span class="PreProc">var</span> p0-ah/eax: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p0 <span id="L236" class="LineNr">236 </span> <a href='120allocate.subx.html#L43'>allocate</a> p0-ah -<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> p0/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p0-ah +<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> p0/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p0-ah <span id="L238" class="LineNr">238 </span> <a href='ex11.mu.html#L253'>initialize-point</a> p0, x0 y0 -<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> p1-ah/<span class="muRegEax">eax</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p1 +<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> p1-ah/eax: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p1 <span id="L240" class="LineNr">240 </span> <a href='120allocate.subx.html#L43'>allocate</a> p1-ah -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> p1/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p1-ah +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> p1/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p1-ah <span id="L242" class="LineNr">242 </span> <a href='ex11.mu.html#L253'>initialize-point</a> p1, x1 y1 -<span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> p2-ah/<span class="muRegEax">eax</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p2 +<span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> p2-ah/eax: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p2 <span id="L244" class="LineNr">244 </span> <a href='120allocate.subx.html#L43'>allocate</a> p2-ah -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> p2/<span class="muRegEax">eax</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p2-ah +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> p2/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p2-ah <span id="L246" class="LineNr">246 </span> <a href='ex11.mu.html#L253'>initialize-point</a> p2, x2 y2 <span id="L247" class="LineNr">247 </span> <span class="muComment"># cursor initially at p0</span> <span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> @@ -316,7 +315,7 @@ if ('onhashchange' in window) { <span id="L252" class="LineNr">252 </span> <span id="L253" class="LineNr">253 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L253'>initialize-point</a></span> _p: (addr <a href='ex11.mu.html#L32'>point</a>), x: int, y: int <span class="Delimiter">{</span> <span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> p/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p -<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get p, x +<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> dest/eax: (addr int) <span class="Special"><-</span> get p, x <span id="L256" class="LineNr">256 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x <span id="L257" class="LineNr">257 </span> copy-to *dest, src <span id="L258" class="LineNr">258 </span> dest <span class="Special"><-</span> get p, y diff --git a/html/ex2.mu.html b/html/ex2.mu.html index 56f6da52..12b20923 100644 --- a/html/ex2.mu.html +++ b/html/ex2.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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -69,7 +68,7 @@ if ('onhashchange' in window) { <span id="L8" class="LineNr"> 8 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> <span id="L9" class="LineNr"> 9 </span> <span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex2.mu.html#L10'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> y/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L12" class="LineNr">12 </span> <span class="Delimiter">{</span> <span id="L13" class="LineNr">13 </span> compare y, <span class="Constant">0x300</span>/screen-height=<span class="Constant">768</span> <span id="L14" class="LineNr">14 </span> <span class="PreProc">break-if->=</span> diff --git a/html/ex3.mu.html b/html/ex3.mu.html index ed1584f1..8a600e92 100644 --- a/html/ex3.mu.html +++ b/html/ex3.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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEax { color: #875f00; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } +.LineNr { } .Constant { color: #008787; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -76,7 +75,7 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> -<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L19" class="LineNr">19 </span> compare key, <span class="Constant">0</span> <span id="L20" class="LineNr">20 </span> <span class="PreProc">loop-if-=</span> <span class="muComment"># busy wait</span> <span id="L21" class="LineNr">21 </span> <a href='101screen.subx.html#L8'>pixel-on-real-screen</a> x, y, <span class="Constant">0x31</span>/green diff --git a/html/ex4.mu.html b/html/ex4.mu.html index 6550340d..4b0f564f 100644 --- a/html/ex4.mu.html +++ b/html/ex4.mu.html @@ -14,12 +14,12 @@ 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; } +.PreProc { color: #c000c0; } .LineNr { } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> diff --git a/html/ex5.mu.html b/html/ex5.mu.html index 6c4a91e7..cc216a53 100644 --- a/html/ex5.mu.html +++ b/html/ex5.mu.html @@ -14,14 +14,13 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -70,7 +69,7 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr">11 </span><span class="muComment"># Expected output: text in green near the top-left corner of screen</span> <span id="L12" class="LineNr">12 </span> <span id="L13" class="LineNr">13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex5.mu.html#L13'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"hello from baremetal Mu!"</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x10</span>/y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"hello from baremetal Mu!"</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x10</span>/y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg <span id="L15" class="LineNr">15 </span> dummy <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"you shouldn't see this"</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0xa0</span>/xmax, <span class="Constant">0x30</span>/y, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span class="muComment"># xmax is too narrow</span> <span id="L16" class="LineNr">16 </span><span class="Delimiter">}</span> </pre> diff --git a/html/ex6.mu.html b/html/ex6.mu.html index 6bd96a84..df64aa9f 100644 --- a/html/ex6.mu.html +++ b/html/ex6.mu.html @@ -14,15 +14,14 @@ 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 { } +.Constant { color: #008787; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -72,7 +71,7 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex6.mu.html#L12'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L13" class="LineNr">13 </span> <span class="muComment"># drawing text within a bounding box</span> <span id="L14" class="LineNr">14 </span> <a href='503manhattan-line.mu.html#L1'>draw-box-on-real-screen</a> <span class="Constant">0xf</span>, <span class="Constant">0x1f</span>, <span class="Constant">0x79</span>, <span class="Constant">0x51</span>, <span class="Constant">0x4</span> -<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0x20</span> +<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0x20</span> <span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x20</span> <span id="L17" class="LineNr">17 </span> x, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"hello "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg <span id="L18" class="LineNr">18 </span> x, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"from "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg diff --git a/html/ex7.mu.html b/html/ex7.mu.html index dab97ffb..08050bc9 100644 --- a/html/ex7.mu.html +++ b/html/ex7.mu.html @@ -14,14 +14,13 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -70,11 +69,11 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr">11 </span><span class="muComment"># k, l.</span> <span id="L12" class="LineNr">12 </span> <span id="L13" class="LineNr">13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex7.mu.html#L13'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> space/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x20</span> +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> space/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x20</span> <span id="L15" class="LineNr">15 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>, <span class="Constant">0</span> <span id="L16" class="LineNr">16 </span> <span class="Delimiter">{</span> <span id="L17" class="LineNr">17 </span> <a href='500fake-screen.mu.html#L237'>draw-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, space -<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L19" class="LineNr">19 </span> <span class="Delimiter">{</span> <span id="L20" class="LineNr">20 </span> compare key, <span class="Constant">0x68</span>/h <span id="L21" class="LineNr">21 </span> <span class="PreProc">break-if-!=</span> @@ -96,7 +95,7 @@ if ('onhashchange' in window) { <span id="L37" class="LineNr">37 </span> <span class="Delimiter">{</span> <span id="L38" class="LineNr">38 </span> compare key, <span class="Constant">0x6c</span>/l <span id="L39" class="LineNr">39 </span> <span class="PreProc">break-if-!=</span> -<span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: code-point <span class="Special"><-</span> copy <span class="Constant">0x2d</span>/dash +<span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> g/eax: code-point <span class="Special"><-</span> copy <span class="Constant">0x2d</span>/dash <span id="L41" class="LineNr">41 </span> <a href='501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/dash, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg <span id="L42" class="LineNr">42 </span> <a href='501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> <span id="L43" class="LineNr">43 </span> <span class="Delimiter">}</span> diff --git a/html/ex8.mu.html b/html/ex8.mu.html index a165bf9a..5ae27a7b 100644 --- a/html/ex8.mu.html +++ b/html/ex8.mu.html @@ -14,14 +14,13 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -66,7 +65,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span><span class="muComment"># Set a breakpoint at 0x7c00 and start stepping.</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='ex8.mu.html#L9'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert n <span id="L12" class="LineNr">12 </span><span class="Delimiter">}</span> </pre> diff --git a/html/ex9.mu.html b/html/ex9.mu.html index 35040ebe..ac7e8b68 100644 --- a/html/ex9.mu.html +++ b/html/ex9.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; } -.muRegEdi { color: #87ffd7; } -.muComment { color: #005faf; } -.LineNr { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -81,7 +80,7 @@ if ('onhashchange' in window) { <span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> text/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address text-storage <span id="L21" class="LineNr">21 </span> <a href='boot.subx.html#L974'>load-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">1</span>/num-sectors, text <span id="L22" class="LineNr">22 </span> -<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> <a href='ex9.mu.html#L31'>word-count</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='ex9.mu.html#L31'>word-count</a> text +<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> <a href='ex9.mu.html#L31'>word-count</a>/eax: int <span class="Special"><-</span> <a href='ex9.mu.html#L31'>word-count</a> text <span id="L24" class="LineNr">24 </span> <span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> result-storage: (stream byte <span class="Constant">0x10</span>) <span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address result-storage @@ -89,13 +88,13 @@ if ('onhashchange' in window) { <span id="L28" class="LineNr">28 </span> <a href='boot.subx.html#L1037'>store-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">1</span>/num-sectors, result <span id="L29" class="LineNr">29 </span><span class="Delimiter">}</span> <span id="L30" class="LineNr">30 </span> -<span id="L31" class="LineNr">31 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex9.mu.html#L31'>word-count</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L31" class="LineNr">31 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex9.mu.html#L31'>word-count</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L33" class="LineNr">33 </span> <span class="Delimiter">{</span> -<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in +<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in <span id="L35" class="LineNr">35 </span> compare done?, <span class="Constant">0</span>/false <span id="L36" class="LineNr">36 </span> <span class="PreProc">break-if-!=</span> -<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in +<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in <span id="L38" class="LineNr">38 </span> <span class="Delimiter">{</span> <span id="L39" class="LineNr">39 </span> compare g, <span class="Constant">0x20</span>/space <span id="L40" class="LineNr">40 </span> <span class="PreProc">break-if-!=</span> diff --git a/html/hest-life.mu.html b/html/hest-life.mu.html index a4019a5c..41cd98f5 100644 --- a/html/hest-life.mu.html +++ b/html/hest-life.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -97,7 +96,7 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr"> 32 </span> <a href='500fake-screen.mu.html#L548'>copy-pixels</a> second-screen, <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L33" class="LineNr"> 33 </span> <span class="Delimiter">{</span> <span id="L34" class="LineNr"> 34 </span> <a href='hest-life.mu.html#L595'>edit</a> keyboard, env -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> play?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get env, play? +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get env, play? <span id="L36" class="LineNr"> 36 </span> compare *play?, <span class="Constant">0</span>/false <span id="L37" class="LineNr"> 37 </span> <span class="Delimiter">{</span> <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if-=</span> @@ -127,7 +126,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="muFunction"><a href='hest-life.mu.html#L63'>render</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> zoom/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom <span id="L66" class="LineNr"> 66 </span> compare *zoom, <span class="Constant">0</span> <span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">{</span> <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if-!=</span> @@ -146,7 +145,7 @@ if ('onhashchange' in window) { <span id="L81" class="LineNr"> 81 </span> <a href='hest-life.mu.html#L867'>render4</a> <a href='500fake-screen.mu.html#L14'>screen</a>, self <span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">}</span> <span id="L83" class="LineNr"> 83 </span> <span class="muComment"># clock</span> -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, tick +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick <span id="L85" class="LineNr"> 85 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x78</span>/x, <span class="Constant">0</span>/y <span id="L86" class="LineNr"> 86 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, *tick-a, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg <span id="L87" class="LineNr"> 87 </span><span class="Delimiter">}</span> @@ -162,7 +161,7 @@ if ('onhashchange' in window) { <span id="L97" class="LineNr"> 97 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x40</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey <span id="L98" class="LineNr"> 98 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2c0</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey <span id="L99" class="LineNr"> 99 </span> <span class="muComment"># neighboring inputs, corners</span> -<span id="L100" class="LineNr"> 100 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/cur-topleftx, <span class="Constant">0x5f</span>/cur-toplefty +<span id="L100" class="LineNr"> 100 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/cur-topleftx, <span class="Constant">0x5f</span>/cur-toplefty <span id="L101" class="LineNr"> 101 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x90</span>/xmin <span class="Constant">0x10</span>/ymin, <span class="Constant">0xb0</span>/xmax <span class="Constant">0x30</span>/ymax, color <span id="L102" class="LineNr"> 102 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/cur-toprightx, <span class="Constant">0x5f</span>/cur-toprighty <span id="L103" class="LineNr"> 103 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x350</span>/xmin <span class="Constant">0x10</span>/ymin, <span class="Constant">0x370</span>/xmax <span class="Constant">0x30</span>/ymax, color @@ -199,7 +198,7 @@ if ('onhashchange' in window) { <span id="L134" class="LineNr"> 134 </span> <span class="muComment"># conveyor from sum node to filter node</span> <span id="L135" class="LineNr"> 135 </span> <a href='507line.mu.html#L1'>draw-line</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="Constant">0x180</span>/xs, <span class="Constant">0x150</span>/ys, <span class="Constant">0x210</span>/xf, <span class="Constant">0x1d0</span>/yf, <span class="Constant">0xa2</span>/color <span id="L136" class="LineNr"> 136 </span> <span class="muComment"># cell outputs at corners</span> -<span id="L137" class="LineNr"> 137 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L137" class="LineNr"> 137 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury <span id="L138" class="LineNr"> 138 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd0</span>/xmin <span class="Constant">0x50</span>/ymin, <span class="Constant">0xf0</span>/xmax <span class="Constant">0x70</span>/ymax, color <span id="L139" class="LineNr"> 139 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x310</span>/xmin <span class="Constant">0x50</span>/ymin, <span class="Constant">0x330</span>/xmax <span class="Constant">0x70</span>/ymax, color <span id="L140" class="LineNr"> 140 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd0</span>/xmin <span class="Constant">0x290</span>/ymin, <span class="Constant">0xf0</span>/xmax <span class="Constant">0x2b0</span>/ymax, color @@ -219,15 +218,15 @@ if ('onhashchange' in window) { <span id="L154" class="LineNr"> 154 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x1c0</span>/y1 <span class="Constant">0x320</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">0x2a</span>/color <span id="L155" class="LineNr"> 155 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x230</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">0x2a</span>/color <span id="L156" class="LineNr"> 156 </span> <span class="muComment"># time-variant portion: 16 repeating steps</span> -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> progress/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tick-a +<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a <span id="L159" class="LineNr"> 159 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> <span id="L160" class="LineNr"> 160 </span> <span class="muComment"># 7 time steps for getting inputs to sum</span> <span id="L161" class="LineNr"> 161 </span> <span class="Delimiter">{</span> <span id="L162" class="LineNr"> 162 </span> compare progress, <span class="Constant">7</span> <span id="L163" class="LineNr"> 163 </span> <span class="PreProc">break-if->=</span> <span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L167" class="LineNr"> 167 </span> u <span class="Special"><-</span> divide six-f <span id="L168" class="LineNr"> 168 </span> <span class="muComment"># points on conveyors from neighboring cells</span> @@ -248,12 +247,12 @@ if ('onhashchange' in window) { <span id="L183" class="LineNr"> 183 </span> <span class="PreProc">break-if->=</span> <span id="L184" class="LineNr"> 184 </span> progress <span class="Special"><-</span> increment <span class="muComment"># (0, 1) => (1, 2)</span> <span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L186" class="LineNr"> 186 </span> <span class="PreProc">var</span> three/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">3</span> +<span id="L186" class="LineNr"> 186 </span> <span class="PreProc">var</span> three/eax: int <span class="Special"><-</span> copy <span class="Constant">3</span> <span id="L187" class="LineNr"> 187 </span> <span class="PreProc">var</span> three-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert three <span id="L188" class="LineNr"> 188 </span> u <span class="Special"><-</span> divide three-f <span id="L189" class="LineNr"> 189 </span> <a href='hest-life.mu.html#L588'>draw-linear-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x180</span>/xs, <span class="Constant">0x150</span>/ys, <span class="Constant">0x210</span>/xf, <span class="Constant">0x1d0</span>/yf, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius <span id="L190" class="LineNr"> 190 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x3a</span>/scol, <span class="Constant">0x18</span>/srow -<span id="L191" class="LineNr"> 191 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L191" class="LineNr"> 191 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury <span id="L192" class="LineNr"> 192 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg <span id="L193" class="LineNr"> 193 </span> <span class="PreProc">return</span> <span id="L194" class="LineNr"> 194 </span> <span class="Delimiter">}</span> @@ -261,7 +260,7 @@ if ('onhashchange' in window) { <span id="L196" class="LineNr"> 196 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> <span id="L197" class="LineNr"> 197 </span> <span class="muComment"># points on conveyors to outputs</span> <span id="L198" class="LineNr"> 198 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L199" class="LineNr"> 199 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L199" class="LineNr"> 199 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L200" class="LineNr"> 200 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L201" class="LineNr"> 201 </span> u <span class="Special"><-</span> divide six-f <span id="L202" class="LineNr"> 202 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x60</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius @@ -284,7 +283,7 @@ if ('onhashchange' in window) { <span id="L219" class="LineNr"> 219 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x180</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey <span id="L220" class="LineNr"> 220 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey <span id="L221" class="LineNr"> 221 </span> <span class="muComment"># cell 0: outputs</span> -<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury <span id="L223" class="LineNr"> 223 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x98</span>/ymax, color <span id="L224" class="LineNr"> 224 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x100</span>/ymax, color <span id="L225" class="LineNr"> 225 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x178</span>/ymax, color @@ -294,7 +293,7 @@ if ('onhashchange' in window) { <span id="L229" class="LineNr"> 229 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x100</span>/ymax, color <span id="L230" class="LineNr"> 230 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x178</span>/ymax, color <span id="L231" class="LineNr"> 231 </span> <span class="muComment"># cell 1: outputs</span> -<span id="L232" class="LineNr"> 232 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L232" class="LineNr"> 232 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury <span id="L233" class="LineNr"> 233 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x98</span>/ymax, color <span id="L234" class="LineNr"> 234 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x100</span>/ymax, color <span id="L235" class="LineNr"> 235 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x178</span>/ymax, color @@ -304,7 +303,7 @@ if ('onhashchange' in window) { <span id="L239" class="LineNr"> 239 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x100</span>/ymax, color <span id="L240" class="LineNr"> 240 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x178</span>/ymax, color <span id="L241" class="LineNr"> 241 </span> <span class="muComment"># cell 2: outputs</span> -<span id="L242" class="LineNr"> 242 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L242" class="LineNr"> 242 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury <span id="L243" class="LineNr"> 243 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x1b8</span>/ymax, color <span id="L244" class="LineNr"> 244 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x220</span>/ymax, color <span id="L245" class="LineNr"> 245 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x298</span>/ymax, color @@ -314,7 +313,7 @@ if ('onhashchange' in window) { <span id="L249" class="LineNr"> 249 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x220</span>/ymax, color <span id="L250" class="LineNr"> 250 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x298</span>/ymax, color <span id="L251" class="LineNr"> 251 </span> <span class="muComment"># cell 3: outputs</span> -<span id="L252" class="LineNr"> 252 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L252" class="LineNr"> 252 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury <span id="L253" class="LineNr"> 253 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x1b8</span>/ymax, color <span id="L254" class="LineNr"> 254 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x220</span>/ymax, color <span id="L255" class="LineNr"> 255 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x298</span>/ymax, color @@ -324,37 +323,37 @@ if ('onhashchange' in window) { <span id="L259" class="LineNr"> 259 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x220</span>/ymax, color <span id="L260" class="LineNr"> 260 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x298</span>/ymax, color <span id="L261" class="LineNr"> 261 </span> <span class="muComment"># neighboring nodes</span> -<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x5f</span>/cury +<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x5f</span>/cury <span id="L263" class="LineNr"> 263 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x5f</span>/cury +<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x5f</span>/cury <span id="L265" class="LineNr"> 265 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x58</span>/ymax, color <span id="L266" class="LineNr"> 266 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x5f</span>/cury +<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x5f</span>/cury <span id="L268" class="LineNr"> 268 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x58</span>/ymax, color <span id="L269" class="LineNr"> 269 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x5f</span>/cury +<span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x5f</span>/cury <span id="L271" class="LineNr"> 271 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x60</span>/cury <span id="L273" class="LineNr"> 273 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x100</span>/ymax, color <span id="L274" class="LineNr"> 274 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x60</span>/cury <span id="L276" class="LineNr"> 276 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x100</span>/ymax, color <span id="L277" class="LineNr"> 277 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L278" class="LineNr"> 278 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L278" class="LineNr"> 278 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x61</span>/cury <span id="L279" class="LineNr"> 279 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x1b8</span>/ymax, color <span id="L280" class="LineNr"> 280 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x220</span>/ymax, color -<span id="L281" class="LineNr"> 281 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L281" class="LineNr"> 281 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x61</span>/cury <span id="L282" class="LineNr"> 282 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x1b8</span>/ymax, color <span id="L283" class="LineNr"> 283 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x220</span>/ymax, color -<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x62</span>/cury +<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x62</span>/cury <span id="L285" class="LineNr"> 285 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x62</span>/cury +<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x62</span>/cury <span id="L287" class="LineNr"> 287 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x2d8</span>/ymax, color <span id="L288" class="LineNr"> 288 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x62</span>/cury +<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x62</span>/cury <span id="L290" class="LineNr"> 290 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x2d8</span>/ymax, color <span id="L291" class="LineNr"> 291 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L292" class="LineNr"> 292 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x62</span>/cury +<span id="L292" class="LineNr"> 292 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x62</span>/cury <span id="L293" class="LineNr"> 293 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x2d8</span>/ymax, color <span id="L294" class="LineNr"> 294 </span> <span class="muComment"># cell 0: sum and filter nodes</span> <span id="L295" class="LineNr"> 295 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x148</span>/xsmin <span class="Constant">0xc8</span>/ysmin, <span class="Constant">0x158</span>/xsmax <span class="Constant">0xd8</span>/ysmax, <span class="Constant">0x40</span>/color @@ -369,16 +368,16 @@ if ('onhashchange' in window) { <span id="L304" class="LineNr"> 304 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x268</span>/xsmin <span class="Constant">0x1e8</span>/ysmin, <span class="Constant">0x278</span>/xsmax <span class="Constant">0x1f8</span>/ysmax, <span class="Constant">0x40</span>/color <span id="L305" class="LineNr"> 305 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/xfmin <span class="Constant">0x218</span>/yfmin, <span class="Constant">0x2b0</span>/xfmax <span class="Constant">0x228</span>/yfmax, <span class="Constant">0x31</span>/color <span id="L306" class="LineNr"> 306 </span> <span class="muComment"># neighbor counts</span> -<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury <span id="L308" class="LineNr"> 308 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0xe</span> <span id="L309" class="LineNr"> 309 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg -<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury <span id="L311" class="LineNr"> 311 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0xe</span> <span id="L312" class="LineNr"> 312 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg -<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury <span id="L314" class="LineNr"> 314 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0x20</span> <span id="L315" class="LineNr"> 315 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg -<span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury <span id="L317" class="LineNr"> 317 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0x20</span> <span id="L318" class="LineNr"> 318 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg <span id="L319" class="LineNr"> 319 </span> <span class="muComment"># cell 0: conveyors from neighboring inputs to sum node</span> @@ -401,15 +400,15 @@ if ('onhashchange' in window) { <span id="L336" class="LineNr"> 336 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color <span id="L337" class="LineNr"> 337 </span> <span class="muComment"># cell 0: time-variant portion: 16 repeating steps</span> <span id="L338" class="LineNr"> 338 </span> $render1:cell0: <span class="Delimiter">{</span> -<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> progress/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tick-a +<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a <span id="L341" class="LineNr"> 341 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> <span id="L342" class="LineNr"> 342 </span> <span class="muComment"># cell 0: 7 time steps for getting inputs to sum</span> <span id="L343" class="LineNr"> 343 </span> <span class="Delimiter">{</span> <span id="L344" class="LineNr"> 344 </span> compare progress, <span class="Constant">7</span> <span id="L345" class="LineNr"> 345 </span> <span class="PreProc">break-if->=</span> <span id="L346" class="LineNr"> 346 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L347" class="LineNr"> 347 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L347" class="LineNr"> 347 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L348" class="LineNr"> 348 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L349" class="LineNr"> 349 </span> u <span class="Special"><-</span> divide six-f <span id="L350" class="LineNr"> 350 </span> <span class="muComment"># points on conveyors from neighboring cells</span> @@ -434,7 +433,7 @@ if ('onhashchange' in window) { <span id="L369" class="LineNr"> 369 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> <span id="L370" class="LineNr"> 370 </span> <span class="muComment"># cell 0: points on conveyors to outputs</span> <span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L372" class="LineNr"> 372 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L372" class="LineNr"> 372 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L374" class="LineNr"> 374 </span> u <span class="Special"><-</span> divide six-f <span id="L375" class="LineNr"> 375 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius @@ -466,15 +465,15 @@ if ('onhashchange' in window) { <span id="L401" class="LineNr"> 401 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color <span id="L402" class="LineNr"> 402 </span> <span class="muComment"># cell 1: time-variant portion: 16 repeating steps</span> <span id="L403" class="LineNr"> 403 </span> $render1:cell1: <span class="Delimiter">{</span> -<span id="L404" class="LineNr"> 404 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L405" class="LineNr"> 405 </span> <span class="PreProc">var</span> progress/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tick-a +<span id="L404" class="LineNr"> 404 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L405" class="LineNr"> 405 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a <span id="L406" class="LineNr"> 406 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> <span id="L407" class="LineNr"> 407 </span> <span class="muComment"># cell 1: 7 time steps for getting inputs to sum</span> <span id="L408" class="LineNr"> 408 </span> <span class="Delimiter">{</span> <span id="L409" class="LineNr"> 409 </span> compare progress, <span class="Constant">7</span> <span id="L410" class="LineNr"> 410 </span> <span class="PreProc">break-if->=</span> <span id="L411" class="LineNr"> 411 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L413" class="LineNr"> 413 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L414" class="LineNr"> 414 </span> u <span class="Special"><-</span> divide six-f <span id="L415" class="LineNr"> 415 </span> <span class="muComment"># points on conveyors from neighboring cells</span> @@ -499,7 +498,7 @@ if ('onhashchange' in window) { <span id="L434" class="LineNr"> 434 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> <span id="L435" class="LineNr"> 435 </span> <span class="muComment"># cell 1: points on conveyors to outputs</span> <span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L437" class="LineNr"> 437 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L437" class="LineNr"> 437 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L438" class="LineNr"> 438 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L439" class="LineNr"> 439 </span> u <span class="Special"><-</span> divide six-f <span id="L440" class="LineNr"> 440 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius @@ -531,15 +530,15 @@ if ('onhashchange' in window) { <span id="L466" class="LineNr"> 466 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color <span id="L467" class="LineNr"> 467 </span> <span class="muComment"># cell 2: time-variant portion: 16 repeating steps</span> <span id="L468" class="LineNr"> 468 </span> $render1:cell2: <span class="Delimiter">{</span> -<span id="L469" class="LineNr"> 469 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> progress/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tick-a +<span id="L469" class="LineNr"> 469 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a <span id="L471" class="LineNr"> 471 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> <span id="L472" class="LineNr"> 472 </span> <span class="muComment"># cell 2: 7 time steps for getting inputs to sum</span> <span id="L473" class="LineNr"> 473 </span> <span class="Delimiter">{</span> <span id="L474" class="LineNr"> 474 </span> compare progress, <span class="Constant">7</span> <span id="L475" class="LineNr"> 475 </span> <span class="PreProc">break-if->=</span> <span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L479" class="LineNr"> 479 </span> u <span class="Special"><-</span> divide six-f <span id="L480" class="LineNr"> 480 </span> <span class="muComment"># points on conveyors from neighboring cells</span> @@ -564,7 +563,7 @@ if ('onhashchange' in window) { <span id="L499" class="LineNr"> 499 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> <span id="L500" class="LineNr"> 500 </span> <span class="muComment"># cell 2: points on conveyors to outputs</span> <span id="L501" class="LineNr"> 501 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L502" class="LineNr"> 502 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L502" class="LineNr"> 502 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L504" class="LineNr"> 504 </span> u <span class="Special"><-</span> divide six-f <span id="L505" class="LineNr"> 505 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius @@ -596,15 +595,15 @@ if ('onhashchange' in window) { <span id="L531" class="LineNr"> 531 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color <span id="L532" class="LineNr"> 532 </span> <span class="muComment"># cell 3: time-variant portion: 16 repeating steps</span> <span id="L533" class="LineNr"> 533 </span> $render1:cell3: <span class="Delimiter">{</span> -<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L535" class="LineNr"> 535 </span> <span class="PreProc">var</span> progress/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tick-a +<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L535" class="LineNr"> 535 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a <span id="L536" class="LineNr"> 536 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> <span id="L537" class="LineNr"> 537 </span> <span class="muComment"># cell 3: 7 time steps for getting inputs to sum</span> <span id="L538" class="LineNr"> 538 </span> <span class="Delimiter">{</span> <span id="L539" class="LineNr"> 539 </span> compare progress, <span class="Constant">7</span> <span id="L540" class="LineNr"> 540 </span> <span class="PreProc">break-if->=</span> <span id="L541" class="LineNr"> 541 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L542" class="LineNr"> 542 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L542" class="LineNr"> 542 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L544" class="LineNr"> 544 </span> u <span class="Special"><-</span> divide six-f <span id="L545" class="LineNr"> 545 </span> <span class="muComment"># points on conveyors from neighboring cells</span> @@ -629,7 +628,7 @@ if ('onhashchange' in window) { <span id="L564" class="LineNr"> 564 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> <span id="L565" class="LineNr"> 565 </span> <span class="muComment"># cell 3: points on conveyors to outputs</span> <span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> six/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> <span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six <span id="L569" class="LineNr"> 569 </span> u <span class="Special"><-</span> divide six-f <span id="L570" class="LineNr"> 570 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius @@ -644,27 +643,27 @@ if ('onhashchange' in window) { <span id="L579" class="LineNr"> 579 </span><span class="Delimiter">}</span> <span id="L580" class="LineNr"> 580 </span> <span id="L581" class="LineNr"> 581 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L581'>draw-bezier-point</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), u: float, x0: int, y0: int, x1: int, y1: int, x2: int, y2: int, color: int, radius: int <span class="Delimiter">{</span> -<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> _cy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='509bezier.mu.html#L298'>bezier-point</a> u, y0, y1, y2 +<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> _cy/eax: int <span class="Special"><-</span> <a href='509bezier.mu.html#L298'>bezier-point</a> u, y0, y1, y2 <span id="L583" class="LineNr"> 583 </span> <span class="PreProc">var</span> cy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _cy -<span id="L584" class="LineNr"> 584 </span> <span class="PreProc">var</span> cx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='509bezier.mu.html#L298'>bezier-point</a> u, x0, x1, x2 +<span id="L584" class="LineNr"> 584 </span> <span class="PreProc">var</span> cx/eax: int <span class="Special"><-</span> <a href='509bezier.mu.html#L298'>bezier-point</a> u, x0, x1, x2 <span id="L585" class="LineNr"> 585 </span> <a href='508circle.mu.html#L80'>draw-disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cx, cy, radius, color, <span class="Constant">0xf</span>/border-color=white <span id="L586" class="LineNr"> 586 </span><span class="Delimiter">}</span> <span id="L587" class="LineNr"> 587 </span> <span id="L588" class="LineNr"> 588 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L588'>draw-linear-point</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), u: float, x0: int, y0: int, x1: int, y1: int, color: int, radius: int <span class="Delimiter">{</span> -<span id="L589" class="LineNr"> 589 </span> <span class="PreProc">var</span> _cy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='507line.mu.html#L98'>line-point</a> u, y0, y1 +<span id="L589" class="LineNr"> 589 </span> <span class="PreProc">var</span> _cy/eax: int <span class="Special"><-</span> <a href='507line.mu.html#L98'>line-point</a> u, y0, y1 <span id="L590" class="LineNr"> 590 </span> <span class="PreProc">var</span> cy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _cy -<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> cx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='507line.mu.html#L98'>line-point</a> u, x0, x1 +<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> cx/eax: int <span class="Special"><-</span> <a href='507line.mu.html#L98'>line-point</a> u, x0, x1 <span id="L592" class="LineNr"> 592 </span> <a href='508circle.mu.html#L80'>draw-disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cx, cy, radius, color, <span class="Constant">0xf</span>/border-color=white <span id="L593" class="LineNr"> 593 </span><span class="Delimiter">}</span> <span id="L594" class="LineNr"> 594 </span> <span id="L595" class="LineNr"> 595 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L595'>edit</a></span> keyboard: (addr keyboard), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> <span id="L596" class="LineNr"> 596 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L597" class="LineNr"> 597 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L597" class="LineNr"> 597 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L598" class="LineNr"> 598 </span> <span class="muComment"># space: play/pause</span> <span id="L599" class="LineNr"> 599 </span> <span class="Delimiter">{</span> <span id="L600" class="LineNr"> 600 </span> compare key, <span class="Constant">0x20</span>/space <span id="L601" class="LineNr"> 601 </span> <span class="PreProc">break-if-!=</span> -<span id="L602" class="LineNr"> 602 </span> <span class="PreProc">var</span> play?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, play? +<span id="L602" class="LineNr"> 602 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get self, play? <span id="L603" class="LineNr"> 603 </span> compare *play?, <span class="Constant">0</span>/false <span id="L604" class="LineNr"> 604 </span> <span class="Delimiter">{</span> <span id="L605" class="LineNr"> 605 </span> <span class="PreProc">break-if-=</span> @@ -685,8 +684,8 @@ if ('onhashchange' in window) { <span id="L620" class="LineNr"> 620 </span> <span class="Delimiter">{</span> <span id="L621" class="LineNr"> 621 </span> compare key, <span class="Constant">0x6c</span>/l <span id="L622" class="LineNr"> 622 </span> <span class="PreProc">break-if-!=</span> -<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L624" class="LineNr"> 624 </span> <span class="PreProc">var</span> tick/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tick-a +<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L624" class="LineNr"> 624 </span> <span class="PreProc">var</span> tick/eax: int <span class="Special"><-</span> copy *tick-a <span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> <span id="L626" class="LineNr"> 626 </span> copy-to *<span class="PreProc">loop</span>, tick <span id="L627" class="LineNr"> 627 </span> <span class="PreProc">return</span> @@ -695,7 +694,7 @@ if ('onhashchange' in window) { <span id="L630" class="LineNr"> 630 </span> <span class="Delimiter">{</span> <span id="L631" class="LineNr"> 631 </span> compare key, <span class="Constant">0x4c</span>/L <span id="L632" class="LineNr"> 632 </span> <span class="PreProc">break-if-!=</span> -<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> +<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> <span id="L634" class="LineNr"> 634 </span> copy-to *<span class="PreProc">loop</span>, <span class="Constant">0</span> <span id="L635" class="LineNr"> 635 </span> <span class="PreProc">return</span> <span id="L636" class="LineNr"> 636 </span> <span class="Delimiter">}</span> @@ -703,7 +702,7 @@ if ('onhashchange' in window) { <span id="L638" class="LineNr"> 638 </span> <span class="Delimiter">{</span> <span id="L639" class="LineNr"> 639 </span> compare key, <span class="Constant">0x2d</span>/- <span id="L640" class="LineNr"> 640 </span> <span class="PreProc">break-if-!=</span> -<span id="L641" class="LineNr"> 641 </span> <span class="PreProc">var</span> zoom/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L641" class="LineNr"> 641 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom <span id="L642" class="LineNr"> 642 </span> compare *zoom, <span class="Constant">1</span> <span id="L643" class="LineNr"> 643 </span> <span class="Delimiter">{</span> <span id="L644" class="LineNr"> 644 </span> <span class="PreProc">break-if-!=</span> @@ -723,7 +722,7 @@ if ('onhashchange' in window) { <span id="L658" class="LineNr"> 658 </span> <span class="Delimiter">{</span> <span id="L659" class="LineNr"> 659 </span> compare key, <span class="Constant">0x2b</span>/+ <span id="L660" class="LineNr"> 660 </span> <span class="PreProc">break-if-!=</span> -<span id="L661" class="LineNr"> 661 </span> <span class="PreProc">var</span> zoom/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L661" class="LineNr"> 661 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom <span id="L662" class="LineNr"> 662 </span> compare *zoom, <span class="Constant">1</span> <span id="L663" class="LineNr"> 663 </span> <span class="Delimiter">{</span> <span id="L664" class="LineNr"> 664 </span> <span class="PreProc">break-if-!=</span> @@ -762,18 +761,18 @@ if ('onhashchange' in window) { <span id="L697" class="LineNr"> 697 </span> <span class="PreProc">break-if-!=</span> <span id="L698" class="LineNr"> 698 </span> add-to *tick-a, <span class="Constant">0x10</span> <span id="L699" class="LineNr"> 699 </span> <span class="Delimiter">}</span> -<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> tick/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tick-a +<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> tick/eax: int <span class="Special"><-</span> copy *tick-a <span id="L701" class="LineNr"> 701 </span> tick <span class="Special"><-</span> and <span class="Constant">0xf</span> <span id="L702" class="LineNr"> 702 </span> compare tick, <span class="Constant">0</span> <span id="L703" class="LineNr"> 703 </span> <span class="Delimiter">{</span> <span id="L704" class="LineNr"> 704 </span> <span class="PreProc">break-if-!=</span> <span id="L705" class="LineNr"> 705 </span> <a href='hest-life.mu.html#L908'>step4</a> self <span id="L706" class="LineNr"> 706 </span> <span class="Delimiter">}</span> -<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> loop-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> +<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> loop-a/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> <span id="L708" class="LineNr"> 708 </span> compare *loop-a, <span class="Constant">0</span> <span id="L709" class="LineNr"> 709 </span> <span class="Delimiter">{</span> <span id="L710" class="LineNr"> 710 </span> <span class="PreProc">break-if-=</span> -<span id="L711" class="LineNr"> 711 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *loop-a +<span id="L711" class="LineNr"> 711 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/eax: int <span class="Special"><-</span> copy *loop-a <span id="L712" class="LineNr"> 712 </span> compare *tick-a, <span class="PreProc">loop</span> <span id="L713" class="LineNr"> 713 </span> <span class="PreProc">break-if-<</span> <span id="L714" class="LineNr"> 714 </span> <a href='hest-life.mu.html#L744'>clear-environment</a> self @@ -782,18 +781,18 @@ if ('onhashchange' in window) { <span id="L717" class="LineNr"> 717 </span> <span id="L718" class="LineNr"> 718 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L718'>initialize-environment</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> <span id="L719" class="LineNr"> 719 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> zoom/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom <span id="L721" class="LineNr"> 721 </span> copy-to *zoom, <span class="Constant">0</span> -<span id="L722" class="LineNr"> 722 </span> <span class="PreProc">var</span> play?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, play? +<span id="L722" class="LineNr"> 722 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get self, play? <span id="L723" class="LineNr"> 723 </span> copy-to *play?, <span class="Constant">1</span>/true -<span id="L724" class="LineNr"> 724 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L724" class="LineNr"> 724 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data <span id="L725" class="LineNr"> 725 </span> populate data-ah, <span class="Constant">0x100</span> -<span id="L726" class="LineNr"> 726 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L726" class="LineNr"> 726 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L727" class="LineNr"> 727 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L728" class="LineNr"> 728 </span> <span class="Delimiter">{</span> <span id="L729" class="LineNr"> 729 </span> compare y, <span class="Constant">0xc0</span> <span id="L730" class="LineNr"> 730 </span> <span class="PreProc">break-if->=</span> -<span id="L731" class="LineNr"> 731 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L731" class="LineNr"> 731 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y <span id="L732" class="LineNr"> 732 </span> populate dest-ah, <span class="Constant">0x100</span> <span id="L733" class="LineNr"> 733 </span> y <span class="Special"><-</span> increment <span id="L734" class="LineNr"> 734 </span> <span class="PreProc">loop</span> @@ -808,22 +807,22 @@ if ('onhashchange' in window) { <span id="L743" class="LineNr"> 743 </span> <span id="L744" class="LineNr"> 744 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L744'>clear-environment</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> <span id="L745" class="LineNr"> 745 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L746" class="LineNr"> 746 </span> <span class="PreProc">var</span> tick/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, tick +<span id="L746" class="LineNr"> 746 </span> <span class="PreProc">var</span> tick/eax: (addr int) <span class="Special"><-</span> get self, tick <span id="L747" class="LineNr"> 747 </span> copy-to *tick, <span class="Constant">0</span> <span id="L748" class="LineNr"> 748 </span> <span class="muComment"># don't touch zoom or play settings</span> -<span id="L749" class="LineNr"> 749 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L750" class="LineNr"> 750 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L749" class="LineNr"> 749 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L750" class="LineNr"> 750 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L751" class="LineNr"> 751 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L752" class="LineNr"> 752 </span> <span class="Delimiter">{</span> <span id="L753" class="LineNr"> 753 </span> compare y, <span class="Constant">0xc0</span> <span id="L754" class="LineNr"> 754 </span> <span class="PreProc">break-if->=</span> -<span id="L755" class="LineNr"> 755 </span> <span class="PreProc">var</span> row-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L756" class="LineNr"> 756 </span> <span class="PreProc">var</span> row/<span class="muRegEax">eax</span>: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah +<span id="L755" class="LineNr"> 755 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L756" class="LineNr"> 756 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah <span id="L757" class="LineNr"> 757 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L758" class="LineNr"> 758 </span> <span class="Delimiter">{</span> <span id="L759" class="LineNr"> 759 </span> compare x, <span class="Constant">0x100</span> <span id="L760" class="LineNr"> 760 </span> <span class="PreProc">break-if->=</span> -<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x +<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x <span id="L762" class="LineNr"> 762 </span> clear-object dest <span id="L763" class="LineNr"> 763 </span> x <span class="Special"><-</span> increment <span id="L764" class="LineNr"> 764 </span> <span class="PreProc">loop</span> @@ -841,19 +840,19 @@ if ('onhashchange' in window) { <span id="L776" class="LineNr"> 776 </span> <span id="L777" class="LineNr"> 777 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L777'>set</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), _x: int, _y: int, _val: boolean <span class="Delimiter">{</span> <span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L779" class="LineNr"> 779 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L779" class="LineNr"> 779 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L781" class="LineNr"> 781 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _y -<span id="L782" class="LineNr"> 782 </span> <span class="PreProc">var</span> row-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L783" class="LineNr"> 783 </span> <span class="PreProc">var</span> row/<span class="muRegEax">eax</span>: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah +<span id="L782" class="LineNr"> 782 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L783" class="LineNr"> 783 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah <span id="L784" class="LineNr"> 784 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _x -<span id="L785" class="LineNr"> 785 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L58'>cell</a>/<span class="muRegEax">eax</span>: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x -<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get <a href='hest-life.mu.html#L58'>cell</a>, next +<span id="L785" class="LineNr"> 785 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L58'>cell</a>/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x +<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> dest/eax: (addr boolean) <span class="Special"><-</span> get <a href='hest-life.mu.html#L58'>cell</a>, next <span id="L787" class="LineNr"> 787 </span> <span class="PreProc">var</span> val/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy _val <span id="L788" class="LineNr"> 788 </span> copy-to *dest, val <span id="L789" class="LineNr"> 789 </span><span class="Delimiter">}</span> <span id="L790" class="LineNr"> 790 </span> -<span id="L791" class="LineNr"> 791 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L791'>state</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), _x: int, _y: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L791" class="LineNr"> 791 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L791'>state</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), _x: int, _y: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L792" class="LineNr"> 792 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self <span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _x <span id="L794" class="LineNr"> 794 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _y @@ -878,20 +877,20 @@ if ('onhashchange' in window) { <span id="L813" class="LineNr"> 813 </span> <span class="PreProc">break-if-<</span> <span id="L814" class="LineNr"> 814 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L815" class="LineNr"> 815 </span> <span class="Delimiter">}</span> -<span id="L816" class="LineNr"> 816 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L817" class="LineNr"> 817 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L818" class="LineNr"> 818 </span> <span class="PreProc">var</span> row-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L819" class="LineNr"> 819 </span> <span class="PreProc">var</span> row/<span class="muRegEax">eax</span>: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah -<span id="L820" class="LineNr"> 820 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L58'>cell</a>/<span class="muRegEax">eax</span>: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x -<span id="L821" class="LineNr"> 821 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get <a href='hest-life.mu.html#L58'>cell</a>, curr +<span id="L816" class="LineNr"> 816 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L817" class="LineNr"> 817 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L818" class="LineNr"> 818 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L819" class="LineNr"> 819 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah +<span id="L820" class="LineNr"> 820 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L58'>cell</a>/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x +<span id="L821" class="LineNr"> 821 </span> <span class="PreProc">var</span> src/eax: (addr boolean) <span class="Special"><-</span> get <a href='hest-life.mu.html#L58'>cell</a>, curr <span id="L822" class="LineNr"> 822 </span> <span class="PreProc">return</span> *src <span id="L823" class="LineNr"> 823 </span><span class="Delimiter">}</span> <span id="L824" class="LineNr"> 824 </span> -<span id="L825" class="LineNr"> 825 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L825'>state-color</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), x: int, y: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L825" class="LineNr"> 825 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L825'>state-color</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L826" class="LineNr"> 826 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self <span id="L827" class="LineNr"> 827 </span> <span class="PreProc">var</span> color/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x1a</span>/dead <span id="L828" class="LineNr"> 828 </span> <span class="Delimiter">{</span> -<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L791'>state</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L791'>state</a>/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y <span id="L830" class="LineNr"> 830 </span> compare <a href='hest-life.mu.html#L791'>state</a>, <span class="Constant">0</span>/dead <span id="L831" class="LineNr"> 831 </span> <span class="PreProc">break-if-=</span> <span id="L832" class="LineNr"> 832 </span> color <span class="Special"><-</span> copy <span class="Constant">0xf</span>/alive @@ -901,24 +900,24 @@ if ('onhashchange' in window) { <span id="L836" class="LineNr"> 836 </span> <span id="L837" class="LineNr"> 837 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L837'>flush</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> <span id="L838" class="LineNr"> 838 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L839" class="LineNr"> 839 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L840" class="LineNr"> 840 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L839" class="LineNr"> 839 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L840" class="LineNr"> 840 </span> <span class="PreProc">var</span> _data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> copy _data <span id="L842" class="LineNr"> 842 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L843" class="LineNr"> 843 </span> <span class="Delimiter">{</span> <span id="L844" class="LineNr"> 844 </span> compare y, <span class="Constant">0xc0</span>/height <span id="L845" class="LineNr"> 845 </span> <span class="PreProc">break-if->=</span> -<span id="L846" class="LineNr"> 846 </span> <span class="PreProc">var</span> row-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L847" class="LineNr"> 847 </span> <span class="PreProc">var</span> _row/<span class="muRegEax">eax</span>: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah +<span id="L846" class="LineNr"> 846 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L847" class="LineNr"> 847 </span> <span class="PreProc">var</span> _row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah <span id="L848" class="LineNr"> 848 </span> <span class="PreProc">var</span> row/<span class="muRegEbx">ebx</span>: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> copy _row <span id="L849" class="LineNr"> 849 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L850" class="LineNr"> 850 </span> <span class="Delimiter">{</span> <span id="L851" class="LineNr"> 851 </span> compare x, <span class="Constant">0x100</span>/width <span id="L852" class="LineNr"> 852 </span> <span class="PreProc">break-if->=</span> -<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> cell-a/<span class="muRegEax">eax</span>: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x +<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> cell-a/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x <span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEdi">edi</span>: (addr boolean) <span class="Special"><-</span> get cell-a, curr <span id="L855" class="LineNr"> 855 </span> <span class="PreProc">var</span> next-a/<span class="muRegEsi">esi</span>: (addr boolean) <span class="Special"><-</span> get cell-a, next -<span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy *next-a +<span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> val/eax: boolean <span class="Special"><-</span> copy *next-a <span id="L857" class="LineNr"> 857 </span> copy-to *curr-a, val <span id="L858" class="LineNr"> 858 </span> copy-to *next-a, <span class="Constant">0</span>/dead <span id="L859" class="LineNr"> 859 </span> x <span class="Special"><-</span> increment @@ -939,7 +938,7 @@ if ('onhashchange' in window) { <span id="L874" class="LineNr"> 874 </span> <span class="Delimiter">{</span> <span id="L875" class="LineNr"> 875 </span> compare x, <span class="Constant">0x100</span>/width <span id="L876" class="LineNr"> 876 </span> <span class="PreProc">break-if->=</span> -<span id="L877" class="LineNr"> 877 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L791'>state</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L877" class="LineNr"> 877 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L791'>state</a>/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y <span id="L878" class="LineNr"> 878 </span> compare <a href='hest-life.mu.html#L791'>state</a>, <span class="Constant">0</span>/false <span id="L879" class="LineNr"> 879 </span> <span class="Delimiter">{</span> <span id="L880" class="LineNr"> 880 </span> <span class="PreProc">break-if-=</span> @@ -959,7 +958,7 @@ if ('onhashchange' in window) { <span id="L894" class="LineNr"> 894 </span><span class="Delimiter">}</span> <span id="L895" class="LineNr"> 895 </span> <span id="L896" class="LineNr"> 896 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L896'>render4-cell</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int, color: int <span class="Delimiter">{</span> -<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> xmin/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x +<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> xmin/eax: int <span class="Special"><-</span> copy x <span id="L898" class="LineNr"> 898 </span> xmin <span class="Special"><-</span> shift-left <span class="Constant">2</span> <span id="L899" class="LineNr"> 899 </span> <span class="PreProc">var</span> xmax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy xmin <span id="L900" class="LineNr"> 900 </span> xmax <span class="Special"><-</span> add <span class="Constant">4</span> @@ -980,7 +979,7 @@ if ('onhashchange' in window) { <span id="L915" class="LineNr"> 915 </span> <span class="Delimiter">{</span> <span id="L916" class="LineNr"> 916 </span> compare x, <span class="Constant">0x100</span>/width <span id="L917" class="LineNr"> 917 </span> <span class="PreProc">break-if->=</span> -<span id="L918" class="LineNr"> 918 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, x, y +<span id="L918" class="LineNr"> 918 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, x, y <span id="L919" class="LineNr"> 919 </span> <span class="muComment"># if neighbors < 2, die of loneliness</span> <span id="L920" class="LineNr"> 920 </span> <span class="Delimiter">{</span> <span id="L921" class="LineNr"> 921 </span> compare n, <span class="Constant">2</span> @@ -997,7 +996,7 @@ if ('onhashchange' in window) { <span id="L932" class="LineNr"> 932 </span> <span class="Delimiter">{</span> <span id="L933" class="LineNr"> 933 </span> compare n, <span class="Constant">2</span> <span id="L934" class="LineNr"> 934 </span> <span class="PreProc">break-if-!=</span> -<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> old-state/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> old-state/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y <span id="L936" class="LineNr"> 936 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, old-state <span id="L937" class="LineNr"> 937 </span> <span class="Delimiter">}</span> <span id="L938" class="LineNr"> 938 </span> <span class="muComment"># if neighbors = 3, cell quickens to life</span> @@ -1015,13 +1014,13 @@ if ('onhashchange' in window) { <span id="L950" class="LineNr"> 950 </span> <a href='hest-life.mu.html#L837'>flush</a> self <span id="L951" class="LineNr"> 951 </span><span class="Delimiter">}</span> <span id="L952" class="LineNr"> 952 </span> -<span id="L953" class="LineNr"> 953 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L953'>num-live-neighbors</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), x: int, y: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L953" class="LineNr"> 953 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L953'>num-live-neighbors</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L954" class="LineNr"> 954 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self <span id="L955" class="LineNr"> 955 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L956" class="LineNr"> 956 </span> <span class="muComment"># row above: zig</span> <span id="L957" class="LineNr"> 957 </span> decrement y <span id="L958" class="LineNr"> 958 </span> decrement x -<span id="L959" class="LineNr"> 959 </span> <span class="PreProc">var</span> s/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L959" class="LineNr"> 959 </span> <span class="PreProc">var</span> s/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y <span id="L960" class="LineNr"> 960 </span> <span class="Delimiter">{</span> <span id="L961" class="LineNr"> 961 </span> compare s, <span class="Constant">0</span>/false <span id="L962" class="LineNr"> 962 </span> <span class="PreProc">break-if-=</span> diff --git a/html/life.mu.html b/html/life.mu.html index 147fccd1..e08e9f9f 100644 --- a/html/life.mu.html +++ b/html/life.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -70,7 +69,7 @@ if ('onhashchange' in window) { <span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ qemu-system-i386 code.img</span> <span id="L7" class="LineNr"> 7 </span> -<span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L8'>state</a></span> _grid: (addr array boolean), x: int, y: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L8'>state</a></span> _grid: (addr array boolean), x: int, y: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L9" class="LineNr"> 9 </span> <span class="muComment"># clip at the edge</span> <span id="L10" class="LineNr"> 10 </span> compare x, <span class="Constant">0</span> <span id="L11" class="LineNr"> 11 </span> <span class="Delimiter">{</span> @@ -92,31 +91,31 @@ if ('onhashchange' in window) { <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">break-if-<</span> <span id="L28" class="LineNr"> 28 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">}</span> -<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> idx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy y +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> idx/eax: int <span class="Special"><-</span> copy y <span id="L31" class="LineNr"> 31 </span> idx <span class="Special"><-</span> shift-left <span class="Constant">8</span>/log2width <span id="L32" class="LineNr"> 32 </span> idx <span class="Special"><-</span> add x <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> grid/<span class="muRegEsi">esi</span>: (addr array boolean) <span class="Special"><-</span> copy _grid -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> index grid, idx +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> result/eax: (addr boolean) <span class="Special"><-</span> index grid, idx <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">return</span> *result <span id="L36" class="LineNr"> 36 </span><span class="Delimiter">}</span> <span id="L37" class="LineNr"> 37 </span> <span id="L38" class="LineNr"> 38 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L38'>set-state</a></span> _grid: (addr array boolean), x: int, y: int, val: boolean <span class="Delimiter">{</span> <span id="L39" class="LineNr"> 39 </span> <span class="muComment"># don't bother checking bounds</span> -<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> idx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy y +<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> idx/eax: int <span class="Special"><-</span> copy y <span id="L41" class="LineNr"> 41 </span> idx <span class="Special"><-</span> shift-left <span class="Constant">8</span>/log2width <span id="L42" class="LineNr"> 42 </span> idx <span class="Special"><-</span> add x <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> grid/<span class="muRegEsi">esi</span>: (addr array boolean) <span class="Special"><-</span> copy _grid -<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> index grid, idx +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> result/eax: (addr boolean) <span class="Special"><-</span> index grid, idx <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy val <span id="L46" class="LineNr"> 46 </span> copy-to *result, src <span id="L47" class="LineNr"> 47 </span><span class="Delimiter">}</span> <span id="L48" class="LineNr"> 48 </span> -<span id="L49" class="LineNr"> 49 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L49'>num-live-neighbors</a></span> grid: (addr array boolean), x: int, y: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L49" class="LineNr"> 49 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L49'>num-live-neighbors</a></span> grid: (addr array boolean), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L50" class="LineNr"> 50 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L51" class="LineNr"> 51 </span> <span class="muComment"># row above: zig</span> <span id="L52" class="LineNr"> 52 </span> decrement y <span id="L53" class="LineNr"> 53 </span> decrement x -<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> s/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> s/eax: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y <span id="L55" class="LineNr"> 55 </span> <span class="Delimiter">{</span> <span id="L56" class="LineNr"> 56 </span> compare s, <span class="Constant">0</span>/false <span id="L57" class="LineNr"> 57 </span> <span class="PreProc">break-if-=</span> @@ -185,7 +184,7 @@ if ('onhashchange' in window) { <span id="L120" class="LineNr">120 </span> <span class="Delimiter">{</span> <span id="L121" class="LineNr">121 </span> compare x, <span class="Constant">0x100</span>/width <span id="L122" class="LineNr">122 </span> <span class="PreProc">break-if->=</span> -<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='life.mu.html#L49'>num-live-neighbors</a> old-grid, x, y +<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='life.mu.html#L49'>num-live-neighbors</a> old-grid, x, y <span id="L124" class="LineNr">124 </span> <span class="muComment"># if neighbors < 2, die of loneliness</span> <span id="L125" class="LineNr">125 </span> <span class="Delimiter">{</span> <span id="L126" class="LineNr">126 </span> compare n, <span class="Constant">2</span> @@ -202,7 +201,7 @@ if ('onhashchange' in window) { <span id="L137" class="LineNr">137 </span> <span class="Delimiter">{</span> <span id="L138" class="LineNr">138 </span> compare n, <span class="Constant">2</span> <span id="L139" class="LineNr">139 </span> <span class="PreProc">break-if-!=</span> -<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> old-state/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> old-grid, x, y +<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> old-state/eax: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> old-grid, x, y <span id="L141" class="LineNr">141 </span> <a href='life.mu.html#L38'>set-state</a> new-grid, x, y, old-state <span id="L142" class="LineNr">142 </span> <span class="Delimiter">}</span> <span id="L143" class="LineNr">143 </span> <span class="muComment"># if neighbors = 3, cell quickens to life</span> @@ -231,7 +230,7 @@ if ('onhashchange' in window) { <span id="L166" class="LineNr">166 </span> compare y, ymax <span id="L167" class="LineNr">167 </span> <span class="PreProc">break-if->=</span> <span id="L168" class="LineNr">168 </span> <span class="Delimiter">{</span> -<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _x +<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy _x <span id="L170" class="LineNr">170 </span> x <span class="Special"><-</span> shift-left <span class="Constant">2</span>/log2side <span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> xmax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x <span id="L172" class="LineNr">172 </span> xmax <span class="Special"><-</span> add side @@ -257,7 +256,7 @@ if ('onhashchange' in window) { <span id="L192" class="LineNr">192 </span> <span class="Delimiter">{</span> <span id="L193" class="LineNr">193 </span> compare x, <span class="Constant">0x100</span>/width <span id="L194" class="LineNr">194 </span> <span class="PreProc">break-if->=</span> -<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> <a href='life.mu.html#L8'>state</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> <a href='life.mu.html#L8'>state</a>/eax: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y <span id="L196" class="LineNr">196 </span> compare <a href='life.mu.html#L8'>state</a>, <span class="Constant">0</span>/false <span id="L197" class="LineNr">197 </span> <span class="Delimiter">{</span> <span id="L198" class="LineNr">198 </span> <span class="PreProc">break-if-=</span> @@ -284,14 +283,14 @@ if ('onhashchange' in window) { <span id="L219" class="LineNr">219 </span><span class="CommentedCode">#? var grid2/edi: (addr array boolean) <- address grid2-storage</span> <span id="L220" class="LineNr">220 </span> <span class="muComment"># allocate on the heap</span> <span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> grid1-storage: (handle array boolean) -<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> grid1-ah/<span class="muRegEax">eax</span>: (addr handle array boolean) <span class="Special"><-</span> address grid1-storage +<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> grid1-ah/eax: (addr handle array boolean) <span class="Special"><-</span> address grid1-storage <span id="L223" class="LineNr">223 </span> populate grid1-ah, <span class="Constant">0xc000</span> <span class="muComment"># width * height</span> -<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> _grid1/<span class="muRegEax">eax</span>: (addr array boolean) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *grid1-ah +<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> _grid1/eax: (addr array boolean) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *grid1-ah <span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> grid1/<span class="muRegEsi">esi</span>: (addr array boolean) <span class="Special"><-</span> copy _grid1 <span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> grid2-storage: (handle array boolean) -<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> grid2-ah/<span class="muRegEax">eax</span>: (addr handle array boolean) <span class="Special"><-</span> address grid2-storage +<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> grid2-ah/eax: (addr handle array boolean) <span class="Special"><-</span> address grid2-storage <span id="L228" class="LineNr">228 </span> populate grid2-ah, <span class="Constant">0xc000</span> <span class="muComment"># width * height</span> -<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> _grid2/<span class="muRegEax">eax</span>: (addr array boolean) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *grid2-ah +<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> _grid2/eax: (addr array boolean) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *grid2-ah <span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> grid2/<span class="muRegEdi">edi</span>: (addr array boolean) <span class="Special"><-</span> copy _grid2 <span id="L231" class="LineNr">231 </span> <span class="muComment"># initialize grid1</span> <span id="L232" class="LineNr">232 </span> <a href='life.mu.html#L38'>set-state</a> grid1, <span class="Constant">0x80</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/live @@ -302,7 +301,7 @@ if ('onhashchange' in window) { <span id="L237" class="LineNr">237 </span> <span class="muComment"># render grid1</span> <span id="L238" class="LineNr">238 </span> <a href='life.mu.html#L186'>render</a> grid1 <span id="L239" class="LineNr">239 </span> <span class="Delimiter">{</span> -<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L241" class="LineNr">241 </span> compare key, <span class="Constant">0</span> <span id="L242" class="LineNr">242 </span><span class="CommentedCode">#? loop-if-= # press key to step</span> <span id="L243" class="LineNr">243 </span> <span class="PreProc">break-if-!=</span> <span class="muComment"># press key to quit # comment this out to run under bochs; I'm not sure why there's a newline in the keyboard buffer</span> diff --git a/html/linux/400.mu.html b/html/linux/400.mu.html index 518a8566..f0749979 100644 --- a/html/linux/400.mu.html +++ b/html/linux/400.mu.html @@ -14,12 +14,11 @@ 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 { } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } .PreProc { color: #c000c0; } +.LineNr { } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } +.muComment { color: #005faf; } --> </style> @@ -84,10 +83,10 @@ if ('onhashchange' in window) { <span id="L27" class="LineNr"> 27 </span><span class="muComment"># Many functions here may not be usable yet because of missing features</span> <span id="L28" class="LineNr"> 28 </span><span class="muComment"># (global variable support, etc.)</span> <span id="L29" class="LineNr"> 29 </span><span class="PreProc">sig</span> <a href='102test.subx.html#L23'>check-ints-equal</a> a: int, b: int, msg: (addr array byte) -<span id="L30" class="LineNr"> 30 </span><span class="PreProc">sig</span> <a href='103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a> s: (addr kernel-string), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L30" class="LineNr"> 30 </span><span class="PreProc">sig</span> <a href='103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a> s: (addr kernel-string), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L31" class="LineNr"> 31 </span><span class="PreProc">sig</span> <a href='104new-segment.subx.html#L40'>new-segment</a> len: int, ad: (addr allocation-descriptor) -<span id="L32" class="LineNr"> 32 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L15'>string-equal?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L33" class="LineNr"> 33 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L57'>string-starts-with?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L32" class="LineNr"> 32 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L15'>string-equal?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L33" class="LineNr"> 33 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L57'>string-starts-with?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L34" class="LineNr"> 34 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> s: (addr array byte), expected: (addr array byte), msg: (addr array byte) <span id="L35" class="LineNr"> 35 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L17'>clear-stream</a> f: (addr stream _) <span id="L36" class="LineNr"> 36 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L56'>rewind-stream</a> f: (addr stream _) @@ -95,20 +94,20 @@ if ('onhashchange' in window) { <span id="L38" class="LineNr"> 38 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L81'>trace</a> line: (addr array byte) <span id="L39" class="LineNr"> 39 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L248'>check-trace-contains</a> line: (addr string), msg: (addr string) <span id="L40" class="LineNr"> 40 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L273'>check-trace-scans-to</a> line: (addr string), msg: (addr string) -<span id="L41" class="LineNr"> 41 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L304'>trace-scan</a> line: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L42" class="LineNr"> 42 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L556'>next-line-matches?</a> t: (addr stream byte), line: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L41" class="LineNr"> 41 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L304'>trace-scan</a> line: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L42" class="LineNr"> 42 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L556'>next-line-matches?</a> t: (addr stream byte), line: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L43" class="LineNr"> 43 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L732'>skip-next-line</a> t: (addr stream byte) <span id="L44" class="LineNr"> 44 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L840'>clear-trace-stream</a> <span id="L45" class="LineNr"> 45 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L24'>write</a> f: (addr stream byte), s: (addr array byte) <span class="muComment"># writing to file descriptor not supported; use buffered-file</span> -<span id="L46" class="LineNr"> 46 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L9'>stream-data-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L46" class="LineNr"> 46 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L9'>stream-data-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L47" class="LineNr"> 47 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte) -<span id="L48" class="LineNr"> 48 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L230'>next-stream-line-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L48" class="LineNr"> 48 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L230'>next-stream-line-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L49" class="LineNr"> 49 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte) <span id="L50" class="LineNr"> 50 </span><span class="PreProc">sig</span> <a href='110stop.subx.html#L44'>tailor-exit-descriptor</a> ed: (addr exit-descriptor), nbytes: int <span id="L51" class="LineNr"> 51 </span><span class="PreProc">sig</span> <a href='110stop.subx.html#L92'>stop</a> ed: (addr exit-descriptor), value: int <span id="L52" class="LineNr"> 52 </span><span class="muComment">#sig read f: fd or (addr stream byte), s: (addr stream byte) -> _/eax: int</span> -<span id="L53" class="LineNr"> 53 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> f: (addr buffered-file)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte -<span id="L54" class="LineNr"> 54 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L273'>read-byte</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte +<span id="L53" class="LineNr"> 53 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> f: (addr buffered-file)<span class="PreProc"> -> </span>_/eax: byte +<span id="L54" class="LineNr"> 54 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L273'>read-byte</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte <span id="L55" class="LineNr"> 55 </span><span class="muComment">#sig write-stream f: fd or (addr stream byte), s: (addr stream byte)</span> <span id="L56" class="LineNr"> 56 </span><span class="muComment">#sig error ed: (addr exit-descriptor), out: fd or (addr stream byte), msg: (addr array byte)</span> <span id="L57" class="LineNr"> 57 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L33'>write-byte-buffered</a> f: (addr buffered-file), n: int @@ -122,22 +121,22 @@ if ('onhashchange' in window) { <span id="L65" class="LineNr"> 65 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L209'>write-int32-hex-bits</a> f: (addr stream byte), n: int, bits: int <span id="L66" class="LineNr"> 66 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L288'>write-int32-hex-buffered</a> f: (addr buffered-file), n: int <span id="L67" class="LineNr"> 67 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L319'>write-int32-hex-bits-buffered</a> f: (addr buffered-file), n: int, bits: int -<span id="L68" class="LineNr"> 68 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L9'>hex-int?</a> in: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L69" class="LineNr"> 69 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L70" class="LineNr"> 70 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L68" class="LineNr"> 68 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L9'>hex-int?</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L69" class="LineNr"> 69 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L70" class="LineNr"> 70 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: int <span id="L71" class="LineNr"> 71 </span><span class="muComment">#sig parse-hex-int-helper start: (addr byte), end: (addr byte) -> _/eax: int</span> -<span id="L72" class="LineNr"> 72 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> c: byte<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L72" class="LineNr"> 72 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> c: byte<span class="PreProc"> -> </span>_/eax: boolean <span id="L73" class="LineNr"> 73 </span><span class="muComment">#sig from-hex-char in/eax: byte -> out/eax: nibble</span> -<span id="L74" class="LineNr"> 74 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L23'>parse-decimal-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L75" class="LineNr"> 75 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L76" class="LineNr"> 76 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L74" class="LineNr"> 74 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L23'>parse-decimal-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L75" class="LineNr"> 75 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: int +<span id="L76" class="LineNr"> 76 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span id="L77" class="LineNr"> 77 </span><span class="muComment">#sig parse-decimal-int-helper start: (addr byte), end: (addr byte) -> _/eax: int</span> -<span id="L78" class="LineNr"> 78 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L312'>decimal-size</a> n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L78" class="LineNr"> 78 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L312'>decimal-size</a> n: int<span class="PreProc"> -> </span>_/eax: int <span id="L79" class="LineNr"> 79 </span><span class="PreProc">sig</span> <a href='119error-byte.subx.html#L26'>error-byte</a> ed: (addr exit-descriptor), out: (addr buffered-file), msg: (addr array byte), n: byte <span id="L80" class="LineNr"> 80 </span><span class="muComment">#sig allocate ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> <span id="L81" class="LineNr"> 81 </span><span class="muComment">#sig allocate-raw ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> -<span id="L82" class="LineNr"> 82 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L258'>lookup</a> h: (handle _T)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: (addr _T) -<span id="L83" class="LineNr"> 83 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L466'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L82" class="LineNr"> 82 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L258'>lookup</a> h: (handle _T)<span class="PreProc"> -> </span>_/eax: (addr _T) +<span id="L83" class="LineNr"> 83 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L466'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -> </span>_/eax: boolean <span id="L84" class="LineNr"> 84 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L497'>copy-handle</a> src: (handle _T), dest: (addr handle _T) <span id="L85" class="LineNr"> 85 </span><span class="muComment">#sig allocate-region ad: (addr allocation-descriptor), n: int, out: (addr handle allocation-descriptor)</span> <span id="L86" class="LineNr"> 86 </span><span class="muComment">#sig allocate-array ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> @@ -146,9 +145,9 @@ if ('onhashchange' in window) { <span id="L89" class="LineNr"> 89 </span><span class="muComment">#sig new-stream ad: (addr allocation-descriptor), length: int, elemsize: int, out: (addr handle stream _)</span> <span id="L90" class="LineNr"> 90 </span><span class="PreProc">sig</span> <a href='122read-line.subx.html#L9'>read-line-buffered</a> f: (addr buffered-file), s: (addr stream byte) <span id="L91" class="LineNr"> 91 </span><span class="PreProc">sig</span> <a href='122read-line.subx.html#L218'>read-line</a> f: (addr stream byte), s: (addr stream byte) -<span id="L92" class="LineNr"> 92 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L93" class="LineNr"> 93 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L94" class="LineNr"> 94 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L92" class="LineNr"> 92 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L93" class="LineNr"> 93 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L94" class="LineNr"> 94 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span id="L95" class="LineNr"> 95 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L793'>write-slice</a> out: (addr stream byte), s: (addr slice) <span id="L96" class="LineNr"> 96 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L908'>write-slice-buffered</a> out: (addr buffered-file), s: (addr slice) <span id="L97" class="LineNr"> 97 </span><span class="muComment"># bad name alert</span> @@ -170,16 +169,16 @@ if ('onhashchange' in window) { <span id="L113" class="LineNr">113 </span><span class="muComment">#sig skip-until-close-paren-in-slice curr: (addr byte), end: (addr byte) -> _/eax: (addr byte)</span> <span id="L114" class="LineNr">114 </span><span class="PreProc">sig</span> <a href='125write-stream-data.subx.html#L11'>write-stream-data</a> f: (addr buffered-file), s: (addr stream byte) <span id="L115" class="LineNr">115 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> out: (addr stream byte), n: int -<span id="L116" class="LineNr">116 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L306'>decimal-digit?</a> c: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L117" class="LineNr">117 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> in: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L116" class="LineNr">116 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L306'>decimal-digit?</a> c: grapheme<span class="PreProc"> -> </span>_/eax: boolean +<span id="L117" class="LineNr">117 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> in: grapheme<span class="PreProc"> -> </span>_/eax: int <span id="L118" class="LineNr">118 </span><span class="muComment"># bad name alert</span> <span id="L119" class="LineNr">119 </span><span class="muComment"># next-word really tokenizes</span> <span id="L120" class="LineNr">120 </span><span class="muComment"># next-raw-word really reads whitespace-separated words</span> <span id="L121" class="LineNr">121 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L11'>next-word</a> line: (addr stream byte), out: (addr slice) <span class="muComment"># skips '#' comments</span> <span id="L122" class="LineNr">122 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L306'>next-raw-word</a> line: (addr stream byte), out: (addr slice) <span class="muComment"># does not skip '#' comments</span> -<span id="L123" class="LineNr">123 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L8'>has-metadata?</a> word: (addr slice), s: (addr string)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L124" class="LineNr">124 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L278'>valid-name?</a> in: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L125" class="LineNr">125 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L535'>label?</a> word: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L123" class="LineNr">123 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L8'>has-metadata?</a> word: (addr slice), s: (addr string)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L124" class="LineNr">124 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L278'>valid-name?</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L125" class="LineNr">125 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L535'>label?</a> word: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean <span id="L126" class="LineNr">126 </span><span class="PreProc">sig</span> <a href='129emit-hex.subx.html#L7'>emit-hex</a> out: (addr buffered-file), n: int, width: int <span id="L127" class="LineNr">127 </span><span class="PreProc">sig</span> <a href='130emit.subx.html#L10'>emit</a> out: (addr buffered-file), word: (addr slice), width: int <span id="L128" class="LineNr">128 </span><span class="muComment">#sig get table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int, abort-message-prefix: (addr array byte) -> _/eax: (addr T)</span> @@ -192,8 +191,8 @@ if ('onhashchange' in window) { <span id="L135" class="LineNr">135 </span><span class="muComment">#sig maybe-get table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int -> _/eax: (addr T)</span> <span id="L136" class="LineNr">136 </span><span class="muComment">#sig maybe-get-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int -> _/eax: (addr T)</span> <span id="L137" class="LineNr">137 </span><span class="PreProc">sig</span> <a href='132slurp.subx.html#L8'>slurp</a> f: (addr buffered-file), s: (addr stream byte) -<span id="L138" class="LineNr">138 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L11'>compute-width</a> word: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int -<span id="L139" class="LineNr">139 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L45'>compute-width-of-slice</a> s: (addr slice)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L138" class="LineNr">138 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L11'>compute-width</a> word: (addr array byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L139" class="LineNr">139 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L45'>compute-width-of-slice</a> s: (addr slice)<span class="PreProc"> -> </span>_/eax: int <span id="L140" class="LineNr">140 </span><span class="PreProc">sig</span> <a href='134emit-hex-array.subx.html#L7'>emit-hex-array</a> out: (addr buffered-file), arr: (addr array byte) <span id="L141" class="LineNr">141 </span><span class="PreProc">sig</span> <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a> line: (addr stream byte), out: (addr slice) <span id="L142" class="LineNr">142 </span><span class="PreProc">sig</span> <a href='202write-int.subx.html#L8'>write-int</a> out: (addr stream byte), n: int @@ -201,16 +200,16 @@ if ('onhashchange' in window) { <span id="L144" class="LineNr">144 </span><span class="muComment">#sig push s: (addr stack), n: int</span> <span id="L145" class="LineNr">145 </span><span class="muComment">#sig pop s: (addr stack) -> _/eax: int</span> <span id="L146" class="LineNr">146 </span><span class="muComment">#sig top s: (addr stack) -> _/eax: int</span> -<span id="L147" class="LineNr">147 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L147" class="LineNr">147 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -> </span>_/eax: boolean <span id="L148" class="LineNr">148 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L368'>parse-array-of-ints</a> s: (addr array byte), out: (addr handle array int) <span id="L149" class="LineNr">149 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L623'>parse-array-of-decimal-ints</a> s: (addr array byte), out: (addr handle array int) <span id="L150" class="LineNr">150 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L382'>check-array-equal</a> a: (addr array int), expected: (addr string), msg: (addr string) <span id="L151" class="LineNr">151 </span><span class="muComment">#sig push-n-zero-bytes n: int</span> <span id="L152" class="LineNr">152 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L7'>kernel-string-to-string</a> ad: (addr allocation-descriptor), in: (addr kernel-string), out: (addr handle array byte) -<span id="L153" class="LineNr">153 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L57'>kernel-string-length</a> in: (addr kernel-string)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int +<span id="L153" class="LineNr">153 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L57'>kernel-string-length</a> in: (addr kernel-string)<span class="PreProc"> -> </span>_/eax: int <span id="L154" class="LineNr">154 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L6'>enable-screen-grid-mode</a> <span id="L155" class="LineNr">155 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L24'>enable-screen-type-mode</a> -<span id="L156" class="LineNr">156 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L37'>real-screen-size</a><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int +<span id="L156" class="LineNr">156 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L37'>real-screen-size</a><span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span id="L157" class="LineNr">157 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L75'>clear-real-screen</a> <span id="L158" class="LineNr">158 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L91'>move-cursor-on-real-screen</a> row: int, column: int <span id="L159" class="LineNr">159 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> s: (addr array byte) @@ -231,25 +230,25 @@ if ('onhashchange' in window) { <span id="L174" class="LineNr">174 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L405'>show-cursor-on-real-screen</a> <span id="L175" class="LineNr">175 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a> <span id="L176" class="LineNr">176 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L72'>enable-keyboard-type-mode</a> -<span id="L177" class="LineNr">177 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme +<span id="L177" class="LineNr">177 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a><span class="PreProc"> -> </span>_/eax: grapheme <span id="L178" class="LineNr">178 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> out: (addr stream byte) <span id="L179" class="LineNr">179 </span><span class="PreProc">sig</span> <a href='306files.subx.html#L9'>open</a> filename: (addr array byte), write?: boolean, out: (addr handle buffered-file) <span id="L180" class="LineNr">180 </span><span class="PreProc">sig</span> <a href='306files.subx.html#L86'>populate-buffered-file-containing</a> contents: (addr array byte), out: (addr handle buffered-file) <span id="L181" class="LineNr">181 </span><span class="PreProc">sig</span> <a href='306files.subx.html#L133'>new-buffered-file</a> out: (addr handle buffered-file) <span id="L182" class="LineNr">182 </span><span class="muComment">#sig size in: (addr array _) -> _/eax: int</span> <span id="L183" class="LineNr">183 </span> -<span id="L184" class="LineNr">184 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean -<span id="L185" class="LineNr">185 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L30'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean +<span id="L184" class="LineNr">184 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L185" class="LineNr">185 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L30'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/eax: boolean <span id="L186" class="LineNr">186 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L60'>stream-to-array</a> in: (addr stream _), out: (addr handle array _) <span id="L187" class="LineNr">187 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L120'>unquote-stream-to-array</a> in: (addr stream _), out: (addr handle array _) -<span id="L188" class="LineNr">188 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L160'>stream-first</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte -<span id="L189" class="LineNr">189 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L187'>stream-final</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: byte +<span id="L188" class="LineNr">188 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L160'>stream-first</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte +<span id="L189" class="LineNr">189 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L187'>stream-final</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte <span id="L190" class="LineNr">190 </span> <span id="L191" class="LineNr">191 </span><span class="muComment">#sig copy-bytes src: (addr byte), dest: (addr byte), n: int</span> <span id="L192" class="LineNr">192 </span><span class="PreProc">sig</span> <a href='312copy.subx.html#L3'>copy-array-object</a> src: (addr array _), dest-ah: (addr handle array _) <span id="L193" class="LineNr">193 </span><span class="PreProc">sig</span> <a href='312copy.subx.html#L17'>copy-file</a> src: (addr buffered-file), dest-ah: (addr handle buffered-file), filename: (addr array byte) <span id="L194" class="LineNr">194 </span> -<span id="L195" class="LineNr">195 </span><span class="PreProc">sig</span> <a href='314divide.subx.html#L3'>integer-divide</a> a: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEdx">edx</span>: int +<span id="L195" class="LineNr">195 </span><span class="PreProc">sig</span> <a href='314divide.subx.html#L3'>integer-divide</a> a: int, b: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEdx">edx</span>: int </pre> </body> </html> diff --git a/html/linux/401test.mu.html b/html/linux/401test.mu.html index f0c5a0f0..62ffa5e5 100644 --- a/html/linux/401test.mu.html +++ b/html/linux/401test.mu.html @@ -14,14 +14,13 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -60,12 +59,12 @@ if ('onhashchange' in window) { <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Some helpers for Mu tests.</span> <span id="L2" class="LineNr"> 2 </span> <span id="L3" class="LineNr"> 3 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='401test.mu.html#L3'>check</a></span> val: boolean, msg: (addr array byte) <span class="Delimiter">{</span> -<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy val +<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy val <span id="L5" class="LineNr"> 5 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> tmp, <span class="Constant">1</span>, msg <span id="L6" class="LineNr"> 6 </span><span class="Delimiter">}</span> <span id="L7" class="LineNr"> 7 </span> <span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='401test.mu.html#L8'>check-not</a></span> val: boolean, msg: (addr array byte) <span class="Delimiter">{</span> -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy val +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy val <span id="L10" class="LineNr">10 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> tmp, <span class="Constant">0</span>, msg <span id="L11" class="LineNr">11 </span><span class="Delimiter">}</span> </pre> 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; } --> </style> @@ -66,24 +65,24 @@ if ('onhashchange' in window) { <span id="L5" class="LineNr"> 5 </span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># return time in seconds since epoch</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># TODO: y2038</span> -<span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='402time.mu.html#L8'>time</a></span><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='402time.mu.html#L8'>time</a></span><span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> t: <a href='402time.mu.html#L1'>timespec</a> <span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> clock/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span>/CLOCK_MONOTONIC <span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> t-addr/<span class="muRegEcx">ecx</span>: (addr <a href='402time.mu.html#L1'>timespec</a>) <span class="Special"><-</span> address t <span id="L12" class="LineNr">12 </span> <a href='000init.subx.html#L87'>syscall_clock_gettime</a> <span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> t-secs-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> t-addr, tv_sec -<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> secs/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *t-secs-addr +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> secs/eax: int <span class="Special"><-</span> copy *t-secs-addr <span id="L15" class="LineNr">15 </span> <span class="PreProc">return</span> secs <span id="L16" class="LineNr">16 </span><span class="Delimiter">}</span> <span id="L17" class="LineNr">17 </span> <span id="L18" class="LineNr">18 </span><span class="muComment"># return time in nanoseconds since epoch</span> -<span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='402time.mu.html#L19'>ntime</a></span><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='402time.mu.html#L19'>ntime</a></span><span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> t: <a href='402time.mu.html#L1'>timespec</a> <span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> clock/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span>/CLOCK_MONOTONIC <span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> t-addr/<span class="muRegEcx">ecx</span>: (addr <a href='402time.mu.html#L1'>timespec</a>) <span class="Special"><-</span> address t <span id="L23" class="LineNr">23 </span> <a href='000init.subx.html#L87'>syscall_clock_gettime</a> <span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> t-nsecs-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> t-addr, tv_nsec -<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> nsecs/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *t-nsecs-addr +<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> nsecs/eax: int <span class="Special"><-</span> copy *t-nsecs-addr <span id="L26" class="LineNr">26 </span> <span class="PreProc">return</span> nsecs <span id="L27" class="LineNr">27 </span><span class="Delimiter">}</span> <span id="L28" class="LineNr">28 </span> @@ -91,7 +90,7 @@ if ('onhashchange' in window) { <span id="L30" class="LineNr">30 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='402time.mu.html#L30'>sleep</a></span> secs: int, nsecs: int <span class="Delimiter">{</span> <span id="L31" class="LineNr">31 </span> <span class="PreProc">var</span> t: <a href='402time.mu.html#L1'>timespec</a> <span id="L32" class="LineNr">32 </span> <span class="muComment"># initialize t</span> -<span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> t, tv_sec +<span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> t, tv_sec <span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy secs <span id="L35" class="LineNr">35 </span> copy-to *tmp, tmp2 <span id="L36" class="LineNr">36 </span> tmp <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> t, tv_nsec diff --git a/html/linux/403unicode.mu.html b/html/linux/403unicode.mu.html index 227e8b71..b9b7d012 100644 --- a/html/linux/403unicode.mu.html +++ b/html/linux/403unicode.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -84,8 +83,8 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr"> 19 </span><span class="muComment">#</span> <span id="L20" class="LineNr"> 20 </span><span class="muComment"># The day we want to support combining characters, this function will need to</span> <span id="L21" class="LineNr"> 21 </span><span class="muComment"># take multiple code points. Or something.</span> -<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L22'>to-grapheme</a></span> in: code-point<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy in +<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L22'>to-grapheme</a></span> in: code-point<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> c/eax: int <span class="Special"><-</span> copy in <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> num-trailers/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> first/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L26" class="LineNr"> 26 </span> $to-grapheme:compute-length: <span class="Delimiter">{</span> @@ -93,7 +92,7 @@ if ('onhashchange' in window) { <span id="L28" class="LineNr"> 28 </span> compare c, <span class="Constant">0x7f</span> <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">{</span> <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">break-if-></span> -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L32" class="LineNr"> 32 </span> <span class="PreProc">return</span> g <span id="L33" class="LineNr"> 33 </span> <span class="Delimiter">}</span> <span id="L34" class="LineNr"> 34 </span> <span class="muComment"># 2 bytes</span> @@ -161,9 +160,9 @@ if ('onhashchange' in window) { <span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">{</span> <span id="L97" class="LineNr"> 97 </span> compare in-int, <span class="Constant">0x7f</span> <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">break-if-></span> -<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: code-point <span class="Special"><-</span> copy in-int -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in -<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> out-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy out +<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> in/eax: code-point <span class="Special"><-</span> copy in-int +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> out/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in +<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> out-int/eax: int <span class="Special"><-</span> copy out <span id="L102" class="LineNr">102 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, in-int, <span class="Constant">"F - test-to-grapheme-single-byte"</span> <span id="L103" class="LineNr">103 </span> in-int <span class="Special"><-</span> increment <span id="L104" class="LineNr">104 </span> <span class="PreProc">loop</span> @@ -173,75 +172,75 @@ if ('onhashchange' in window) { <span id="L108" class="LineNr">108 </span> <span class="muComment"># byte | byte | byte | byte</span> <span id="L109" class="LineNr">109 </span><span class="muComment"># smallest 2-byte utf-8</span> <span id="L110" class="LineNr">110 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L110'>test-to-grapheme-two-bytes-min</a></span> <span class="Delimiter">{</span> -<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: code-point <span class="Special"><-</span> copy <span class="Constant">0x80</span> <span class="muComment"># 10 00-0000</span> -<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in -<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> out-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy out +<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> in/eax: code-point <span class="Special"><-</span> copy <span class="Constant">0x80</span> <span class="muComment"># 10 00-0000</span> +<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> out/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in +<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> out-int/eax: int <span class="Special"><-</span> copy out <span id="L114" class="LineNr">114 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x80c2</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/2a"</span> <span class="muComment"># 110 0-0010 10 00-0000</span> <span id="L115" class="LineNr">115 </span><span class="Delimiter">}</span> <span id="L116" class="LineNr">116 </span> <span id="L117" class="LineNr">117 </span><span class="muComment"># largest 2-byte utf-8</span> <span id="L118" class="LineNr">118 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L118'>test-to-grapheme-two-bytes-max</a></span> <span class="Delimiter">{</span> -<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: code-point <span class="Special"><-</span> copy <span class="Constant">0x7ff</span> <span class="muComment"># 1-1111 11-1111</span> -<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in -<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> out-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy out +<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> in/eax: code-point <span class="Special"><-</span> copy <span class="Constant">0x7ff</span> <span class="muComment"># 1-1111 11-1111</span> +<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> out/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in +<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> out-int/eax: int <span class="Special"><-</span> copy out <span id="L122" class="LineNr">122 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfdf</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/2b"</span> <span class="muComment"># 110 1-1111 10 11-1111</span> <span id="L123" class="LineNr">123 </span><span class="Delimiter">}</span> <span id="L124" class="LineNr">124 </span> <span id="L125" class="LineNr">125 </span><span class="muComment"># smallest 3-byte utf-8</span> <span id="L126" class="LineNr">126 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L126'>test-to-grapheme-three-bytes-min</a></span> <span class="Delimiter">{</span> -<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: code-point <span class="Special"><-</span> copy <span class="Constant">0x800</span> <span class="muComment"># 10-0000 00-0000</span> -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in -<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> out-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy out +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> in/eax: code-point <span class="Special"><-</span> copy <span class="Constant">0x800</span> <span class="muComment"># 10-0000 00-0000</span> +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> out/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in +<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> out-int/eax: int <span class="Special"><-</span> copy out <span id="L130" class="LineNr">130 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x80a0e0</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/3a"</span> <span class="muComment"># 1110 0000 10 10-0000 10 00-0000</span> <span id="L131" class="LineNr">131 </span><span class="Delimiter">}</span> <span id="L132" class="LineNr">132 </span> <span id="L133" class="LineNr">133 </span><span class="muComment"># largest 3-byte utf-8</span> <span id="L134" class="LineNr">134 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L134'>test-to-grapheme-three-bytes-max</a></span> <span class="Delimiter">{</span> -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: code-point <span class="Special"><-</span> copy <span class="Constant">0xffff</span> <span class="muComment"># 1111 11-1111 11-1111</span> -<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in -<span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> out-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy out +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> in/eax: code-point <span class="Special"><-</span> copy <span class="Constant">0xffff</span> <span class="muComment"># 1111 11-1111 11-1111</span> +<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> out/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in +<span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> out-int/eax: int <span class="Special"><-</span> copy out <span id="L138" class="LineNr">138 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfbfef</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/3b"</span> <span class="muComment"># 1110 1111 10 11-1111 10 11-1111</span> <span id="L139" class="LineNr">139 </span><span class="Delimiter">}</span> <span id="L140" class="LineNr">140 </span> <span id="L141" class="LineNr">141 </span><span class="muComment"># smallest 4-byte utf-8</span> <span id="L142" class="LineNr">142 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L142'>test-to-grapheme-four-bytes-min</a></span> <span class="Delimiter">{</span> -<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: code-point <span class="Special"><-</span> copy <span class="Constant">0x10000</span> <span class="muComment"># 1-0000 00-0000 00-0000</span> -<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in -<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> out-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy out +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> in/eax: code-point <span class="Special"><-</span> copy <span class="Constant">0x10000</span> <span class="muComment"># 1-0000 00-0000 00-0000</span> +<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> out/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> out-int/eax: int <span class="Special"><-</span> copy out <span id="L146" class="LineNr">146 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x808090f0</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/4a"</span> <span class="muComment"># 1111-0 000 10 01-0000 10 00-0000 10 00-0000</span> <span id="L147" class="LineNr">147 </span><span class="Delimiter">}</span> <span id="L148" class="LineNr">148 </span> <span id="L149" class="LineNr">149 </span><span class="muComment"># largest 4-byte utf-8</span> <span id="L150" class="LineNr">150 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L150'>test-to-grapheme-four-bytes-max</a></span> <span class="Delimiter">{</span> -<span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: code-point <span class="Special"><-</span> copy <span class="Constant">0x1fffff</span> <span class="muComment"># 111 11-1111 11-1111 11-1111</span> -<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in -<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> out-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy out +<span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> in/eax: code-point <span class="Special"><-</span> copy <span class="Constant">0x1fffff</span> <span class="muComment"># 111 11-1111 11-1111 11-1111</span> +<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> out/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in +<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> out-int/eax: int <span class="Special"><-</span> copy out <span id="L154" class="LineNr">154 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfbfbff7</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/4b"</span> <span class="muComment"># 1111-0 111 10 11-1111 10 11-1111 10 11-1111</span> <span id="L155" class="LineNr">155 </span><span class="Delimiter">}</span> <span id="L156" class="LineNr">156 </span> <span id="L157" class="LineNr">157 </span><span class="muComment"># read the next grapheme from a stream of bytes</span> -<span id="L158" class="LineNr">158 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L158'>read-grapheme</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L158" class="LineNr">158 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L158'>read-grapheme</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L159" class="LineNr">159 </span> <span class="muComment"># if at eof, return EOF</span> <span id="L160" class="LineNr">160 </span> <span class="Delimiter">{</span> -<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> eof?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in +<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> eof?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in <span id="L162" class="LineNr">162 </span> compare eof?, <span class="Constant">0</span>/false <span id="L163" class="LineNr">163 </span> <span class="PreProc">break-if-=</span> <span id="L164" class="LineNr">164 </span> <span class="PreProc">return</span> <span class="Constant">0xffffffff</span> <span id="L165" class="LineNr">165 </span> <span class="Delimiter">}</span> -<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L273'>read-byte</a> in +<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L273'>read-byte</a> in <span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> num-trailers/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L168" class="LineNr">168 </span> $read-grapheme:compute-length: <span class="Delimiter">{</span> <span id="L169" class="LineNr">169 </span> <span class="muComment"># single byte: just return it</span> <span id="L170" class="LineNr">170 </span> compare c, <span class="Constant">0xc0</span> <span id="L171" class="LineNr">171 </span> <span class="Delimiter">{</span> <span id="L172" class="LineNr">172 </span> <span class="PreProc">break-if->=</span> -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L174" class="LineNr">174 </span> <span class="PreProc">return</span> g <span id="L175" class="LineNr">175 </span> <span class="Delimiter">}</span> <span id="L176" class="LineNr">176 </span> compare c, <span class="Constant">0xfe</span> <span id="L177" class="LineNr">177 </span> <span class="Delimiter">{</span> <span id="L178" class="LineNr">178 </span> <span class="PreProc">break-if-<</span> -<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L180" class="LineNr">180 </span> <span class="PreProc">return</span> g <span id="L181" class="LineNr">181 </span> <span class="Delimiter">}</span> <span id="L182" class="LineNr">182 </span> <span class="muComment"># 2 bytes</span> @@ -268,7 +267,7 @@ if ('onhashchange' in window) { <span id="L203" class="LineNr">203 </span>$read-grapheme:abort: <span class="Delimiter">{</span> <span id="L204" class="LineNr">204 </span> <span class="muComment"># TODO: print to stderr</span> <span id="L205" class="LineNr">205 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"utf-8 encodings larger than 4 bytes are not supported. First byte seen: "</span> -<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L207" class="LineNr">207 </span> <a href='304screen.subx.html#L226'>print-int32-hex-to-real-screen</a> n <span id="L208" class="LineNr">208 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"\n"</span> <span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> exit-status/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> @@ -281,8 +280,8 @@ if ('onhashchange' in window) { <span id="L216" class="LineNr">216 </span> <span class="Delimiter">{</span> <span id="L217" class="LineNr">217 </span> compare num-trailers, <span class="Constant">0</span> <span id="L218" class="LineNr">218 </span> <span class="PreProc">break-if-<=</span> -<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L273'>read-byte</a> in -<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy tmp +<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L273'>read-byte</a> in +<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> tmp2/eax: int <span class="Special"><-</span> copy tmp <span id="L221" class="LineNr">221 </span> tmp2 <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> tmp2, num-byte-shifts <span id="L222" class="LineNr">222 </span> result <span class="Special"><-</span> or tmp2 <span id="L223" class="LineNr">223 </span> <span class="muComment"># update loop state</span> @@ -297,44 +296,44 @@ if ('onhashchange' in window) { <span id="L232" class="LineNr">232 </span> <span class="PreProc">var</span> s: (stream byte <span class="Constant">0x30</span>) <span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> s2/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address s <span id="L234" class="LineNr">234 </span> <a href='108write.subx.html#L24'>write</a> s2, <span class="Constant">"aΒc世d界e"</span> -<span id="L235" class="LineNr">235 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 -<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L235" class="LineNr">235 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 +<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L237" class="LineNr">237 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x61</span>, <span class="Constant">"F - test grapheme/0"</span> -<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 -<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 +<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L240" class="LineNr">240 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x92ce</span>/greek-capital-letter-beta, <span class="Constant">"F - test grapheme/1"</span> -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 -<span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 +<span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L243" class="LineNr">243 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x63</span>, <span class="Constant">"F - test grapheme/2"</span> -<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L246" class="LineNr">246 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x96b8e4</span>, <span class="Constant">"F - test grapheme/3"</span> -<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 -<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 +<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L249" class="LineNr">249 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x64</span>, <span class="Constant">"F - test grapheme/4"</span> -<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 -<span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 +<span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L252" class="LineNr">252 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x8c95e7</span>, <span class="Constant">"F - test grapheme/5"</span> -<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 -<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2 +<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L255" class="LineNr">255 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x65</span>, <span class="Constant">"F - test grapheme/6"</span> <span id="L256" class="LineNr">256 </span><span class="Delimiter">}</span> <span id="L257" class="LineNr">257 </span> -<span id="L258" class="LineNr">258 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L258'>read-grapheme-buffered</a></span> in: (addr buffered-file)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> -<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> in +<span id="L258" class="LineNr">258 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L258'>read-grapheme-buffered</a></span> in: (addr buffered-file)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> +<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> in <span id="L260" class="LineNr">260 </span> <span class="PreProc">var</span> num-trailers/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L261" class="LineNr">261 </span> $read-grapheme-buffered:compute-length: <span class="Delimiter">{</span> <span id="L262" class="LineNr">262 </span> <span class="muComment"># single byte: just return it</span> <span id="L263" class="LineNr">263 </span> compare c, <span class="Constant">0xc0</span> <span id="L264" class="LineNr">264 </span> <span class="Delimiter">{</span> <span id="L265" class="LineNr">265 </span> <span class="PreProc">break-if->=</span> -<span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L267" class="LineNr">267 </span> <span class="PreProc">return</span> g <span id="L268" class="LineNr">268 </span> <span class="Delimiter">}</span> <span id="L269" class="LineNr">269 </span> compare c, <span class="Constant">0xfe</span> <span id="L270" class="LineNr">270 </span> <span class="Delimiter">{</span> <span id="L271" class="LineNr">271 </span> <span class="PreProc">break-if-<</span> -<span id="L272" class="LineNr">272 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L272" class="LineNr">272 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L273" class="LineNr">273 </span> <span class="PreProc">return</span> g <span id="L274" class="LineNr">274 </span> <span class="Delimiter">}</span> <span id="L275" class="LineNr">275 </span> <span class="muComment"># 2 bytes</span> @@ -361,7 +360,7 @@ if ('onhashchange' in window) { <span id="L296" class="LineNr">296 </span>$read-grapheme-buffered:abort: <span class="Delimiter">{</span> <span id="L297" class="LineNr">297 </span> <span class="muComment"># TODO: print to stderr</span> <span id="L298" class="LineNr">298 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"utf-8 encodings larger than 4 bytes are not supported. First byte seen: "</span> -<span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy c +<span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy c <span id="L300" class="LineNr">300 </span> <a href='304screen.subx.html#L226'>print-int32-hex-to-real-screen</a> n <span id="L301" class="LineNr">301 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"\n"</span> <span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> exit-status/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> @@ -374,8 +373,8 @@ if ('onhashchange' in window) { <span id="L309" class="LineNr">309 </span> <span class="Delimiter">{</span> <span id="L310" class="LineNr">310 </span> compare num-trailers, <span class="Constant">0</span> <span id="L311" class="LineNr">311 </span> <span class="PreProc">break-if-<=</span> -<span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> in -<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy tmp +<span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> in +<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> tmp2/eax: int <span class="Special"><-</span> copy tmp <span id="L314" class="LineNr">314 </span> tmp2 <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> tmp2, num-byte-shifts <span id="L315" class="LineNr">315 </span> result <span class="Special"><-</span> or tmp2 <span id="L316" class="LineNr">316 </span> <span class="muComment"># update loop state</span> @@ -387,9 +386,9 @@ if ('onhashchange' in window) { <span id="L322" class="LineNr">322 </span><span class="Delimiter">}</span> <span id="L323" class="LineNr">323 </span> <span id="L324" class="LineNr">324 </span><span class="muComment"># needed because available primitives only shift by a literal/constant number of bits</span> -<span id="L325" class="LineNr">325 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L325'>shift-left-bytes</a></span> n: int, k: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L325" class="LineNr">325 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L325'>shift-left-bytes</a></span> n: int, k: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L326" class="LineNr">326 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy n +<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy n <span id="L328" class="LineNr">328 </span> <span class="Delimiter">{</span> <span id="L329" class="LineNr">329 </span> compare i, k <span id="L330" class="LineNr">330 </span> <span class="PreProc">break-if->=</span> @@ -403,32 +402,32 @@ if ('onhashchange' in window) { <span id="L338" class="LineNr">338 </span><span class="Delimiter">}</span> <span id="L339" class="LineNr">339 </span> <span id="L340" class="LineNr">340 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L340'>test-shift-left-bytes-0</a></span> <span class="Delimiter">{</span> -<span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">0</span> +<span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">0</span> <span id="L342" class="LineNr">342 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L325'>shift-left-bytes</a> 0"</span> <span id="L343" class="LineNr">343 </span><span class="Delimiter">}</span> <span id="L344" class="LineNr">344 </span> <span id="L345" class="LineNr">345 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L345'>test-shift-left-bytes-1</a></span> <span class="Delimiter">{</span> -<span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">1</span> +<span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">1</span> <span id="L347" class="LineNr">347 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0x100</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L325'>shift-left-bytes</a> 1"</span> <span id="L348" class="LineNr">348 </span><span class="Delimiter">}</span> <span id="L349" class="LineNr">349 </span> <span id="L350" class="LineNr">350 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L350'>test-shift-left-bytes-2</a></span> <span class="Delimiter">{</span> -<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">2</span> +<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">2</span> <span id="L352" class="LineNr">352 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0x10000</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L325'>shift-left-bytes</a> 2"</span> <span id="L353" class="LineNr">353 </span><span class="Delimiter">}</span> <span id="L354" class="LineNr">354 </span> <span id="L355" class="LineNr">355 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L355'>test-shift-left-bytes-3</a></span> <span class="Delimiter">{</span> -<span id="L356" class="LineNr">356 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">3</span> +<span id="L356" class="LineNr">356 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">3</span> <span id="L357" class="LineNr">357 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0x1000000</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L325'>shift-left-bytes</a> 3"</span> <span id="L358" class="LineNr">358 </span><span class="Delimiter">}</span> <span id="L359" class="LineNr">359 </span> <span id="L360" class="LineNr">360 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L360'>test-shift-left-bytes-4</a></span> <span class="Delimiter">{</span> -<span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">4</span> +<span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">4</span> <span id="L362" class="LineNr">362 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L325'>shift-left-bytes</a> 4"</span> <span id="L363" class="LineNr">363 </span><span class="Delimiter">}</span> <span id="L364" class="LineNr">364 </span> <span id="L365" class="LineNr">365 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L365'>test-shift-left-bytes-5</a></span> <span class="Delimiter">{</span> -<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">5</span> +<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='403unicode.mu.html#L325'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">5</span> <span id="L367" class="LineNr">367 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">"F - <a href='403unicode.mu.html#L325'>shift-left-bytes</a> >4"</span> <span id="L368" class="LineNr">368 </span><span class="Delimiter">}</span> <span id="L369" class="LineNr">369 </span> @@ -436,7 +435,7 @@ if ('onhashchange' in window) { <span id="L371" class="LineNr">371 </span><span class="muComment"># this is like write-to-stream, except we skip leading 0 bytes</span> <span id="L372" class="LineNr">372 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L372'>write-grapheme</a></span> out: (addr stream byte), g: grapheme <span class="Delimiter">{</span> <span id="L373" class="LineNr">373 </span>$write-grapheme:body: <span class="Delimiter">{</span> -<span id="L374" class="LineNr">374 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L374" class="LineNr">374 </span> <span class="PreProc">var</span> c/eax: int <span class="Special"><-</span> copy g <span id="L375" class="LineNr">375 </span> <a href='115write-byte.subx.html#L208'>append-byte</a> out, c <span class="muComment"># first byte is always written</span> <span id="L376" class="LineNr">376 </span> c <span class="Special"><-</span> shift-right <span class="Constant">8</span> <span id="L377" class="LineNr">377 </span> compare c, <span class="Constant">0</span> diff --git a/html/linux/404stream.mu.html b/html/linux/404stream.mu.html index 3f6e87e9..8680d735 100644 --- a/html/linux/404stream.mu.html +++ b/html/linux/404stream.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.muRegEcx { color: #af875f; } -.muRegEax { color: #875f00; } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .Special { color: #ff6060; } .muTest { color: #5f8700; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEbx { color: #8787af; } +.muComment { color: #005faf; } --> </style> @@ -67,7 +66,7 @@ if ('onhashchange' in window) { <span id="L5" class="LineNr"> 5 </span> <span class="muComment"># step 1: initialize</span> <span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> s: (stream int <span class="Constant">4</span>) <span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> s2/<span class="muRegEcx">ecx</span>: (addr stream int) <span class="Special"><-</span> address s -<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2 +<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> tmp/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2 <span id="L9" class="LineNr"> 9 </span> <a href='401test.mu.html#L3'>check</a> tmp, <span class="Constant">"F - <a href='404stream.mu.html#L3'>test-stream</a>/empty?/0"</span> <span id="L10" class="LineNr">10 </span> tmp <span class="Special"><-</span> <a href='309stream.subx.html#L30'>stream-full?</a> s2 <span id="L11" class="LineNr">11 </span> <a href='401test.mu.html#L8'>check-not</a> tmp, <span class="Constant">"F - <a href='404stream.mu.html#L3'>test-stream</a>/full?/0"</span> @@ -98,7 +97,7 @@ if ('onhashchange' in window) { <span id="L36" class="LineNr">36 </span> <span class="muComment"># write an int to a stream of capacity 1</span> <span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> s: (stream int <span class="Constant">1</span>) <span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> s2/<span class="muRegEcx">ecx</span>: (addr stream int) <span class="Special"><-</span> address s -<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L30'>stream-full?</a> s2 +<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> tmp/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L30'>stream-full?</a> s2 <span id="L40" class="LineNr">40 </span> <a href='401test.mu.html#L8'>check-not</a> tmp, <span class="Constant">"F - test-stream-full?/pre"</span> <span id="L41" class="LineNr">41 </span> <span class="PreProc">var</span> x: int <span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> x2/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> address x @@ -109,9 +108,9 @@ if ('onhashchange' in window) { <span id="L47" class="LineNr">47 </span> <span id="L48" class="LineNr">48 </span><span class="PreProc">fn</span> <span class="muTest"><a href='404stream.mu.html#L48'>test-fake-input-buffered-file</a></span> <span class="Delimiter">{</span> <span id="L49" class="LineNr">49 </span> <span class="PreProc">var</span> foo: (handle buffered-file) -<span id="L50" class="LineNr">50 </span> <span class="PreProc">var</span> foo-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> address foo +<span id="L50" class="LineNr">50 </span> <span class="PreProc">var</span> foo-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> address foo <span id="L51" class="LineNr">51 </span> <a href='306files.subx.html#L86'>populate-buffered-file-containing</a> <span class="Constant">"abc"</span>, foo-ah -<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> foo-addr/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> foo +<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> foo-addr/eax: (addr buffered-file) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> foo <span id="L53" class="LineNr">53 </span> <span class="PreProc">var</span> s: (stream byte <span class="Constant">0x100</span>) <span id="L54" class="LineNr">54 </span> <span class="PreProc">var</span> result/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address s <span id="L55" class="LineNr">55 </span> <a href='122read-line.subx.html#L9'>read-line-buffered</a> foo-addr, result @@ -120,9 +119,9 @@ if ('onhashchange' in window) { <span id="L58" class="LineNr">58 </span> <span id="L59" class="LineNr">59 </span><span class="PreProc">fn</span> <span class="muTest"><a href='404stream.mu.html#L59'>test-fake-output-buffered-file</a></span> <span class="Delimiter">{</span> <span id="L60" class="LineNr">60 </span> <span class="PreProc">var</span> foo: (handle buffered-file) -<span id="L61" class="LineNr">61 </span> <span class="PreProc">var</span> foo-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> address foo +<span id="L61" class="LineNr">61 </span> <span class="PreProc">var</span> foo-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> address foo <span id="L62" class="LineNr">62 </span> <a href='306files.subx.html#L133'>new-buffered-file</a> foo-ah -<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> foo-addr/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> foo +<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> foo-addr/eax: (addr buffered-file) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> foo <span id="L64" class="LineNr">64 </span> <a href='116write-buffered.subx.html#L8'>write-buffered</a> foo-addr, <span class="Constant">"abc"</span> <span id="L65" class="LineNr">65 </span> <span class="PreProc">var</span> s: (stream byte <span class="Constant">0x100</span>) <span id="L66" class="LineNr">66 </span> <span class="PreProc">var</span> result/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address s diff --git a/html/linux/405screen.mu.html b/html/linux/405screen.mu.html index 11e3f265..3a38e8bd 100644 --- a/html/linux/405screen.mu.html +++ b/html/linux/405screen.mu.html @@ -17,18 +17,17 @@ a { color:inherit; } .LineNr { } .Delimiter { color: #c000c0; } .CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .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; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -95,7 +94,7 @@ if ('onhashchange' in window) { <span id="L29" class="LineNr"> 29 </span> <span id="L30" class="LineNr"> 30 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L30'>initialize-screen</a></span> <a href='405screen.mu.html#L9'>screen</a>: (addr <a href='405screen.mu.html#L9'>screen</a>), nrows: int, ncols: int <span class="Delimiter">{</span> <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy <a href='405screen.mu.html#L9'>screen</a> -<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L34" class="LineNr"> 34 </span> <span class="muComment"># screen->num-rows = nrows</span> <span id="L35" class="LineNr"> 35 </span> dest <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, num-rows @@ -118,13 +117,13 @@ if ('onhashchange' in window) { <span id="L52" class="LineNr"> 52 </span> dest <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, cursor-col <span id="L53" class="LineNr"> 53 </span> copy-to *dest, <span class="Constant">1</span> <span id="L54" class="LineNr"> 54 </span> <span class="muComment"># screen->curr-attributes->background-color = 7 (simulate light background)</span> -<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, curr-attributes +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> tmp2/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, curr-attributes <span id="L56" class="LineNr"> 56 </span> dest <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> tmp2, background-color <span id="L57" class="LineNr"> 57 </span> copy-to *dest, <span class="Constant">7</span> <span id="L58" class="LineNr"> 58 </span><span class="Delimiter">}</span> <span id="L59" class="LineNr"> 59 </span> -<span id="L60" class="LineNr"> 60 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L60'>screen-size</a></span> <a href='405screen.mu.html#L9'>screen</a>: (addr <a href='405screen.mu.html#L9'>screen</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> -<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> nrows/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L60" class="LineNr"> 60 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L60'>screen-size</a></span> <a href='405screen.mu.html#L9'>screen</a>: (addr <a href='405screen.mu.html#L9'>screen</a>)<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> nrows/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> ncols/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L63" class="LineNr"> 63 </span> compare <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">0</span> <span id="L64" class="LineNr"> 64 </span> <span class="Delimiter">{</span> @@ -152,7 +151,7 @@ if ('onhashchange' in window) { <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> space/<span class="muRegEdi">edi</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x20</span> <span id="L87" class="LineNr"> 87 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>, <span class="Constant">1</span> <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy <a href='405screen.mu.html#L9'>screen</a> -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> nrows/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, num-rows <span id="L91" class="LineNr"> 91 </span> <span class="Delimiter">{</span> <span id="L92" class="LineNr"> 92 </span> compare i, *nrows @@ -195,8 +194,8 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr"> 129 </span> <span class="Delimiter">}</span> <span id="L130" class="LineNr"> 130 </span> <span class="muComment"># row > num-rows saturates to num-rows</span> <span id="L131" class="LineNr"> 131 </span> <span class="Delimiter">{</span> -<span id="L132" class="LineNr"> 132 </span> <span class="PreProc">var</span> nrows-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, num-rows -<span id="L133" class="LineNr"> 133 </span> <span class="PreProc">var</span> nrows/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *nrows-addr +<span id="L132" class="LineNr"> 132 </span> <span class="PreProc">var</span> nrows-addr/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, num-rows +<span id="L133" class="LineNr"> 133 </span> <span class="PreProc">var</span> nrows/eax: int <span class="Special"><-</span> copy *nrows-addr <span id="L134" class="LineNr"> 134 </span> compare row, nrows <span id="L135" class="LineNr"> 135 </span> <span class="PreProc">break-if-<=</span> <span id="L136" class="LineNr"> 136 </span> copy-to row, nrows @@ -215,8 +214,8 @@ if ('onhashchange' in window) { <span id="L149" class="LineNr"> 149 </span> <span class="Delimiter">}</span> <span id="L150" class="LineNr"> 150 </span> <span class="muComment"># column > num-cols saturates to num-cols+1 (so wrapping to next row)</span> <span id="L151" class="LineNr"> 151 </span> <span class="Delimiter">{</span> -<span id="L152" class="LineNr"> 152 </span> <span class="PreProc">var</span> ncols-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, num-cols -<span id="L153" class="LineNr"> 153 </span> <span class="PreProc">var</span> ncols/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *ncols-addr +<span id="L152" class="LineNr"> 152 </span> <span class="PreProc">var</span> ncols-addr/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, num-cols +<span id="L153" class="LineNr"> 153 </span> <span class="PreProc">var</span> ncols/eax: int <span class="Special"><-</span> copy *ncols-addr <span id="L154" class="LineNr"> 154 </span> compare column, ncols <span id="L155" class="LineNr"> 155 </span> <span class="PreProc">break-if-<=</span> <span id="L156" class="LineNr"> 156 </span> copy-to column, ncols @@ -224,7 +223,7 @@ if ('onhashchange' in window) { <span id="L158" class="LineNr"> 158 </span> <span class="Delimiter">}</span> <span id="L159" class="LineNr"> 159 </span> <span class="muComment"># screen->cursor-row = row</span> <span id="L160" class="LineNr"> 160 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, cursor-row -<span id="L161" class="LineNr"> 161 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy row +<span id="L161" class="LineNr"> 161 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> copy row <span id="L162" class="LineNr"> 162 </span> copy-to *dest, src <span id="L163" class="LineNr"> 163 </span> <span class="muComment"># screen->cursor-col = column</span> <span id="L164" class="LineNr"> 164 </span> dest <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, cursor-col @@ -249,10 +248,10 @@ if ('onhashchange' in window) { <span id="L183" class="LineNr"> 183 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L183'>print-stream</a></span> _screen: (addr <a href='405screen.mu.html#L9'>screen</a>), s: (addr stream byte) <span class="Delimiter">{</span> <span id="L184" class="LineNr"> 184 </span> <span class="PreProc">var</span> <a href='405screen.mu.html#L9'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L185" class="LineNr"> 185 </span> <span class="Delimiter">{</span> -<span id="L186" class="LineNr"> 186 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s +<span id="L186" class="LineNr"> 186 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s <span id="L187" class="LineNr"> 187 </span> compare done?, <span class="Constant">0</span> <span id="L188" class="LineNr"> 188 </span> <span class="PreProc">break-if-!=</span> -<span id="L189" class="LineNr"> 189 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s +<span id="L189" class="LineNr"> 189 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s <span id="L190" class="LineNr"> 190 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, g <span id="L191" class="LineNr"> 191 </span> <span class="PreProc">loop</span> <span id="L192" class="LineNr"> 192 </span> <span class="Delimiter">}</span> @@ -261,7 +260,7 @@ if ('onhashchange' in window) { <span id="L195" class="LineNr"> 195 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L195'>print-array-of-ints-in-decimal</a></span> <a href='405screen.mu.html#L9'>screen</a>: (addr <a href='405screen.mu.html#L9'>screen</a>), _a: (addr array int) <span class="Delimiter">{</span> <span id="L196" class="LineNr"> 196 </span> <span class="PreProc">var</span> a/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _a <span id="L197" class="LineNr"> 197 </span> <span class="PreProc">var</span> max/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length a -<span id="L198" class="LineNr"> 198 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L198" class="LineNr"> 198 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L199" class="LineNr"> 199 </span> <span class="Delimiter">{</span> <span id="L200" class="LineNr"> 200 </span> compare i, max <span id="L201" class="LineNr"> 201 </span> <span class="PreProc">break-if->=</span> @@ -299,16 +298,16 @@ if ('onhashchange' in window) { <span id="L233" class="LineNr"> 233 </span> <span class="PreProc">var</span> cursor-row-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, cursor-row <span id="L234" class="LineNr"> 234 </span> increment *cursor-row-addr <span id="L235" class="LineNr"> 235 </span> <span class="muComment"># scroll</span> -<span id="L236" class="LineNr"> 236 </span> <span class="PreProc">var</span> num-rows-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, num-rows -<span id="L237" class="LineNr"> 237 </span> <span class="PreProc">var</span> num-rows/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *num-rows-addr +<span id="L236" class="LineNr"> 236 </span> <span class="PreProc">var</span> num-rows-addr/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, num-rows +<span id="L237" class="LineNr"> 237 </span> <span class="PreProc">var</span> num-rows/eax: int <span class="Special"><-</span> copy *num-rows-addr <span id="L238" class="LineNr"> 238 </span> compare *cursor-row-addr, num-rows <span id="L239" class="LineNr"> 239 </span> <span class="PreProc">break-if-<=</span> <span id="L240" class="LineNr"> 240 </span> copy-to *cursor-row-addr, num-rows <span id="L241" class="LineNr"> 241 </span> <span class="muComment"># if (top-index > data size) top-index = 0, otherwise top-index += num-cols</span> <span id="L242" class="LineNr"> 242 </span> $print-grapheme:perform-scroll: <span class="Delimiter">{</span> <span id="L243" class="LineNr"> 243 </span> <span class="PreProc">var</span> top-index-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, top-index -<span id="L244" class="LineNr"> 244 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L245" class="LineNr"> 245 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L244" class="LineNr"> 244 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L245" class="LineNr"> 245 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L246" class="LineNr"> 246 </span> <span class="PreProc">var</span> max-index/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> length data <span id="L247" class="LineNr"> 247 </span> compare *top-index-addr, max-index <span id="L248" class="LineNr"> 248 </span> <span class="Delimiter">{</span> @@ -326,13 +325,13 @@ if ('onhashchange' in window) { <span id="L260" class="LineNr"> 260 </span><span class="CommentedCode">#? print-string-to-real-screen "printing grapheme at screen index "</span> <span id="L261" class="LineNr"> 261 </span><span class="CommentedCode">#? print-int32-hex-to-real-screen idx</span> <span id="L262" class="LineNr"> 262 </span><span class="CommentedCode">#? print-string-to-real-screen ": "</span> -<span id="L263" class="LineNr"> 263 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L263" class="LineNr"> 263 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L265" class="LineNr"> 265 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx <span id="L266" class="LineNr"> 266 </span> <span class="PreProc">var</span> dest-cell/<span class="muRegEcx">ecx</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> src-cell/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, curr-attributes +<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> src-cell/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, curr-attributes <span id="L268" class="LineNr"> 268 </span> copy-object src-cell, dest-cell -<span id="L269" class="LineNr"> 269 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> dest-cell, data +<span id="L269" class="LineNr"> 269 </span> <span class="PreProc">var</span> dest/eax: (addr grapheme) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> dest-cell, data <span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> c2/<span class="muRegEcx">ecx</span>: grapheme <span class="Special"><-</span> copy c <span id="L271" class="LineNr"> 271 </span><span class="CommentedCode">#? print-grapheme-to-real-screen c2</span> <span id="L272" class="LineNr"> 272 </span><span class="CommentedCode">#? print-string-to-real-screen "\n"</span> @@ -343,26 +342,26 @@ if ('onhashchange' in window) { <span id="L277" class="LineNr"> 277 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L277'>current-screen-cell-index</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>)<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L278" class="LineNr"> 278 </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"><-</span> copy screen-on-stack <span id="L279" class="LineNr"> 279 </span> <span class="PreProc">var</span> cursor-row-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, cursor-row -<span id="L280" class="LineNr"> 280 </span> <span class="PreProc">var</span> cursor-col-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, cursor-col +<span id="L280" class="LineNr"> 280 </span> <span class="PreProc">var</span> cursor-col-addr/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, cursor-col <span id="L281" class="LineNr"> 281 </span> <span class="PreProc">var</span> result/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L285'>screen-cell-index</a> <a href='405screen.mu.html#L9'>screen</a>, *cursor-row-addr, *cursor-col-addr <span id="L282" class="LineNr"> 282 </span> <span class="PreProc">return</span> result <span id="L283" class="LineNr"> 283 </span><span class="Delimiter">}</span> <span id="L284" class="LineNr"> 284 </span> <span id="L285" class="LineNr"> 285 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L285'>screen-cell-index</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L286" class="LineNr"> 286 </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"><-</span> copy screen-on-stack -<span id="L287" class="LineNr"> 287 </span> <span class="PreProc">var</span> num-cols-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, num-cols -<span id="L288" class="LineNr"> 288 </span> <span class="PreProc">var</span> num-cols/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *num-cols-addr +<span id="L287" class="LineNr"> 287 </span> <span class="PreProc">var</span> num-cols-addr/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, num-cols +<span id="L288" class="LineNr"> 288 </span> <span class="PreProc">var</span> num-cols/eax: int <span class="Special"><-</span> copy *num-cols-addr <span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> result/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy row <span id="L290" class="LineNr"> 290 </span> result <span class="Special"><-</span> subtract <span class="Constant">1</span> <span id="L291" class="LineNr"> 291 </span> result <span class="Special"><-</span> multiply num-cols <span id="L292" class="LineNr"> 292 </span> result <span class="Special"><-</span> add col <span id="L293" class="LineNr"> 293 </span> result <span class="Special"><-</span> subtract <span class="Constant">1</span> <span id="L294" class="LineNr"> 294 </span> <span class="muComment"># result = (result + top-index) % data length</span> -<span id="L295" class="LineNr"> 295 </span> <span class="PreProc">var</span> top-index-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, top-index +<span id="L295" class="LineNr"> 295 </span> <span class="PreProc">var</span> top-index-addr/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, top-index <span id="L296" class="LineNr"> 296 </span> result <span class="Special"><-</span> add *top-index-addr -<span id="L297" class="LineNr"> 297 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, data -<span id="L298" class="LineNr"> 298 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L299" class="LineNr"> 299 </span> <span class="PreProc">var</span> max-index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> length data +<span id="L297" class="LineNr"> 297 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> <a href='405screen.mu.html#L9'>screen</a>, data +<span id="L298" class="LineNr"> 298 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L299" class="LineNr"> 299 </span> <span class="PreProc">var</span> max-index/eax: int <span class="Special"><-</span> length data <span id="L300" class="LineNr"> 300 </span> compare result, max-index <span id="L301" class="LineNr"> 301 </span> <span class="Delimiter">{</span> <span id="L302" class="LineNr"> 302 </span> <span class="PreProc">break-if-<</span> @@ -371,135 +370,135 @@ if ('onhashchange' in window) { <span id="L305" class="LineNr"> 305 </span> <span class="PreProc">return</span> result <span id="L306" class="LineNr"> 306 </span><span class="Delimiter">}</span> <span id="L307" class="LineNr"> 307 </span> -<span id="L308" class="LineNr"> 308 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L308'>screen-grapheme-at</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L308" class="LineNr"> 308 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L308'>screen-grapheme-at</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L309" class="LineNr"> 309 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack <span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L285'>screen-cell-index</a> screen-addr, row, col -<span id="L311" class="LineNr"> 311 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> screen-addr, idx +<span id="L311" class="LineNr"> 311 </span> <span class="PreProc">var</span> result/eax: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> screen-addr, idx <span id="L312" class="LineNr"> 312 </span> <span class="PreProc">return</span> result <span id="L313" class="LineNr"> 313 </span><span class="Delimiter">}</span> <span id="L314" class="LineNr"> 314 </span> -<span id="L315" class="LineNr"> 315 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L315" class="LineNr"> 315 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack -<span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L318" class="LineNr"> 318 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L318" class="LineNr"> 318 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L319" class="LineNr"> 319 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L320" class="LineNr"> 320 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L321" class="LineNr"> 321 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L322" class="LineNr"> 322 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, data +<span id="L321" class="LineNr"> 321 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L322" class="LineNr"> 322 </span> <span class="PreProc">var</span> src/eax: (addr grapheme) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, data <span id="L323" class="LineNr"> 323 </span> <span class="PreProc">return</span> *src <span id="L324" class="LineNr"> 324 </span><span class="Delimiter">}</span> <span id="L325" class="LineNr"> 325 </span> -<span id="L326" class="LineNr"> 326 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L326'>screen-color-at</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L326" class="LineNr"> 326 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L326'>screen-color-at</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L327" class="LineNr"> 327 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack <span id="L328" class="LineNr"> 328 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L285'>screen-cell-index</a> screen-addr, row, col -<span id="L329" class="LineNr"> 329 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L333'>screen-color-at-idx</a> screen-addr, idx +<span id="L329" class="LineNr"> 329 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='405screen.mu.html#L333'>screen-color-at-idx</a> screen-addr, idx <span id="L330" class="LineNr"> 330 </span> <span class="PreProc">return</span> result <span id="L331" class="LineNr"> 331 </span><span class="Delimiter">}</span> <span id="L332" class="LineNr"> 332 </span> -<span id="L333" class="LineNr"> 333 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L333'>screen-color-at-idx</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L333" class="LineNr"> 333 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L333'>screen-color-at-idx</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L334" class="LineNr"> 334 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack -<span id="L335" class="LineNr"> 335 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L336" class="LineNr"> 336 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L335" class="LineNr"> 335 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L336" class="LineNr"> 336 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L337" class="LineNr"> 337 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L338" class="LineNr"> 338 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, color -<span id="L341" class="LineNr"> 341 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *src +<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, color +<span id="L341" class="LineNr"> 341 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy *src <span id="L342" class="LineNr"> 342 </span> <span class="PreProc">return</span> result <span id="L343" class="LineNr"> 343 </span><span class="Delimiter">}</span> <span id="L344" class="LineNr"> 344 </span> -<span id="L345" class="LineNr"> 345 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L345'>screen-background-color-at</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L345" class="LineNr"> 345 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L345'>screen-background-color-at</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L346" class="LineNr"> 346 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack <span id="L347" class="LineNr"> 347 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L285'>screen-cell-index</a> screen-addr, row, col -<span id="L348" class="LineNr"> 348 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L352'>screen-background-color-at-idx</a> screen-addr, idx +<span id="L348" class="LineNr"> 348 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='405screen.mu.html#L352'>screen-background-color-at-idx</a> screen-addr, idx <span id="L349" class="LineNr"> 349 </span> <span class="PreProc">return</span> result <span id="L350" class="LineNr"> 350 </span><span class="Delimiter">}</span> <span id="L351" class="LineNr"> 351 </span> -<span id="L352" class="LineNr"> 352 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L352'>screen-background-color-at-idx</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L352" class="LineNr"> 352 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L352'>screen-background-color-at-idx</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack -<span id="L354" class="LineNr"> 354 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L355" class="LineNr"> 355 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L354" class="LineNr"> 354 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L355" class="LineNr"> 355 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L356" class="LineNr"> 356 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L357" class="LineNr"> 357 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L358" class="LineNr"> 358 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, background-color +<span id="L358" class="LineNr"> 358 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, background-color <span id="L360" class="LineNr"> 360 </span> <span class="PreProc">return</span> *src <span id="L361" class="LineNr"> 361 </span><span class="Delimiter">}</span> <span id="L362" class="LineNr"> 362 </span> -<span id="L363" class="LineNr"> 363 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L363'>screen-bold-at?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L363" class="LineNr"> 363 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L363'>screen-bold-at?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L364" class="LineNr"> 364 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack <span id="L365" class="LineNr"> 365 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L285'>screen-cell-index</a> screen-addr, row, col -<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L370'>screen-bold-at-idx?</a> screen-addr, idx +<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L370'>screen-bold-at-idx?</a> screen-addr, idx <span id="L367" class="LineNr"> 367 </span> <span class="PreProc">return</span> result <span id="L368" class="LineNr"> 368 </span><span class="Delimiter">}</span> <span id="L369" class="LineNr"> 369 </span> -<span id="L370" class="LineNr"> 370 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L370'>screen-bold-at-idx?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L370" class="LineNr"> 370 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L370'>screen-bold-at-idx?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack -<span id="L372" class="LineNr"> 372 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L372" class="LineNr"> 372 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L374" class="LineNr"> 374 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L375" class="LineNr"> 375 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L376" class="LineNr"> 376 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L377" class="LineNr"> 377 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, bold? +<span id="L376" class="LineNr"> 376 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L377" class="LineNr"> 377 </span> <span class="PreProc">var</span> src/eax: (addr boolean) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, bold? <span id="L378" class="LineNr"> 378 </span> <span class="PreProc">return</span> *src <span id="L379" class="LineNr"> 379 </span><span class="Delimiter">}</span> <span id="L380" class="LineNr"> 380 </span> -<span id="L381" class="LineNr"> 381 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L381'>screen-underline-at?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L381" class="LineNr"> 381 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L381'>screen-underline-at?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L382" class="LineNr"> 382 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack <span id="L383" class="LineNr"> 383 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L285'>screen-cell-index</a> screen-addr, row, col -<span id="L384" class="LineNr"> 384 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L388'>screen-underline-at-idx?</a> screen-addr, idx +<span id="L384" class="LineNr"> 384 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L388'>screen-underline-at-idx?</a> screen-addr, idx <span id="L385" class="LineNr"> 385 </span> <span class="PreProc">return</span> result <span id="L386" class="LineNr"> 386 </span><span class="Delimiter">}</span> <span id="L387" class="LineNr"> 387 </span> -<span id="L388" class="LineNr"> 388 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L388'>screen-underline-at-idx?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L388" class="LineNr"> 388 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L388'>screen-underline-at-idx?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack -<span id="L390" class="LineNr"> 390 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L390" class="LineNr"> 390 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L393" class="LineNr"> 393 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L395" class="LineNr"> 395 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, underline? +<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L395" class="LineNr"> 395 </span> <span class="PreProc">var</span> src/eax: (addr boolean) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, underline? <span id="L396" class="LineNr"> 396 </span> <span class="PreProc">return</span> *src <span id="L397" class="LineNr"> 397 </span><span class="Delimiter">}</span> <span id="L398" class="LineNr"> 398 </span> -<span id="L399" class="LineNr"> 399 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L399'>screen-reverse-at?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L399" class="LineNr"> 399 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L399'>screen-reverse-at?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L400" class="LineNr"> 400 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack <span id="L401" class="LineNr"> 401 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L285'>screen-cell-index</a> screen-addr, row, col -<span id="L402" class="LineNr"> 402 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L406'>screen-reverse-at-idx?</a> screen-addr, idx +<span id="L402" class="LineNr"> 402 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L406'>screen-reverse-at-idx?</a> screen-addr, idx <span id="L403" class="LineNr"> 403 </span> <span class="PreProc">return</span> result <span id="L404" class="LineNr"> 404 </span><span class="Delimiter">}</span> <span id="L405" class="LineNr"> 405 </span> -<span id="L406" class="LineNr"> 406 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L406'>screen-reverse-at-idx?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L406" class="LineNr"> 406 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L406'>screen-reverse-at-idx?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L407" class="LineNr"> 407 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack -<span id="L408" class="LineNr"> 408 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L409" class="LineNr"> 409 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L408" class="LineNr"> 408 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L409" class="LineNr"> 409 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L410" class="LineNr"> 410 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L411" class="LineNr"> 411 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L413" class="LineNr"> 413 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, reverse? +<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L413" class="LineNr"> 413 </span> <span class="PreProc">var</span> src/eax: (addr boolean) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, reverse? <span id="L414" class="LineNr"> 414 </span> <span class="PreProc">return</span> *src <span id="L415" class="LineNr"> 415 </span><span class="Delimiter">}</span> <span id="L416" class="LineNr"> 416 </span> -<span id="L417" class="LineNr"> 417 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L417'>screen-blink-at?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L417" class="LineNr"> 417 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L417'>screen-blink-at?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), row: int, col: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L418" class="LineNr"> 418 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack <span id="L419" class="LineNr"> 419 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L285'>screen-cell-index</a> screen-addr, row, col -<span id="L420" class="LineNr"> 420 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L424'>screen-blink-at-idx?</a> screen-addr, idx +<span id="L420" class="LineNr"> 420 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L424'>screen-blink-at-idx?</a> screen-addr, idx <span id="L421" class="LineNr"> 421 </span> <span class="PreProc">return</span> result <span id="L422" class="LineNr"> 422 </span><span class="Delimiter">}</span> <span id="L423" class="LineNr"> 423 </span> -<span id="L424" class="LineNr"> 424 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L424'>screen-blink-at-idx?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L424" class="LineNr"> 424 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L424'>screen-blink-at-idx?</a></span> screen-on-stack: (addr <a href='405screen.mu.html#L9'>screen</a>), idx-on-stack: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L425" class="LineNr"> 425 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy screen-on-stack -<span id="L426" class="LineNr"> 426 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data -<span id="L427" class="LineNr"> 427 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L426" class="LineNr"> 426 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, data +<span id="L427" class="LineNr"> 427 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L428" class="LineNr"> 428 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy idx-on-stack <span id="L429" class="LineNr"> 429 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, idx -<span id="L430" class="LineNr"> 430 </span> <span class="PreProc">var</span> cell/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L431" class="LineNr"> 431 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, blink? +<span id="L430" class="LineNr"> 430 </span> <span class="PreProc">var</span> cell/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data, offset +<span id="L431" class="LineNr"> 431 </span> <span class="PreProc">var</span> src/eax: (addr boolean) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> cell, blink? <span id="L432" class="LineNr"> 432 </span> <span class="PreProc">return</span> *src <span id="L433" class="LineNr"> 433 </span><span class="Delimiter">}</span> <span id="L434" class="LineNr"> 434 </span> <span id="L435" class="LineNr"> 435 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='405screen.mu.html#L435'>print-code-point</a></span> <a href='405screen.mu.html#L9'>screen</a>: (addr <a href='405screen.mu.html#L9'>screen</a>), c: code-point <span class="Delimiter">{</span> -<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> c +<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> c <span id="L437" class="LineNr"> 437 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, g <span id="L438" class="LineNr"> 438 </span><span class="Delimiter">}</span> <span id="L439" class="LineNr"> 439 </span> @@ -516,10 +515,10 @@ if ('onhashchange' in window) { <span id="L450" class="LineNr"> 450 </span> <a href='117write-int-hex.subx.html#L178'>write-int32-hex</a> s2-addr, n <span id="L451" class="LineNr"> 451 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEdi">edi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy <a href='405screen.mu.html#L9'>screen</a> <span id="L452" class="LineNr"> 452 </span> <span class="Delimiter">{</span> -<span id="L453" class="LineNr"> 453 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2-addr +<span id="L453" class="LineNr"> 453 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2-addr <span id="L454" class="LineNr"> 454 </span> compare done?, <span class="Constant">0</span> <span id="L455" class="LineNr"> 455 </span> <span class="PreProc">break-if-!=</span> -<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2-addr +<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2-addr <span id="L457" class="LineNr"> 457 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, g <span id="L458" class="LineNr"> 458 </span> <span class="PreProc">loop</span> <span id="L459" class="LineNr"> 459 </span> <span class="Delimiter">}</span> @@ -538,10 +537,10 @@ if ('onhashchange' in window) { <span id="L472" class="LineNr"> 472 </span> <a href='117write-int-hex.subx.html#L209'>write-int32-hex-bits</a> s2-addr, n, bits <span id="L473" class="LineNr"> 473 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEdi">edi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy <a href='405screen.mu.html#L9'>screen</a> <span id="L474" class="LineNr"> 474 </span> <span class="Delimiter">{</span> -<span id="L475" class="LineNr"> 475 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2-addr +<span id="L475" class="LineNr"> 475 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2-addr <span id="L476" class="LineNr"> 476 </span> compare done?, <span class="Constant">0</span> <span id="L477" class="LineNr"> 477 </span> <span class="PreProc">break-if-!=</span> -<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2-addr +<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2-addr <span id="L479" class="LineNr"> 479 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, g <span id="L480" class="LineNr"> 480 </span> <span class="PreProc">loop</span> <span id="L481" class="LineNr"> 481 </span> <span class="Delimiter">}</span> @@ -560,10 +559,10 @@ if ('onhashchange' in window) { <span id="L494" class="LineNr"> 494 </span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> s2-addr, n <span id="L495" class="LineNr"> 495 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEdi">edi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy <a href='405screen.mu.html#L9'>screen</a> <span id="L496" class="LineNr"> 496 </span> <span class="Delimiter">{</span> -<span id="L497" class="LineNr"> 497 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2-addr +<span id="L497" class="LineNr"> 497 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2-addr <span id="L498" class="LineNr"> 498 </span> compare done?, <span class="Constant">0</span> <span id="L499" class="LineNr"> 499 </span> <span class="PreProc">break-if-!=</span> -<span id="L500" class="LineNr"> 500 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2-addr +<span id="L500" class="LineNr"> 500 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> s2-addr <span id="L501" class="LineNr"> 501 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, g <span id="L502" class="LineNr"> 502 </span> <span class="PreProc">loop</span> <span id="L503" class="LineNr"> 503 </span> <span class="Delimiter">}</span> @@ -580,9 +579,9 @@ if ('onhashchange' in window) { <span id="L514" class="LineNr"> 514 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy <a href='405screen.mu.html#L9'>screen</a> <span id="L515" class="LineNr"> 515 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, curr-attributes <span id="L516" class="LineNr"> 516 </span> <span class="PreProc">var</span> default-cell: <a href='405screen.mu.html#L20'>screen-cell</a> -<span id="L517" class="LineNr"> 517 </span> <span class="PreProc">var</span> bg/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> default-cell, background-color +<span id="L517" class="LineNr"> 517 </span> <span class="PreProc">var</span> bg/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> default-cell, background-color <span id="L518" class="LineNr"> 518 </span> copy-to *bg, <span class="Constant">7</span> -<span id="L519" class="LineNr"> 519 </span> <span class="PreProc">var</span> default-cell-addr/<span class="muRegEax">eax</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> address default-cell +<span id="L519" class="LineNr"> 519 </span> <span class="PreProc">var</span> default-cell-addr/eax: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> address default-cell <span id="L520" class="LineNr"> 520 </span> copy-object default-cell-addr, dest <span id="L521" class="LineNr"> 521 </span><span class="Delimiter">}</span> <span id="L522" class="LineNr"> 522 </span> @@ -597,10 +596,10 @@ if ('onhashchange' in window) { <span id="L531" class="LineNr"> 531 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEsi">esi</span>: (addr <a href='405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy <a href='405screen.mu.html#L9'>screen</a> <span id="L532" class="LineNr"> 532 </span> <span class="PreProc">var</span> attr/<span class="muRegEcx">ecx</span>: (addr <a href='405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> screen-addr, curr-attributes <span id="L533" class="LineNr"> 533 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> attr, color -<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy fg +<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> copy fg <span id="L535" class="LineNr"> 535 </span> copy-to *dest, src <span id="L536" class="LineNr"> 536 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> attr, background-color -<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy bg +<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> copy bg <span id="L538" class="LineNr"> 538 </span> copy-to *dest, src <span id="L539" class="LineNr"> 539 </span><span class="Delimiter">}</span> <span id="L540" class="LineNr"> 540 </span> @@ -702,12 +701,12 @@ if ('onhashchange' in window) { <span id="L636" class="LineNr"> 636 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L637" class="LineNr"> 637 </span> <a href='108write.subx.html#L24'>write</a> e-addr, expected <span id="L638" class="LineNr"> 638 </span> <span class="Delimiter">{</span> -<span id="L639" class="LineNr"> 639 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L639" class="LineNr"> 639 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L640" class="LineNr"> 640 </span> compare done?, <span class="Constant">0</span> <span id="L641" class="LineNr"> 641 </span> <span class="PreProc">break-if-!=</span> -<span id="L642" class="LineNr"> 642 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L642" class="LineNr"> 642 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L643" class="LineNr"> 643 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L644" class="LineNr"> 644 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr +<span id="L644" class="LineNr"> 644 </span> <span class="PreProc">var</span> expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr <span id="L645" class="LineNr"> 645 </span> <span class="muComment"># compare graphemes</span> <span id="L646" class="LineNr"> 646 </span> $check-screen-row-from:compare-graphemes: <span class="Delimiter">{</span> <span id="L647" class="LineNr"> 647 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -756,12 +755,12 @@ if ('onhashchange' in window) { <span id="L690" class="LineNr"> 690 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L691" class="LineNr"> 691 </span> <a href='108write.subx.html#L24'>write</a> e-addr, expected <span id="L692" class="LineNr"> 692 </span> <span class="Delimiter">{</span> -<span id="L693" class="LineNr"> 693 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L693" class="LineNr"> 693 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L694" class="LineNr"> 694 </span> compare done?, <span class="Constant">0</span> <span id="L695" class="LineNr"> 695 </span> <span class="PreProc">break-if-!=</span> -<span id="L696" class="LineNr"> 696 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L696" class="LineNr"> 696 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L697" class="LineNr"> 697 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L698" class="LineNr"> 698 </span> <span class="PreProc">var</span> _expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr +<span id="L698" class="LineNr"> 698 </span> <span class="PreProc">var</span> _expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr <span id="L699" class="LineNr"> 699 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEdi">edi</span>: grapheme <span class="Special"><-</span> copy _expected-grapheme <span id="L700" class="LineNr"> 700 </span> $check-screen-row-in-color-from:compare-cells: <span class="Delimiter">{</span> <span id="L701" class="LineNr"> 701 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -775,7 +774,7 @@ if ('onhashchange' in window) { <span id="L709" class="LineNr"> 709 </span> <span class="Delimiter">{</span> <span id="L710" class="LineNr"> 710 </span> compare expected-grapheme, <span class="Constant">0x20</span> <span id="L711" class="LineNr"> 711 </span> <span class="PreProc">break-if-!=</span> -<span id="L712" class="LineNr"> 712 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L333'>screen-color-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L712" class="LineNr"> 712 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='405screen.mu.html#L333'>screen-color-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L713" class="LineNr"> 713 </span> compare color, fg <span id="L714" class="LineNr"> 714 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-color-from:compare-cells <span id="L715" class="LineNr"> 715 </span> <span class="Delimiter">}</span> @@ -801,7 +800,7 @@ if ('onhashchange' in window) { <span id="L735" class="LineNr"> 735 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"'\n"</span> <span id="L736" class="LineNr"> 736 </span> <span class="Delimiter">}</span> <span id="L737" class="LineNr"> 737 </span> $check-screen-row-in-color-from:compare-colors: <span class="Delimiter">{</span> -<span id="L738" class="LineNr"> 738 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L333'>screen-color-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L738" class="LineNr"> 738 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='405screen.mu.html#L333'>screen-color-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L739" class="LineNr"> 739 </span> compare fg, color <span id="L740" class="LineNr"> 740 </span> <span class="Delimiter">{</span> <span id="L741" class="LineNr"> 741 </span> <span class="PreProc">break-if-!=</span> @@ -843,12 +842,12 @@ if ('onhashchange' in window) { <span id="L777" class="LineNr"> 777 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L778" class="LineNr"> 778 </span> <a href='108write.subx.html#L24'>write</a> e-addr, expected <span id="L779" class="LineNr"> 779 </span> <span class="Delimiter">{</span> -<span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L781" class="LineNr"> 781 </span> compare done?, <span class="Constant">0</span> <span id="L782" class="LineNr"> 782 </span> <span class="PreProc">break-if-!=</span> -<span id="L783" class="LineNr"> 783 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L783" class="LineNr"> 783 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L784" class="LineNr"> 784 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L785" class="LineNr"> 785 </span> <span class="PreProc">var</span> _expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr +<span id="L785" class="LineNr"> 785 </span> <span class="PreProc">var</span> _expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr <span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEdx">edx</span>: grapheme <span class="Special"><-</span> copy _expected-grapheme <span id="L787" class="LineNr"> 787 </span> $check-screen-row-in-background-color-from:compare-cells: <span class="Delimiter">{</span> <span id="L788" class="LineNr"> 788 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -862,7 +861,7 @@ if ('onhashchange' in window) { <span id="L796" class="LineNr"> 796 </span> <span class="Delimiter">{</span> <span id="L797" class="LineNr"> 797 </span> compare expected-grapheme, <span class="Constant">0x20</span> <span id="L798" class="LineNr"> 798 </span> <span class="PreProc">break-if-!=</span> -<span id="L799" class="LineNr"> 799 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L352'>screen-background-color-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L799" class="LineNr"> 799 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='405screen.mu.html#L352'>screen-background-color-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L800" class="LineNr"> 800 </span> compare color, bg <span id="L801" class="LineNr"> 801 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-background-color-from:compare-cells <span id="L802" class="LineNr"> 802 </span> <span class="Delimiter">}</span> @@ -888,7 +887,7 @@ if ('onhashchange' in window) { <span id="L822" class="LineNr"> 822 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"'\n"</span> <span id="L823" class="LineNr"> 823 </span> <span class="Delimiter">}</span> <span id="L824" class="LineNr"> 824 </span> $check-screen-row-in-background-color-from:compare-colors: <span class="Delimiter">{</span> -<span id="L825" class="LineNr"> 825 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='405screen.mu.html#L352'>screen-background-color-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L825" class="LineNr"> 825 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='405screen.mu.html#L352'>screen-background-color-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L826" class="LineNr"> 826 </span> compare bg, color <span id="L827" class="LineNr"> 827 </span> <span class="Delimiter">{</span> <span id="L828" class="LineNr"> 828 </span> <span class="PreProc">break-if-!=</span> @@ -928,12 +927,12 @@ if ('onhashchange' in window) { <span id="L862" class="LineNr"> 862 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L863" class="LineNr"> 863 </span> <a href='108write.subx.html#L24'>write</a> e-addr, expected <span id="L864" class="LineNr"> 864 </span> <span class="Delimiter">{</span> -<span id="L865" class="LineNr"> 865 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L865" class="LineNr"> 865 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L866" class="LineNr"> 866 </span> compare done?, <span class="Constant">0</span> <span id="L867" class="LineNr"> 867 </span> <span class="PreProc">break-if-!=</span> -<span id="L868" class="LineNr"> 868 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L868" class="LineNr"> 868 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L869" class="LineNr"> 869 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L870" class="LineNr"> 870 </span> <span class="PreProc">var</span> _expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr +<span id="L870" class="LineNr"> 870 </span> <span class="PreProc">var</span> _expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr <span id="L871" class="LineNr"> 871 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEdx">edx</span>: grapheme <span class="Special"><-</span> copy _expected-grapheme <span id="L872" class="LineNr"> 872 </span> $check-screen-row-in-bold-from:compare-cells: <span class="Delimiter">{</span> <span id="L873" class="LineNr"> 873 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -947,7 +946,7 @@ if ('onhashchange' in window) { <span id="L881" class="LineNr"> 881 </span> <span class="Delimiter">{</span> <span id="L882" class="LineNr"> 882 </span> compare expected-grapheme, <span class="Constant">0x20</span> <span id="L883" class="LineNr"> 883 </span> <span class="PreProc">break-if-!=</span> -<span id="L884" class="LineNr"> 884 </span> <span class="PreProc">var</span> bold?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L370'>screen-bold-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L884" class="LineNr"> 884 </span> <span class="PreProc">var</span> bold?/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L370'>screen-bold-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L885" class="LineNr"> 885 </span> compare bold?, <span class="Constant">1</span> <span id="L886" class="LineNr"> 886 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-bold-from:compare-cells <span id="L887" class="LineNr"> 887 </span> <span class="Delimiter">}</span> @@ -973,7 +972,7 @@ if ('onhashchange' in window) { <span id="L907" class="LineNr"> 907 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"'\n"</span> <span id="L908" class="LineNr"> 908 </span> <span class="Delimiter">}</span> <span id="L909" class="LineNr"> 909 </span> $check-screen-row-in-bold-from:compare-bold: <span class="Delimiter">{</span> -<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> bold?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L370'>screen-bold-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> bold?/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L370'>screen-bold-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L911" class="LineNr"> 911 </span> compare bold?, <span class="Constant">1</span> <span id="L912" class="LineNr"> 912 </span> <span class="Delimiter">{</span> <span id="L913" class="LineNr"> 913 </span> <span class="PreProc">break-if-!=</span> @@ -1009,12 +1008,12 @@ if ('onhashchange' in window) { <span id="L943" class="LineNr"> 943 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L944" class="LineNr"> 944 </span> <a href='108write.subx.html#L24'>write</a> e-addr, expected <span id="L945" class="LineNr"> 945 </span> <span class="Delimiter">{</span> -<span id="L946" class="LineNr"> 946 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L946" class="LineNr"> 946 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L947" class="LineNr"> 947 </span> compare done?, <span class="Constant">0</span> <span id="L948" class="LineNr"> 948 </span> <span class="PreProc">break-if-!=</span> -<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L951" class="LineNr"> 951 </span> <span class="PreProc">var</span> _expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr +<span id="L951" class="LineNr"> 951 </span> <span class="PreProc">var</span> _expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr <span id="L952" class="LineNr"> 952 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEdx">edx</span>: grapheme <span class="Special"><-</span> copy _expected-grapheme <span id="L953" class="LineNr"> 953 </span> $check-screen-row-in-underline-from:compare-cells: <span class="Delimiter">{</span> <span id="L954" class="LineNr"> 954 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -1028,7 +1027,7 @@ if ('onhashchange' in window) { <span id="L962" class="LineNr"> 962 </span> <span class="Delimiter">{</span> <span id="L963" class="LineNr"> 963 </span> compare expected-grapheme, <span class="Constant">0x20</span> <span id="L964" class="LineNr"> 964 </span> <span class="PreProc">break-if-!=</span> -<span id="L965" class="LineNr"> 965 </span> <span class="PreProc">var</span> underline?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L388'>screen-underline-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L965" class="LineNr"> 965 </span> <span class="PreProc">var</span> underline?/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L388'>screen-underline-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L966" class="LineNr"> 966 </span> compare underline?, <span class="Constant">1</span> <span id="L967" class="LineNr"> 967 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-underline-from:compare-cells <span id="L968" class="LineNr"> 968 </span> <span class="Delimiter">}</span> @@ -1054,7 +1053,7 @@ if ('onhashchange' in window) { <span id="L988" class="LineNr"> 988 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"'\n"</span> <span id="L989" class="LineNr"> 989 </span> <span class="Delimiter">}</span> <span id="L990" class="LineNr"> 990 </span> $check-screen-row-in-underline-from:compare-underline: <span class="Delimiter">{</span> -<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> underline?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L388'>screen-underline-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> underline?/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L388'>screen-underline-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L992" class="LineNr"> 992 </span> compare underline?, <span class="Constant">1</span> <span id="L993" class="LineNr"> 993 </span> <span class="Delimiter">{</span> <span id="L994" class="LineNr"> 994 </span> <span class="PreProc">break-if-!=</span> @@ -1090,12 +1089,12 @@ if ('onhashchange' in window) { <span id="L1024" class="LineNr">1024 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L1025" class="LineNr">1025 </span> <a href='108write.subx.html#L24'>write</a> e-addr, expected <span id="L1026" class="LineNr">1026 </span> <span class="Delimiter">{</span> -<span id="L1027" class="LineNr">1027 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L1027" class="LineNr">1027 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L1028" class="LineNr">1028 </span> compare done?, <span class="Constant">0</span> <span id="L1029" class="LineNr">1029 </span> <span class="PreProc">break-if-!=</span> -<span id="L1030" class="LineNr">1030 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L1030" class="LineNr">1030 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L1031" class="LineNr">1031 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L1032" class="LineNr">1032 </span> <span class="PreProc">var</span> _expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr +<span id="L1032" class="LineNr">1032 </span> <span class="PreProc">var</span> _expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr <span id="L1033" class="LineNr">1033 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEdx">edx</span>: grapheme <span class="Special"><-</span> copy _expected-grapheme <span id="L1034" class="LineNr">1034 </span> $check-screen-row-in-reverse-from:compare-cells: <span class="Delimiter">{</span> <span id="L1035" class="LineNr">1035 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -1109,7 +1108,7 @@ if ('onhashchange' in window) { <span id="L1043" class="LineNr">1043 </span> <span class="Delimiter">{</span> <span id="L1044" class="LineNr">1044 </span> compare expected-grapheme, <span class="Constant">0x20</span> <span id="L1045" class="LineNr">1045 </span> <span class="PreProc">break-if-!=</span> -<span id="L1046" class="LineNr">1046 </span> <span class="PreProc">var</span> reverse?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L406'>screen-reverse-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L1046" class="LineNr">1046 </span> <span class="PreProc">var</span> reverse?/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L406'>screen-reverse-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L1047" class="LineNr">1047 </span> compare reverse?, <span class="Constant">1</span> <span id="L1048" class="LineNr">1048 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-reverse-from:compare-cells <span id="L1049" class="LineNr">1049 </span> <span class="Delimiter">}</span> @@ -1135,7 +1134,7 @@ if ('onhashchange' in window) { <span id="L1069" class="LineNr">1069 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"'\n"</span> <span id="L1070" class="LineNr">1070 </span> <span class="Delimiter">}</span> <span id="L1071" class="LineNr">1071 </span> $check-screen-row-in-reverse-from:compare-reverse: <span class="Delimiter">{</span> -<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> reverse?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L406'>screen-reverse-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> reverse?/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L406'>screen-reverse-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L1073" class="LineNr">1073 </span> compare reverse?, <span class="Constant">1</span> <span id="L1074" class="LineNr">1074 </span> <span class="Delimiter">{</span> <span id="L1075" class="LineNr">1075 </span> <span class="PreProc">break-if-!=</span> @@ -1171,12 +1170,12 @@ if ('onhashchange' in window) { <span id="L1105" class="LineNr">1105 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address e <span id="L1106" class="LineNr">1106 </span> <a href='108write.subx.html#L24'>write</a> e-addr, expected <span id="L1107" class="LineNr">1107 </span> <span class="Delimiter">{</span> -<span id="L1108" class="LineNr">1108 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr +<span id="L1108" class="LineNr">1108 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> e-addr <span id="L1109" class="LineNr">1109 </span> compare done?, <span class="Constant">0</span> <span id="L1110" class="LineNr">1110 </span> <span class="PreProc">break-if-!=</span> -<span id="L1111" class="LineNr">1111 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L1111" class="LineNr">1111 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='405screen.mu.html#L315'>screen-grapheme-at-idx</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L1112" class="LineNr">1112 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: grapheme <span class="Special"><-</span> copy _g -<span id="L1113" class="LineNr">1113 </span> <span class="PreProc">var</span> _expected-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr +<span id="L1113" class="LineNr">1113 </span> <span class="PreProc">var</span> _expected-grapheme/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> e-addr <span id="L1114" class="LineNr">1114 </span> <span class="PreProc">var</span> expected-grapheme/<span class="muRegEdx">edx</span>: grapheme <span class="Special"><-</span> copy _expected-grapheme <span id="L1115" class="LineNr">1115 </span> $check-screen-row-in-blinking-from:compare-cells: <span class="Delimiter">{</span> <span id="L1116" class="LineNr">1116 </span> <span class="muComment"># if expected-grapheme is space, null grapheme is also ok</span> @@ -1190,7 +1189,7 @@ if ('onhashchange' in window) { <span id="L1124" class="LineNr">1124 </span> <span class="Delimiter">{</span> <span id="L1125" class="LineNr">1125 </span> compare expected-grapheme, <span class="Constant">0x20</span> <span id="L1126" class="LineNr">1126 </span> <span class="PreProc">break-if-!=</span> -<span id="L1127" class="LineNr">1127 </span> <span class="PreProc">var</span> blinking?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L424'>screen-blink-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L1127" class="LineNr">1127 </span> <span class="PreProc">var</span> blinking?/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L424'>screen-blink-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L1128" class="LineNr">1128 </span> compare blinking?, <span class="Constant">1</span> <span id="L1129" class="LineNr">1129 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-blinking-from:compare-cells <span id="L1130" class="LineNr">1130 </span> <span class="Delimiter">}</span> @@ -1216,7 +1215,7 @@ if ('onhashchange' in window) { <span id="L1150" class="LineNr">1150 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">"'\n"</span> <span id="L1151" class="LineNr">1151 </span> <span class="Delimiter">}</span> <span id="L1152" class="LineNr">1152 </span> $check-screen-row-in-blinking-from:compare-blinking: <span class="Delimiter">{</span> -<span id="L1153" class="LineNr">1153 </span> <span class="PreProc">var</span> blinking?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L424'>screen-blink-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx +<span id="L1153" class="LineNr">1153 </span> <span class="PreProc">var</span> blinking?/eax: boolean <span class="Special"><-</span> <a href='405screen.mu.html#L424'>screen-blink-at-idx?</a> <a href='405screen.mu.html#L9'>screen</a>, idx <span id="L1154" class="LineNr">1154 </span> compare blinking?, <span class="Constant">1</span> <span id="L1155" class="LineNr">1155 </span> <span class="Delimiter">{</span> <span id="L1156" class="LineNr">1156 </span> <span class="PreProc">break-if-!=</span> @@ -1245,7 +1244,7 @@ if ('onhashchange' in window) { <span id="L1179" class="LineNr">1179 </span> <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a> <span id="L1180" class="LineNr">1180 </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"><-</span> address screen-on-stack <span id="L1181" class="LineNr">1181 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols -<span id="L1182" class="LineNr">1182 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1182" class="LineNr">1182 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1183" class="LineNr">1183 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1184" class="LineNr">1184 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">"a"</span>, <span class="Constant">"F - test-print-single-grapheme"</span> <span class="muComment"># top-left corner of the screen</span> <span id="L1185" class="LineNr">1185 </span><span class="Delimiter">}</span> @@ -1263,7 +1262,7 @@ if ('onhashchange' in window) { <span id="L1197" class="LineNr">1197 </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"><-</span> address screen-on-stack <span id="L1198" class="LineNr">1198 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1199" class="LineNr">1199 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>, <span class="Constant">4</span> -<span id="L1200" class="LineNr">1200 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1200" class="LineNr">1200 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1201" class="LineNr">1201 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1202" class="LineNr">1202 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">" a"</span>, <span class="Constant">"F - test-move-cursor"</span> <span class="muComment"># top row</span> <span id="L1203" class="LineNr">1203 </span><span class="Delimiter">}</span> @@ -1273,7 +1272,7 @@ if ('onhashchange' in window) { <span id="L1207" class="LineNr">1207 </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"><-</span> address screen-on-stack <span id="L1208" class="LineNr">1208 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1209" class="LineNr">1209 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">0</span>, <span class="Constant">0</span> -<span id="L1210" class="LineNr">1210 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1210" class="LineNr">1210 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1211" class="LineNr">1211 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1212" class="LineNr">1212 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">"a"</span>, <span class="Constant">"F - test-move-cursor-zeroes"</span> <span class="muComment"># top-left corner of the screen</span> <span id="L1213" class="LineNr">1213 </span><span class="Delimiter">}</span> @@ -1283,7 +1282,7 @@ if ('onhashchange' in window) { <span id="L1217" class="LineNr">1217 </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"><-</span> address screen-on-stack <span id="L1218" class="LineNr">1218 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1219" class="LineNr">1219 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">0</span>, <span class="Constant">2</span> -<span id="L1220" class="LineNr">1220 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1220" class="LineNr">1220 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1221" class="LineNr">1221 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1222" class="LineNr">1222 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">" a"</span>, <span class="Constant">"F - test-move-cursor-zero-row"</span> <span class="muComment"># top row</span> <span id="L1223" class="LineNr">1223 </span><span class="Delimiter">}</span> @@ -1293,7 +1292,7 @@ if ('onhashchange' in window) { <span id="L1227" class="LineNr">1227 </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"><-</span> address screen-on-stack <span id="L1228" class="LineNr">1228 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1229" class="LineNr">1229 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">4</span>, <span class="Constant">0</span> -<span id="L1230" class="LineNr">1230 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1230" class="LineNr">1230 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1231" class="LineNr">1231 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1232" class="LineNr">1232 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">4</span>/row, <span class="Constant">"a"</span>, <span class="Constant">"F - test-move-cursor-zero-column"</span> <span id="L1233" class="LineNr">1233 </span><span class="Delimiter">}</span> @@ -1303,7 +1302,7 @@ if ('onhashchange' in window) { <span id="L1237" class="LineNr">1237 </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"><-</span> address screen-on-stack <span id="L1238" class="LineNr">1238 </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">3</span> <span id="L1239" class="LineNr">1239 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">-1</span>/row, <span class="Constant">2</span>/col -<span id="L1240" class="LineNr">1240 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1240" class="LineNr">1240 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1241" class="LineNr">1241 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1242" class="LineNr">1242 </span> <span class="muComment"># no move</span> <span id="L1243" class="LineNr">1243 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">"a"</span>, <span class="Constant">"F - test-move-cursor-negative-row"</span> @@ -1314,7 +1313,7 @@ if ('onhashchange' in window) { <span id="L1248" class="LineNr">1248 </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"><-</span> address screen-on-stack <span id="L1249" class="LineNr">1249 </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">3</span> <span id="L1250" class="LineNr">1250 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">2</span>/row, <span class="Constant">-1</span>/col -<span id="L1251" class="LineNr">1251 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1251" class="LineNr">1251 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1252" class="LineNr">1252 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1253" class="LineNr">1253 </span> <span class="muComment"># no move</span> <span id="L1254" class="LineNr">1254 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">"a"</span>, <span class="Constant">"F - test-move-cursor-negative-column"</span> @@ -1325,7 +1324,7 @@ if ('onhashchange' in window) { <span id="L1259" class="LineNr">1259 </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"><-</span> address screen-on-stack <span id="L1260" class="LineNr">1260 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">3</span>/cols <span id="L1261" class="LineNr">1261 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">4</span>/col -<span id="L1262" class="LineNr">1262 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1262" class="LineNr">1262 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1263" class="LineNr">1263 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1264" class="LineNr">1264 </span> <span class="muComment"># top row is empty</span> <span id="L1265" class="LineNr">1265 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">" "</span>, <span class="Constant">"F - test-move-cursor-column-too-large"</span> @@ -1338,7 +1337,7 @@ if ('onhashchange' in window) { <span id="L1272" class="LineNr">1272 </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"><-</span> address screen-on-stack <span id="L1273" class="LineNr">1273 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">3</span>/cols <span id="L1274" class="LineNr">1274 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">6</span>/col -<span id="L1275" class="LineNr">1275 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1275" class="LineNr">1275 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1276" class="LineNr">1276 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1277" class="LineNr">1277 </span> <span class="muComment"># top row is empty</span> <span id="L1278" class="LineNr">1278 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">" "</span>, <span class="Constant">"F - test-move-cursor-column-too-large-saturates"</span> <span class="muComment"># top-left corner of the screen</span> @@ -1351,7 +1350,7 @@ if ('onhashchange' in window) { <span id="L1285" class="LineNr">1285 </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"><-</span> address screen-on-stack <span id="L1286" class="LineNr">1286 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">3</span>/cols <span id="L1287" class="LineNr">1287 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">6</span>/row, <span class="Constant">2</span>/col -<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1289" class="LineNr">1289 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1290" class="LineNr">1290 </span> <span class="muComment"># bottom row shows the character</span> <span id="L1291" class="LineNr">1291 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/row, <span class="Constant">" a"</span>, <span class="Constant">"F - test-move-cursor-row-too-large"</span> @@ -1362,7 +1361,7 @@ if ('onhashchange' in window) { <span id="L1296" class="LineNr">1296 </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"><-</span> address screen-on-stack <span id="L1297" class="LineNr">1297 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">3</span>/cols <span id="L1298" class="LineNr">1298 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">9</span>/row, <span class="Constant">2</span>/col -<span id="L1299" class="LineNr">1299 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1299" class="LineNr">1299 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1300" class="LineNr">1300 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1301" class="LineNr">1301 </span> <span class="muComment"># bottom row shows the character</span> <span id="L1302" class="LineNr">1302 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/row, <span class="Constant">" a"</span>, <span class="Constant">"F - test-move-cursor-row-too-large-saturates"</span> @@ -1373,7 +1372,7 @@ if ('onhashchange' in window) { <span id="L1307" class="LineNr">1307 </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"><-</span> address screen-on-stack <span id="L1308" class="LineNr">1308 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1309" class="LineNr">1309 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>, <span class="Constant">4</span> -<span id="L1310" class="LineNr">1310 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1310" class="LineNr">1310 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1311" class="LineNr">1311 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1312" class="LineNr">1312 </span> <a href='405screen.mu.html#L627'>check-screen-row</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">" a"</span>, <span class="Constant">"F - <a href='405screen.mu.html#L1305'>test-check-screen-row-from</a>/baseline"</span> <span id="L1313" class="LineNr">1313 </span> <a href='405screen.mu.html#L631'>check-screen-row-from</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/row, <span class="Constant">4</span>/col, <span class="Constant">"a"</span>, <span class="Constant">"F - test-check-screen-row-from"</span> @@ -1394,7 +1393,7 @@ if ('onhashchange' in window) { <span id="L1328" class="LineNr">1328 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1329" class="LineNr">1329 </span> <span class="muComment"># single character starting at bottom right</span> <span id="L1330" class="LineNr">1330 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols -<span id="L1331" class="LineNr">1331 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1331" class="LineNr">1331 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1332" class="LineNr">1332 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1333" class="LineNr">1333 </span> <a href='405screen.mu.html#L631'>check-screen-row-from</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/row, <span class="Constant">4</span>/col, <span class="Constant">"a"</span>, <span class="Constant">"F - <a href='405screen.mu.html#L1325'>test-check-screen-scrolls-on-overflow</a>/baseline"</span> <span class="muComment"># bottom-right corner of the screen</span> <span id="L1334" class="LineNr">1334 </span> <span class="muComment"># multiple characters starting at bottom right</span> @@ -1414,7 +1413,7 @@ if ('onhashchange' in window) { <span id="L1348" class="LineNr">1348 </span> <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a> <span id="L1349" class="LineNr">1349 </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"><-</span> address screen-on-stack <span id="L1350" class="LineNr">1350 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols -<span id="L1351" class="LineNr">1351 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1351" class="LineNr">1351 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1352" class="LineNr">1352 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1353" class="LineNr">1353 </span> <a href='405screen.mu.html#L523'>start-color</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/fg, <span class="Constant">0</span>/bg <span id="L1354" class="LineNr">1354 </span> c <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b @@ -1429,7 +1428,7 @@ if ('onhashchange' in window) { <span id="L1363" class="LineNr">1363 </span> <span class="PreProc">var</span> screen-on-stack: <a href='405screen.mu.html#L9'>screen</a> <span id="L1364" class="LineNr">1364 </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"><-</span> address screen-on-stack <span id="L1365" class="LineNr">1365 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols -<span id="L1366" class="LineNr">1366 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1366" class="LineNr">1366 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1367" class="LineNr">1367 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1368" class="LineNr">1368 </span> <a href='405screen.mu.html#L523'>start-color</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">0</span>/fg, <span class="Constant">1</span>/bg <span id="L1369" class="LineNr">1369 </span> c <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b @@ -1445,7 +1444,7 @@ if ('onhashchange' in window) { <span id="L1379" class="LineNr">1379 </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"><-</span> address screen-on-stack <span id="L1380" class="LineNr">1380 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1381" class="LineNr">1381 </span> <a href='405screen.mu.html#L541'>start-bold</a> <a href='405screen.mu.html#L9'>screen</a> -<span id="L1382" class="LineNr">1382 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1382" class="LineNr">1382 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1383" class="LineNr">1383 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1384" class="LineNr">1384 </span> <a href='405screen.mu.html#L506'>reset-formatting</a> <a href='405screen.mu.html#L9'>screen</a> <span id="L1385" class="LineNr">1385 </span> c <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b @@ -1461,7 +1460,7 @@ if ('onhashchange' in window) { <span id="L1395" class="LineNr">1395 </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"><-</span> address screen-on-stack <span id="L1396" class="LineNr">1396 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1397" class="LineNr">1397 </span> <a href='405screen.mu.html#L555'>start-underline</a> <a href='405screen.mu.html#L9'>screen</a> -<span id="L1398" class="LineNr">1398 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1398" class="LineNr">1398 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1399" class="LineNr">1399 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1400" class="LineNr">1400 </span> <a href='405screen.mu.html#L506'>reset-formatting</a> <a href='405screen.mu.html#L9'>screen</a> <span id="L1401" class="LineNr">1401 </span> c <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b @@ -1477,7 +1476,7 @@ if ('onhashchange' in window) { <span id="L1411" class="LineNr">1411 </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"><-</span> address screen-on-stack <span id="L1412" class="LineNr">1412 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1413" class="LineNr">1413 </span> <a href='405screen.mu.html#L569'>start-reverse-video</a> <a href='405screen.mu.html#L9'>screen</a> -<span id="L1414" class="LineNr">1414 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1414" class="LineNr">1414 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1415" class="LineNr">1415 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1416" class="LineNr">1416 </span> <a href='405screen.mu.html#L506'>reset-formatting</a> <a href='405screen.mu.html#L9'>screen</a> <span id="L1417" class="LineNr">1417 </span> c <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b @@ -1493,7 +1492,7 @@ if ('onhashchange' in window) { <span id="L1427" class="LineNr">1427 </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"><-</span> address screen-on-stack <span id="L1428" class="LineNr">1428 </span> <a href='405screen.mu.html#L30'>initialize-screen</a> <a href='405screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>/rows, <span class="Constant">4</span>/cols <span id="L1429" class="LineNr">1429 </span> <a href='405screen.mu.html#L583'>start-blinking</a> <a href='405screen.mu.html#L9'>screen</a> -<span id="L1430" class="LineNr">1430 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L1430" class="LineNr">1430 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L1431" class="LineNr">1431 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <a href='405screen.mu.html#L9'>screen</a>, c <span id="L1432" class="LineNr">1432 </span> <a href='405screen.mu.html#L506'>reset-formatting</a> <a href='405screen.mu.html#L9'>screen</a> <span id="L1433" class="LineNr">1433 </span> c <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b diff --git a/html/linux/406int32.mu.html b/html/linux/406int32.mu.html index 1cf8799b..a41c662c 100644 --- a/html/linux/406int32.mu.html +++ b/html/linux/406int32.mu.html @@ -14,14 +14,13 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -61,8 +60,8 @@ if ('onhashchange' in window) { <span id="L2" class="LineNr"> 2 </span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># slow, iterative shift-left instruction</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># preconditions: _nr >= 0, _dr > 0</span> -<span id="L5" class="LineNr"> 5 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='406int32.mu.html#L5'>repeated-shift-left</a></span> nr: int, dr: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy nr +<span id="L5" class="LineNr"> 5 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='406int32.mu.html#L5'>repeated-shift-left</a></span> nr: int, dr: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy nr <span id="L7" class="LineNr"> 7 </span> <span class="Delimiter">{</span> <span id="L8" class="LineNr"> 8 </span> compare dr, <span class="Constant">0</span> <span id="L9" class="LineNr"> 9 </span> <span class="PreProc">break-if-<=</span> @@ -75,8 +74,8 @@ if ('onhashchange' in window) { <span id="L16" class="LineNr">16 </span> <span id="L17" class="LineNr">17 </span><span class="muComment"># slow, iterative shift-right instruction</span> <span id="L18" class="LineNr">18 </span><span class="muComment"># preconditions: _nr >= 0, _dr > 0</span> -<span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='406int32.mu.html#L19'>repeated-shift-right</a></span> nr: int, dr: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy nr +<span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='406int32.mu.html#L19'>repeated-shift-right</a></span> nr: int, dr: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy nr <span id="L21" class="LineNr">21 </span> <span class="Delimiter">{</span> <span id="L22" class="LineNr">22 </span> compare dr, <span class="Constant">0</span> <span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if-<=</span> @@ -87,8 +86,8 @@ if ('onhashchange' in window) { <span id="L28" class="LineNr">28 </span> <span class="PreProc">return</span> result <span id="L29" class="LineNr">29 </span><span class="Delimiter">}</span> <span id="L30" class="LineNr">30 </span> -<span id="L31" class="LineNr">31 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='406int32.mu.html#L31'>abs</a></span> n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy n +<span id="L31" class="LineNr">31 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='406int32.mu.html#L31'>abs</a></span> n: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy n <span id="L33" class="LineNr">33 </span> <span class="Delimiter">{</span> <span id="L34" class="LineNr">34 </span> compare n, <span class="Constant">0</span> <span id="L35" class="LineNr">35 </span> <span class="PreProc">break-if->=</span> diff --git a/html/linux/407right-justify.mu.html b/html/linux/407right-justify.mu.html index 56977b13..9406eb62 100644 --- a/html/linux/407right-justify.mu.html +++ b/html/linux/407right-justify.mu.html @@ -14,15 +14,14 @@ 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; } +.PreProc { color: #c000c0; } +.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -61,7 +60,7 @@ if ('onhashchange' in window) { <span id="L1" class="LineNr"> 1 </span><span class="muComment"># print 'n' with enough leading spaces to be right-justified in 'width'</span> <span id="L2" class="LineNr"> 2 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='407right-justify.mu.html#L2'>print-int32-decimal-right-justified</a></span> <a href='405screen.mu.html#L9'>screen</a>: (addr <a href='405screen.mu.html#L9'>screen</a>), n: int, _width: int <span class="Delimiter">{</span> <span id="L3" class="LineNr"> 3 </span> <span class="muComment"># tweak things for negative numbers</span> -<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> n-width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L312'>decimal-size</a> n +<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> n-width/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L312'>decimal-size</a> n <span id="L5" class="LineNr"> 5 </span> <span class="PreProc">var</span> width/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _width <span id="L6" class="LineNr"> 6 </span> <span class="Delimiter">{</span> <span id="L7" class="LineNr"> 7 </span> compare n-width, width diff --git a/html/linux/408float.mu.html b/html/linux/408float.mu.html index 8ef87adb..4903dc93 100644 --- a/html/linux/408float.mu.html +++ b/html/linux/408float.mu.html @@ -14,14 +14,14 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> diff --git a/html/linux/409print-float-hex.mu.html b/html/linux/409print-float-hex.mu.html index ef803f8c..48eb4339 100644 --- a/html/linux/409print-float-hex.mu.html +++ b/html/linux/409print-float-hex.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } .muFunction { color: #af5f00; text-decoration: underline; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } +.Special { color: #ff6060; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -182,7 +181,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="muRegEax">eax</span>: int <span class="Special"><-</span> reinterpret n +<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> bits/eax: int <span class="Special"><-</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> @@ -248,7 +247,7 @@ if ('onhashchange' in window) { <span id="L183" class="LineNr">183 </span> <span class="PreProc">break-if->=</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">"-"</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="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='406int32.mu.html#L31'>abs</a> exponent +<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> exp-magnitude/eax: int <span class="Special"><-</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> diff --git a/html/linux/410file.mu.html b/html/linux/410file.mu.html index 319ef453..faa24ef4 100644 --- a/html/linux/410file.mu.html +++ b/html/linux/410file.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; } -.CommentedCode { color: #8a8a8a; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } .LineNr { } -.muRegEax { color: #875f00; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.CommentedCode { color: #8a8a8a; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.Special { color: #ff6060; } --> </style> @@ -67,12 +66,12 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span> <span class="Delimiter">{</span> <span id="L7" class="LineNr"> 7 </span> <a href='106stream.subx.html#L17'>clear-stream</a> line-a <span id="L8" class="LineNr"> 8 </span> <a href='122read-line.subx.html#L9'>read-line-buffered</a> in, line-a -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> line-a +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> line-a <span id="L10" class="LineNr">10 </span> compare done?, <span class="Constant">0</span>/false <span id="L11" class="LineNr">11 </span> <span class="PreProc">break-if-!=</span> <span id="L12" class="LineNr">12 </span><span class="CommentedCode">#? print-string 0, "AAA\n"</span> <span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> h: (handle array byte) -<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address h +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> ah/eax: (addr handle array byte) <span class="Special"><-</span> address h <span id="L15" class="LineNr">15 </span> <a href='310copy-bytes.subx.html#L60'>stream-to-array</a> line-a, ah <span id="L16" class="LineNr">16 </span> <a href='309stream.subx.html#L54'>write-to-stream</a> stream-a, ah <span id="L17" class="LineNr">17 </span> <span class="PreProc">loop</span> diff --git a/html/linux/411string.mu.html b/html/linux/411string.mu.html index f1891150..35bbd19f 100644 --- a/html/linux/411string.mu.html +++ b/html/linux/411string.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEax { color: #875f00; } -.muComment { color: #005faf; } -.CommentedCode { color: #8a8a8a; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.CommentedCode { color: #8a8a8a; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -71,12 +70,12 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> out-stream-addr/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-stream <span id="L8" class="LineNr"> 8 </span> $substring:core: <span class="Delimiter">{</span> <span id="L9" class="LineNr"> 9 </span> <span class="muComment"># skip 'start' graphemes</span> -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L11" class="LineNr"> 11 </span> <span class="Delimiter">{</span> <span id="L12" class="LineNr"> 12 </span> compare i, start <span id="L13" class="LineNr"> 13 </span> <span class="PreProc">break-if->=</span> <span id="L14" class="LineNr"> 14 </span> <span class="Delimiter">{</span> -<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> in-stream-addr +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> in-stream-addr <span id="L16" class="LineNr"> 16 </span> compare dummy, <span class="Constant">0xffffffff</span>/end-of-file <span id="L17" class="LineNr"> 17 </span> <span class="PreProc">break-if-=</span> $substring:core <span id="L18" class="LineNr"> 18 </span> <span class="Delimiter">}</span> @@ -89,7 +88,7 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr"> 25 </span> compare i, len <span id="L26" class="LineNr"> 26 </span> <span class="PreProc">break-if->=</span> <span id="L27" class="LineNr"> 27 </span> <span class="Delimiter">{</span> -<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> in-stream-addr +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> in-stream-addr <span id="L29" class="LineNr"> 29 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">break-if-=</span> $substring:core <span id="L31" class="LineNr"> 31 </span> <a href='403unicode.mu.html#L372'>write-grapheme</a> out-stream-addr, g @@ -106,46 +105,46 @@ if ('onhashchange' in window) { <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle array byte) <span class="Special"><-</span> address out-h <span id="L43" class="LineNr"> 43 </span> <span class="muComment"># prefix substrings</span> <span id="L44" class="LineNr"> 44 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">0</span>, <span class="Constant">0</span>, <span class="Constant">3</span>, out-ah -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L46" class="LineNr"> 46 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/null"</span> <span id="L47" class="LineNr"> 47 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">""</span>, <span class="Constant">0</span>, <span class="Constant">3</span>, out-ah -<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L49" class="LineNr"> 49 </span><span class="CommentedCode">#? print-string-to-real-screen out</span> <span id="L50" class="LineNr"> 50 </span><span class="CommentedCode">#? print-string-to-real-screen "\n"</span> <span id="L51" class="LineNr"> 51 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/empty"</span> <span id="L52" class="LineNr"> 52 </span> <span class="muComment">#</span> <span id="L53" class="LineNr"> 53 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">0</span>, <span class="Constant">3</span>, out-ah -<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L55" class="LineNr"> 55 </span><span class="CommentedCode">#? print-string-to-real-screen out</span> <span id="L56" class="LineNr"> 56 </span><span class="CommentedCode">#? print-string-to-real-screen "\n"</span> <span id="L57" class="LineNr"> 57 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">"abc"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/truncate"</span> <span id="L58" class="LineNr"> 58 </span> <span class="muComment">#</span> <span id="L59" class="LineNr"> 59 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">0</span>, <span class="Constant">5</span>, out-ah -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L61" class="LineNr"> 61 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">"abcde"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/all"</span> <span id="L62" class="LineNr"> 62 </span> <span class="muComment">#</span> <span id="L63" class="LineNr"> 63 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">0</span>, <span class="Constant">7</span>, out-ah -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L65" class="LineNr"> 65 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">"abcde"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/too-small"</span> <span id="L66" class="LineNr"> 66 </span> <span class="muComment"># substrings outside string</span> <span id="L67" class="LineNr"> 67 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">6</span>, <span class="Constant">1</span>, out-ah -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L69" class="LineNr"> 69 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/start-too-large"</span> <span id="L70" class="LineNr"> 70 </span> <span class="muComment"># trim prefix</span> <span id="L71" class="LineNr"> 71 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">""</span>, <span class="Constant">2</span>, <span class="Constant">3</span>, out-ah -<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L73" class="LineNr"> 73 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/middle-empty"</span> <span id="L74" class="LineNr"> 74 </span> <span class="muComment">#</span> <span id="L75" class="LineNr"> 75 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">1</span>, <span class="Constant">2</span>, out-ah -<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L77" class="LineNr"> 77 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">"bc"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/middle-truncate"</span> <span id="L78" class="LineNr"> 78 </span> <span class="muComment">#</span> <span id="L79" class="LineNr"> 79 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">1</span>, <span class="Constant">4</span>, out-ah -<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L81" class="LineNr"> 81 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">"bcde"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/middle-all"</span> <span id="L82" class="LineNr"> 82 </span> <span class="muComment">#</span> <span id="L83" class="LineNr"> 83 </span> <a href='411string.mu.html#L2'>substring</a> <span class="Constant">"abcde"</span>, <span class="Constant">1</span>, <span class="Constant">5</span>, out-ah -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> out/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L85" class="LineNr"> 85 </span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> out, <span class="Constant">"bcde"</span>, <span class="Constant">"F - <a href='411string.mu.html#L40'>test-substring</a>/middle-too-small"</span> <span id="L86" class="LineNr"> 86 </span><span class="Delimiter">}</span> <span id="L87" class="LineNr"> 87 </span> @@ -158,7 +157,7 @@ if ('onhashchange' in window) { <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> curr-stream: (stream byte <span class="Constant">0x100</span>) <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> curr-stream-addr/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address curr-stream <span id="L96" class="LineNr"> 96 </span> $split-string:core: <span class="Delimiter">{</span> -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> in-stream-addr +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L158'>read-grapheme</a> in-stream-addr <span id="L98" class="LineNr"> 98 </span> compare g, <span class="Constant">0xffffffff</span> <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">break-if-=</span> <span id="L100" class="LineNr">100 </span><span class="CommentedCode">#? print-grapheme-to-real-screen g</span> @@ -168,7 +167,7 @@ if ('onhashchange' in window) { <span id="L104" class="LineNr">104 </span> <span class="PreProc">break-if-!=</span> <span id="L105" class="LineNr">105 </span> <span class="muComment"># token complete; flush</span> <span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> token: (handle array byte) -<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> token-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address token +<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> token-ah/eax: (addr handle array byte) <span class="Special"><-</span> address token <span id="L108" class="LineNr">108 </span> <a href='310copy-bytes.subx.html#L60'>stream-to-array</a> curr-stream-addr, token-ah <span id="L109" class="LineNr">109 </span> <a href='309stream.subx.html#L54'>write-to-stream</a> tokens-stream-addr, token-ah <span id="L110" class="LineNr">110 </span> <a href='106stream.subx.html#L17'>clear-stream</a> curr-stream-addr diff --git a/html/linux/412print-float-decimal.mu.html b/html/linux/412print-float-decimal.mu.html index 1166c108..fbac235a 100644 --- a/html/linux/412print-float-decimal.mu.html +++ b/html/linux/412print-float-decimal.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.Delimiter { color: #c000c0; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEdi { color: #00af00; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } +.Special { color: #ff6060; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -157,7 +156,7 @@ if ('onhashchange' in window) { <span id="L92" class="LineNr"> 92 </span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> s, <span class="Constant">"1.00e3"</span>, <span class="Constant">"F - <a href='412print-float-decimal.mu.html#L61'>test-write-float-decimal-approximate-integer</a> 1000"</span> <span id="L93" class="LineNr"> 93 </span> <span class="muComment"># 100,000</span> <span id="L94" class="LineNr"> 94 </span> <a href='106stream.subx.html#L17'>clear-stream</a> s -<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> hundred-thousand/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0x186a0</span> +<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> hundred-thousand/eax: int <span class="Special"><-</span> copy <span class="Constant">0x186a0</span> <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> hundred-thousand-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert hundred-thousand <span id="L97" class="LineNr"> 97 </span> <a href='412print-float-decimal.mu.html#L159'>write-float-decimal-approximate</a> s, hundred-thousand-f, <span class="Constant">3</span> <span id="L98" class="LineNr"> 98 </span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> s, <span class="Constant">"1.00e5"</span>, <span class="Constant">"F - <a href='412print-float-decimal.mu.html#L61'>test-write-float-decimal-approximate-integer</a> 100,000"</span> @@ -223,7 +222,7 @@ if ('onhashchange' in window) { <span id="L158" class="LineNr">158 </span><span class="muComment"># 'precision' controls the maximum width past which we resort to scientific notation</span> <span id="L159" class="LineNr">159 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L159'>write-float-decimal-approximate</a></span> out: (addr stream byte), in: float, precision: int <span class="Delimiter">{</span> <span id="L160" class="LineNr">160 </span> <span class="muComment"># - special names</span> -<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> bits/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> reinterpret in +<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> bits/eax: int <span class="Special"><-</span> reinterpret in <span id="L162" class="LineNr">162 </span> compare bits, <span class="Constant">0</span> <span id="L163" class="LineNr">163 </span> <span class="Delimiter">{</span> <span id="L164" class="LineNr">164 </span> <span class="PreProc">break-if-!=</span> @@ -279,7 +278,7 @@ if ('onhashchange' in window) { <span id="L214" class="LineNr">214 </span> <span class="muComment"># unlike <a href="https://research.swtch.com/ftoa">https://research.swtch.com/ftoa</a>, no ascii here</span> <span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> buf-storage: (array byte <span class="Constant">0x7f</span>) <span id="L216" class="LineNr">216 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> address buf-storage -<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='412print-float-decimal.mu.html#L247'>decimal-digits</a> v, buf +<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='412print-float-decimal.mu.html#L247'>decimal-digits</a> v, buf <span id="L218" class="LineNr">218 </span> <span class="muComment"># I suspect we can do without reversing, but we'll follow <a href="https://research.swtch.com/ftoa">https://research.swtch.com/ftoa</a></span> <span id="L219" class="LineNr">219 </span> <span class="muComment"># closely for now.</span> <span id="L220" class="LineNr">220 </span> <a href='412print-float-decimal.mu.html#L264'>reverse-digits</a> buf, n @@ -309,10 +308,10 @@ if ('onhashchange' in window) { <span id="L244" class="LineNr">244 </span> <span id="L245" class="LineNr">245 </span><span class="muComment"># store the decimal digits of 'n' into 'buf', units first</span> <span id="L246" class="LineNr">246 </span><span class="muComment"># n must be positive</span> -<span id="L247" class="LineNr">247 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L247'>decimal-digits</a></span> n: int, _buf: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L247" class="LineNr">247 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L247'>decimal-digits</a></span> n: int, _buf: (addr array byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _buf <span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy n +<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> curr/eax: int <span class="Special"><-</span> copy n <span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> curr-byte/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L252" class="LineNr">252 </span> <span class="Delimiter">{</span> <span id="L253" class="LineNr">253 </span> compare curr, <span class="Constant">0</span> @@ -338,7 +337,7 @@ if ('onhashchange' in window) { <span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> l-a/<span class="muRegEcx">ecx</span>: (addr byte) <span class="Special"><-</span> index buf, left <span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> r-a/<span class="muRegEdx">edx</span>: (addr byte) <span class="Special"><-</span> index buf, right <span id="L275" class="LineNr">275 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: byte <span class="Special"><-</span> copy-byte *l-a -<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> r/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *r-a +<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> r/eax: byte <span class="Special"><-</span> copy-byte *r-a <span id="L277" class="LineNr">277 </span> copy-byte-to *l-a, r <span id="L278" class="LineNr">278 </span> copy-byte-to *r-a, l <span id="L279" class="LineNr">279 </span> <span class="Delimiter">}</span> @@ -358,8 +357,8 @@ if ('onhashchange' in window) { <span id="L293" class="LineNr">293 </span> compare i, count <span id="L294" class="LineNr">294 </span> <span class="PreProc">break-if->=</span> <span id="L295" class="LineNr">295 </span> <span class="PreProc">var</span> curr/<span class="muRegEdx">edx</span>: (addr byte) <span class="Special"><-</span> index buf, i -<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> curr-byte/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *curr -<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> curr-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy curr-byte +<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> curr-byte/eax: byte <span class="Special"><-</span> copy-byte *curr +<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> curr-int/eax: int <span class="Special"><-</span> copy curr-byte <span id="L298" class="LineNr">298 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, curr-int <span id="L299" class="LineNr">299 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> <span id="L300" class="LineNr">300 </span> <span class="PreProc">break-if-=</span> @@ -369,19 +368,19 @@ if ('onhashchange' in window) { <span id="L304" class="LineNr">304 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> <span id="L305" class="LineNr">305 </span><span class="Delimiter">}</span> <span id="L306" class="LineNr">306 </span> -<span id="L307" class="LineNr">307 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L307'>double-array-of-decimal-digits</a></span> _buf: (addr array byte), _n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L307" class="LineNr">307 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L307'>double-array-of-decimal-digits</a></span> _buf: (addr array byte), _n: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L308" class="LineNr">308 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _buf <span id="L309" class="LineNr">309 </span> <span class="muComment"># initialize delta</span> <span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> delta/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L311" class="LineNr">311 </span> <span class="Delimiter">{</span> <span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr byte) <span class="Special"><-</span> index buf, <span class="Constant">0</span> -<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *curr +<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> copy-byte *curr <span id="L314" class="LineNr">314 </span> compare tmp, <span class="Constant">5</span> <span id="L315" class="LineNr">315 </span> <span class="PreProc">break-if-<</span> <span id="L316" class="LineNr">316 </span> delta <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L317" class="LineNr">317 </span> <span class="Delimiter">}</span> <span id="L318" class="LineNr">318 </span> <span class="muComment"># loop</span> -<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _n <span id="L321" class="LineNr">321 </span> i <span class="Special"><-</span> decrement <span id="L322" class="LineNr">322 </span> <span class="Delimiter">{</span> @@ -408,7 +407,7 @@ if ('onhashchange' in window) { <span id="L343" class="LineNr">343 </span> <span class="PreProc">loop</span> <span id="L344" class="LineNr">344 </span> <span class="Delimiter">}</span> <span id="L345" class="LineNr">345 </span> <span class="muComment"># final patch-up</span> -<span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _n +<span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy _n <span id="L347" class="LineNr">347 </span> compare delta, <span class="Constant">1</span> <span id="L348" class="LineNr">348 </span> <span class="Delimiter">{</span> <span id="L349" class="LineNr">349 </span> <span class="PreProc">break-if-!=</span> @@ -420,9 +419,9 @@ if ('onhashchange' in window) { <span id="L355" class="LineNr">355 </span> <span class="PreProc">return</span> n <span id="L356" class="LineNr">356 </span><span class="Delimiter">}</span> <span id="L357" class="LineNr">357 </span> -<span id="L358" class="LineNr">358 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L358'>halve-array-of-decimal-digits</a></span> _buf: (addr array byte), _n: int, _dp: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> +<span id="L358" class="LineNr">358 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L358'>halve-array-of-decimal-digits</a></span> _buf: (addr array byte), _n: int, _dp: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> <span id="L359" class="LineNr">359 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _buf -<span id="L360" class="LineNr">360 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _n +<span id="L360" class="LineNr">360 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy _n <span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> dp/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _dp <span id="L362" class="LineNr">362 </span> <span class="muComment"># initialize one side</span> <span id="L363" class="LineNr">363 </span> <span class="Delimiter">{</span> @@ -434,7 +433,7 @@ if ('onhashchange' in window) { <span id="L369" class="LineNr">369 </span> <span class="PreProc">var</span> right-int/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy right <span id="L370" class="LineNr">370 </span> <span class="PreProc">var</span> remainder/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L371" class="LineNr">371 </span> <span class="Delimiter">{</span> -<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L373" class="LineNr">373 </span> dummy, remainder <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> right-int, <span class="Constant">2</span> <span id="L374" class="LineNr">374 </span> <span class="Delimiter">}</span> <span id="L375" class="LineNr">375 </span> compare remainder, <span class="Constant">0</span> @@ -480,7 +479,7 @@ if ('onhashchange' in window) { <span id="L415" class="LineNr">415 </span> <span class="Delimiter">}</span> <span id="L416" class="LineNr">416 </span> <span class="muComment"># buf[i], x = x/2, x%2</span> <span id="L417" class="LineNr">417 </span> <span class="Delimiter">{</span> -<span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> quotient/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> quotient/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L419" class="LineNr">419 </span> <span class="PreProc">var</span> remainder/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L420" class="LineNr">420 </span> quotient, remainder <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> x, <span class="Constant">2</span> <span id="L421" class="LineNr">421 </span> x <span class="Special"><-</span> copy remainder @@ -503,7 +502,7 @@ if ('onhashchange' in window) { <span id="L438" class="LineNr">438 </span> <span class="PreProc">return</span> <span id="L439" class="LineNr">439 </span> <span class="Delimiter">}</span> <span id="L440" class="LineNr">440 </span> <span class="Delimiter">{</span> -<span id="L441" class="LineNr">441 </span> <span class="PreProc">var</span> dp2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy dp +<span id="L441" class="LineNr">441 </span> <span class="PreProc">var</span> dp2/eax: int <span class="Special"><-</span> copy dp <span id="L442" class="LineNr">442 </span> compare dp2, precision <span id="L443" class="LineNr">443 </span> <span class="PreProc">break-if-<=</span> <span id="L444" class="LineNr">444 </span> <a href='412print-float-decimal.mu.html#L481'>_write-float-array-of-decimal-digits-in-scientific-notation</a> out, buf, n, dp, precision @@ -514,7 +513,7 @@ if ('onhashchange' in window) { <span id="L449" class="LineNr">449 </span> <span class="PreProc">break-if-!=</span> <span id="L450" class="LineNr">450 </span> <a href='115write-byte.subx.html#L208'>append-byte</a> out, <span class="Constant">0x30</span>/<span class="Constant">0</span> <span id="L451" class="LineNr">451 </span> <span class="Delimiter">}</span> -<span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L453" class="LineNr">453 </span> <span class="muComment"># bounds = min(n, dp+3)</span> <span id="L454" class="LineNr">454 </span> <span class="PreProc">var</span> limit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy dp <span id="L455" class="LineNr">455 </span> limit <span class="Special"><-</span> add <span class="Constant">3</span> @@ -545,7 +544,7 @@ if ('onhashchange' in window) { <span id="L480" class="LineNr">480 </span> <span id="L481" class="LineNr">481 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L481'>_write-float-array-of-decimal-digits-in-scientific-notation</a></span> out: (addr stream byte), _buf: (addr array byte), n: int, dp: int, precision: int <span class="Delimiter">{</span> <span id="L482" class="LineNr">482 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _buf -<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L484" class="LineNr">484 </span> <span class="Delimiter">{</span> <span id="L485" class="LineNr">485 </span> compare i, n <span id="L486" class="LineNr">486 </span> <span class="PreProc">break-if->=</span> @@ -572,9 +571,9 @@ if ('onhashchange' in window) { <span id="L507" class="LineNr">507 </span> <span id="L508" class="LineNr">508 </span><span class="muComment"># follows the structure of write-float-decimal-approximate</span> <span id="L509" class="LineNr">509 </span><span class="muComment"># 'precision' controls the maximum width past which we resort to scientific notation</span> -<span id="L510" class="LineNr">510 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L510'>float-size</a></span> in: float, precision: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L510" class="LineNr">510 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L510'>float-size</a></span> in: float, precision: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L511" class="LineNr">511 </span> <span class="muComment"># - special names</span> -<span id="L512" class="LineNr">512 </span> <span class="PreProc">var</span> bits/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> reinterpret in +<span id="L512" class="LineNr">512 </span> <span class="PreProc">var</span> bits/eax: int <span class="Special"><-</span> reinterpret in <span id="L513" class="LineNr">513 </span> compare bits, <span class="Constant">0</span> <span id="L514" class="LineNr">514 </span> <span class="Delimiter">{</span> <span id="L515" class="LineNr">515 </span> <span class="PreProc">break-if-!=</span> @@ -616,7 +615,7 @@ if ('onhashchange' in window) { <span id="L551" class="LineNr">551 </span> <span class="muComment"># initialize buffer with decimal representation of v</span> <span id="L552" class="LineNr">552 </span> <span class="PreProc">var</span> buf-storage: (array byte <span class="Constant">0x7f</span>) <span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> buf/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> address buf-storage -<span id="L554" class="LineNr">554 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='412print-float-decimal.mu.html#L247'>decimal-digits</a> v, buf +<span id="L554" class="LineNr">554 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='412print-float-decimal.mu.html#L247'>decimal-digits</a> v, buf <span id="L555" class="LineNr">555 </span> <a href='412print-float-decimal.mu.html#L264'>reverse-digits</a> buf, n <span id="L556" class="LineNr">556 </span> <span id="L557" class="LineNr">557 </span> <span class="muComment"># loop if e > 0</span> @@ -645,7 +644,7 @@ if ('onhashchange' in window) { <span id="L580" class="LineNr">580 </span> <span class="PreProc">return</span> <span class="Constant">8</span> <span class="muComment"># hacky for scientific notation</span> <span id="L581" class="LineNr">581 </span> <span class="Delimiter">}</span> <span id="L582" class="LineNr">582 </span> <span class="Delimiter">{</span> -<span id="L583" class="LineNr">583 </span> <span class="PreProc">var</span> dp2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy dp +<span id="L583" class="LineNr">583 </span> <span class="PreProc">var</span> dp2/eax: int <span class="Special"><-</span> copy dp <span id="L584" class="LineNr">584 </span> compare dp2, precision <span id="L585" class="LineNr">585 </span> <span class="PreProc">break-if-<=</span> <span id="L586" class="LineNr">586 </span> <span class="PreProc">return</span> <span class="Constant">8</span> <span class="muComment"># hacky for scientific notation</span> @@ -684,22 +683,22 @@ if ('onhashchange' in window) { <span id="L619" class="LineNr">619 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='412print-float-decimal.mu.html#L619'>check-buffer-contains</a></span> _buf: (addr array byte), _contents: (addr array byte), msg: (addr array byte) <span class="Delimiter">{</span> <span id="L620" class="LineNr">620 </span> <span class="PreProc">var</span> buf/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _buf <span id="L621" class="LineNr">621 </span> <span class="PreProc">var</span> contents/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _contents -<span id="L622" class="LineNr">622 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='105string-equal.subx.html#L57'>string-starts-with?</a> buf, contents +<span id="L622" class="LineNr">622 </span> <span class="PreProc">var</span> a/eax: boolean <span class="Special"><-</span> <a href='105string-equal.subx.html#L57'>string-starts-with?</a> buf, contents <span id="L623" class="LineNr">623 </span> <a href='401test.mu.html#L3'>check</a> a, msg <span id="L624" class="LineNr">624 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length contents -<span id="L625" class="LineNr">625 </span> <span class="PreProc">var</span> len2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> length buf +<span id="L625" class="LineNr">625 </span> <span class="PreProc">var</span> len2/eax: int <span class="Special"><-</span> length buf <span id="L626" class="LineNr">626 </span> compare len, len2 <span id="L627" class="LineNr">627 </span> <span class="PreProc">break-if-=</span> -<span id="L628" class="LineNr">628 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: (addr byte) <span class="Special"><-</span> index buf, len -<span id="L629" class="LineNr">629 </span> <span class="PreProc">var</span> d/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *c -<span id="L630" class="LineNr">630 </span> <span class="PreProc">var</span> e/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy d +<span id="L628" class="LineNr">628 </span> <span class="PreProc">var</span> c/eax: (addr byte) <span class="Special"><-</span> index buf, len +<span id="L629" class="LineNr">629 </span> <span class="PreProc">var</span> d/eax: byte <span class="Special"><-</span> copy-byte *c +<span id="L630" class="LineNr">630 </span> <span class="PreProc">var</span> e/eax: int <span class="Special"><-</span> copy d <span id="L631" class="LineNr">631 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> e, <span class="Constant">0</span>, msg <span id="L632" class="LineNr">632 </span><span class="Delimiter">}</span> <span id="L633" class="LineNr">633 </span> <span id="L634" class="LineNr">634 </span><span class="PreProc">fn</span> <span class="muTest"><a href='412print-float-decimal.mu.html#L634'>test-check-buffer-contains</a></span> <span class="Delimiter">{</span> <span id="L635" class="LineNr">635 </span> <span class="PreProc">var</span> arr: (array byte <span class="Constant">4</span>) <span id="L636" class="LineNr">636 </span> <span class="PreProc">var</span> a/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> address arr -<span id="L637" class="LineNr">637 </span> <span class="PreProc">var</span> b/<span class="muRegEax">eax</span>: (addr byte) <span class="Special"><-</span> index a, <span class="Constant">0</span> +<span id="L637" class="LineNr">637 </span> <span class="PreProc">var</span> b/eax: (addr byte) <span class="Special"><-</span> index a, <span class="Constant">0</span> <span id="L638" class="LineNr">638 </span> <span class="PreProc">var</span> c/<span class="muRegEcx">ecx</span>: byte <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L639" class="LineNr">639 </span> copy-byte-to *b, c <span id="L640" class="LineNr">640 </span> <a href='412print-float-decimal.mu.html#L619'>check-buffer-contains</a> a, <span class="Constant">"a"</span>, <span class="Constant">"F - test-check-buffer-contains"</span> diff --git a/html/linux/advent2017/1a.mu.html b/html/linux/advent2017/1a.mu.html index 75fe7df9..dd31070e 100644 --- a/html/linux/advent2017/1a.mu.html +++ b/html/linux/advent2017/1a.mu.html @@ -14,18 +14,17 @@ 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; } -.muRegEax { color: #875f00; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -83,16 +82,16 @@ if ('onhashchange' in window) { <span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> sum/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L21" class="LineNr">21 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> input_stream_addr <span id="L22" class="LineNr">22 </span> -<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> temp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='1a.mu.html#L60'>read_digit</a> input_stream_addr +<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> temp/eax: int <span class="Special"><-</span> <a href='1a.mu.html#L60'>read_digit</a> input_stream_addr <span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> first_digit/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy temp <span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> this_digit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy temp <span id="L26" class="LineNr">26 </span> <span id="L27" class="LineNr">27 </span> <span class="Delimiter">{</span> -<span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> input_stream_addr +<span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> input_stream_addr <span id="L29" class="LineNr">29 </span> compare done?, <span class="Constant">1</span> <span id="L30" class="LineNr">30 </span> <span class="PreProc">break-if-=</span> <span id="L31" class="LineNr">31 </span> -<span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> next_digit/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='1a.mu.html#L60'>read_digit</a> input_stream_addr +<span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> next_digit/eax: int <span class="Special"><-</span> <a href='1a.mu.html#L60'>read_digit</a> input_stream_addr <span id="L33" class="LineNr">33 </span> <span class="muComment"># hacky newline check</span> <span id="L34" class="LineNr">34 </span> compare next_digit, <span class="Constant">0</span> <span id="L35" class="LineNr">35 </span> <span class="PreProc">break-if-<</span> @@ -120,10 +119,10 @@ if ('onhashchange' in window) { <span id="L57" class="LineNr">57 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/ok <span id="L58" class="LineNr">58 </span><span class="Delimiter">}</span> <span id="L59" class="LineNr">59 </span> -<span id="L60" class="LineNr">60 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1a.mu.html#L60'>read_digit</a></span> input_stream_addr: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L61" class="LineNr">61 </span> <span class="PreProc">var</span> next_digit/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> input_stream_addr +<span id="L60" class="LineNr">60 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1a.mu.html#L60'>read_digit</a></span> input_stream_addr: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L61" class="LineNr">61 </span> <span class="PreProc">var</span> next_digit/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> input_stream_addr <span id="L62" class="LineNr">62 </span> next_digit <span class="Special"><-</span> subtract <span class="Constant">0x30</span> -<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> next_digit/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy next_digit +<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> next_digit/eax: int <span class="Special"><-</span> copy next_digit <span id="L64" class="LineNr">64 </span> <span class="PreProc">return</span> next_digit <span id="L65" class="LineNr">65 </span><span class="Delimiter">}</span> </pre> diff --git a/html/linux/advent2020/1a.mu.html b/html/linux/advent2020/1a.mu.html index bcd2afb7..4355df49 100644 --- a/html/linux/advent2020/1a.mu.html +++ b/html/linux/advent2020/1a.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -91,12 +90,12 @@ if ('onhashchange' in window) { <span id="L26" class="LineNr">26 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L27" class="LineNr">27 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L28" class="LineNr">28 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L30" class="LineNr">30 </span> compare done?, <span class="Constant">0</span>/false <span id="L31" class="LineNr">31 </span> <span class="PreProc">break-if-!=</span> <span id="L32" class="LineNr">32 </span><span class="CommentedCode">#? print-stream-to-real-screen line</span> <span id="L33" class="LineNr">33 </span> <span class="muComment"># convert line to int and append it to numbers</span> -<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> line +<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> line <span id="L35" class="LineNr">35 </span><span class="CommentedCode">#? print-int32-decimal 0, n</span> <span id="L36" class="LineNr">36 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> dest/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index numbers, numbers-index @@ -110,7 +109,7 @@ if ('onhashchange' in window) { <span id="L45" class="LineNr">45 </span> <span class="Delimiter">}</span> <span id="L46" class="LineNr">46 </span> <span class="muComment"># phase 2: for each number in the array, check if 2020-it is in the rest of</span> <span id="L47" class="LineNr">47 </span> <span class="muComment"># the array</span> -<span id="L48" class="LineNr">48 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L48" class="LineNr">48 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L49" class="LineNr">49 </span> <span class="Delimiter">{</span> <span id="L50" class="LineNr">50 </span> compare i, numbers-index <span id="L51" class="LineNr">51 </span> <span class="PreProc">break-if->=</span> @@ -120,7 +119,7 @@ if ('onhashchange' in window) { <span id="L55" class="LineNr">55 </span> <span class="PreProc">var</span> target/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x7e4</span> <span class="muComment"># 2020</span> <span id="L56" class="LineNr">56 </span> target <span class="Special"><-</span> subtract *src <span id="L57" class="LineNr">57 </span> <span class="Delimiter">{</span> -<span id="L58" class="LineNr">58 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='1a.mu.html#L77'>find-after</a> numbers, i, target +<span id="L58" class="LineNr">58 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='1a.mu.html#L77'>find-after</a> numbers, i, target <span id="L59" class="LineNr">59 </span> compare found?, <span class="Constant">0</span>/false <span id="L60" class="LineNr">60 </span> <span class="PreProc">break-if-=</span> <span id="L61" class="LineNr">61 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"found\n"</span> @@ -139,11 +138,11 @@ if ('onhashchange' in window) { <span id="L74" class="LineNr">74 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/not-found <span id="L75" class="LineNr">75 </span><span class="Delimiter">}</span> <span id="L76" class="LineNr">76 </span> -<span id="L77" class="LineNr">77 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1a.mu.html#L77'>find-after</a></span> _numbers: (addr array int), start: int, _target: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L77" class="LineNr">77 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1a.mu.html#L77'>find-after</a></span> _numbers: (addr array int), start: int, _target: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L78" class="LineNr">78 </span> <span class="PreProc">var</span> numbers/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _numbers <span id="L79" class="LineNr">79 </span> <span class="PreProc">var</span> target/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy _target <span id="L80" class="LineNr">80 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length numbers -<span id="L81" class="LineNr">81 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy start +<span id="L81" class="LineNr">81 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy start <span id="L82" class="LineNr">82 </span> i <span class="Special"><-</span> increment <span id="L83" class="LineNr">83 </span> <span class="Delimiter">{</span> <span id="L84" class="LineNr">84 </span> compare i, len diff --git a/html/linux/advent2020/1b.mu.html b/html/linux/advent2020/1b.mu.html index fffb43fd..fad9e60d 100644 --- a/html/linux/advent2020/1b.mu.html +++ b/html/linux/advent2020/1b.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -91,12 +90,12 @@ if ('onhashchange' in window) { <span id="L26" class="LineNr"> 26 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L27" class="LineNr"> 27 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L28" class="LineNr"> 28 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L30" class="LineNr"> 30 </span> compare done?, <span class="Constant">0</span>/false <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">break-if-!=</span> <span id="L32" class="LineNr"> 32 </span><span class="CommentedCode">#? print-stream-to-real-screen line</span> <span id="L33" class="LineNr"> 33 </span> <span class="muComment"># convert line to int and append it to numbers</span> -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> line +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> line <span id="L35" class="LineNr"> 35 </span><span class="CommentedCode">#? print-int32-decimal 0, n</span> <span id="L36" class="LineNr"> 36 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> dest/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index numbers, numbers-index @@ -129,7 +128,7 @@ if ('onhashchange' in window) { <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> src2/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> index numbers, j <span id="L65" class="LineNr"> 65 </span> target <span class="Special"><-</span> subtract *src2 <span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span> -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='1b.mu.html#L93'>find-after</a> numbers, j, target +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='1b.mu.html#L93'>find-after</a> numbers, j, target <span id="L68" class="LineNr"> 68 </span> compare found?, <span class="Constant">0</span>/false <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break-if-=</span> <span id="L70" class="LineNr"> 70 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"found\n"</span> @@ -155,11 +154,11 @@ if ('onhashchange' in window) { <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/not-found <span id="L91" class="LineNr"> 91 </span><span class="Delimiter">}</span> <span id="L92" class="LineNr"> 92 </span> -<span id="L93" class="LineNr"> 93 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1b.mu.html#L93'>find-after</a></span> _numbers: (addr array int), start: int, _target: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L93" class="LineNr"> 93 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1b.mu.html#L93'>find-after</a></span> _numbers: (addr array int), start: int, _target: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> numbers/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _numbers <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> target/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy _target <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length numbers -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy start +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy start <span id="L98" class="LineNr"> 98 </span> i <span class="Special"><-</span> increment <span id="L99" class="LineNr"> 99 </span> <span class="Delimiter">{</span> <span id="L100" class="LineNr">100 </span> compare i, len diff --git a/html/linux/advent2020/2a.mu.html b/html/linux/advent2020/2a.mu.html index 825d7e12..e24a06ef 100644 --- a/html/linux/advent2020/2a.mu.html +++ b/html/linux/advent2020/2a.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdx { color: #878700; } -.muRegEsi { color: #87d787; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -83,19 +82,19 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr">19 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L20" class="LineNr">20 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L21" class="LineNr">21 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L23" class="LineNr">23 </span> compare done?, <span class="Constant">0</span>/false <span id="L24" class="LineNr">24 </span> <span class="PreProc">break-if-!=</span> <span id="L25" class="LineNr">25 </span> <a href='../304screen.subx.html#L147'>print-stream-to-real-screen</a> line <span id="L26" class="LineNr">26 </span> <span class="muComment"># slice = next-token(line, '-')</span> <span id="L27" class="LineNr">27 </span> <a href='../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x2d</span>, slice <span id="L28" class="LineNr">28 </span> <span class="muComment"># start = parse-int(slice)</span> -<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> _start/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice +<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> _start/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice <span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> start/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _start -<span id="L31" class="LineNr">31 </span> <span class="PreProc">var</span> dash/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip '-'</span> +<span id="L31" class="LineNr">31 </span> <span class="PreProc">var</span> dash/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip '-'</span> <span id="L32" class="LineNr">32 </span> <span class="muComment"># slice = next-token(line, ' ')</span> <span id="L33" class="LineNr">33 </span> <a href='../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x20</span>, slice -<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> _end/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice +<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> _end/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice <span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> end/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy _end <span id="L36" class="LineNr">36 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, start <span id="L37" class="LineNr">37 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> @@ -103,14 +102,14 @@ if ('onhashchange' in window) { <span id="L39" class="LineNr">39 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> <span id="L40" class="LineNr">40 </span> <span class="muComment"># letter = next non-space</span> <span id="L41" class="LineNr">41 </span> <a href='../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line -<span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> letter/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line +<span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> letter/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span id="L43" class="LineNr">43 </span> <span class="muComment"># skip some stuff</span> <span id="L44" class="LineNr">44 </span> <span class="Delimiter">{</span> -<span id="L45" class="LineNr">45 </span> <span class="PreProc">var</span> colon/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> +<span id="L45" class="LineNr">45 </span> <span class="PreProc">var</span> colon/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> <span id="L46" class="LineNr">46 </span> <span class="Delimiter">}</span> <span id="L47" class="LineNr">47 </span> <a href='../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line <span id="L48" class="LineNr">48 </span> <span class="muComment"># now check the rest of the line</span> -<span id="L49" class="LineNr">49 </span> <span class="PreProc">var</span> <a href='2a.mu.html#L63'>valid?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='2a.mu.html#L63'>valid?</a> start, end, letter, line +<span id="L49" class="LineNr">49 </span> <span class="PreProc">var</span> <a href='2a.mu.html#L63'>valid?</a>/eax: boolean <span class="Special"><-</span> <a href='2a.mu.html#L63'>valid?</a> start, end, letter, line <span id="L50" class="LineNr">50 </span> compare <a href='2a.mu.html#L63'>valid?</a>, <span class="Constant">0</span>/false <span id="L51" class="LineNr">51 </span> <span class="Delimiter">{</span> <span id="L52" class="LineNr">52 </span> <span class="PreProc">break-if-=</span> @@ -124,16 +123,16 @@ if ('onhashchange' in window) { <span id="L60" class="LineNr">60 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L61" class="LineNr">61 </span><span class="Delimiter">}</span> <span id="L62" class="LineNr">62 </span> -<span id="L63" class="LineNr">63 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2a.mu.html#L63'>valid?</a></span> start: int, end: int, letter: byte, password: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L63" class="LineNr">63 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2a.mu.html#L63'>valid?</a></span> start: int, end: int, letter: byte, password: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L64" class="LineNr">64 </span> <span class="PreProc">var</span> letter-count/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L65" class="LineNr">65 </span> <span class="muComment"># for every c in password</span> <span id="L66" class="LineNr">66 </span> <span class="muComment"># if (c == letter)</span> <span id="L67" class="LineNr">67 </span> <span class="muComment"># ++letter-count</span> <span id="L68" class="LineNr">68 </span> <span class="Delimiter">{</span> -<span id="L69" class="LineNr">69 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> password +<span id="L69" class="LineNr">69 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> password <span id="L70" class="LineNr">70 </span> compare done?, <span class="Constant">0</span>/false <span id="L71" class="LineNr">71 </span> <span class="PreProc">break-if-!=</span> -<span id="L72" class="LineNr">72 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> password +<span id="L72" class="LineNr">72 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> password <span id="L73" class="LineNr">73 </span> compare c, letter <span id="L74" class="LineNr">74 </span> <span class="Delimiter">{</span> <span id="L75" class="LineNr">75 </span> <span class="PreProc">break-if-!=</span> diff --git a/html/linux/advent2020/2b.mu.html b/html/linux/advent2020/2b.mu.html index 67198402..ff0a806f 100644 --- a/html/linux/advent2020/2b.mu.html +++ b/html/linux/advent2020/2b.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -84,19 +83,19 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr"> 19 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L20" class="LineNr"> 20 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L21" class="LineNr"> 21 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L23" class="LineNr"> 23 </span> compare done?, <span class="Constant">0</span>/false <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">break-if-!=</span> <span id="L25" class="LineNr"> 25 </span> <a href='../304screen.subx.html#L147'>print-stream-to-real-screen</a> line <span id="L26" class="LineNr"> 26 </span> <span class="muComment"># slice = next-token(line, '-')</span> <span id="L27" class="LineNr"> 27 </span> <a href='../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x2d</span>, slice <span id="L28" class="LineNr"> 28 </span> <span class="muComment"># pos1 = parse-int(slice)</span> -<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> _pos1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice +<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> _pos1/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> pos1/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _pos1 -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> dash/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip '-'</span> +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> dash/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip '-'</span> <span id="L32" class="LineNr"> 32 </span> <span class="muComment"># slice = next-token(line, ' ')</span> <span id="L33" class="LineNr"> 33 </span> <a href='../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x20</span>, slice -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> _pos2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> _pos2/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> pos2/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy _pos2 <span id="L36" class="LineNr"> 36 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, pos1 <span id="L37" class="LineNr"> 37 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> @@ -110,14 +109,14 @@ if ('onhashchange' in window) { <span id="L45" class="LineNr"> 45 </span> <span class="Delimiter">}</span> <span id="L46" class="LineNr"> 46 </span> <span class="muComment"># letter = next non-space</span> <span id="L47" class="LineNr"> 47 </span> <a href='../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line -<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> letter/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> letter/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span id="L49" class="LineNr"> 49 </span> <span class="muComment"># skip some stuff</span> <span id="L50" class="LineNr"> 50 </span> <span class="Delimiter">{</span> -<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> colon/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> +<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> colon/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> <span id="L52" class="LineNr"> 52 </span> <span class="Delimiter">}</span> <span id="L53" class="LineNr"> 53 </span> <a href='../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line <span id="L54" class="LineNr"> 54 </span> <span class="muComment"># now check the rest of the line</span> -<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> <a href='2b.mu.html#L72'>valid?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='2b.mu.html#L72'>valid?</a> pos1, pos2, letter, line +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> <a href='2b.mu.html#L72'>valid?</a>/eax: boolean <span class="Special"><-</span> <a href='2b.mu.html#L72'>valid?</a> pos1, pos2, letter, line <span id="L56" class="LineNr"> 56 </span> compare <a href='2b.mu.html#L72'>valid?</a>, <span class="Constant">0</span>/false <span id="L57" class="LineNr"> 57 </span> <span class="Delimiter">{</span> <span id="L58" class="LineNr"> 58 </span> <span class="PreProc">break-if-=</span> @@ -134,7 +133,7 @@ if ('onhashchange' in window) { <span id="L69" class="LineNr"> 69 </span><span class="muComment"># ideally password would be a random-access array</span> <span id="L70" class="LineNr"> 70 </span><span class="muComment"># we'll just track an index</span> <span id="L71" class="LineNr"> 71 </span><span class="muComment"># one benefit: we can easily start at 1</span> -<span id="L72" class="LineNr"> 72 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2b.mu.html#L72'>valid?</a></span> pos1: int, pos2: int, letter: byte, password: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L72" class="LineNr"> 72 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2b.mu.html#L72'>valid?</a></span> pos1: int, pos2: int, letter: byte, password: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> i/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> letter-count/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L75" class="LineNr"> 75 </span> <span class="muComment"># while password stream isn't empty</span> @@ -149,10 +148,10 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span><span class="CommentedCode">#? print-string 0, " "</span> <span id="L85" class="LineNr"> 85 </span><span class="CommentedCode">#? print-int32-decimal 0, i</span> <span id="L86" class="LineNr"> 86 </span><span class="CommentedCode">#? print-string 0, "\n"</span> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> password +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> password <span id="L88" class="LineNr"> 88 </span> compare done?, <span class="Constant">0</span>/false <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">break-if-!=</span> -<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> password +<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> password <span id="L91" class="LineNr"> 91 </span><span class="CommentedCode">#? {</span> <span id="L92" class="LineNr"> 92 </span><span class="CommentedCode">#? var c2/eax: int <- copy c</span> <span id="L93" class="LineNr"> 93 </span><span class="CommentedCode">#? print-int32-decimal 0, c2</span> diff --git a/html/linux/advent2020/3a.mu.html b/html/linux/advent2020/3a.mu.html index 8e720f6f..cf125d84 100644 --- a/html/linux/advent2020/3a.mu.html +++ b/html/linux/advent2020/3a.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -90,7 +89,7 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr"> 25 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L26" class="LineNr"> 26 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L27" class="LineNr"> 27 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L29" class="LineNr"> 29 </span> compare done?, <span class="Constant">0</span>/false <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">break-if-!=</span> <span id="L31" class="LineNr"> 31 </span> <span class="muComment"># wastefully recompute width on every line</span> @@ -98,7 +97,7 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr"> 33 </span> copy-to width, <span class="Constant">0</span> <span id="L34" class="LineNr"> 34 </span> <span class="muComment"># turn each byte into a tree and append it</span> <span id="L35" class="LineNr"> 35 </span> $main:line-loop: <span class="Delimiter">{</span> -<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L37" class="LineNr"> 37 </span> compare done?, <span class="Constant">0</span>/false <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if-!=</span> <span id="L39" class="LineNr"> 39 </span><span class="CommentedCode">#? print-int32-decimal 0, num-rows</span> @@ -106,7 +105,7 @@ if ('onhashchange' in window) { <span id="L41" class="LineNr"> 41 </span><span class="CommentedCode">#? print-int32-decimal 0, width</span> <span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> dest/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index trees, trees-length -<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># newline comes only at end of line</span> <span id="L46" class="LineNr"> 46 </span> compare c, <span class="Constant">0xa</span>/newline <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">break-if-=</span> @@ -140,7 +139,7 @@ if ('onhashchange' in window) { <span id="L75" class="LineNr"> 75 </span> <span class="Delimiter">{</span> <span id="L76" class="LineNr"> 76 </span> compare row, num-rows <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">break-if->=</span> -<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='3a.mu.html#L94'>index2d</a> trees, row, col, width +<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> curr/eax: int <span class="Special"><-</span> <a href='3a.mu.html#L94'>index2d</a> trees, row, col, width <span id="L79" class="LineNr"> 79 </span> compare curr, <span class="Constant">0</span> <span id="L80" class="LineNr"> 80 </span> <span class="Delimiter">{</span> <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">break-if-=</span> @@ -156,18 +155,18 @@ if ('onhashchange' in window) { <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L92" class="LineNr"> 92 </span><span class="Delimiter">}</span> <span id="L93" class="LineNr"> 93 </span> -<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3a.mu.html#L94'>index2d</a></span> _arr: (addr array int), _row: int, _col: int, width: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3a.mu.html#L94'>index2d</a></span> _arr: (addr array int), _row: int, _col: int, width: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L95" class="LineNr"> 95 </span> <span class="muComment"># handle repeating columns of trees</span> -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L98" class="LineNr"> 98 </span> dummy, col <span class="Special"><-</span> <a href='../314divide.subx.html#L3'>integer-divide</a> _col, width <span id="L99" class="LineNr"> 99 </span> <span class="muComment"># compute index</span> -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _row +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> index/eax: int <span class="Special"><-</span> copy _row <span id="L101" class="LineNr">101 </span> index <span class="Special"><-</span> multiply width <span id="L102" class="LineNr">102 </span> index <span class="Special"><-</span> add col <span id="L103" class="LineNr">103 </span> <span class="muComment"># look up array</span> <span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> arr/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _arr -<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index arr, index +<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> index arr, index <span id="L106" class="LineNr">106 </span> <span class="PreProc">return</span> *src <span id="L107" class="LineNr">107 </span><span class="Delimiter">}</span> </pre> diff --git a/html/linux/advent2020/3b.mu.html b/html/linux/advent2020/3b.mu.html index 07f1e4d5..6380194d 100644 --- a/html/linux/advent2020/3b.mu.html +++ b/html/linux/advent2020/3b.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -90,7 +89,7 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr"> 25 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L26" class="LineNr"> 26 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L27" class="LineNr"> 27 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L29" class="LineNr"> 29 </span> compare done?, <span class="Constant">0</span>/false <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">break-if-!=</span> <span id="L31" class="LineNr"> 31 </span> <span class="muComment"># wastefully recompute width on every line</span> @@ -98,7 +97,7 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr"> 33 </span> copy-to width, <span class="Constant">0</span> <span id="L34" class="LineNr"> 34 </span> <span class="muComment"># turn each byte into a tree and append it</span> <span id="L35" class="LineNr"> 35 </span> $main:line-loop: <span class="Delimiter">{</span> -<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L37" class="LineNr"> 37 </span> compare done?, <span class="Constant">0</span>/false <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if-!=</span> <span id="L39" class="LineNr"> 39 </span><span class="CommentedCode">#? print-int32-decimal 0, num-rows</span> @@ -106,7 +105,7 @@ if ('onhashchange' in window) { <span id="L41" class="LineNr"> 41 </span><span class="CommentedCode">#? print-int32-decimal 0, width</span> <span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> dest/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index trees, trees-length -<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># newline comes only at end of line</span> <span id="L46" class="LineNr"> 46 </span> compare c, <span class="Constant">0xa</span>/newline <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">break-if-=</span> @@ -131,23 +130,23 @@ if ('onhashchange' in window) { <span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">}</span> <span id="L67" class="LineNr"> 67 </span> <span class="muComment"># phase 2: compute</span> <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> product/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">1</span>, <span class="Constant">1</span> +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">1</span>, <span class="Constant">1</span> <span id="L70" class="LineNr"> 70 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result <span id="L71" class="LineNr"> 71 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" x "</span> <span id="L72" class="LineNr"> 72 </span> product <span class="Special"><-</span> multiply result -<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">3</span>, <span class="Constant">1</span> +<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">3</span>, <span class="Constant">1</span> <span id="L74" class="LineNr"> 74 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result <span id="L75" class="LineNr"> 75 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" x "</span> <span id="L76" class="LineNr"> 76 </span> product <span class="Special"><-</span> multiply result -<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">5</span>, <span class="Constant">1</span> +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">5</span>, <span class="Constant">1</span> <span id="L78" class="LineNr"> 78 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result <span id="L79" class="LineNr"> 79 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" x "</span> <span id="L80" class="LineNr"> 80 </span> product <span class="Special"><-</span> multiply result -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">7</span>, <span class="Constant">1</span> +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">7</span>, <span class="Constant">1</span> <span id="L82" class="LineNr"> 82 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result <span id="L83" class="LineNr"> 83 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" x "</span> <span id="L84" class="LineNr"> 84 </span> product <span class="Special"><-</span> multiply result -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">1</span>, <span class="Constant">2</span> +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">1</span>, <span class="Constant">2</span> <span id="L86" class="LineNr"> 86 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result <span id="L87" class="LineNr"> 87 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" = "</span> <span id="L88" class="LineNr"> 88 </span> product <span class="Special"><-</span> multiply result @@ -156,7 +155,7 @@ if ('onhashchange' in window) { <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L92" class="LineNr"> 92 </span><span class="Delimiter">}</span> <span id="L93" class="LineNr"> 93 </span> -<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3b.mu.html#L94'>num-trees-hit</a></span> trees: (addr array int), width: int, num-rows: int, right: int, down: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3b.mu.html#L94'>num-trees-hit</a></span> trees: (addr array int), width: int, num-rows: int, right: int, down: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L95" class="LineNr"> 95 </span><span class="CommentedCode">#? print-string 0, "== "</span> <span id="L96" class="LineNr"> 96 </span><span class="CommentedCode">#? print-int32-decimal 0, right</span> <span id="L97" class="LineNr"> 97 </span><span class="CommentedCode">#? print-string 0, " "</span> @@ -170,7 +169,7 @@ if ('onhashchange' in window) { <span id="L105" class="LineNr">105 </span> <span class="PreProc">break-if->=</span> <span id="L106" class="LineNr">106 </span><span class="CommentedCode">#? print-int32-decimal 0, col</span> <span id="L107" class="LineNr">107 </span><span class="CommentedCode">#? print-string 0, "\n"</span> -<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='3b.mu.html#L121'>index2d</a> trees, row, col, width +<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> curr/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L121'>index2d</a> trees, row, col, width <span id="L109" class="LineNr">109 </span> compare curr, <span class="Constant">0</span> <span id="L110" class="LineNr">110 </span> <span class="Delimiter">{</span> <span id="L111" class="LineNr">111 </span> <span class="PreProc">break-if-=</span> @@ -183,21 +182,21 @@ if ('onhashchange' in window) { <span id="L118" class="LineNr">118 </span> <span class="PreProc">return</span> <a href='3b.mu.html#L94'>num-trees-hit</a> <span id="L119" class="LineNr">119 </span><span class="Delimiter">}</span> <span id="L120" class="LineNr">120 </span> -<span id="L121" class="LineNr">121 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3b.mu.html#L121'>index2d</a></span> _arr: (addr array int), _row: int, _col: int, width: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L121" class="LineNr">121 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3b.mu.html#L121'>index2d</a></span> _arr: (addr array int), _row: int, _col: int, width: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L122" class="LineNr">122 </span> <span class="muComment"># handle repeating columns of trees</span> -<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L125" class="LineNr">125 </span> dummy, col <span class="Special"><-</span> <a href='../314divide.subx.html#L3'>integer-divide</a> _col, width <span id="L126" class="LineNr">126 </span><span class="CommentedCode">#? print-string 0, " "</span> <span id="L127" class="LineNr">127 </span><span class="CommentedCode">#? print-int32-decimal 0, col</span> <span id="L128" class="LineNr">128 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L129" class="LineNr">129 </span> <span class="muComment"># compute index</span> -<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _row +<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> index/eax: int <span class="Special"><-</span> copy _row <span id="L131" class="LineNr">131 </span> index <span class="Special"><-</span> multiply width <span id="L132" class="LineNr">132 </span> index <span class="Special"><-</span> add col <span id="L133" class="LineNr">133 </span> <span class="muComment"># look up array</span> <span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> arr/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _arr -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index arr, index +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> index arr, index <span id="L136" class="LineNr">136 </span> <span class="PreProc">return</span> *src <span id="L137" class="LineNr">137 </span><span class="Delimiter">}</span> </pre> diff --git a/html/linux/advent2020/4a.mu.html b/html/linux/advent2020/4a.mu.html index df8cc64b..50008b4d 100644 --- a/html/linux/advent2020/4a.mu.html +++ b/html/linux/advent2020/4a.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEcx { color: #af875f; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.Constant { color: #008787; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEax { color: #875f00; } +.muComment { color: #005faf; } --> </style> @@ -84,13 +83,13 @@ if ('onhashchange' in window) { <span id="L20" class="LineNr">20 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L21" class="LineNr">21 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L22" class="LineNr">22 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L24" class="LineNr">24 </span> compare done?, <span class="Constant">0</span>/false <span id="L25" class="LineNr">25 </span> <span class="PreProc">break-if-!=</span> <span id="L26" class="LineNr">26 </span> <a href='../304screen.subx.html#L147'>print-stream-to-real-screen</a> line <span id="L27" class="LineNr">27 </span> <span class="muComment"># if line has just a newline, process passport</span> <span id="L28" class="LineNr">28 </span> <a href='../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line -<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> new-passport?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> new-passport?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L30" class="LineNr">30 </span> <span class="Delimiter">{</span> <span id="L31" class="LineNr">31 </span> compare new-passport?, <span class="Constant">0</span>/false <span id="L32" class="LineNr">32 </span> <span class="PreProc">break-if-=</span> @@ -107,13 +106,13 @@ if ('onhashchange' in window) { <span id="L43" class="LineNr">43 </span> <span class="Delimiter">}</span> <span id="L44" class="LineNr">44 </span> $main:word-loop: <span class="Delimiter">{</span> <span id="L45" class="LineNr">45 </span> <a href='../127next-word.subx.html#L11'>next-word</a> line, slice -<span id="L46" class="LineNr">46 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L9'>slice-empty?</a> slice +<span id="L46" class="LineNr">46 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L9'>slice-empty?</a> slice <span id="L47" class="LineNr">47 </span> compare done?, <span class="Constant">0</span>/false <span id="L48" class="LineNr">48 </span> <span class="PreProc">break-if-!=</span> <span id="L49" class="LineNr">49 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> <span id="L50" class="LineNr">50 </span> <a href='../304screen.subx.html#L134'>print-slice-to-real-screen</a> slice <span id="L51" class="LineNr">51 </span> <span class="muComment"># treat cid as optional</span> -<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> optional?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L487'>slice-starts-with?</a> slice, <span class="Constant">"cid:"</span> +<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> optional?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L487'>slice-starts-with?</a> slice, <span class="Constant">"cid:"</span> <span id="L53" class="LineNr">53 </span> compare optional?, <span class="Constant">0</span>/false <span id="L54" class="LineNr">54 </span> <span class="Delimiter">{</span> <span id="L55" class="LineNr">55 </span> <span class="PreProc">break-if-!=</span> diff --git a/html/linux/advent2020/4b.mu.html b/html/linux/advent2020/4b.mu.html index 1c2ac0e0..b6fdafe5 100644 --- a/html/linux/advent2020/4b.mu.html +++ b/html/linux/advent2020/4b.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEcx { color: #af875f; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.Constant { color: #008787; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEax { color: #875f00; } +.muComment { color: #005faf; } --> </style> @@ -86,13 +85,13 @@ if ('onhashchange' in window) { <span id="L22" class="LineNr"> 22 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L23" class="LineNr"> 23 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L24" class="LineNr"> 24 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L26" class="LineNr"> 26 </span> compare done?, <span class="Constant">0</span>/false <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">break-if-!=</span> <span id="L28" class="LineNr"> 28 </span> <a href='../304screen.subx.html#L147'>print-stream-to-real-screen</a> line <span id="L29" class="LineNr"> 29 </span> <span class="muComment"># if line has just a newline, process passport</span> <span id="L30" class="LineNr"> 30 </span> <a href='../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> new-passport?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> new-passport?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L32" class="LineNr"> 32 </span> <span class="Delimiter">{</span> <span id="L33" class="LineNr"> 33 </span> compare new-passport?, <span class="Constant">0</span>/false <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">break-if-=</span> @@ -109,18 +108,18 @@ if ('onhashchange' in window) { <span id="L45" class="LineNr"> 45 </span> <span class="Delimiter">}</span> <span id="L46" class="LineNr"> 46 </span> $main:word-loop: <span class="Delimiter">{</span> <span id="L47" class="LineNr"> 47 </span> <a href='../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line -<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L49" class="LineNr"> 49 </span> compare done?, <span class="Constant">0</span>/false <span id="L50" class="LineNr"> 50 </span> <span class="PreProc">break-if-!=</span> <span id="L51" class="LineNr"> 51 </span> <a href='../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x3a</span>, key-slice <span class="muComment"># ':'</span> -<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> +<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> dummy/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> <span id="L53" class="LineNr"> 53 </span> <a href='../127next-word.subx.html#L306'>next-raw-word</a> line, val-slice <span id="L54" class="LineNr"> 54 </span> <a href='../304screen.subx.html#L134'>print-slice-to-real-screen</a> key-slice <span id="L55" class="LineNr"> 55 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" : "</span> <span id="L56" class="LineNr"> 56 </span> <a href='../304screen.subx.html#L134'>print-slice-to-real-screen</a> val-slice <span id="L57" class="LineNr"> 57 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> <span id="L58" class="LineNr"> 58 </span> <span class="muComment"># treat cid as optional</span> -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> cid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"cid"</span> +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> cid?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"cid"</span> <span id="L60" class="LineNr"> 60 </span> compare cid?, <span class="Constant">0</span>/false <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">loop-if-!=</span> <span id="L62" class="LineNr"> 62 </span> <span class="muComment"># increment field count</span> @@ -128,11 +127,11 @@ if ('onhashchange' in window) { <span id="L64" class="LineNr"> 64 </span> <span class="muComment"># - validate fields one by one, setting curr-passport-field-count to impossibly high value to signal invalid</span> <span id="L65" class="LineNr"> 65 </span> <span class="muComment"># byr</span> <span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span> -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> byr?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"byr"</span> +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> byr?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"byr"</span> <span id="L68" class="LineNr"> 68 </span> compare byr?, <span class="Constant">0</span>/false <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break-if-=</span> <span id="L70" class="LineNr"> 70 </span> <span class="muComment"># 1920 <= byr <= 2002</span> -<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> byr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> byr/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice <span id="L72" class="LineNr"> 72 </span> compare byr, <span class="Constant">0x780</span> <span class="muComment"># 1920</span> <span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">break-if->=</span> @@ -148,11 +147,11 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">}</span> <span id="L85" class="LineNr"> 85 </span> <span class="muComment"># iyr</span> <span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">{</span> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> iyr?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"iyr"</span> +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> iyr?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"iyr"</span> <span id="L88" class="LineNr"> 88 </span> compare iyr?, <span class="Constant">0</span>/false <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">break-if-=</span> <span id="L90" class="LineNr"> 90 </span> <span class="muComment"># 2010 <= iyr <= 2020</span> -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> iyr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> iyr/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice <span id="L92" class="LineNr"> 92 </span> compare iyr, <span class="Constant">0x7da</span> <span class="muComment"># 2010</span> <span id="L93" class="LineNr"> 93 </span> <span class="Delimiter">{</span> <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">break-if->=</span> @@ -168,11 +167,11 @@ if ('onhashchange' in window) { <span id="L104" class="LineNr">104 </span> <span class="Delimiter">}</span> <span id="L105" class="LineNr">105 </span> <span class="muComment"># eyr</span> <span id="L106" class="LineNr">106 </span> <span class="Delimiter">{</span> -<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> eyr?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"eyr"</span> +<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> eyr?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"eyr"</span> <span id="L108" class="LineNr">108 </span> compare eyr?, <span class="Constant">0</span>/false <span id="L109" class="LineNr">109 </span> <span class="PreProc">break-if-=</span> <span id="L110" class="LineNr">110 </span> <span class="muComment"># 2020 <= eyr <= 2030</span> -<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> eyr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice +<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> eyr/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice <span id="L112" class="LineNr">112 </span> compare eyr, <span class="Constant">0x7e4</span> <span class="muComment"># 2020</span> <span id="L113" class="LineNr">113 </span> <span class="Delimiter">{</span> <span id="L114" class="LineNr">114 </span> <span class="PreProc">break-if->=</span> @@ -188,14 +187,14 @@ if ('onhashchange' in window) { <span id="L124" class="LineNr">124 </span> <span class="Delimiter">}</span> <span id="L125" class="LineNr">125 </span> <span class="muComment"># hgt</span> <span id="L126" class="LineNr">126 </span> <span class="Delimiter">{</span> -<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> hgt?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"hgt"</span> +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> hgt?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"hgt"</span> <span id="L128" class="LineNr">128 </span> compare hgt?, <span class="Constant">0</span>/false <span id="L129" class="LineNr">129 </span> <span class="PreProc">break-if-=</span> <span id="L130" class="LineNr">130 </span> <span class="muComment"># convert val</span> <span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> s: (handle array byte) -<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> s2/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address s +<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> s2/eax: (addr handle array byte) <span class="Special"><-</span> address s <span id="L133" class="LineNr">133 </span> <a href='../315slice.subx.html#L5'>_slice-to-string</a> val-slice, s2 -<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> s3/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *s2 +<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> s3/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *s2 <span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> s4/<span class="muRegEbx">ebx</span>: (addr array byte) <span class="Special"><-</span> copy s3 <span id="L136" class="LineNr">136 </span> <span class="muComment"># check suffix</span> <span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> start/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length s4 @@ -204,17 +203,17 @@ if ('onhashchange' in window) { <span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> suffix-h: (handle array byte) <span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> suffix-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address suffix-h <span id="L142" class="LineNr">142 </span> <a href='../411string.mu.html#L2'>substring</a> s4, start, <span class="Constant">2</span>, suffix-ah -<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> suffix/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *suffix-ah +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> suffix/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *suffix-ah <span id="L144" class="LineNr">144 </span> <span class="Delimiter">{</span> -<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> suffix, <span class="Constant">"in"</span> +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> suffix, <span class="Constant">"in"</span> <span id="L146" class="LineNr">146 </span> compare match?, <span class="Constant">0</span>/false <span id="L147" class="LineNr">147 </span> <span class="PreProc">break-if-=</span> <span id="L148" class="LineNr">148 </span> <span class="muComment"># if suffix is "in", 59 <= val <= 96</span> <span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> num-h: (handle array byte) <span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> num-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address num-h <span id="L151" class="LineNr">151 </span> <a href='../411string.mu.html#L2'>substring</a> s4, <span class="Constant">0</span>, start, num-ah -<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> num/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *num-ah -<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L23'>parse-decimal-int</a> num +<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> num/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *num-ah +<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L23'>parse-decimal-int</a> num <span id="L154" class="LineNr">154 </span> compare val, <span class="Constant">0x3b</span> <span class="muComment"># 59</span> <span id="L155" class="LineNr">155 </span> <span class="Delimiter">{</span> <span id="L156" class="LineNr">156 </span> <span class="PreProc">break-if->=</span> @@ -230,15 +229,15 @@ if ('onhashchange' in window) { <span id="L166" class="LineNr">166 </span> <span class="PreProc">loop</span> $main:word-loop <span id="L167" class="LineNr">167 </span> <span class="Delimiter">}</span> <span id="L168" class="LineNr">168 </span> <span class="Delimiter">{</span> -<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> suffix, <span class="Constant">"cm"</span> +<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> suffix, <span class="Constant">"cm"</span> <span id="L170" class="LineNr">170 </span> compare match?, <span class="Constant">0</span>/false <span id="L171" class="LineNr">171 </span> <span class="PreProc">break-if-=</span> <span id="L172" class="LineNr">172 </span> <span class="muComment"># if suffix is "cm", 150 <= val <= 193</span> <span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> num-h: (handle array byte) <span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> num-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address num-h <span id="L175" class="LineNr">175 </span> <a href='../411string.mu.html#L2'>substring</a> s4, <span class="Constant">0</span>, start, num-ah -<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> num/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *num-ah -<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L23'>parse-decimal-int</a> num +<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> num/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *num-ah +<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L23'>parse-decimal-int</a> num <span id="L178" class="LineNr">178 </span> compare val, <span class="Constant">0x96</span> <span class="muComment"># 150</span> <span id="L179" class="LineNr">179 </span> <span class="Delimiter">{</span> <span id="L180" class="LineNr">180 </span> <span class="PreProc">break-if->=</span> @@ -260,14 +259,14 @@ if ('onhashchange' in window) { <span id="L196" class="LineNr">196 </span> <span class="Delimiter">}</span> <span id="L197" class="LineNr">197 </span> <span class="muComment"># hcl</span> <span id="L198" class="LineNr">198 </span> <span class="Delimiter">{</span> -<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> hcl?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"hcl"</span> +<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> hcl?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"hcl"</span> <span id="L200" class="LineNr">200 </span> compare hcl?, <span class="Constant">0</span>/false <span id="L201" class="LineNr">201 </span> <span class="PreProc">break-if-=</span> <span id="L202" class="LineNr">202 </span> <span class="muComment"># convert val</span> <span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> s: (handle array byte) -<span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> s2/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address s +<span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> s2/eax: (addr handle array byte) <span class="Special"><-</span> address s <span id="L205" class="LineNr">205 </span> <a href='../315slice.subx.html#L5'>_slice-to-string</a> val-slice, s2 -<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> s3/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *s2 +<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> s3/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *s2 <span id="L207" class="LineNr">207 </span> <span class="muComment"># check length</span> <span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> len/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> length s3 <span id="L209" class="LineNr">209 </span> compare len, <span class="Constant">7</span> @@ -279,8 +278,8 @@ if ('onhashchange' in window) { <span id="L215" class="LineNr">215 </span> <span class="Delimiter">}</span> <span id="L216" class="LineNr">216 </span> <span class="muComment"># check first byte</span> <span id="L217" class="LineNr">217 </span> <span class="Delimiter">{</span> -<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: (addr byte) <span class="Special"><-</span> index s3, <span class="Constant">0</span> -<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> c2/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *c +<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> c/eax: (addr byte) <span class="Special"><-</span> index s3, <span class="Constant">0</span> +<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> c2/eax: byte <span class="Special"><-</span> copy-byte *c <span id="L220" class="LineNr">220 </span> compare c2, <span class="Constant">0x23</span>/hash <span id="L221" class="LineNr">221 </span> <span class="PreProc">break-if-=</span> <span id="L222" class="LineNr">222 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid2\n"</span> @@ -292,10 +291,10 @@ if ('onhashchange' in window) { <span id="L228" class="LineNr">228 </span> <span class="Delimiter">{</span> <span id="L229" class="LineNr">229 </span> compare i, <span class="Constant">7</span> <span id="L230" class="LineNr">230 </span> <span class="PreProc">break-if->=</span> -<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: (addr byte) <span class="Special"><-</span> index s3, i +<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> c/eax: (addr byte) <span class="Special"><-</span> index s3, i <span id="L232" class="LineNr">232 </span> <span class="Delimiter">{</span> -<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> c2/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *c -<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> valid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../118parse-hex-int.subx.html#L701'>hex-digit?</a> c2 +<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> c2/eax: byte <span class="Special"><-</span> copy-byte *c +<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='../118parse-hex-int.subx.html#L701'>hex-digit?</a> c2 <span id="L235" class="LineNr">235 </span> compare valid?, <span class="Constant">0</span> <span id="L236" class="LineNr">236 </span> <span class="PreProc">loop-if-=</span> $main:word-loop <span id="L237" class="LineNr">237 </span> <span class="Delimiter">}</span> @@ -305,28 +304,28 @@ if ('onhashchange' in window) { <span id="L241" class="LineNr">241 </span> <span class="Delimiter">}</span> <span id="L242" class="LineNr">242 </span> <span class="muComment"># ecl</span> <span id="L243" class="LineNr">243 </span> <span class="Delimiter">{</span> -<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> ecl?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"ecl"</span> +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> ecl?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"ecl"</span> <span id="L245" class="LineNr">245 </span> compare ecl?, <span class="Constant">0</span>/false <span id="L246" class="LineNr">246 </span> <span class="PreProc">break-if-=</span> -<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> amb?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"amb"</span> +<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> amb?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"amb"</span> <span id="L248" class="LineNr">248 </span> compare amb?, <span class="Constant">0</span>/false <span id="L249" class="LineNr">249 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop -<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> blu?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"blu"</span> +<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> blu?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"blu"</span> <span id="L251" class="LineNr">251 </span> compare blu?, <span class="Constant">0</span>/false <span id="L252" class="LineNr">252 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop -<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> brn?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"brn"</span> +<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> brn?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"brn"</span> <span id="L254" class="LineNr">254 </span> compare brn?, <span class="Constant">0</span>/false <span id="L255" class="LineNr">255 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop -<span id="L256" class="LineNr">256 </span> <span class="PreProc">var</span> gry?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"gry"</span> +<span id="L256" class="LineNr">256 </span> <span class="PreProc">var</span> gry?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"gry"</span> <span id="L257" class="LineNr">257 </span> compare gry?, <span class="Constant">0</span>/false <span id="L258" class="LineNr">258 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop -<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> grn?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"grn"</span> +<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> grn?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"grn"</span> <span id="L260" class="LineNr">260 </span> compare grn?, <span class="Constant">0</span>/false <span id="L261" class="LineNr">261 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop -<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> hzl?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"hzl"</span> +<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> hzl?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"hzl"</span> <span id="L263" class="LineNr">263 </span> compare hzl?, <span class="Constant">0</span>/false <span id="L264" class="LineNr">264 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop -<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> oth?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"oth"</span> +<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> oth?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"oth"</span> <span id="L266" class="LineNr">266 </span> compare oth?, <span class="Constant">0</span>/false <span id="L267" class="LineNr">267 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop <span id="L268" class="LineNr">268 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> @@ -334,16 +333,16 @@ if ('onhashchange' in window) { <span id="L270" class="LineNr">270 </span> <span class="Delimiter">}</span> <span id="L271" class="LineNr">271 </span> <span class="muComment"># pid</span> <span id="L272" class="LineNr">272 </span> <span class="Delimiter">{</span> -<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> pid?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"pid"</span> +<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> pid?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"pid"</span> <span id="L274" class="LineNr">274 </span> compare pid?, <span class="Constant">0</span>/false <span id="L275" class="LineNr">275 </span> <span class="PreProc">break-if-=</span> <span id="L276" class="LineNr">276 </span> <span class="muComment"># convert val</span> <span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> s: (handle array byte) -<span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> s2/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address s +<span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> s2/eax: (addr handle array byte) <span class="Special"><-</span> address s <span id="L279" class="LineNr">279 </span> <a href='../315slice.subx.html#L5'>_slice-to-string</a> val-slice, s2 -<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> s3/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *s2 +<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> s3/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *s2 <span id="L281" class="LineNr">281 </span> <span class="muComment"># check length</span> -<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> len/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> length s3 +<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> len/eax: int <span class="Special"><-</span> length s3 <span id="L283" class="LineNr">283 </span> compare len, <span class="Constant">9</span> <span id="L284" class="LineNr">284 </span> <span class="Delimiter">{</span> <span id="L285" class="LineNr">285 </span> <span class="PreProc">break-if-=</span> @@ -354,7 +353,7 @@ if ('onhashchange' in window) { <span id="L290" class="LineNr">290 </span> <span class="muComment"># check valid decimal int</span> <span id="L291" class="LineNr">291 </span> <span class="muComment"># parse-decimal-int-from-slice currently returns 0 on invalid parse,</span> <span id="L292" class="LineNr">292 </span> <span class="muComment"># which isn't ideal but suffices for our purposes</span> -<span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice +<span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice <span id="L294" class="LineNr">294 </span> compare val, <span class="Constant">0</span> <span id="L295" class="LineNr">295 </span> <span class="Delimiter">{</span> <span id="L296" class="LineNr">296 </span> <span class="PreProc">break-if-></span> diff --git a/html/linux/advent2020/5a.mu.html b/html/linux/advent2020/5a.mu.html index 0c197443..65e52369 100644 --- a/html/linux/advent2020/5a.mu.html +++ b/html/linux/advent2020/5a.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.CommentedCode { color: #8a8a8a; } -.LineNr { } -.muRegEcx { color: #af875f; } -.muRegEax { color: #875f00; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEdi { color: #87ffd7; } +.LineNr { } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muComment { color: #005faf; } --> </style> @@ -82,11 +81,11 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr">18 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L19" class="LineNr">19 </span> <a href='../304screen.subx.html#L147'>print-stream-to-real-screen</a> line <span id="L20" class="LineNr">20 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L22" class="LineNr">22 </span> compare done?, <span class="Constant">0</span>/false <span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if-!=</span> <span id="L24" class="LineNr">24 </span> <span class="muComment"># process line</span> -<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> seat-id/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='5a.mu.html#L38'>convert-from-binary</a> line +<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> seat-id/eax: int <span class="Special"><-</span> <a href='5a.mu.html#L38'>convert-from-binary</a> line <span id="L26" class="LineNr">26 </span> compare seat-id, max-seat-id <span id="L27" class="LineNr">27 </span> <span class="Delimiter">{</span> <span id="L28" class="LineNr">28 </span> <span class="PreProc">break-if-<=</span> @@ -99,13 +98,13 @@ if ('onhashchange' in window) { <span id="L35" class="LineNr">35 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L36" class="LineNr">36 </span><span class="Delimiter">}</span> <span id="L37" class="LineNr">37 </span> -<span id="L38" class="LineNr">38 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='5a.mu.html#L38'>convert-from-binary</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L38" class="LineNr">38 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='5a.mu.html#L38'>convert-from-binary</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">9</span> <span class="muComment"># loop counter and also exponent</span> <span id="L41" class="LineNr">41 </span> <span class="Delimiter">{</span> <span id="L42" class="LineNr">42 </span> compare i, <span class="Constant">0</span> <span id="L43" class="LineNr">43 </span> <span class="PreProc">break-if-<</span> -<span id="L44" class="LineNr">44 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> in +<span id="L44" class="LineNr">44 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> in <span id="L45" class="LineNr">45 </span><span class="CommentedCode">#? print-string 0, "char: "</span> <span id="L46" class="LineNr">46 </span><span class="CommentedCode">#? {</span> <span id="L47" class="LineNr">47 </span><span class="CommentedCode">#? var c2/eax: int <- copy c</span> @@ -126,7 +125,7 @@ if ('onhashchange' in window) { <span id="L62" class="LineNr">62 </span><span class="CommentedCode">#? print-string 0, "bit: "</span> <span id="L63" class="LineNr">63 </span><span class="CommentedCode">#? print-int32-decimal 0, bit</span> <span id="L64" class="LineNr">64 </span><span class="CommentedCode">#? print-string 0, "\n"</span> -<span id="L65" class="LineNr">65 </span> <span class="PreProc">var</span> bit-value/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../406int32.mu.html#L5'>repeated-shift-left</a> bit, i +<span id="L65" class="LineNr">65 </span> <span class="PreProc">var</span> bit-value/eax: int <span class="Special"><-</span> <a href='../406int32.mu.html#L5'>repeated-shift-left</a> bit, i <span id="L66" class="LineNr">66 </span><span class="CommentedCode">#? print-string 0, "bit value: "</span> <span id="L67" class="LineNr">67 </span><span class="CommentedCode">#? print-int32-decimal 0, bit-value</span> <span id="L68" class="LineNr">68 </span><span class="CommentedCode">#? print-string 0, "\n"</span> diff --git a/html/linux/advent2020/5b.mu.html b/html/linux/advent2020/5b.mu.html index 8e8d6da9..c03039b9 100644 --- a/html/linux/advent2020/5b.mu.html +++ b/html/linux/advent2020/5b.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEdi { color: #87ffd7; } +.muComment { color: #005faf; } --> </style> @@ -83,17 +82,17 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr">19 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> line <span id="L20" class="LineNr">20 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line <span id="L21" class="LineNr">21 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> -<span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> line <span id="L23" class="LineNr">23 </span> compare done?, <span class="Constant">0</span>/false <span id="L24" class="LineNr">24 </span> <span class="PreProc">break-if-!=</span> <span id="L25" class="LineNr">25 </span> <span class="muComment"># process line</span> -<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> seat-id/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='5b.mu.html#L57'>convert-from-binary</a> line -<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index pass, seat-id +<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> seat-id/eax: int <span class="Special"><-</span> <a href='5b.mu.html#L57'>convert-from-binary</a> line +<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> dest/eax: (addr int) <span class="Special"><-</span> index pass, seat-id <span id="L28" class="LineNr">28 </span> copy-to *dest, <span class="Constant">1</span> <span id="L29" class="LineNr">29 </span> <span class="PreProc">loop</span> <span id="L30" class="LineNr">30 </span> <span class="Delimiter">}</span> <span id="L31" class="LineNr">31 </span> <span class="muComment"># phase 2: skip empty seats</span> -<span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L33" class="LineNr">33 </span> <span class="Delimiter">{</span> <span id="L34" class="LineNr">34 </span> compare i, <span class="Constant">0x400</span> <span id="L35" class="LineNr">35 </span> <span class="PreProc">break-if->=</span> @@ -118,13 +117,13 @@ if ('onhashchange' in window) { <span id="L54" class="LineNr">54 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L55" class="LineNr">55 </span><span class="Delimiter">}</span> <span id="L56" class="LineNr">56 </span> -<span id="L57" class="LineNr">57 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='5b.mu.html#L57'>convert-from-binary</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L57" class="LineNr">57 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='5b.mu.html#L57'>convert-from-binary</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L58" class="LineNr">58 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L59" class="LineNr">59 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">9</span> <span class="muComment"># loop counter and also exponent</span> <span id="L60" class="LineNr">60 </span> <span class="Delimiter">{</span> <span id="L61" class="LineNr">61 </span> compare i, <span class="Constant">0</span> <span id="L62" class="LineNr">62 </span> <span class="PreProc">break-if-<</span> -<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> in +<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> in <span id="L64" class="LineNr">64 </span> <span class="PreProc">var</span> bit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L65" class="LineNr">65 </span> <span class="Delimiter">{</span> <span id="L66" class="LineNr">66 </span> compare c, <span class="Constant">0x42</span>/B @@ -136,7 +135,7 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr">72 </span> <span class="PreProc">break-if-!=</span> <span id="L73" class="LineNr">73 </span> bit <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L74" class="LineNr">74 </span> <span class="Delimiter">}</span> -<span id="L75" class="LineNr">75 </span> <span class="PreProc">var</span> bit-value/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../406int32.mu.html#L5'>repeated-shift-left</a> bit, i +<span id="L75" class="LineNr">75 </span> <span class="PreProc">var</span> bit-value/eax: int <span class="Special"><-</span> <a href='../406int32.mu.html#L5'>repeated-shift-left</a> bit, i <span id="L76" class="LineNr">76 </span> result <span class="Special"><-</span> add bit-value <span id="L77" class="LineNr">77 </span> i <span class="Special"><-</span> decrement <span id="L78" class="LineNr">78 </span> <span class="PreProc">loop</span> diff --git a/html/linux/arith.mu.html b/html/linux/arith.mu.html index 72fdf847..7cd2e5c9 100644 --- a/html/linux/arith.mu.html +++ b/html/linux/arith.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -99,7 +98,7 @@ if ('onhashchange' in window) { <span id="L34" class="LineNr"> 34 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L34'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> <span id="L35" class="LineNr"> 35 </span> <a href='305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> look/<span class="muRegEsi">esi</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span class="muComment"># lookahead</span> -<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span class="muComment"># result of each expression</span> +<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span class="muComment"># result of each expression</span> <span id="L38" class="LineNr"> 38 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"press ctrl-c or ctrl-d to exit\n"</span> <span id="L39" class="LineNr"> 39 </span> <span class="muComment"># read-eval-print loop</span> <span id="L40" class="LineNr"> 40 </span> <span class="Delimiter">{</span> @@ -120,25 +119,25 @@ if ('onhashchange' in window) { <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span> <span id="L57" class="LineNr"> 57 </span> -<span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L58'>simplify</a></span><span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L58'>simplify</a></span><span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L59" class="LineNr"> 59 </span> <span class="muComment"># prime the pump</span> <span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> look/<span class="muRegEsi">esi</span>: grapheme <span class="Special"><-</span> <a href='arith.mu.html#L248'>get-char</a> <span id="L61" class="LineNr"> 61 </span> <span class="muComment"># do it</span> -<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L63" class="LineNr"> 63 </span> result, look <span class="Special"><-</span> <a href='arith.mu.html#L67'>expression</a> look <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">return</span> result, look <span id="L65" class="LineNr"> 65 </span><span class="Delimiter">}</span> <span id="L66" class="LineNr"> 66 </span> -<span id="L67" class="LineNr"> 67 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L67'>expression</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L67" class="LineNr"> 67 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L67'>expression</a></span> _look: grapheme<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> look/<span class="muRegEsi">esi</span>: grapheme <span class="Special"><-</span> copy _look <span id="L69" class="LineNr"> 69 </span> <span class="muComment"># read arg</span> -<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L71" class="LineNr"> 71 </span> result, look <span class="Special"><-</span> <a href='arith.mu.html#L112'>term</a> look <span id="L72" class="LineNr"> 72 </span> $expression:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L73" class="LineNr"> 73 </span> <span class="muComment"># while next non-space char in ['+', '-']</span> <span id="L74" class="LineNr"> 74 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look <span id="L75" class="LineNr"> 75 </span> <span class="Delimiter">{</span> -<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> continue?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='arith.mu.html#L191'>add-or-sub?</a> look +<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='arith.mu.html#L191'>add-or-sub?</a> look <span id="L77" class="LineNr"> 77 </span> compare continue?, <span class="Constant">0</span>/false <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">break-if-=</span> $expression:<span class="PreProc">loop</span> <span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">}</span> @@ -149,7 +148,7 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> second/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L85" class="LineNr"> 85 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look <span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">{</span> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L88" class="LineNr"> 88 </span> tmp, look <span class="Special"><-</span> <a href='arith.mu.html#L112'>term</a> look <span id="L89" class="LineNr"> 89 </span> second <span class="Special"><-</span> copy tmp <span id="L90" class="LineNr"> 90 </span> <span class="Delimiter">}</span> @@ -174,17 +173,17 @@ if ('onhashchange' in window) { <span id="L109" class="LineNr">109 </span> <span class="PreProc">return</span> result, look <span id="L110" class="LineNr">110 </span><span class="Delimiter">}</span> <span id="L111" class="LineNr">111 </span> -<span id="L112" class="LineNr">112 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L112'>term</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L112" class="LineNr">112 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L112'>term</a></span> _look: grapheme<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> look/<span class="muRegEsi">esi</span>: grapheme <span class="Special"><-</span> copy _look <span id="L114" class="LineNr">114 </span> <span class="muComment"># read arg</span> <span id="L115" class="LineNr">115 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look -<span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L117" class="LineNr">117 </span> result, look <span class="Special"><-</span> <a href='arith.mu.html#L157'>factor</a> look <span id="L118" class="LineNr">118 </span> $term:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L119" class="LineNr">119 </span> <span class="muComment"># while next non-space char in ['*', '/']</span> <span id="L120" class="LineNr">120 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look <span id="L121" class="LineNr">121 </span> <span class="Delimiter">{</span> -<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> continue?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='arith.mu.html#L177'>mul-or-div?</a> look +<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='arith.mu.html#L177'>mul-or-div?</a> look <span id="L123" class="LineNr">123 </span> compare continue?, <span class="Constant">0</span>/false <span id="L124" class="LineNr">124 </span> <span class="PreProc">break-if-=</span> $term:<span class="PreProc">loop</span> <span id="L125" class="LineNr">125 </span> <span class="Delimiter">}</span> @@ -195,7 +194,7 @@ if ('onhashchange' in window) { <span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> second/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L131" class="LineNr">131 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look <span id="L132" class="LineNr">132 </span> <span class="Delimiter">{</span> -<span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L134" class="LineNr">134 </span> tmp, look <span class="Special"><-</span> <a href='arith.mu.html#L157'>factor</a> look <span id="L135" class="LineNr">135 </span> second <span class="Special"><-</span> copy tmp <span id="L136" class="LineNr">136 </span> <span class="Delimiter">}</span> @@ -219,27 +218,27 @@ if ('onhashchange' in window) { <span id="L154" class="LineNr">154 </span> <span class="PreProc">return</span> result, look <span id="L155" class="LineNr">155 </span><span class="Delimiter">}</span> <span id="L156" class="LineNr">156 </span> -<span id="L157" class="LineNr">157 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L157'>factor</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L157" class="LineNr">157 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L157'>factor</a></span> _look: grapheme<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> look/<span class="muRegEsi">esi</span>: grapheme <span class="Special"><-</span> copy _look <span class="muComment"># should be a no-op</span> <span id="L159" class="LineNr">159 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look <span id="L160" class="LineNr">160 </span> <span class="muComment"># if next char is not '(', parse a number</span> <span id="L161" class="LineNr">161 </span> compare look, <span class="Constant">0x28</span>/open-paren <span id="L162" class="LineNr">162 </span> <span class="Delimiter">{</span> <span id="L163" class="LineNr">163 </span> <span class="PreProc">break-if-=</span> -<span id="L164" class="LineNr">164 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L164" class="LineNr">164 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L165" class="LineNr">165 </span> result, look <span class="Special"><-</span> <a href='arith.mu.html#L211'>num</a> look <span id="L166" class="LineNr">166 </span> <span class="PreProc">return</span> result, look <span id="L167" class="LineNr">167 </span> <span class="Delimiter">}</span> <span id="L168" class="LineNr">168 </span> <span class="muComment"># otherwise recurse</span> <span id="L169" class="LineNr">169 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L248'>get-char</a> <span class="muComment"># '('</span> -<span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L171" class="LineNr">171 </span> result, look <span class="Special"><-</span> <a href='arith.mu.html#L67'>expression</a> look <span id="L172" class="LineNr">172 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look <span id="L173" class="LineNr">173 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L248'>get-char</a> <span class="muComment"># ')'</span> <span id="L174" class="LineNr">174 </span> <span class="PreProc">return</span> result, look <span id="L175" class="LineNr">175 </span><span class="Delimiter">}</span> <span id="L176" class="LineNr">176 </span> -<span id="L177" class="LineNr">177 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L177'>mul-or-div?</a></span> c: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L177" class="LineNr">177 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L177'>mul-or-div?</a></span> c: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L178" class="LineNr">178 </span> compare c, <span class="Constant">0x2a</span>/* <span id="L179" class="LineNr">179 </span> <span class="Delimiter">{</span> <span id="L180" class="LineNr">180 </span> <span class="PreProc">break-if-!=</span> @@ -253,7 +252,7 @@ if ('onhashchange' in window) { <span id="L188" class="LineNr">188 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L189" class="LineNr">189 </span><span class="Delimiter">}</span> <span id="L190" class="LineNr">190 </span> -<span id="L191" class="LineNr">191 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L191'>add-or-sub?</a></span> c: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L191" class="LineNr">191 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L191'>add-or-sub?</a></span> c: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L192" class="LineNr">192 </span> compare c, <span class="Constant">0x2b</span>/+ <span id="L193" class="LineNr">193 </span> <span class="Delimiter">{</span> <span id="L194" class="LineNr">194 </span> <span class="PreProc">break-if-!=</span> @@ -273,26 +272,26 @@ if ('onhashchange' in window) { <span id="L208" class="LineNr">208 </span> <span class="PreProc">return</span> op, look <span id="L209" class="LineNr">209 </span><span class="Delimiter">}</span> <span id="L210" class="LineNr">210 </span> -<span id="L211" class="LineNr">211 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L211'>num</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L211" class="LineNr">211 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L211'>num</a></span> _look: grapheme<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> look/<span class="muRegEsi">esi</span>: grapheme <span class="Special"><-</span> copy _look <span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L214" class="LineNr">214 </span> <span class="Delimiter">{</span> -<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> first-digit/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> look +<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> first-digit/eax: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> look <span id="L216" class="LineNr">216 </span> result <span class="Special"><-</span> copy first-digit <span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span> <span id="L218" class="LineNr">218 </span> <span class="Delimiter">{</span> <span id="L219" class="LineNr">219 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L248'>get-char</a> <span id="L220" class="LineNr">220 </span> <span class="muComment"># done?</span> -<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> digit?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L306'>decimal-digit?</a> look +<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> digit?/eax: boolean <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L306'>decimal-digit?</a> look <span id="L222" class="LineNr">222 </span> compare digit?, <span class="Constant">0</span>/false <span id="L223" class="LineNr">223 </span> <span class="PreProc">break-if-=</span> <span id="L224" class="LineNr">224 </span> <span class="muComment"># result *= 10</span> <span id="L225" class="LineNr">225 </span> <span class="Delimiter">{</span> -<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> ten/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0xa</span> +<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> ten/eax: int <span class="Special"><-</span> copy <span class="Constant">0xa</span> <span id="L227" class="LineNr">227 </span> result <span class="Special"><-</span> multiply ten <span id="L228" class="LineNr">228 </span> <span class="Delimiter">}</span> <span id="L229" class="LineNr">229 </span> <span class="muComment"># result += digit(look)</span> -<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> digit/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> look +<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> digit/eax: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> look <span id="L231" class="LineNr">231 </span> result <span class="Special"><-</span> add digit <span id="L232" class="LineNr">232 </span> <span class="PreProc">loop</span> <span id="L233" class="LineNr">233 </span> <span class="Delimiter">}</span> @@ -311,7 +310,7 @@ if ('onhashchange' in window) { <span id="L246" class="LineNr">246 </span><span class="Delimiter">}</span> <span id="L247" class="LineNr">247 </span> <span id="L248" class="LineNr">248 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L248'>get-char</a></span><span class="PreProc"> -> </span>_/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> -<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> look/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> +<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> look/eax: grapheme <span class="Special"><-</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> <span id="L250" class="LineNr">250 </span> <a href='304screen.subx.html#L161'>print-grapheme-to-real-screen</a> look <span id="L251" class="LineNr">251 </span> compare look, <span class="Constant">4</span> <span id="L252" class="LineNr">252 </span> <span class="Delimiter">{</span> diff --git a/html/linux/ex1.mu.html b/html/linux/ex1.mu.html index d47f3dd8..a91ca222 100644 --- a/html/linux/ex1.mu.html +++ b/html/linux/ex1.mu.html @@ -14,13 +14,13 @@ 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; } +.PreProc { color: #c000c0; } .LineNr { } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> diff --git a/html/linux/ex2.mu.html b/html/linux/ex2.mu.html index 272c7f97..5c3da3c3 100644 --- a/html/linux/ex2.mu.html +++ b/html/linux/ex2.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; } --> </style> @@ -69,11 +68,11 @@ if ('onhashchange' in window) { <span id="L8" class="LineNr"> 8 </span><span class="muComment"># 7</span> <span id="L9" class="LineNr"> 9 </span> <span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex2.mu.html#L10'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='ex2.mu.html#L15'>do-add</a> <span class="Constant">3</span> <span class="Constant">4</span> +<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='ex2.mu.html#L15'>do-add</a> <span class="Constant">3</span> <span class="Constant">4</span> <span id="L12" class="LineNr">12 </span> <span class="PreProc">return</span> result <span id="L13" class="LineNr">13 </span><span class="Delimiter">}</span> <span id="L14" class="LineNr">14 </span> -<span id="L15" class="LineNr">15 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex2.mu.html#L15'>do-add</a></span> a: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L15" class="LineNr">15 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex2.mu.html#L15'>do-add</a></span> a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> result/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy a <span id="L17" class="LineNr">17 </span> result <span class="Special"><-</span> add b <span id="L18" class="LineNr">18 </span> <span class="PreProc">return</span> result diff --git a/html/linux/ex3.2.mu.html b/html/linux/ex3.2.mu.html index a374e737..b2e48718 100644 --- a/html/linux/ex3.2.mu.html +++ b/html/linux/ex3.2.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .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; } --> </style> @@ -75,7 +74,7 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span> <span class="Delimiter">{</span> <span id="L14" class="LineNr">14 </span> compare i, <span class="Constant">0xb</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">break-if->=</span> -<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index a, i +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> x/eax: (addr int) <span class="Special"><-</span> index a, i <span id="L17" class="LineNr">17 </span> copy-to *x, i <span id="L18" class="LineNr">18 </span> i <span class="Special"><-</span> increment <span id="L19" class="LineNr">19 </span> <span class="PreProc">loop</span> @@ -86,7 +85,7 @@ if ('onhashchange' in window) { <span id="L24" class="LineNr">24 </span> <span class="Delimiter">{</span> <span id="L25" class="LineNr">25 </span> compare i, <span class="Constant">0xb</span> <span id="L26" class="LineNr">26 </span> <span class="PreProc">break-if->=</span> -<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index a, i +<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> x/eax: (addr int) <span class="Special"><-</span> index a, i <span id="L28" class="LineNr">28 </span> result <span class="Special"><-</span> add *x <span id="L29" class="LineNr">29 </span> i <span class="Special"><-</span> increment <span id="L30" class="LineNr">30 </span> <span class="PreProc">loop</span> diff --git a/html/linux/ex3.mu.html b/html/linux/ex3.mu.html index b5b741ba..70288094 100644 --- a/html/linux/ex3.mu.html +++ b/html/linux/ex3.mu.html @@ -14,15 +14,14 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -69,7 +68,7 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span> <span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.mu.html#L10'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> result/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L13" class="LineNr">13 </span> <span class="Delimiter">{</span> <span id="L14" class="LineNr">14 </span> compare i, <span class="Constant">0xa</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">break-if-></span> diff --git a/html/linux/factorial.mu.html b/html/linux/factorial.mu.html index 4dcf93ed..242c53b7 100644 --- a/html/linux/factorial.mu.html +++ b/html/linux/factorial.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEbx { color: #8787af; } -.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; } .muTest { color: #5f8700; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -78,7 +77,7 @@ if ('onhashchange' in window) { <span id="L16" class="LineNr">16 </span><span class="muComment">#</span> <span id="L17" class="LineNr">17 </span><span class="muComment"># Compare factorial4.subx</span> <span id="L18" class="LineNr">18 </span> -<span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='factorial.mu.html#L19'>factorial</a></span> n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='factorial.mu.html#L19'>factorial</a></span> n: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L20" class="LineNr">20 </span> compare n, <span class="Constant">1</span> <span id="L21" class="LineNr">21 </span> <span class="muComment"># if (n <= 1) return 1</span> <span id="L22" class="LineNr">22 </span> <span class="Delimiter">{</span> @@ -88,30 +87,30 @@ if ('onhashchange' in window) { <span id="L26" class="LineNr">26 </span> <span class="muComment"># n > 1; return n * factorial(n-1)</span> <span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> tmp/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy n <span id="L28" class="LineNr">28 </span> tmp <span class="Special"><-</span> decrement -<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='factorial.mu.html#L19'>factorial</a> tmp +<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='factorial.mu.html#L19'>factorial</a> tmp <span id="L30" class="LineNr">30 </span> result <span class="Special"><-</span> multiply n <span id="L31" class="LineNr">31 </span> <span class="PreProc">return</span> result <span id="L32" class="LineNr">32 </span><span class="Delimiter">}</span> <span id="L33" class="LineNr">33 </span> <span id="L34" class="LineNr">34 </span><span class="PreProc">fn</span> <span class="muTest"><a href='factorial.mu.html#L34'>test-factorial</a></span> <span class="Delimiter">{</span> -<span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='factorial.mu.html#L19'>factorial</a> <span class="Constant">5</span> +<span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='factorial.mu.html#L19'>factorial</a> <span class="Constant">5</span> <span id="L36" class="LineNr">36 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0x78</span>, <span class="Constant">"F - test-factorial"</span> <span id="L37" class="LineNr">37 </span><span class="Delimiter">}</span> <span id="L38" class="LineNr">38 </span> <span id="L39" class="LineNr">39 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='factorial.mu.html#L39'>main</a></span> args-on-stack: (addr array addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr array addr array byte) <span class="Special"><-</span> copy args-on-stack +<span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> args/eax: (addr array addr array byte) <span class="Special"><-</span> copy args-on-stack <span id="L41" class="LineNr">41 </span> <span class="muComment"># len = length(args)</span> <span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length args <span id="L43" class="LineNr">43 </span> <span class="muComment"># if (len <= 1) return factorial(5)</span> <span id="L44" class="LineNr">44 </span> compare len, <span class="Constant">1</span> <span id="L45" class="LineNr">45 </span> <span class="Delimiter">{</span> <span id="L46" class="LineNr">46 </span> <span class="PreProc">break-if-></span> -<span id="L47" class="LineNr">47 </span> <span class="PreProc">var</span> exit-status/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='factorial.mu.html#L19'>factorial</a> <span class="Constant">5</span> +<span id="L47" class="LineNr">47 </span> <span class="PreProc">var</span> exit-status/eax: int <span class="Special"><-</span> <a href='factorial.mu.html#L19'>factorial</a> <span class="Constant">5</span> <span id="L48" class="LineNr">48 </span> <span class="PreProc">return</span> exit-status <span id="L49" class="LineNr">49 </span> <span class="Delimiter">}</span> <span id="L50" class="LineNr">50 </span> <span class="muComment"># if (args[1] == "test") run-tests()</span> <span id="L51" class="LineNr">51 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEcx">ecx</span>: (addr addr array byte) <span class="Special"><-</span> index args, <span class="Constant">1</span> -<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> tmp3/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='105string-equal.subx.html#L15'>string-equal?</a> *tmp2, <span class="Constant">"test"</span> +<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> tmp3/eax: boolean <span class="Special"><-</span> <a href='105string-equal.subx.html#L15'>string-equal?</a> *tmp2, <span class="Constant">"test"</span> <span id="L53" class="LineNr">53 </span> compare tmp3, <span class="Constant">0</span> <span id="L54" class="LineNr">54 </span> <span class="Delimiter">{</span> <span id="L55" class="LineNr">55 </span> <span class="PreProc">break-if-=</span> diff --git a/html/linux/hello.mu.html b/html/linux/hello.mu.html index d9979526..9023e29e 100644 --- a/html/linux/hello.mu.html +++ b/html/linux/hello.mu.html @@ -14,13 +14,13 @@ 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; } +.PreProc { color: #c000c0; } .LineNr { } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> diff --git a/html/linux/parse-int.mu.html b/html/linux/parse-int.mu.html index a7606797..8c28b002 100644 --- a/html/linux/parse-int.mu.html +++ b/html/linux/parse-int.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEax { color: #875f00; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } +.LineNr { } .Constant { color: #008787; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } -.muRegEdi { color: #87ffd7; } +.muComment { color: #005faf; } --> </style> @@ -82,11 +81,11 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr">18 </span> <span class="Delimiter">}</span> <span id="L19" class="LineNr">19 </span> <span class="muComment"># otherwise parse the first arg as an integer</span> <span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> in/<span class="muRegEcx">ecx</span>: (addr addr array byte) <span class="Special"><-</span> index args, <span class="Constant">1</span> -<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='parse-int.mu.html#L25'>parse-int</a> *in +<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> out/eax: int <span class="Special"><-</span> <a href='parse-int.mu.html#L25'>parse-int</a> *in <span id="L22" class="LineNr">22 </span> <span class="PreProc">return</span> out <span id="L23" class="LineNr">23 </span><span class="Delimiter">}</span> <span id="L24" class="LineNr">24 </span> -<span id="L25" class="LineNr">25 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parse-int.mu.html#L25'>parse-int</a></span> _in: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L25" class="LineNr">25 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parse-int.mu.html#L25'>parse-int</a></span> _in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _in <span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> len/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length in <span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> @@ -95,14 +94,14 @@ if ('onhashchange' in window) { <span id="L31" class="LineNr">31 </span> compare i, len <span id="L32" class="LineNr">32 </span> <span class="PreProc">break-if->=</span> <span id="L33" class="LineNr">33 </span> <span class="muComment"># result *= 10</span> -<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> ten/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0xa</span> +<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> ten/eax: int <span class="Special"><-</span> copy <span class="Constant">0xa</span> <span id="L35" class="LineNr">35 </span> result <span class="Special"><-</span> multiply ten <span id="L36" class="LineNr">36 </span> <span class="muComment"># c = in[i]</span> <span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> tmp/<span class="muRegEbx">ebx</span>: (addr byte) <span class="Special"><-</span> index in, i -<span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> copy-byte *tmp +<span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> copy-byte *tmp <span id="L39" class="LineNr">39 </span> <span class="muComment">#</span> -<span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c -<span id="L41" class="LineNr">41 </span> <span class="PreProc">var</span> digit/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> g +<span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c +<span id="L41" class="LineNr">41 </span> <span class="PreProc">var</span> digit/eax: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> g <span id="L42" class="LineNr">42 </span> result <span class="Special"><-</span> add digit <span id="L43" class="LineNr">43 </span> i <span class="Special"><-</span> increment <span id="L44" class="LineNr">44 </span> <span class="PreProc">loop</span> diff --git a/html/linux/print-file.mu.html b/html/linux/print-file.mu.html index 1835fc2c..5ec1ba21 100644 --- a/html/linux/print-file.mu.html +++ b/html/linux/print-file.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -70,7 +69,7 @@ if ('onhashchange' in window) { <span id="L8" class="LineNr"> 8 </span><span class="muComment"># abc</span> <span id="L9" class="LineNr"> 9 </span> <span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print-file.mu.html#L10'>main</a></span> _args: (addr array addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr array addr array byte) <span class="Special"><-</span> copy _args +<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> args/eax: (addr array addr array byte) <span class="Special"><-</span> copy _args <span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> n/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length args <span id="L13" class="LineNr">13 </span> compare n, <span class="Constant">1</span> <span id="L14" class="LineNr">14 </span> <span class="Delimiter">{</span> @@ -83,16 +82,16 @@ if ('onhashchange' in window) { <span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> filename/<span class="muRegEdx">edx</span>: (addr addr array byte) <span class="Special"><-</span> index args <span class="Constant">1</span> <span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> in: (handle buffered-file) <span id="L23" class="LineNr">23 </span> <span class="Delimiter">{</span> -<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> addr-in/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> address in +<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> addr-in/eax: (addr handle buffered-file) <span class="Special"><-</span> address in <span id="L25" class="LineNr">25 </span> <a href='306files.subx.html#L9'>open</a> *filename, <span class="Constant">0</span>/read-only, addr-in <span id="L26" class="LineNr">26 </span> <span class="Delimiter">}</span> -<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> _in-addr/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> in +<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> _in-addr/eax: (addr buffered-file) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> in <span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> in-addr/<span class="muRegEcx">ecx</span>: (addr buffered-file) <span class="Special"><-</span> copy _in-addr <span id="L29" class="LineNr">29 </span> <span class="Delimiter">{</span> -<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> in-addr +<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> in-addr <span id="L31" class="LineNr">31 </span> compare c, <span class="Constant">0xffffffff</span>/end-of-file <span id="L32" class="LineNr">32 </span> <span class="PreProc">break-if-=</span> -<span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L34" class="LineNr">34 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <span class="Constant">0</span>/screen, g <span id="L35" class="LineNr">35 </span> <span class="PreProc">loop</span> <span id="L36" class="LineNr">36 </span> <span class="Delimiter">}</span> diff --git a/html/linux/raytracing/1.mu.html b/html/linux/raytracing/1.mu.html index e48ce214..eb4cd554 100644 --- a/html/linux/raytracing/1.mu.html +++ b/html/linux/raytracing/1.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; } --> </style> @@ -74,7 +73,7 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span> <span class="Delimiter">{</span> <span id="L14" class="LineNr">14 </span> compare j, <span class="Constant">0</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">break-if-<</span> -<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> <span id="L18" class="LineNr">18 </span> compare i, <span class="Constant">0xff</span> <span id="L19" class="LineNr">19 </span> <span class="PreProc">break-if-></span> diff --git a/html/linux/raytracing/2.mu.html b/html/linux/raytracing/2.mu.html index ee561a64..bf8a2156 100644 --- a/html/linux/raytracing/2.mu.html +++ b/html/linux/raytracing/2.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdx { color: #878700; } -.muRegEsi { color: #87d787; } -.muComment { color: #005faf; } -.CommentedCode { color: #8a8a8a; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.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; } +.CommentedCode { color: #8a8a8a; } +.muComment { color: #005faf; } --> </style> @@ -81,7 +80,7 @@ if ('onhashchange' in window) { <span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> <span id="L18" class="LineNr">18 </span> compare j, <span class="Constant">0</span> <span id="L19" class="LineNr">19 </span> <span class="PreProc">break-if-<</span> -<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L21" class="LineNr">21 </span> <span class="Delimiter">{</span> <span id="L22" class="LineNr">22 </span> compare i, <span class="Constant">0xff</span> <span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if-></span> @@ -128,7 +127,7 @@ if ('onhashchange' in window) { <span id="L64" class="LineNr">64 </span> <span class="PreProc">var</span> xn/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert n <span id="L65" class="LineNr">65 </span> <span class="muComment"># print 255 * c->r</span> <span id="L66" class="LineNr">66 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy xn -<span id="L67" class="LineNr">67 </span> <span class="PreProc">var</span> src-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c, r +<span id="L67" class="LineNr">67 </span> <span class="PreProc">var</span> src-addr/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c, r <span id="L68" class="LineNr">68 </span> result <span class="Special"><-</span> multiply *src-addr <span id="L69" class="LineNr">69 </span> <span class="PreProc">var</span> result-int/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert result <span id="L70" class="LineNr">70 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../405screen.mu.html#L9'>screen</a>, result-int diff --git a/html/linux/raytracing/3.mu.html b/html/linux/raytracing/3.mu.html index 64efdc57..ef18f42d 100644 --- a/html/linux/raytracing/3.mu.html +++ b/html/linux/raytracing/3.mu.html @@ -16,20 +16,19 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.muS2Comment { color: #8a8a8a; } +.CommentedCode { color: #8a8a8a; } .muComment { color: #005faf; } .muS1Comment { color: #0000af; } -.muS2Comment { color: #8a8a8a; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -76,7 +75,7 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L9'>ray-color</a></span> _in: (addr ray), _out: (addr rgb) <span class="Delimiter">{</span> <span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _in <span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr rgb) <span class="Special"><-</span> copy _out -<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> dir/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> in, dir +<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> dir/eax: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> in, dir <span id="L13" class="LineNr"> 13 </span><span class="CommentedCode">#? print-string 0, "r.dir: "</span> <span id="L14" class="LineNr"> 14 </span><span class="CommentedCode">#? print-vec3 0, dir</span> <span id="L15" class="LineNr"> 15 </span><span class="CommentedCode">#? print-string 0, "\n"</span> @@ -86,13 +85,13 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr"> 19 </span><span class="CommentedCode">#? print-string 0, "r.dir normalized: "</span> <span id="L20" class="LineNr"> 20 </span><span class="CommentedCode">#? print-vec3 0, unit</span> <span id="L21" class="LineNr"> 21 </span><span class="CommentedCode">#? print-string 0, "\n"</span> -<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> y-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> unit, y +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> y-addr/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> unit, y <span id="L23" class="LineNr"> 23 </span> <span class="muComment"># t = (dir.y + 1.0) / 2.0</span> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> t/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *y-addr -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> one/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> one-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert one <span id="L27" class="LineNr"> 27 </span> t <span class="Special"><-</span> add one-f -<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> two/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> two/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert two <span id="L30" class="LineNr"> 30 </span> t <span class="Special"><-</span> divide two-f <span id="L31" class="LineNr"> 31 </span><span class="CommentedCode">#? print-string 0, "t: "</span> @@ -109,7 +108,7 @@ if ('onhashchange' in window) { <span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? print-rgb-raw 0, whitening</span> <span id="L43" class="LineNr"> 43 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L44" class="LineNr"> 44 </span> <span class="muComment"># out = t * (0.5, 0.7, 1.0)</span> -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out, r +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out, r <span id="L46" class="LineNr"> 46 </span> <a href='../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">5</span>, <span class="Constant">0xa</span> <span id="L47" class="LineNr"> 47 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out, g <span id="L48" class="LineNr"> 48 </span> <a href='../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">7</span>, <span class="Constant">0xa</span> @@ -132,7 +131,7 @@ if ('onhashchange' in window) { <span id="L65" class="LineNr"> 65 </span> <span class="muComment"># width = 400</span> <span id="L66" class="LineNr"> 66 </span> <span class="muComment"># height = 400 * 9/16 = 225</span> <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> aspect: float -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> aspect-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> address aspect +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> aspect-addr/eax: (addr float) <span class="Special"><-</span> address aspect <span id="L69" class="LineNr"> 69 </span> <a href='../408float.mu.html#L3'>fill-in-rational</a> aspect-addr, <span class="Constant">0x10</span>, <span class="Constant">9</span> <span class="muComment"># 16/9</span> <span id="L70" class="LineNr"> 70 </span><span class="CommentedCode">#? print-string 0, "aspect ratio: "</span> <span id="L71" class="LineNr"> 71 </span><span class="CommentedCode">#? print-float-hex 0, aspect</span> @@ -146,7 +145,7 @@ if ('onhashchange' in window) { <span id="L79" class="LineNr"> 79 </span> <span class="muComment"># camera</span> <span id="L80" class="LineNr"> 80 </span> <span id="L81" class="LineNr"> 81 </span> <span class="muComment"># viewport-height = 2.0</span> -<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm4</span>: float <span class="Special"><-</span> convert tmp <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> viewport-height/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> copy two-f <span id="L85" class="LineNr"> 85 </span><span class="CommentedCode">#? print-string 0, "viewport height: "</span> @@ -181,7 +180,7 @@ if ('onhashchange' in window) { <span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> origin/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> address origin-storage <span id="L115" class="LineNr">115 </span> <span class="muComment"># horizontal = vec3(viewport-width, 0, 0)</span> <span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> horizontal-storage: vec3 -<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> horizontal-storage, x +<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> horizontal-storage, x <span id="L118" class="LineNr">118 </span> copy-to *dest, viewport-width <span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> horizontal/<span class="muRegEbx">ebx</span>: (addr vec3) <span class="Special"><-</span> address horizontal-storage <span id="L120" class="LineNr">120 </span> <span class="muComment"># vertical = vec3(0, viewport-height, 0)</span> @@ -196,7 +195,7 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr">129 </span> copy-object origin, lower-left-corner <span id="L130" class="LineNr">130 </span> <span class="muS1Comment"># . lower-left-corner -= horizontal/2</span> <span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> tmp2: vec3 -<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> tmp2-addr/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> address tmp2 +<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> tmp2-addr/eax: (addr vec3) <span class="Special"><-</span> address tmp2 <span id="L133" class="LineNr">133 </span> copy-object horizontal, tmp2-addr <span id="L134" class="LineNr">134 </span> vec3-scale-down tmp2-addr, two-f <span id="L135" class="LineNr">135 </span> vec3-subtract-from lower-left-corner, tmp2-addr @@ -220,7 +219,7 @@ if ('onhashchange' in window) { <span id="L153" class="LineNr">153 </span> <span class="muComment"># vertical (edx)</span> <span id="L154" class="LineNr">154 </span> <span class="muComment"># floating-point registers are all free</span> <span id="L155" class="LineNr">155 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"P3\n400 225\n255\n"</span> <span class="muComment"># 225 = image height</span> -<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0x18f</span> <span class="muComment"># image width - 1</span> +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy <span class="Constant">0x18f</span> <span class="muComment"># image width - 1</span> <span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> image-width-1/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert tmp <span id="L158" class="LineNr">158 </span> tmp <span class="Special"><-</span> copy <span class="Constant">0xe0</span> <span class="muComment"># image height - 1</span> <span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> image-height-1/<span class="Constant">xmm6</span>: float <span class="Special"><-</span> convert tmp @@ -229,7 +228,7 @@ if ('onhashchange' in window) { <span id="L162" class="LineNr">162 </span> <span class="Delimiter">{</span> <span id="L163" class="LineNr">163 </span> compare j, <span class="Constant">0</span> <span id="L164" class="LineNr">164 </span> <span class="PreProc">break-if-<</span> -<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L166" class="LineNr">166 </span> <span class="Delimiter">{</span> <span id="L167" class="LineNr">167 </span> compare i, <span class="Constant">0x190</span> <span class="muComment"># 400 = image width</span> <span id="L168" class="LineNr">168 </span> <span class="PreProc">break-if->=</span> @@ -249,7 +248,7 @@ if ('onhashchange' in window) { <span id="L182" class="LineNr">182 </span> <span class="muS2Comment"># . . so we'll just spill them in a block</span> <span id="L183" class="LineNr">183 </span> <span class="Delimiter">{</span> <span id="L184" class="LineNr">184 </span> <span class="muS1Comment"># . r.orig = origin</span> -<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> r/<span class="muRegEax">eax</span>: (addr ray) <span class="Special"><-</span> address r-storage +<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> r/eax: (addr ray) <span class="Special"><-</span> address r-storage <span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> r, orig <span id="L187" class="LineNr">187 </span> copy-object origin, dest <span id="L188" class="LineNr">188 </span> <span class="muS1Comment"># . r.dir = lower-left-corner</span> @@ -257,7 +256,7 @@ if ('onhashchange' in window) { <span id="L190" class="LineNr">190 </span> copy-object lower-left-corner, dest <span id="L191" class="LineNr">191 </span> <span class="muS1Comment"># . r.dir += horizontal*u</span> <span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> tmp-vec3: vec3 -<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> address tmp-vec3 +<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> tmp/eax: (addr vec3) <span class="Special"><-</span> address tmp-vec3 <span id="L194" class="LineNr">194 </span> copy-object horizontal, tmp <span id="L195" class="LineNr">195 </span> vec3-scale-up tmp, u <span id="L196" class="LineNr">196 </span> vec3-add-to dest, tmp @@ -275,7 +274,7 @@ if ('onhashchange' in window) { <span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> c-storage: rgb <span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> c/<span class="muRegEcx">ecx</span>: (addr rgb) <span class="Special"><-</span> address c-storage <span id="L210" class="LineNr">210 </span> <span class="Delimiter">{</span> -<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> r/<span class="muRegEax">eax</span>: (addr ray) <span class="Special"><-</span> address r-storage +<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> r/eax: (addr ray) <span class="Special"><-</span> address r-storage <span id="L212" class="LineNr">212 </span> <a href='3.mu.html#L9'>ray-color</a> r, c <span id="L213" class="LineNr">213 </span> <span class="muComment"># write color</span> <span id="L214" class="LineNr">214 </span> print-rgb <span class="Constant">0</span>, c @@ -301,7 +300,7 @@ if ('onhashchange' in window) { <span id="L234" class="LineNr">234 </span><span class="muComment"># so.</span> <span id="L235" class="LineNr">235 </span><span class="PreProc">fn</span> <span class="muFunction">initialize-ray</span> _self: (addr ray), o: (addr vec3), d: (addr vec3) <span class="Delimiter">{</span> <span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self -<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig +<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> dest/eax: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig <span id="L238" class="LineNr">238 </span> copy-object o, dest <span id="L239" class="LineNr">239 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir <span id="L240" class="LineNr">240 </span> vec3-unit d, dest @@ -309,7 +308,7 @@ if ('onhashchange' in window) { <span id="L242" class="LineNr">242 </span> <span id="L243" class="LineNr">243 </span><span class="PreProc">fn</span> <span class="muFunction">ray-at</span> _self: (addr ray), t: float, out: (addr vec3) <span class="Delimiter">{</span> <span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> src/eax: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir <span id="L246" class="LineNr">246 </span> copy-object src, out <span id="L247" class="LineNr">247 </span> vec3-scale-up out, t <span id="L248" class="LineNr">248 </span> src <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig @@ -331,7 +330,7 @@ if ('onhashchange' in window) { <span id="L264" class="LineNr">264 </span> <a href='../408float.mu.html#L3'>fill-in-rational</a> xn-addr, <span class="Constant">0x3e7ff</span>, <span class="Constant">0x3e8</span> <span class="muComment"># 255999 / 1000</span> <span id="L265" class="LineNr">265 </span> <span class="muComment"># print 255.999 * c->r</span> <span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy xn -<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> src-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c, r +<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> src-addr/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c, r <span id="L268" class="LineNr">268 </span> result <span class="Special"><-</span> multiply *src-addr <span id="L269" class="LineNr">269 </span> <span class="PreProc">var</span> result-int/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> truncate result <span id="L270" class="LineNr">270 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../405screen.mu.html#L9'>screen</a>, result-int @@ -355,7 +354,7 @@ if ('onhashchange' in window) { <span id="L288" class="LineNr">288 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L288'>print-rgb-raw</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _v: (addr rgb) <span class="Delimiter">{</span> <span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _v <span id="L290" class="LineNr">290 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">"("</span> -<span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, r +<span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> tmp/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, r <span id="L292" class="LineNr">292 </span> <a href='../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../405screen.mu.html#L9'>screen</a>, *tmp <span id="L293" class="LineNr">293 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> <span id="L294" class="LineNr">294 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, g @@ -368,7 +367,7 @@ if ('onhashchange' in window) { <span id="L301" class="LineNr">301 </span> <span id="L302" class="LineNr">302 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L302'>rgb-white</a></span> _c: (addr rgb) <span class="Delimiter">{</span> <span id="L303" class="LineNr">303 </span> <span class="PreProc">var</span> c/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _c -<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> one/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L305" class="LineNr">305 </span> <span class="PreProc">var</span> one-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert one <span id="L306" class="LineNr">306 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c, r <span id="L307" class="LineNr">307 </span> copy-to *dest, one-f @@ -382,7 +381,7 @@ if ('onhashchange' in window) { <span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> c1/<span class="muRegEdi">edi</span>: (addr rgb) <span class="Special"><-</span> copy _c1 <span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> c2/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _c2 <span id="L317" class="LineNr">317 </span> <span class="muComment"># c1.r += c2.r</span> -<span id="L318" class="LineNr">318 </span> <span class="PreProc">var</span> arg1/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c1, r +<span id="L318" class="LineNr">318 </span> <span class="PreProc">var</span> arg1/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c1, r <span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> arg2/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c2, r <span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *arg1 <span id="L321" class="LineNr">321 </span> result <span class="Special"><-</span> add *arg2 @@ -404,7 +403,7 @@ if ('onhashchange' in window) { <span id="L337" class="LineNr">337 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L337'>rgb-scale-up</a></span> _c1: (addr rgb), f: float <span class="Delimiter">{</span> <span id="L338" class="LineNr">338 </span> <span class="PreProc">var</span> c1/<span class="muRegEdi">edi</span>: (addr rgb) <span class="Special"><-</span> copy _c1 <span id="L339" class="LineNr">339 </span> <span class="muComment"># c1.r *= f</span> -<span id="L340" class="LineNr">340 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c1, r +<span id="L340" class="LineNr">340 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c1, r <span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest <span id="L342" class="LineNr">342 </span> result <span class="Special"><-</span> multiply f <span id="L343" class="LineNr">343 </span> copy-to *dest, result @@ -429,7 +428,7 @@ if ('onhashchange' in window) { <span id="L362" class="LineNr">362 </span><span class="PreProc">fn</span> <span class="muFunction">print-vec3</span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _v: (addr vec3) <span class="Delimiter">{</span> <span id="L363" class="LineNr">363 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v <span id="L364" class="LineNr">364 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">"("</span> -<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x +<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> tmp/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x <span id="L366" class="LineNr">366 </span> <a href='../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../405screen.mu.html#L9'>screen</a>, *tmp <span id="L367" class="LineNr">367 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> <span id="L368" class="LineNr">368 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, y @@ -444,7 +443,7 @@ if ('onhashchange' in window) { <span id="L377" class="LineNr">377 </span> <span class="PreProc">var</span> v1/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v1 <span id="L378" class="LineNr">378 </span> <span class="PreProc">var</span> v2/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v2 <span id="L379" class="LineNr">379 </span> <span class="muComment"># v1.x += v2.x</span> -<span id="L380" class="LineNr">380 </span> <span class="PreProc">var</span> arg1/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v1, x +<span id="L380" class="LineNr">380 </span> <span class="PreProc">var</span> arg1/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v1, x <span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> arg2/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v2, x <span id="L382" class="LineNr">382 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *arg1 <span id="L383" class="LineNr">383 </span> result <span class="Special"><-</span> add *arg2 @@ -465,14 +464,14 @@ if ('onhashchange' in window) { <span id="L398" class="LineNr">398 </span> <span id="L399" class="LineNr">399 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-subtract-from</span> v1: (addr vec3), v2: (addr vec3) <span class="Delimiter">{</span> <span id="L400" class="LineNr">400 </span> <span class="PreProc">var</span> tmp-storage: vec3 -<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> address tmp-storage +<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> tmp/eax: (addr vec3) <span class="Special"><-</span> address tmp-storage <span id="L402" class="LineNr">402 </span> copy-object v2, tmp <span id="L403" class="LineNr">403 </span> vec3-negate tmp <span id="L404" class="LineNr">404 </span> vec3-add-to v1, tmp <span id="L405" class="LineNr">405 </span><span class="Delimiter">}</span> <span id="L406" class="LineNr">406 </span> <span id="L407" class="LineNr">407 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-negate</span> v: (addr vec3) <span class="Delimiter">{</span> -<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> negative-one/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> negative-one/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> <span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> negative-one-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert negative-one <span id="L410" class="LineNr">410 </span> vec3-scale-up v, negative-one-f <span id="L411" class="LineNr">411 </span><span class="Delimiter">}</span> @@ -480,7 +479,7 @@ if ('onhashchange' in window) { <span id="L413" class="LineNr">413 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-up</span> _v: (addr vec3), f: float <span class="Delimiter">{</span> <span id="L414" class="LineNr">414 </span> <span class="PreProc">var</span> v/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v <span id="L415" class="LineNr">415 </span> <span class="muComment"># v.x *= f</span> -<span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x +<span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x <span id="L417" class="LineNr">417 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest <span id="L418" class="LineNr">418 </span> result <span class="Special"><-</span> multiply f <span id="L419" class="LineNr">419 </span> copy-to *dest, result @@ -499,7 +498,7 @@ if ('onhashchange' in window) { <span id="L432" class="LineNr">432 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-down</span> _v: (addr vec3), f: float <span class="Delimiter">{</span> <span id="L433" class="LineNr">433 </span> <span class="PreProc">var</span> v/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v <span id="L434" class="LineNr">434 </span> <span class="muComment"># v.x /= f</span> -<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x +<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x <span id="L436" class="LineNr">436 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest <span id="L437" class="LineNr">437 </span> result <span class="Special"><-</span> divide f <span id="L438" class="LineNr">438 </span> copy-to *dest, result @@ -533,7 +532,7 @@ if ('onhashchange' in window) { <span id="L466" class="LineNr">466 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-length-squared</span> _v: (addr vec3)<span class="PreProc"> -> </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span> <span id="L467" class="LineNr">467 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v <span id="L468" class="LineNr">468 </span> <span class="muComment"># result = v.x * v.x</span> -<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x +<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> src/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x <span id="L470" class="LineNr">470 </span> <span class="PreProc">var</span> tmp/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy *src <span id="L471" class="LineNr">471 </span> tmp <span class="Special"><-</span> multiply tmp <span id="L472" class="LineNr">472 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy tmp diff --git a/html/linux/raytracing/color.mu.html b/html/linux/raytracing/color.mu.html index 43b04815..9b17aaa3 100644 --- a/html/linux/raytracing/color.mu.html +++ b/html/linux/raytracing/color.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEax { color: #875f00; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } +.LineNr { } .Constant { color: #008787; } +.muRegEsi { color: #005faf; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -75,7 +74,7 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span> <a href='../408float.mu.html#L3'>fill-in-rational</a> xn-addr, <span class="Constant">0x3e7ff</span>, <span class="Constant">0x3e8</span> <span class="muComment"># 255999 / 1000</span> <span id="L14" class="LineNr">14 </span> <span class="muComment"># print 255.999 * c->r</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy xn -<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> src-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c, r +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> src-addr/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> c, r <span id="L17" class="LineNr">17 </span> result <span class="Special"><-</span> multiply *src-addr <span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> result-int/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> truncate result <span id="L19" class="LineNr">19 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../405screen.mu.html#L9'>screen</a>, result-int diff --git a/html/linux/raytracing/ray.mu.html b/html/linux/raytracing/ray.mu.html index 2b9caf2e..7828b6fb 100644 --- a/html/linux/raytracing/ray.mu.html +++ b/html/linux/raytracing/ray.mu.html @@ -14,14 +14,13 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -67,7 +66,7 @@ if ('onhashchange' in window) { <span id="L8" class="LineNr"> 8 </span><span class="muComment"># so.</span> <span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction">initialize-ray</span> _self: (addr ray), o: (addr vec3), d: (addr vec3) <span class="Delimiter">{</span> <span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self -<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig +<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> dest/eax: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig <span id="L12" class="LineNr">12 </span> copy-object o, dest <span id="L13" class="LineNr">13 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir <span id="L14" class="LineNr">14 </span> vec3-unit d, dest @@ -75,7 +74,7 @@ if ('onhashchange' in window) { <span id="L16" class="LineNr">16 </span> <span id="L17" class="LineNr">17 </span><span class="PreProc">fn</span> <span class="muFunction">ray-at</span> _self: (addr ray), t: float, out: (addr vec3) <span class="Delimiter">{</span> <span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self -<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir +<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> src/eax: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir <span id="L20" class="LineNr">20 </span> copy-object src, out <span id="L21" class="LineNr">21 </span> vec3-scale-up out, t <span id="L22" class="LineNr">22 </span> src <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig diff --git a/html/linux/raytracing/vec.mu.html b/html/linux/raytracing/vec.mu.html index 363585d7..fd9b4bb5 100644 --- a/html/linux/raytracing/vec.mu.html +++ b/html/linux/raytracing/vec.mu.html @@ -14,18 +14,17 @@ 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; } -.muRegEcx { color: #af875f; } -.Special { color: #ff6060; } -.CommentedCode { color: #8a8a8a; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } -.Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } .Constant { color: #008787; } -.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .muComment { color: #005faf; } +.Delimiter { color: #c000c0; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Special { color: #ff6060; } --> </style> @@ -70,7 +69,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span><span class="PreProc">fn</span> <span class="muFunction">print-vec3</span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _v: (addr vec3) <span class="Delimiter">{</span> <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v <span id="L9" class="LineNr"> 9 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">"("</span> -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> tmp/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x <span id="L11" class="LineNr"> 11 </span> <a href='../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../405screen.mu.html#L9'>screen</a>, *tmp <span id="L12" class="LineNr"> 12 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> <span id="L13" class="LineNr"> 13 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, y @@ -85,7 +84,7 @@ if ('onhashchange' in window) { <span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> v1/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v1 <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> v2/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v2 <span id="L24" class="LineNr"> 24 </span> <span class="muComment"># v1.x += v2.x</span> -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> arg1/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v1, x +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> arg1/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v1, x <span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> arg2/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v2, x <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *arg1 <span id="L28" class="LineNr"> 28 </span> result <span class="Special"><-</span> add *arg2 @@ -106,14 +105,14 @@ if ('onhashchange' in window) { <span id="L43" class="LineNr"> 43 </span> <span id="L44" class="LineNr"> 44 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-subtract-from</span> v1: (addr vec3), v2: (addr vec3) <span class="Delimiter">{</span> <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> tmp-storage: vec3 -<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> address tmp-storage +<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> tmp/eax: (addr vec3) <span class="Special"><-</span> address tmp-storage <span id="L47" class="LineNr"> 47 </span> copy-object v2, tmp <span id="L48" class="LineNr"> 48 </span> vec3-negate tmp <span id="L49" class="LineNr"> 49 </span> vec3-add-to v1, tmp <span id="L50" class="LineNr"> 50 </span><span class="Delimiter">}</span> <span id="L51" class="LineNr"> 51 </span> <span id="L52" class="LineNr"> 52 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-negate</span> v: (addr vec3) <span class="Delimiter">{</span> -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> negative-one/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> negative-one/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> <span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> negative-one-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert negative-one <span id="L55" class="LineNr"> 55 </span> vec3-scale-up v, negative-one-f <span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span> @@ -121,7 +120,7 @@ if ('onhashchange' in window) { <span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-up</span> _v: (addr vec3), f: float <span class="Delimiter">{</span> <span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> v/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v <span id="L60" class="LineNr"> 60 </span> <span class="muComment"># v.x *= f</span> -<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest <span id="L63" class="LineNr"> 63 </span> result <span class="Special"><-</span> multiply f <span id="L64" class="LineNr"> 64 </span> copy-to *dest, result @@ -140,7 +139,7 @@ if ('onhashchange' in window) { <span id="L77" class="LineNr"> 77 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-down</span> _v: (addr vec3), f: float <span class="Delimiter">{</span> <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> v/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v <span id="L79" class="LineNr"> 79 </span> <span class="muComment"># v.x /= f</span> -<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest <span id="L82" class="LineNr"> 82 </span> result <span class="Special"><-</span> divide f <span id="L83" class="LineNr"> 83 </span> copy-to *dest, result @@ -174,7 +173,7 @@ if ('onhashchange' in window) { <span id="L111" class="LineNr">111 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-length-squared</span> _v: (addr vec3)<span class="PreProc"> -> </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span> <span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v <span id="L113" class="LineNr">113 </span> <span class="muComment"># result = v.x * v.x</span> -<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x +<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> src/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, x <span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> tmp/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy *src <span id="L116" class="LineNr">116 </span> tmp <span class="Special"><-</span> multiply tmp <span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy tmp diff --git a/html/linux/rpn.mu.html b/html/linux/rpn.mu.html index 87dfaf32..7fc2dc5e 100644 --- a/html/linux/rpn.mu.html +++ b/html/linux/rpn.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEcx { color: #af875f; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEdi { color: #87ffd7; } +.muComment { color: #005faf; } --> </style> @@ -101,11 +100,11 @@ if ('onhashchange' in window) { <span id="L37" class="LineNr"> 37 </span> <span class="muComment"># read line</span> <span id="L38" class="LineNr"> 38 </span> <a href='106stream.subx.html#L17'>clear-stream</a> in <span id="L39" class="LineNr"> 39 </span> <a href='305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> in -<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in +<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in <span id="L41" class="LineNr"> 41 </span> compare done?, <span class="Constant">0</span> <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">break-if-!=</span> <span id="L43" class="LineNr"> 43 </span> <span class="muComment"># parse and eval</span> -<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L59'>simplify</a> in +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> out/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L59'>simplify</a> in <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># print</span> <span id="L46" class="LineNr"> 46 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, out <span id="L47" class="LineNr"> 47 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> @@ -120,7 +119,7 @@ if ('onhashchange' in window) { <span id="L56" class="LineNr"> 56 </span> <a href='203stack.subx.html#L338'>top</a>: int <span id="L57" class="LineNr"> 57 </span><span class="Delimiter">}</span> <span id="L58" class="LineNr"> 58 </span> -<span id="L59" class="LineNr"> 59 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L59'>simplify</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L59" class="LineNr"> 59 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L59'>simplify</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> word-storage: slice <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> word/<span class="muRegEcx">ecx</span>: (addr slice) <span class="Special"><-</span> address word-storage <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> stack-storage: <a href='rpn.mu.html#L54'>int-stack</a> @@ -128,49 +127,49 @@ if ('onhashchange' in window) { <span id="L64" class="LineNr"> 64 </span> <a href='rpn.mu.html#L113'>initialize-int-stack</a> stack, <span class="Constant">0x10</span> <span id="L65" class="LineNr"> 65 </span> $simplify:word-loop: <span class="Delimiter">{</span> <span id="L66" class="LineNr"> 66 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, word -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L9'>slice-empty?</a> word +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L9'>slice-empty?</a> word <span id="L68" class="LineNr"> 68 </span> compare done?, <span class="Constant">0</span> <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break-if-!=</span> <span id="L70" class="LineNr"> 70 </span> <span class="muComment"># if word is an operator, perform it</span> <span id="L71" class="LineNr"> 71 </span> <span class="Delimiter">{</span> -<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> add?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"+"</span> +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> add?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"+"</span> <span id="L73" class="LineNr"> 73 </span> compare add?, <span class="Constant">0</span> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">break-if-=</span> -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> _b/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _b -<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack <span id="L78" class="LineNr"> 78 </span> a <span class="Special"><-</span> add b <span id="L79" class="LineNr"> 79 </span> <a href='rpn.mu.html#L121'>push-int-stack</a> stack, a <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L81" class="LineNr"> 81 </span> <span class="Delimiter">}</span> <span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">{</span> -<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> sub?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"-"</span> +<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> sub?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"-"</span> <span id="L84" class="LineNr"> 84 </span> compare sub?, <span class="Constant">0</span> <span id="L85" class="LineNr"> 85 </span> <span class="PreProc">break-if-=</span> -<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> _b/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack +<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _b -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack <span id="L89" class="LineNr"> 89 </span> a <span class="Special"><-</span> subtract b <span id="L90" class="LineNr"> 90 </span> <a href='rpn.mu.html#L121'>push-int-stack</a> stack, a <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L92" class="LineNr"> 92 </span> <span class="Delimiter">}</span> <span id="L93" class="LineNr"> 93 </span> <span class="Delimiter">{</span> -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> mul?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"*"</span> +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> mul?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"*"</span> <span id="L95" class="LineNr"> 95 </span> compare mul?, <span class="Constant">0</span> <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">break-if-=</span> -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> _b/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _b -<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack +<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack <span id="L100" class="LineNr">100 </span> a <span class="Special"><-</span> multiply b <span id="L101" class="LineNr">101 </span> <a href='rpn.mu.html#L121'>push-int-stack</a> stack, a <span id="L102" class="LineNr">102 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L103" class="LineNr">103 </span> <span class="Delimiter">}</span> <span id="L104" class="LineNr">104 </span> <span class="muComment"># otherwise it's an int</span> -<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> word +<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> word <span id="L106" class="LineNr">106 </span> <a href='rpn.mu.html#L121'>push-int-stack</a> stack, n <span id="L107" class="LineNr">107 </span> <span class="PreProc">loop</span> <span id="L108" class="LineNr">108 </span> <span class="Delimiter">}</span> -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack <span id="L110" class="LineNr">110 </span> <span class="PreProc">return</span> result <span id="L111" class="LineNr">111 </span><span class="Delimiter">}</span> <span id="L112" class="LineNr">112 </span> @@ -178,7 +177,7 @@ if ('onhashchange' in window) { <span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L54'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, data <span id="L116" class="LineNr">116 </span> populate d, n -<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> <a href='203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, <a href='203stack.subx.html#L338'>top</a> +<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> <a href='203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, <a href='203stack.subx.html#L338'>top</a> <span id="L118" class="LineNr">118 </span> copy-to *top, <span class="Constant">0</span> <span id="L119" class="LineNr">119 </span><span class="Delimiter">}</span> <span id="L120" class="LineNr">120 </span> @@ -186,15 +185,15 @@ if ('onhashchange' in window) { <span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L54'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, <a href='203stack.subx.html#L338'>top</a> <span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, data -<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> <a href='203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> index data, <a href='203stack.subx.html#L338'>top</a> -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _val +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy _val <span id="L129" class="LineNr">129 </span> copy-to *dest-addr, val <span id="L130" class="LineNr">130 </span> add-to *top-addr, <span class="Constant">1</span> <span id="L131" class="LineNr">131 </span><span class="Delimiter">}</span> <span id="L132" class="LineNr">132 </span> -<span id="L133" class="LineNr">133 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L133'>pop-int-stack</a></span> _self: (addr <a href='rpn.mu.html#L54'>int-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L133" class="LineNr">133 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L133'>pop-int-stack</a></span> _self: (addr <a href='rpn.mu.html#L54'>int-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L54'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, <a href='203stack.subx.html#L338'>top</a> <span id="L136" class="LineNr">136 </span> <span class="Delimiter">{</span> @@ -204,10 +203,10 @@ if ('onhashchange' in window) { <span id="L140" class="LineNr">140 </span> <span class="Delimiter">}</span> <span id="L141" class="LineNr">141 </span> subtract-from *top-addr, <span class="Constant">1</span> <span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, data -<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> <a href='203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr -<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index data, <a href='203stack.subx.html#L338'>top</a> -<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *result-addr +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> result-addr/eax: (addr int) <span class="Special"><-</span> index data, <a href='203stack.subx.html#L338'>top</a> +<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy *result-addr <span id="L147" class="LineNr">147 </span> <span class="PreProc">return</span> val <span id="L148" class="LineNr">148 </span><span class="Delimiter">}</span> </pre> diff --git a/html/linux/texture.mu.html b/html/linux/texture.mu.html index 0e428b64..b8d8d2ff 100644 --- a/html/linux/texture.mu.html +++ b/html/linux/texture.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.CommentedCode { color: #8a8a8a; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -91,7 +90,7 @@ if ('onhashchange' in window) { <span id="L26" class="LineNr">26 </span> compare col, width <span id="L27" class="LineNr">27 </span> <span class="PreProc">break-if->=</span> <span id="L28" class="LineNr">28 </span> <span class="muComment"># r</span> -<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy col +<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy col <span id="L30" class="LineNr">30 </span> tmp <span class="Special"><-</span> multiply row <span id="L31" class="LineNr">31 </span> tmp <span class="Special"><-</span> and <span class="Constant">0x7f</span> <span id="L32" class="LineNr">32 </span> tmp <span class="Special"><-</span> add <span class="Constant">0x80</span> diff --git a/html/linux/tile/box.mu.html b/html/linux/tile/box.mu.html index 55d8a5ca..1898f0fc 100644 --- a/html/linux/tile/box.mu.html +++ b/html/linux/tile/box.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; } -.muRegEsi { color: #87d787; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } .LineNr { } +.muRegEsi { color: #005faf; } +.muComment { color: #005faf; } .Constant { color: #008787; } -.muRegEax { color: #875f00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } -.muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> @@ -71,7 +70,7 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr"> 10 </span><span class="Delimiter">}</span> <span id="L11" class="LineNr"> 11 </span> <span id="L12" class="LineNr"> 12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='box.mu.html#L12'>draw-hatching</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), row1: int, col1: int, row2: int, col2: int <span class="Delimiter">{</span> -<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy col1 +<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> c/eax: int <span class="Special"><-</span> copy col1 <span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> r1/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy row1 <span id="L15" class="LineNr"> 15 </span> r1 <span class="Special"><-</span> increment <span id="L16" class="LineNr"> 16 </span> c <span class="Special"><-</span> add <span class="Constant">2</span> @@ -85,7 +84,7 @@ if ('onhashchange' in window) { <span id="L24" class="LineNr"> 24 </span><span class="Delimiter">}</span> <span id="L25" class="LineNr"> 25 </span> <span id="L26" class="LineNr"> 26 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='box.mu.html#L26'>draw-horizontal-line</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), row: int, col1: int, col2: int <span class="Delimiter">{</span> -<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> col/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy col1 +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> col/eax: int <span class="Special"><-</span> copy col1 <span id="L28" class="LineNr"> 28 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, row, col <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">{</span> <span id="L30" class="LineNr"> 30 </span> compare col, col2 @@ -97,7 +96,7 @@ if ('onhashchange' in window) { <span id="L36" class="LineNr"> 36 </span><span class="Delimiter">}</span> <span id="L37" class="LineNr"> 37 </span> <span id="L38" class="LineNr"> 38 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='box.mu.html#L38'>draw-vertical-line</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), row1: int, row2: int, col: int <span class="Delimiter">{</span> -<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> row/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy row1 +<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> row/eax: int <span class="Special"><-</span> copy row1 <span id="L40" class="LineNr"> 40 </span> <span class="Delimiter">{</span> <span id="L41" class="LineNr"> 41 </span> compare row, row2 <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">break-if->=</span> @@ -130,7 +129,7 @@ if ('onhashchange' in window) { <span id="L69" class="LineNr"> 69 </span> <span id="L70" class="LineNr"> 70 </span><span class="muComment"># erase parts of screen the slow way</span> <span id="L71" class="LineNr"> 71 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='box.mu.html#L71'>clear-rect</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), row1: int, col1: int, row2: int, col2: int <span class="Delimiter">{</span> -<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy row1 +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy row1 <span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> <span id="L74" class="LineNr"> 74 </span> compare i, row2 <span id="L75" class="LineNr"> 75 </span> <span class="PreProc">break-if-></span> @@ -149,7 +148,7 @@ if ('onhashchange' in window) { <span id="L88" class="LineNr"> 88 </span><span class="Delimiter">}</span> <span id="L89" class="LineNr"> 89 </span> <span id="L90" class="LineNr"> 90 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='box.mu.html#L90'>clear-rect2</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), row1: int, col1: int, w: int, h: int <span class="Delimiter">{</span> -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> curr-row/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy row1 <span id="L93" class="LineNr"> 93 </span> <span class="Delimiter">{</span> <span id="L94" class="LineNr"> 94 </span> compare i, w diff --git a/html/linux/tile/data.mu.html b/html/linux/tile/data.mu.html index a4e3b874..f12fa880 100644 --- a/html/linux/tile/data.mu.html +++ b/html/linux/tile/data.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.Constant { color: #008787; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEcx { color: #af875f; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.Constant { color: #008787; } +.muRegEsi { color: #005faf; } +.CommentedCode { color: #8a8a8a; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .Special { color: #ff6060; } -.muFunction { color: #af5f00; text-decoration: underline; } -.PreProc { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muComment { color: #005faf; } --> </style> @@ -150,24 +149,24 @@ if ('onhashchange' in window) { <span id="L86" class="LineNr"> 86 </span> <span id="L87" class="LineNr"> 87 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L87'>initialize-sandbox</a></span> _sandbox: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Delimiter">{</span> <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data <span id="L90" class="LineNr"> 90 </span> <a href='../120allocate.subx.html#L66'>allocate</a> line-ah -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah <span id="L92" class="LineNr"> 92 </span> <a href='data.mu.html#L102'>initialize-line</a> <a href='data.mu.html#L34'>line</a> <span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> word-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L95" class="LineNr"> 95 </span> <a href='../120allocate.subx.html#L66'>allocate</a> cursor-call-path-ah -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> dest/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> <span id="L98" class="LineNr"> 98 </span> copy-object word-ah, dest <span id="L99" class="LineNr"> 99 </span><span class="Delimiter">}</span> <span id="L100" class="LineNr">100 </span> <span id="L101" class="LineNr">101 </span><span class="muComment"># initialize line with a single empty word</span> <span id="L102" class="LineNr">102 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L102'>initialize-line</a></span> _line: (addr <a href='data.mu.html#L34'>line</a>) <span class="Delimiter">{</span> <span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _line -<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data +<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data <span id="L105" class="LineNr">105 </span> <a href='../120allocate.subx.html#L66'>allocate</a> word-ah -<span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah +<span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah <span id="L107" class="LineNr">107 </span> <a href='word.mu.html#L1'>initialize-word</a> <a href='data.mu.html#L42'>word</a> <span id="L108" class="LineNr">108 </span><span class="Delimiter">}</span> <span id="L109" class="LineNr">109 </span> @@ -175,17 +174,17 @@ if ('onhashchange' in window) { <span id="L111" class="LineNr">111 </span> <span class="muComment"># x 2* = x 2 *</span> <span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _self <span id="L113" class="LineNr">113 </span> <a href='../120allocate.subx.html#L66'>allocate</a> self -<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *self +<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *self <span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f -<span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name <span id="L117" class="LineNr">117 </span> <a href='data.mu.html#L287'>populate-text-with</a> name-ah, <span class="Constant">"2*"</span> -<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args +<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L119" class="LineNr">119 </span> <a href='../120allocate.subx.html#L66'>allocate</a> args-ah -<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah +<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> args/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah <span id="L121" class="LineNr">121 </span> <a href='word.mu.html#L11'>initialize-word-with</a> args, <span class="Constant">"x"</span> -<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body +<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body <span id="L123" class="LineNr">123 </span> <a href='../120allocate.subx.html#L66'>allocate</a> body-ah -<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L125" class="LineNr">125 </span> <a href='data.mu.html#L102'>initialize-line</a> body <span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> curr-word-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L127" class="LineNr">127 </span> <a href='word.mu.html#L547'>parse-words</a> <span class="Constant">"x 2 *"</span>, curr-word-ah @@ -194,17 +193,17 @@ if ('onhashchange' in window) { <span id="L130" class="LineNr">130 </span> <span class="muComment"># x 1+ = x 1 +</span> <span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> next/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, next <span id="L132" class="LineNr">132 </span> <a href='../120allocate.subx.html#L66'>allocate</a> next -<span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next +<span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next <span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name <span id="L136" class="LineNr">136 </span> <a href='data.mu.html#L287'>populate-text-with</a> name-ah, <span class="Constant">"1+"</span> -<span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args +<span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L138" class="LineNr">138 </span> <a href='../120allocate.subx.html#L66'>allocate</a> args-ah -<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah +<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> args/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah <span id="L140" class="LineNr">140 </span> <a href='word.mu.html#L11'>initialize-word-with</a> args, <span class="Constant">"x"</span> -<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body +<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body <span id="L142" class="LineNr">142 </span> <a href='../120allocate.subx.html#L66'>allocate</a> body-ah -<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L144" class="LineNr">144 </span> <a href='data.mu.html#L102'>initialize-line</a> body <span id="L145" class="LineNr">145 </span> curr-word-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L146" class="LineNr">146 </span> <a href='word.mu.html#L547'>parse-words</a> <span class="Constant">"x 1 +"</span>, curr-word-ah @@ -213,17 +212,17 @@ if ('onhashchange' in window) { <span id="L149" class="LineNr">149 </span> <span class="muComment"># x 2+ = x 1+ 1+</span> <span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> next/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, next <span id="L151" class="LineNr">151 </span> <a href='../120allocate.subx.html#L66'>allocate</a> next -<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next +<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next <span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f -<span id="L154" class="LineNr">154 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L154" class="LineNr">154 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name <span id="L155" class="LineNr">155 </span> <a href='data.mu.html#L287'>populate-text-with</a> name-ah, <span class="Constant">"2+"</span> -<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L157" class="LineNr">157 </span> <a href='../120allocate.subx.html#L66'>allocate</a> args-ah -<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah +<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> args/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah <span id="L159" class="LineNr">159 </span> <a href='word.mu.html#L11'>initialize-word-with</a> args, <span class="Constant">"x"</span> -<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body +<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body <span id="L161" class="LineNr">161 </span> <a href='../120allocate.subx.html#L66'>allocate</a> body-ah -<span id="L162" class="LineNr">162 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L162" class="LineNr">162 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L163" class="LineNr">163 </span> <a href='data.mu.html#L102'>initialize-line</a> body <span id="L164" class="LineNr">164 </span> curr-word-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L165" class="LineNr">165 </span> <a href='word.mu.html#L547'>parse-words</a> <span class="Constant">"x 1+ 1+"</span>, curr-word-ah @@ -232,17 +231,17 @@ if ('onhashchange' in window) { <span id="L168" class="LineNr">168 </span> <span class="muComment"># x square = x x *</span> <span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> next/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, next <span id="L170" class="LineNr">170 </span> <a href='../120allocate.subx.html#L66'>allocate</a> next -<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next +<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next <span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name <span id="L174" class="LineNr">174 </span> <a href='data.mu.html#L287'>populate-text-with</a> name-ah, <span class="Constant">"square"</span> -<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args +<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L176" class="LineNr">176 </span> <a href='../120allocate.subx.html#L66'>allocate</a> args-ah -<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah +<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> args/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah <span id="L178" class="LineNr">178 </span> <a href='word.mu.html#L11'>initialize-word-with</a> args, <span class="Constant">"x"</span> -<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body <span id="L180" class="LineNr">180 </span> <a href='../120allocate.subx.html#L66'>allocate</a> body-ah -<span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L182" class="LineNr">182 </span> <a href='data.mu.html#L102'>initialize-line</a> body <span id="L183" class="LineNr">183 </span> curr-word-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L184" class="LineNr">184 </span> <a href='word.mu.html#L547'>parse-words</a> <span class="Constant">"x x *"</span>, curr-word-ah @@ -251,17 +250,17 @@ if ('onhashchange' in window) { <span id="L187" class="LineNr">187 </span> <span class="muComment"># x 1- = x 1 -</span> <span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> next/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, next <span id="L189" class="LineNr">189 </span> <a href='../120allocate.subx.html#L66'>allocate</a> next -<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next +<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next <span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f -<span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name <span id="L193" class="LineNr">193 </span> <a href='data.mu.html#L287'>populate-text-with</a> name-ah, <span class="Constant">"1-"</span> -<span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args +<span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L195" class="LineNr">195 </span> <a href='../120allocate.subx.html#L66'>allocate</a> args-ah -<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah +<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> args/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah <span id="L197" class="LineNr">197 </span> <a href='word.mu.html#L11'>initialize-word-with</a> args, <span class="Constant">"x"</span> -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body <span id="L199" class="LineNr">199 </span> <a href='../120allocate.subx.html#L66'>allocate</a> body-ah -<span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L201" class="LineNr">201 </span> <a href='data.mu.html#L102'>initialize-line</a> body <span id="L202" class="LineNr">202 </span> curr-word-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L203" class="LineNr">203 </span> <a href='word.mu.html#L547'>parse-words</a> <span class="Constant">"x 1 -"</span>, curr-word-ah @@ -270,22 +269,22 @@ if ('onhashchange' in window) { <span id="L206" class="LineNr">206 </span> <span class="muComment"># x y sub = x y -</span> <span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> next/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, next <span id="L208" class="LineNr">208 </span> <a href='../120allocate.subx.html#L66'>allocate</a> next -<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next +<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next <span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f -<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name <span id="L212" class="LineNr">212 </span> <a href='data.mu.html#L287'>populate-text-with</a> name-ah, <span class="Constant">"sub"</span> <span id="L213" class="LineNr">213 </span> <span class="muComment"># critical lesson: args are stored in reverse order</span> -<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args +<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L215" class="LineNr">215 </span> <a href='../120allocate.subx.html#L66'>allocate</a> args-ah -<span id="L216" class="LineNr">216 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah +<span id="L216" class="LineNr">216 </span> <span class="PreProc">var</span> args/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *args-ah <span id="L217" class="LineNr">217 </span> <a href='word.mu.html#L11'>initialize-word-with</a> args, <span class="Constant">"y"</span> -<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> next-arg-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> args, next +<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> next-arg-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> args, next <span id="L219" class="LineNr">219 </span> <a href='../120allocate.subx.html#L66'>allocate</a> next-arg-ah -<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> next-arg/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-arg-ah +<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> next-arg/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-arg-ah <span id="L221" class="LineNr">221 </span> <a href='word.mu.html#L11'>initialize-word-with</a> next-arg, <span class="Constant">"x"</span> -<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body +<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body <span id="L223" class="LineNr">223 </span> <a href='../120allocate.subx.html#L66'>allocate</a> body-ah -<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L225" class="LineNr">225 </span> <a href='data.mu.html#L102'>initialize-line</a> body <span id="L226" class="LineNr">226 </span> curr-word-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L227" class="LineNr">227 </span> <a href='word.mu.html#L547'>parse-words</a> <span class="Constant">"x y -"</span>, curr-word-ah @@ -297,25 +296,25 @@ if ('onhashchange' in window) { <span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> function-name-storage: (handle array byte) <span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> function-name-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address function-name-storage <span id="L235" class="LineNr">235 </span> <span class="PreProc">var</span> word-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _word -<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah -<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> gap-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L42'>word</a>, scalar-data -<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *gap-ah +<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah +<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> gap-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L42'>word</a>, scalar-data +<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> gap/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *gap-ah <span id="L239" class="LineNr">239 </span> <a href='gap-buffer.mu.html#L30'>gap-buffer-to-string</a> gap, function-name-ah -<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> _function-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *function-name-ah +<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> _function-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *function-name-ah <span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> function-name/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _function-name <span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy functions <span id="L243" class="LineNr">243 </span> $function-body:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> _curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> _curr/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> curr/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _curr <span id="L246" class="LineNr">246 </span> compare curr, <span class="Constant">0</span> <span id="L247" class="LineNr">247 </span> <span class="PreProc">break-if-=</span> -<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, name -<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> curr-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-name-ah -<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> curr-name, function-name +<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, name +<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> curr-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-name-ah +<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> curr-name, function-name <span id="L251" class="LineNr">251 </span> compare found?, <span class="Constant">0</span>/false <span id="L252" class="LineNr">252 </span> <span class="Delimiter">{</span> <span id="L253" class="LineNr">253 </span> <span class="PreProc">break-if-=</span> -<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, body +<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> src/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, body <span id="L255" class="LineNr">255 </span> copy-object src, out <span id="L256" class="LineNr">256 </span> <span class="PreProc">break</span> $function-body:<span class="PreProc">loop</span> <span id="L257" class="LineNr">257 </span> <span class="Delimiter">}</span> @@ -324,21 +323,21 @@ if ('onhashchange' in window) { <span id="L260" class="LineNr">260 </span> <span class="Delimiter">}</span> <span id="L261" class="LineNr">261 </span><span class="Delimiter">}</span> <span id="L262" class="LineNr">262 </span> -<span id="L263" class="LineNr">263 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L263'>body-length</a></span> functions: (addr handle <a href='data.mu.html#L21'>function</a>), function-name: (addr handle <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L263" class="LineNr">263 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L263'>body-length</a></span> functions: (addr handle <a href='data.mu.html#L21'>function</a>), function-name: (addr handle <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> body-storage: (handle <a href='data.mu.html#L34'>line</a>) <span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address body-storage <span id="L266" class="LineNr">266 </span> <a href='data.mu.html#L232'>function-body</a> functions, function-name, body-ah -<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah -<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='data.mu.html#L272'>num-words-in-line</a> body +<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> <a href='data.mu.html#L272'>num-words-in-line</a> body <span id="L269" class="LineNr">269 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L270" class="LineNr">270 </span><span class="Delimiter">}</span> <span id="L271" class="LineNr">271 </span> -<span id="L272" class="LineNr">272 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L272'>num-words-in-line</a></span> _in: (addr <a href='data.mu.html#L34'>line</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L272" class="LineNr">272 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L272'>num-words-in-line</a></span> _in: (addr <a href='data.mu.html#L34'>line</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _in <span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> in, data <span id="L275" class="LineNr">275 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L276" class="LineNr">276 </span> <span class="Delimiter">{</span> -<span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L278" class="LineNr">278 </span> compare curr, <span class="Constant">0</span> <span id="L279" class="LineNr">279 </span> <span class="PreProc">break-if-=</span> <span id="L280" class="LineNr">280 </span> curr-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, next @@ -353,9 +352,9 @@ if ('onhashchange' in window) { <span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> n/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length in <span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> out/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> copy _out <span id="L291" class="LineNr">291 </span> populate out, n -<span id="L292" class="LineNr">292 </span> <span class="PreProc">var</span> _out-addr/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out +<span id="L292" class="LineNr">292 </span> <span class="PreProc">var</span> _out-addr/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out <span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEdx">edx</span>: (addr array byte) <span class="Special"><-</span> copy _out-addr -<span id="L294" class="LineNr">294 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L294" class="LineNr">294 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L295" class="LineNr">295 </span> <span class="Delimiter">{</span> <span id="L296" class="LineNr">296 </span> compare i, n <span id="L297" class="LineNr">297 </span> <span class="PreProc">break-if->=</span> @@ -370,33 +369,33 @@ if ('onhashchange' in window) { <span id="L306" class="LineNr">306 </span> <span id="L307" class="LineNr">307 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L307'>initialize-path-from-sandbox</a></span> _in: (addr <a href='data.mu.html#L5'>sandbox</a>), _out: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> <span id="L308" class="LineNr">308 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _in -<span id="L309" class="LineNr">309 </span> <span class="PreProc">var</span> line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data -<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah +<span id="L309" class="LineNr">309 </span> <span class="PreProc">var</span> line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data +<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah <span id="L311" class="LineNr">311 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data <span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _out -<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> out/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L314" class="LineNr">314 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out, <a href='data.mu.html#L42'>word</a> <span id="L315" class="LineNr">315 </span> copy-object src, dest <span id="L316" class="LineNr">316 </span><span class="Delimiter">}</span> <span id="L317" class="LineNr">317 </span> <span id="L318" class="LineNr">318 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L318'>initialize-path-from-line</a></span> _line: (addr <a href='data.mu.html#L34'>line</a>), _out: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> -<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _line +<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _line <span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data <span id="L321" class="LineNr">321 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _out -<span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> out/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out, <a href='data.mu.html#L42'>word</a> <span id="L324" class="LineNr">324 </span> copy-object src, dest <span id="L325" class="LineNr">325 </span><span class="Delimiter">}</span> <span id="L326" class="LineNr">326 </span> -<span id="L327" class="LineNr">327 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L327'>find-in-call-paths</a></span> call-paths: (addr handle <a href='data.mu.html#L71'>call-path</a>), needle: (addr handle <a href='data.mu.html#L77'>call-path-element</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L327" class="LineNr">327 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L327'>find-in-call-paths</a></span> call-paths: (addr handle <a href='data.mu.html#L71'>call-path</a>), needle: (addr handle <a href='data.mu.html#L77'>call-path-element</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L328" class="LineNr">328 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> copy call-paths <span id="L329" class="LineNr">329 </span> $find-in-call-path:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L331" class="LineNr">331 </span> compare curr, <span class="Constant">0</span> <span id="L332" class="LineNr">332 </span> <span class="PreProc">break-if-=</span> <span id="L333" class="LineNr">333 </span> <span class="Delimiter">{</span> -<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> curr-data/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, data -<span id="L335" class="LineNr">335 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='data.mu.html#L348'>call-path-element-match?</a> curr-data, needle +<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> curr-data/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, data +<span id="L335" class="LineNr">335 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='data.mu.html#L348'>call-path-element-match?</a> curr-data, needle <span id="L336" class="LineNr">336 </span> compare match?, <span class="Constant">0</span>/false <span id="L337" class="LineNr">337 </span> <span class="Delimiter">{</span> <span id="L338" class="LineNr">338 </span> <span class="PreProc">break-if-=</span> @@ -409,12 +408,12 @@ if ('onhashchange' in window) { <span id="L345" class="LineNr">345 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L346" class="LineNr">346 </span><span class="Delimiter">}</span> <span id="L347" class="LineNr">347 </span> -<span id="L348" class="LineNr">348 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L348'>call-path-element-match?</a></span> _x: (addr handle <a href='data.mu.html#L77'>call-path-element</a>), _y: (addr handle <a href='data.mu.html#L77'>call-path-element</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> x-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _x -<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> x-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *x-ah +<span id="L348" class="LineNr">348 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L348'>call-path-element-match?</a></span> _x: (addr handle <a href='data.mu.html#L77'>call-path-element</a>), _y: (addr handle <a href='data.mu.html#L77'>call-path-element</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> x-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _x +<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> x-a/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *x-ah <span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy x-a -<span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> y-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _y -<span id="L353" class="LineNr">353 </span> <span class="PreProc">var</span> y-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *y-ah +<span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> y-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _y +<span id="L353" class="LineNr">353 </span> <span class="PreProc">var</span> y-a/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *y-ah <span id="L354" class="LineNr">354 </span> <span class="PreProc">var</span> y/<span class="muRegEdi">edi</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy y-a <span id="L355" class="LineNr">355 </span> compare x, y <span id="L356" class="LineNr">356 </span> <span class="Delimiter">{</span> @@ -433,11 +432,11 @@ if ('onhashchange' in window) { <span id="L369" class="LineNr">369 </span> <span class="Delimiter">}</span> <span id="L370" class="LineNr">370 </span> <span class="muComment"># compare word addresses, not contents</span> <span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> x-data-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> x, <a href='data.mu.html#L42'>word</a> -<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> x-data-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *x-data-ah +<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> x-data-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *x-data-ah <span id="L373" class="LineNr">373 </span> <span class="PreProc">var</span> x-data/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x-data-a -<span id="L374" class="LineNr">374 </span> <span class="PreProc">var</span> y-data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> y, <a href='data.mu.html#L42'>word</a> -<span id="L375" class="LineNr">375 </span> <span class="PreProc">var</span> y-data-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *y-data-ah -<span id="L376" class="LineNr">376 </span> <span class="PreProc">var</span> y-data/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy y-data-a +<span id="L374" class="LineNr">374 </span> <span class="PreProc">var</span> y-data-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> y, <a href='data.mu.html#L42'>word</a> +<span id="L375" class="LineNr">375 </span> <span class="PreProc">var</span> y-data-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *y-data-ah +<span id="L376" class="LineNr">376 </span> <span class="PreProc">var</span> y-data/eax: int <span class="Special"><-</span> copy y-data-a <span id="L377" class="LineNr">377 </span><span class="CommentedCode">#? print-string 0, "match? "</span> <span id="L378" class="LineNr">378 </span><span class="CommentedCode">#? print-int32-hex 0, x-data</span> <span id="L379" class="LineNr">379 </span><span class="CommentedCode">#? print-string 0, " vs "</span> @@ -449,8 +448,8 @@ if ('onhashchange' in window) { <span id="L385" class="LineNr">385 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L386" class="LineNr">386 </span> <span class="Delimiter">}</span> <span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> x-next/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> x, next -<span id="L388" class="LineNr">388 </span> <span class="PreProc">var</span> y-next/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> y, next -<span id="L389" class="LineNr">389 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='data.mu.html#L348'>call-path-element-match?</a> x-next, y-next +<span id="L388" class="LineNr">388 </span> <span class="PreProc">var</span> y-next/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> y, next +<span id="L389" class="LineNr">389 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='data.mu.html#L348'>call-path-element-match?</a> x-next, y-next <span id="L390" class="LineNr">390 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L391" class="LineNr">391 </span><span class="Delimiter">}</span> <span id="L392" class="LineNr">392 </span> @@ -459,7 +458,7 @@ if ('onhashchange' in window) { <span id="L395" class="LineNr">395 </span> <span class="PreProc">var</span> new-path-storage: (handle <a href='data.mu.html#L71'>call-path</a>) <span id="L396" class="LineNr">396 </span> <span class="PreProc">var</span> new-path-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> address new-path-storage <span id="L397" class="LineNr">397 </span> <a href='../120allocate.subx.html#L66'>allocate</a> new-path-ah -<span id="L398" class="LineNr">398 </span> <span class="PreProc">var</span> new-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-path-ah +<span id="L398" class="LineNr">398 </span> <span class="PreProc">var</span> new-path/eax: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-path-ah <span id="L399" class="LineNr">399 </span> <span class="PreProc">var</span> next/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-path, next <span id="L400" class="LineNr">400 </span> copy-object list, next <span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-path, data @@ -471,36 +470,36 @@ if ('onhashchange' in window) { <span id="L407" class="LineNr">407 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L407'>deep-copy-call-path-element</a></span> _src: (addr handle <a href='data.mu.html#L77'>call-path-element</a>), _dest: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> <span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _src <span id="L409" class="LineNr">409 </span> <span class="muComment"># if src is null, return</span> -<span id="L410" class="LineNr">410 </span> <span class="PreProc">var</span> _src-addr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src +<span id="L410" class="LineNr">410 </span> <span class="PreProc">var</span> _src-addr/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src <span id="L411" class="LineNr">411 </span> compare _src-addr, <span class="Constant">0</span> <span id="L412" class="LineNr">412 </span> <span class="PreProc">break-if-=</span> <span id="L413" class="LineNr">413 </span> <span class="muComment"># allocate</span> <span id="L414" class="LineNr">414 </span> <span class="PreProc">var</span> src-addr/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _src-addr -<span id="L415" class="LineNr">415 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _dest +<span id="L415" class="LineNr">415 </span> <span class="PreProc">var</span> dest/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _dest <span id="L416" class="LineNr">416 </span> <a href='../120allocate.subx.html#L66'>allocate</a> dest <span id="L417" class="LineNr">417 </span> <span class="muComment"># copy data</span> -<span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest +<span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> dest-addr/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest <span id="L419" class="LineNr">419 </span> <span class="Delimiter">{</span> <span id="L420" class="LineNr">420 </span> <span class="PreProc">var</span> dest-data-addr/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, <a href='data.mu.html#L42'>word</a> -<span id="L421" class="LineNr">421 </span> <span class="PreProc">var</span> src-data-addr/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-addr, <a href='data.mu.html#L42'>word</a> +<span id="L421" class="LineNr">421 </span> <span class="PreProc">var</span> src-data-addr/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-addr, <a href='data.mu.html#L42'>word</a> <span id="L422" class="LineNr">422 </span> copy-object src-data-addr, dest-data-addr <span id="L423" class="LineNr">423 </span> <span class="Delimiter">}</span> <span id="L424" class="LineNr">424 </span> <span class="muComment"># recurse</span> <span id="L425" class="LineNr">425 </span> <span class="PreProc">var</span> src-next/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-addr, next -<span id="L426" class="LineNr">426 </span> <span class="PreProc">var</span> dest-next/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, next +<span id="L426" class="LineNr">426 </span> <span class="PreProc">var</span> dest-next/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, next <span id="L427" class="LineNr">427 </span> <a href='data.mu.html#L407'>deep-copy-call-path-element</a> src-next, dest-next <span id="L428" class="LineNr">428 </span><span class="Delimiter">}</span> <span id="L429" class="LineNr">429 </span> <span id="L430" class="LineNr">430 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L430'>delete-in-call-path</a></span> list: (addr handle <a href='data.mu.html#L71'>call-path</a>), needle: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> <span id="L431" class="LineNr">431 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> copy list <span id="L432" class="LineNr">432 </span> $delete-in-call-path:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L433" class="LineNr">433 </span> <span class="PreProc">var</span> _curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L433" class="LineNr">433 </span> <span class="PreProc">var</span> _curr/eax: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L434" class="LineNr">434 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> copy _curr <span id="L435" class="LineNr">435 </span> compare curr, <span class="Constant">0</span> <span id="L436" class="LineNr">436 </span> <span class="PreProc">break-if-=</span> <span id="L437" class="LineNr">437 </span> <span class="Delimiter">{</span> -<span id="L438" class="LineNr">438 </span> <span class="PreProc">var</span> curr-data/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, data -<span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='data.mu.html#L348'>call-path-element-match?</a> curr-data, needle +<span id="L438" class="LineNr">438 </span> <span class="PreProc">var</span> curr-data/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, data +<span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='data.mu.html#L348'>call-path-element-match?</a> curr-data, needle <span id="L440" class="LineNr">440 </span> compare match?, <span class="Constant">0</span>/false <span id="L441" class="LineNr">441 </span> <span class="Delimiter">{</span> <span id="L442" class="LineNr">442 </span> <span class="PreProc">break-if-=</span> @@ -515,29 +514,29 @@ if ('onhashchange' in window) { <span id="L451" class="LineNr">451 </span><span class="Delimiter">}</span> <span id="L452" class="LineNr">452 </span> <span id="L453" class="LineNr">453 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L453'>increment-final-element</a></span> list: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> -<span id="L454" class="LineNr">454 </span> <span class="PreProc">var</span> final-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy list -<span id="L455" class="LineNr">455 </span> <span class="PreProc">var</span> final/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-ah +<span id="L454" class="LineNr">454 </span> <span class="PreProc">var</span> final-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy list +<span id="L455" class="LineNr">455 </span> <span class="PreProc">var</span> final/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-ah <span id="L456" class="LineNr">456 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> final, <a href='data.mu.html#L42'>word</a> -<span id="L457" class="LineNr">457 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L457" class="LineNr">457 </span> <span class="PreProc">var</span> val/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L458" class="LineNr">458 </span> <span class="PreProc">var</span> new-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, next -<span id="L459" class="LineNr">459 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-ah +<span id="L459" class="LineNr">459 </span> <span class="PreProc">var</span> target/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-ah <span id="L460" class="LineNr">460 </span> compare target, <span class="Constant">0</span> <span id="L461" class="LineNr">461 </span> <span class="PreProc">break-if-=</span> <span id="L462" class="LineNr">462 </span> copy-object new-ah, val-ah <span id="L463" class="LineNr">463 </span><span class="Delimiter">}</span> <span id="L464" class="LineNr">464 </span> <span id="L465" class="LineNr">465 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L465'>decrement-final-element</a></span> list: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> -<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> final-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy list -<span id="L467" class="LineNr">467 </span> <span class="PreProc">var</span> final/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-ah +<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> final-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy list +<span id="L467" class="LineNr">467 </span> <span class="PreProc">var</span> final/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-ah <span id="L468" class="LineNr">468 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> final, <a href='data.mu.html#L42'>word</a> -<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> val/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L470" class="LineNr">470 </span><span class="CommentedCode">#? print-string 0, "replacing "</span> <span id="L471" class="LineNr">471 </span><span class="CommentedCode">#? {</span> <span id="L472" class="LineNr">472 </span><span class="CommentedCode">#? var foo/eax: int <- copy val</span> <span id="L473" class="LineNr">473 </span><span class="CommentedCode">#? print-int32-hex 0, foo</span> <span id="L474" class="LineNr">474 </span><span class="CommentedCode">#? }</span> <span id="L475" class="LineNr">475 </span> <span class="PreProc">var</span> new-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, prev -<span id="L476" class="LineNr">476 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-ah +<span id="L476" class="LineNr">476 </span> <span class="PreProc">var</span> target/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-ah <span id="L477" class="LineNr">477 </span> compare target, <span class="Constant">0</span> <span id="L478" class="LineNr">478 </span> <span class="PreProc">break-if-=</span> <span id="L479" class="LineNr">479 </span> <span class="muComment"># val = val->prev</span> @@ -551,12 +550,12 @@ if ('onhashchange' in window) { <span id="L487" class="LineNr">487 </span><span class="Delimiter">}</span> <span id="L488" class="LineNr">488 </span> <span id="L489" class="LineNr">489 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L489'>move-final-element-to-start-of-line</a></span> list: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> -<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> final-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy list -<span id="L491" class="LineNr">491 </span> <span class="PreProc">var</span> final/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-ah +<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> final-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy list +<span id="L491" class="LineNr">491 </span> <span class="PreProc">var</span> final/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-ah <span id="L492" class="LineNr">492 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> final, <a href='data.mu.html#L42'>word</a> -<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> val/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L494" class="LineNr">494 </span> <span class="PreProc">var</span> new-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, prev -<span id="L495" class="LineNr">495 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-ah +<span id="L495" class="LineNr">495 </span> <span class="PreProc">var</span> target/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-ah <span id="L496" class="LineNr">496 </span> compare target, <span class="Constant">0</span> <span id="L497" class="LineNr">497 </span> <span class="PreProc">break-if-=</span> <span id="L498" class="LineNr">498 </span> copy-object new-ah, val-ah @@ -564,12 +563,12 @@ if ('onhashchange' in window) { <span id="L500" class="LineNr">500 </span><span class="Delimiter">}</span> <span id="L501" class="LineNr">501 </span> <span id="L502" class="LineNr">502 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L502'>move-final-element-to-end-of-line</a></span> list: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> -<span id="L503" class="LineNr">503 </span> <span class="PreProc">var</span> final-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy list -<span id="L504" class="LineNr">504 </span> <span class="PreProc">var</span> final/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-ah +<span id="L503" class="LineNr">503 </span> <span class="PreProc">var</span> final-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy list +<span id="L504" class="LineNr">504 </span> <span class="PreProc">var</span> final/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-ah <span id="L505" class="LineNr">505 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> final, <a href='data.mu.html#L42'>word</a> -<span id="L506" class="LineNr">506 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L506" class="LineNr">506 </span> <span class="PreProc">var</span> val/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L507" class="LineNr">507 </span> <span class="PreProc">var</span> new-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, next -<span id="L508" class="LineNr">508 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-ah +<span id="L508" class="LineNr">508 </span> <span class="PreProc">var</span> target/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-ah <span id="L509" class="LineNr">509 </span> compare target, <span class="Constant">0</span> <span id="L510" class="LineNr">510 </span> <span class="PreProc">break-if-=</span> <span id="L511" class="LineNr">511 </span> copy-object new-ah, val-ah @@ -580,7 +579,7 @@ if ('onhashchange' in window) { <span id="L516" class="LineNr">516 </span> <span class="PreProc">var</span> new-element-storage: (handle <a href='data.mu.html#L77'>call-path-element</a>) <span id="L517" class="LineNr">517 </span> <span class="PreProc">var</span> new-element-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> address new-element-storage <span id="L518" class="LineNr">518 </span> <a href='../120allocate.subx.html#L66'>allocate</a> new-element-ah -<span id="L519" class="LineNr">519 </span> <span class="PreProc">var</span> new-element/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-element-ah +<span id="L519" class="LineNr">519 </span> <span class="PreProc">var</span> new-element/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-element-ah <span id="L520" class="LineNr">520 </span> <span class="muComment"># save word</span> <span id="L521" class="LineNr">521 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-element, <a href='data.mu.html#L42'>word</a> <span id="L522" class="LineNr">522 </span> copy-object new, dest @@ -593,16 +592,16 @@ if ('onhashchange' in window) { <span id="L529" class="LineNr">529 </span> <span id="L530" class="LineNr">530 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L530'>drop-from-call-path-element</a></span> _list: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> <span id="L531" class="LineNr">531 </span> <span class="PreProc">var</span> list-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _list -<span id="L532" class="LineNr">532 </span> <span class="PreProc">var</span> list/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *list-ah -<span id="L533" class="LineNr">533 </span> <span class="PreProc">var</span> next/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> list, next +<span id="L532" class="LineNr">532 </span> <span class="PreProc">var</span> list/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *list-ah +<span id="L533" class="LineNr">533 </span> <span class="PreProc">var</span> next/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> list, next <span id="L534" class="LineNr">534 </span> copy-object next, _list <span id="L535" class="LineNr">535 </span><span class="Delimiter">}</span> <span id="L536" class="LineNr">536 </span> <span id="L537" class="LineNr">537 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L537'>drop-nested-calls</a></span> _list: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> <span id="L538" class="LineNr">538 </span> <span class="PreProc">var</span> list-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _list -<span id="L539" class="LineNr">539 </span> <span class="PreProc">var</span> list/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *list-ah +<span id="L539" class="LineNr">539 </span> <span class="PreProc">var</span> list/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *list-ah <span id="L540" class="LineNr">540 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> list, next -<span id="L541" class="LineNr">541 </span> <span class="PreProc">var</span> next/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah +<span id="L541" class="LineNr">541 </span> <span class="PreProc">var</span> next/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah <span id="L542" class="LineNr">542 </span> compare next, <span class="Constant">0</span> <span id="L543" class="LineNr">543 </span> <span class="PreProc">break-if-=</span> <span id="L544" class="LineNr">544 </span> copy-object next-ah, _list @@ -611,13 +610,13 @@ if ('onhashchange' in window) { <span id="L547" class="LineNr">547 </span> <span id="L548" class="LineNr">548 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L548'>dump-call-path-element</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _x-ah: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Delimiter">{</span> <span id="L549" class="LineNr">549 </span> <span class="PreProc">var</span> x-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _x-ah -<span id="L550" class="LineNr">550 </span> <span class="PreProc">var</span> _x/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *x-ah +<span id="L550" class="LineNr">550 </span> <span class="PreProc">var</span> _x/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *x-ah <span id="L551" class="LineNr">551 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _x -<span id="L552" class="LineNr">552 </span> <span class="PreProc">var</span> word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> x, <a href='data.mu.html#L42'>word</a> -<span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah +<span id="L552" class="LineNr">552 </span> <span class="PreProc">var</span> word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> x, <a href='data.mu.html#L42'>word</a> +<span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah <span id="L554" class="LineNr">554 </span> <a href='word.mu.html#L238'>print-word</a> <a href='../405screen.mu.html#L9'>screen</a>, <a href='data.mu.html#L42'>word</a> <span id="L555" class="LineNr">555 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> x, next -<span id="L556" class="LineNr">556 </span> <span class="PreProc">var</span> next/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah +<span id="L556" class="LineNr">556 </span> <span class="PreProc">var</span> next/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah <span id="L557" class="LineNr">557 </span> compare next, <span class="Constant">0</span> <span id="L558" class="LineNr">558 </span> <span class="Delimiter">{</span> <span id="L559" class="LineNr">559 </span> <span class="PreProc">break-if-=</span> @@ -630,13 +629,13 @@ if ('onhashchange' in window) { <span id="L566" class="LineNr">566 </span> <span id="L567" class="LineNr">567 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L567'>dump-call-paths</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _x-ah: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Delimiter">{</span> <span id="L568" class="LineNr">568 </span> <span class="PreProc">var</span> x-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> copy _x-ah -<span id="L569" class="LineNr">569 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *x-ah +<span id="L569" class="LineNr">569 </span> <span class="PreProc">var</span> x/eax: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *x-ah <span id="L570" class="LineNr">570 </span> compare x, <span class="Constant">0</span> <span id="L571" class="LineNr">571 </span> <span class="PreProc">break-if-=</span> <span id="L572" class="LineNr">572 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> x, data <span id="L573" class="LineNr">573 </span> <a href='data.mu.html#L548'>dump-call-path-element</a> <a href='../405screen.mu.html#L9'>screen</a>, src <span id="L574" class="LineNr">574 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> x, next -<span id="L575" class="LineNr">575 </span> <span class="PreProc">var</span> next/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah +<span id="L575" class="LineNr">575 </span> <span class="PreProc">var</span> next/eax: (addr <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah <span id="L576" class="LineNr">576 </span> compare next, <span class="Constant">0</span> <span id="L577" class="LineNr">577 </span> <span class="Delimiter">{</span> <span id="L578" class="LineNr">578 </span> <span class="PreProc">break-if-=</span> @@ -644,14 +643,14 @@ if ('onhashchange' in window) { <span id="L580" class="LineNr">580 </span> <span class="Delimiter">}</span> <span id="L581" class="LineNr">581 </span><span class="Delimiter">}</span> <span id="L582" class="LineNr">582 </span> -<span id="L583" class="LineNr">583 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L583'>function-width</a></span> _self: (addr <a href='data.mu.html#L21'>function</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L583" class="LineNr">583 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L583'>function-width</a></span> _self: (addr <a href='data.mu.html#L21'>function</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L584" class="LineNr">584 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _self <span id="L585" class="LineNr">585 </span> <span class="PreProc">var</span> args/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, args -<span id="L586" class="LineNr">586 </span> <span class="PreProc">var</span> arg-width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L528'>word-list-length</a> args +<span id="L586" class="LineNr">586 </span> <span class="PreProc">var</span> arg-width/eax: int <span class="Special"><-</span> <a href='word.mu.html#L528'>word-list-length</a> args <span id="L587" class="LineNr">587 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy arg-width <span id="L588" class="LineNr">588 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add <span class="Constant">4</span> <span class="muComment"># function-header-indent + body-indent</span> -<span id="L589" class="LineNr">589 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, body -<span id="L590" class="LineNr">590 </span> <span class="PreProc">var</span> <a href='data.mu.html#L601'>body-width</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='data.mu.html#L601'>body-width</a> body-ah +<span id="L589" class="LineNr">589 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, body +<span id="L590" class="LineNr">590 </span> <span class="PreProc">var</span> <a href='data.mu.html#L601'>body-width</a>/eax: int <span class="Special"><-</span> <a href='data.mu.html#L601'>body-width</a> body-ah <span id="L591" class="LineNr">591 </span> <a href='data.mu.html#L601'>body-width</a> <span class="Special"><-</span> add <span class="Constant">1</span> <span class="muComment"># right margin</span> <span id="L592" class="LineNr">592 </span> <a href='data.mu.html#L601'>body-width</a> <span class="Special"><-</span> add <span class="Constant">2</span> <span class="muComment"># body-indent for "≡ "</span> <span id="L593" class="LineNr">593 </span> compare <a href='data.mu.html#L82'>result</a>, <a href='data.mu.html#L601'>body-width</a> @@ -662,16 +661,16 @@ if ('onhashchange' in window) { <span id="L598" class="LineNr">598 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L599" class="LineNr">599 </span><span class="Delimiter">}</span> <span id="L600" class="LineNr">600 </span> -<span id="L601" class="LineNr">601 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L601'>body-width</a></span> lines: (addr handle <a href='data.mu.html#L34'>line</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L601" class="LineNr">601 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L601'>body-width</a></span> lines: (addr handle <a href='data.mu.html#L34'>line</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L602" class="LineNr">602 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy lines <span id="L603" class="LineNr">603 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L604" class="LineNr">604 </span> <span class="Delimiter">{</span> -<span id="L605" class="LineNr">605 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L605" class="LineNr">605 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L606" class="LineNr">606 </span> compare curr, <span class="Constant">0</span> <span id="L607" class="LineNr">607 </span> <span class="PreProc">break-if-=</span> <span id="L608" class="LineNr">608 </span> <span class="Delimiter">{</span> <span id="L609" class="LineNr">609 </span> <span class="PreProc">var</span> words/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, data -<span id="L610" class="LineNr">610 </span> <span class="PreProc">var</span> curr-len/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L528'>word-list-length</a> words +<span id="L610" class="LineNr">610 </span> <span class="PreProc">var</span> curr-len/eax: int <span class="Special"><-</span> <a href='word.mu.html#L528'>word-list-length</a> words <span id="L611" class="LineNr">611 </span> compare curr-len, <a href='data.mu.html#L82'>result</a> <span id="L612" class="LineNr">612 </span> <span class="PreProc">break-if-<=</span> <span id="L613" class="LineNr">613 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> copy curr-len @@ -682,19 +681,19 @@ if ('onhashchange' in window) { <span id="L618" class="LineNr">618 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L619" class="LineNr">619 </span><span class="Delimiter">}</span> <span id="L620" class="LineNr">620 </span> -<span id="L621" class="LineNr">621 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L621'>function-height</a></span> _self: (addr <a href='data.mu.html#L21'>function</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L621" class="LineNr">621 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L621'>function-height</a></span> _self: (addr <a href='data.mu.html#L21'>function</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L622" class="LineNr">622 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _self -<span id="L623" class="LineNr">623 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, body -<span id="L624" class="LineNr">624 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='data.mu.html#L629'>line-list-length</a> body-ah +<span id="L623" class="LineNr">623 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, body +<span id="L624" class="LineNr">624 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> <a href='data.mu.html#L629'>line-list-length</a> body-ah <span id="L625" class="LineNr">625 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> increment <span class="muComment"># for function header</span> <span id="L626" class="LineNr">626 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L627" class="LineNr">627 </span><span class="Delimiter">}</span> <span id="L628" class="LineNr">628 </span> -<span id="L629" class="LineNr">629 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L629'>line-list-length</a></span> lines: (addr handle <a href='data.mu.html#L34'>line</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L629" class="LineNr">629 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='data.mu.html#L629'>line-list-length</a></span> lines: (addr handle <a href='data.mu.html#L34'>line</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L630" class="LineNr">630 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy lines <span id="L631" class="LineNr">631 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L632" class="LineNr">632 </span> <span class="Delimiter">{</span> -<span id="L633" class="LineNr">633 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L633" class="LineNr">633 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L634" class="LineNr">634 </span> compare curr, <span class="Constant">0</span> <span id="L635" class="LineNr">635 </span> <span class="PreProc">break-if-=</span> <span id="L636" class="LineNr">636 </span> curr-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, next diff --git a/html/linux/tile/environment.mu.html b/html/linux/tile/environment.mu.html index 719f132d..7436af9b 100644 --- a/html/linux/tile/environment.mu.html +++ b/html/linux/tile/environment.mu.html @@ -16,19 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } -.muComment { color: #005faf; } .muS2Comment { color: #8a8a8a; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.CommentedCode { color: #8a8a8a; } +.muComment { color: #005faf; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -96,21 +95,21 @@ if ('onhashchange' in window) { <span id="L30" class="LineNr"> 30 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L30'>initialize-environment</a></span> _env: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Delimiter">{</span> <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _env <span id="L32" class="LineNr"> 32 </span> <span class="muComment"># initialize some predefined function definitions</span> -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> functions/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, functions +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> functions/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, functions <span id="L34" class="LineNr"> 34 </span> <a href='data.mu.html#L110'>create-primitive-functions</a> functions <span id="L35" class="LineNr"> 35 </span> <span class="muComment"># initialize first sandbox</span> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> sandbox-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, sandboxes <span id="L37" class="LineNr"> 37 </span> <a href='../120allocate.subx.html#L66'>allocate</a> sandbox-ah -<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *sandbox-ah +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/eax: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *sandbox-ah <span id="L39" class="LineNr"> 39 </span> <a href='data.mu.html#L87'>initialize-sandbox</a> <a href='data.mu.html#L5'>sandbox</a> <span id="L40" class="LineNr"> 40 </span> <span class="muComment"># initialize cursor sandbox</span> -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> cursor-sandbox-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-sandbox +<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> cursor-sandbox-ah/eax: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-sandbox <span id="L42" class="LineNr"> 42 </span> copy-object sandbox-ah, cursor-sandbox-ah <span id="L43" class="LineNr"> 43 </span> <span class="muComment"># initialize screen</span> -<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> nrows/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> nrows/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> ncols/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L49" class="LineNr"> 49 </span> nrows, ncols <span class="Special"><-</span> <a href='../405screen.mu.html#L60'>screen-size</a> <a href='../405screen.mu.html#L9'>screen</a> <span id="L50" class="LineNr"> 50 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, nrows @@ -125,9 +124,9 @@ if ('onhashchange' in window) { <span id="L59" class="LineNr"> 59 </span> <span id="L60" class="LineNr"> 60 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L60'>initialize-environment-with-fake-screen</a></span> _self: (addr <a href='environment.mu.html#L16'>environment</a>), nrows: int, ncols: int <span class="Delimiter">{</span> <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> <span id="L63" class="LineNr"> 63 </span> <a href='../120allocate.subx.html#L66'>allocate</a> screen-ah -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> screen-addr/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L65" class="LineNr"> 65 </span> <a href='../405screen.mu.html#L30'>initialize-screen</a> screen-addr, nrows, ncols <span id="L66" class="LineNr"> 66 </span> <a href='environment.mu.html#L30'>initialize-environment</a> self <span id="L67" class="LineNr"> 67 </span><span class="Delimiter">}</span> @@ -138,8 +137,8 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr"> 72 </span> <span id="L73" class="LineNr"> 73 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L73'>process</a></span> _self: (addr <a href='environment.mu.html#L16'>environment</a>), key: grapheme <span class="Delimiter">{</span> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> fn-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, partial-function-name -<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> fn-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> fn-name-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, partial-function-name +<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> fn-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah <span id="L77" class="LineNr"> 77 </span> compare fn-name, <span class="Constant">0</span> <span id="L78" class="LineNr"> 78 </span> <span class="Delimiter">{</span> <span id="L79" class="LineNr"> 79 </span> <span class="PreProc">break-if-=</span> @@ -147,8 +146,8 @@ if ('onhashchange' in window) { <span id="L81" class="LineNr"> 81 </span> <a href='environment.mu.html#L105'>process-goto-dialog</a> self, key <span id="L82" class="LineNr"> 82 </span> <span class="PreProc">return</span> <span id="L83" class="LineNr"> 83 </span> <span class="Delimiter">}</span> -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> function-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, cursor-function -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> <a href='data.mu.html#L21'>function</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *function-ah +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> function-ah/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, cursor-function +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> <a href='data.mu.html#L21'>function</a>/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *function-ah <span id="L86" class="LineNr"> 86 </span> compare <a href='data.mu.html#L21'>function</a>, <span class="Constant">0</span> <span id="L87" class="LineNr"> 87 </span> <span class="Delimiter">{</span> <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">break-if-=</span> @@ -156,8 +155,8 @@ if ('onhashchange' in window) { <span id="L90" class="LineNr"> 90 </span> <a href='environment.mu.html#L156'>process-function</a> self, <a href='data.mu.html#L21'>function</a>, key <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">return</span> <span id="L92" class="LineNr"> 92 </span> <span class="Delimiter">}</span> -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> sandbox-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, cursor-sandbox -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *sandbox-ah +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> sandbox-ah/eax: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, cursor-sandbox +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/eax: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *sandbox-ah <span id="L95" class="LineNr"> 95 </span> compare <a href='data.mu.html#L5'>sandbox</a>, <span class="Constant">0</span> <span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">{</span> <span id="L97" class="LineNr"> 97 </span> <span class="PreProc">break-if-=</span> @@ -183,7 +182,7 @@ if ('onhashchange' in window) { <span id="L117" class="LineNr"> 117 </span> $process-goto-dialog:commit: <span class="Delimiter">{</span> <span id="L118" class="LineNr"> 118 </span> <span class="PreProc">break-if-!=</span> <span id="L119" class="LineNr"> 119 </span><span class="CommentedCode">#? print-string 0, "jump\n"</span> -<span id="L120" class="LineNr"> 120 </span> <span class="PreProc">var</span> fn-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah +<span id="L120" class="LineNr"> 120 </span> <span class="PreProc">var</span> fn-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah <span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> functions/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, functions <span id="L122" class="LineNr"> 122 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, cursor-function <span id="L123" class="LineNr"> 123 </span> <a href='environment.mu.html#L1846'>callee</a> functions, fn-name, dest @@ -197,22 +196,22 @@ if ('onhashchange' in window) { <span id="L131" class="LineNr"> 131 </span> $process-goto-dialog:backspace: <span class="Delimiter">{</span> <span id="L132" class="LineNr"> 132 </span> <span class="PreProc">break-if-!=</span> <span id="L133" class="LineNr"> 133 </span> <span class="muComment"># if not at start, delete grapheme before cursor</span> -<span id="L134" class="LineNr"> 134 </span> <span class="PreProc">var</span> fn-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah -<span id="L135" class="LineNr"> 135 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> fn-name +<span id="L134" class="LineNr"> 134 </span> <span class="PreProc">var</span> fn-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah +<span id="L135" class="LineNr"> 135 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> fn-name <span id="L136" class="LineNr"> 136 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L137" class="LineNr"> 137 </span> <span class="Delimiter">{</span> <span id="L138" class="LineNr"> 138 </span> <span class="PreProc">break-if-!=</span> -<span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> fn-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah +<span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> fn-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah <span id="L140" class="LineNr"> 140 </span> <a href='word.mu.html#L207'>delete-before-cursor</a> fn-name <span id="L141" class="LineNr"> 141 </span> <span class="Delimiter">}</span> <span id="L142" class="LineNr"> 142 </span> <span class="PreProc">return</span> <span id="L143" class="LineNr"> 143 </span> <span class="Delimiter">}</span> <span id="L144" class="LineNr"> 144 </span> <span class="muComment"># otherwise insert key within current word</span> -<span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> print?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key +<span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key <span id="L146" class="LineNr"> 146 </span> $process-goto-dialog:real-grapheme: <span class="Delimiter">{</span> <span id="L147" class="LineNr"> 147 </span> compare print?, <span class="Constant">0</span>/false <span id="L148" class="LineNr"> 148 </span> <span class="PreProc">break-if-=</span> -<span id="L149" class="LineNr"> 149 </span> <span class="PreProc">var</span> fn-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah +<span id="L149" class="LineNr"> 149 </span> <span class="PreProc">var</span> fn-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *fn-name-ah <span id="L150" class="LineNr"> 150 </span> <a href='word.mu.html#L148'>add-grapheme-to-word</a> fn-name, key <span id="L151" class="LineNr"> 151 </span> <span class="PreProc">return</span> <span id="L152" class="LineNr"> 152 </span> <span class="Delimiter">}</span> @@ -229,14 +228,14 @@ if ('onhashchange' in window) { <span id="L163" class="LineNr"> 163 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _self <span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> <a href='data.mu.html#L21'>function</a>/<span class="muRegEdi">edi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _function <span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L21'>function</a>, cursor-word -<span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> _cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> _cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L167" class="LineNr"> 167 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _cursor-word <span id="L168" class="LineNr"> 168 </span> compare key, <span class="Constant">0x445b1b</span>/left-arrow <span id="L169" class="LineNr"> 169 </span> $process-function-edit:key-left-arrow: <span class="Delimiter">{</span> <span id="L170" class="LineNr"> 170 </span> <span class="PreProc">break-if-!=</span> <span id="L171" class="LineNr"> 171 </span><span class="CommentedCode">#? print-string 0, "left-arrow\n"</span> <span id="L172" class="LineNr"> 172 </span> <span class="muComment"># if not at start, move left within current word</span> -<span id="L173" class="LineNr"> 173 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word +<span id="L173" class="LineNr"> 173 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word <span id="L174" class="LineNr"> 174 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L175" class="LineNr"> 175 </span> <span class="Delimiter">{</span> <span id="L176" class="LineNr"> 176 </span> <span class="PreProc">break-if-!=</span> @@ -246,7 +245,7 @@ if ('onhashchange' in window) { <span id="L180" class="LineNr"> 180 </span> <span class="Delimiter">}</span> <span id="L181" class="LineNr"> 181 </span> <span class="muComment"># otherwise move to end of previous word</span> <span id="L182" class="LineNr"> 182 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev -<span id="L183" class="LineNr"> 183 </span> <span class="PreProc">var</span> prev-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah +<span id="L183" class="LineNr"> 183 </span> <span class="PreProc">var</span> prev-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah <span id="L184" class="LineNr"> 184 </span> <span class="Delimiter">{</span> <span id="L185" class="LineNr"> 185 </span> compare prev-word, <span class="Constant">0</span> <span id="L186" class="LineNr"> 186 </span> <span class="PreProc">break-if-=</span> @@ -260,7 +259,7 @@ if ('onhashchange' in window) { <span id="L194" class="LineNr"> 194 </span> $process-function-edit:key-right-arrow: <span class="Delimiter">{</span> <span id="L195" class="LineNr"> 195 </span> <span class="PreProc">break-if-!=</span> <span id="L196" class="LineNr"> 196 </span> <span class="muComment"># if not at end, move right within current word</span> -<span id="L197" class="LineNr"> 197 </span> <span class="PreProc">var</span> at-end?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word +<span id="L197" class="LineNr"> 197 </span> <span class="PreProc">var</span> at-end?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word <span id="L198" class="LineNr"> 198 </span> compare at-end?, <span class="Constant">0</span>/false <span id="L199" class="LineNr"> 199 </span> <span class="Delimiter">{</span> <span id="L200" class="LineNr"> 200 </span> <span class="PreProc">break-if-!=</span> @@ -269,7 +268,7 @@ if ('onhashchange' in window) { <span id="L203" class="LineNr"> 203 </span> <span class="Delimiter">}</span> <span id="L204" class="LineNr"> 204 </span> <span class="muComment"># otherwise, move to the next word</span> <span id="L205" class="LineNr"> 205 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next -<span id="L206" class="LineNr"> 206 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah +<span id="L206" class="LineNr"> 206 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah <span id="L207" class="LineNr"> 207 </span> <span class="Delimiter">{</span> <span id="L208" class="LineNr"> 208 </span> compare <a href='../127next-word.subx.html#L11'>next-word</a>, <span class="Constant">0</span> <span id="L209" class="LineNr"> 209 </span> <span class="PreProc">break-if-=</span> @@ -284,7 +283,7 @@ if ('onhashchange' in window) { <span id="L218" class="LineNr"> 218 </span> <span class="PreProc">break-if-!=</span> <span id="L219" class="LineNr"> 219 </span> <span class="muComment"># jump to previous word if possible</span> <span id="L220" class="LineNr"> 220 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev -<span id="L221" class="LineNr"> 221 </span> <span class="PreProc">var</span> prev-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah +<span id="L221" class="LineNr"> 221 </span> <span class="PreProc">var</span> prev-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah <span id="L222" class="LineNr"> 222 </span> <span class="Delimiter">{</span> <span id="L223" class="LineNr"> 223 </span> compare prev-word, <span class="Constant">0</span> <span id="L224" class="LineNr"> 224 </span> <span class="PreProc">break-if-=</span> @@ -298,7 +297,7 @@ if ('onhashchange' in window) { <span id="L232" class="LineNr"> 232 </span> <span class="PreProc">break-if-!=</span> <span id="L233" class="LineNr"> 233 </span> <span class="muComment"># jump to previous word if possible</span> <span id="L234" class="LineNr"> 234 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next -<span id="L235" class="LineNr"> 235 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah +<span id="L235" class="LineNr"> 235 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah <span id="L236" class="LineNr"> 236 </span> <span class="Delimiter">{</span> <span id="L237" class="LineNr"> 237 </span> compare <a href='../127next-word.subx.html#L11'>next-word</a>, <span class="Constant">0</span> <span id="L238" class="LineNr"> 238 </span> <span class="PreProc">break-if-=</span> @@ -312,11 +311,11 @@ if ('onhashchange' in window) { <span id="L246" class="LineNr"> 246 </span> $process-function-edit:start-of-line: <span class="Delimiter">{</span> <span id="L247" class="LineNr"> 247 </span> <span class="PreProc">break-if-!=</span> <span id="L248" class="LineNr"> 248 </span> <span class="muComment"># move cursor to start of first word</span> -<span id="L249" class="LineNr"> 249 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L21'>function</a>, body -<span id="L250" class="LineNr"> 250 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L249" class="LineNr"> 249 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L21'>function</a>, body +<span id="L250" class="LineNr"> 250 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L251" class="LineNr"> 251 </span> <span class="PreProc">var</span> body-contents-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L252" class="LineNr"> 252 </span> copy-object body-contents-ah, cursor-word-ah -<span id="L253" class="LineNr"> 253 </span> <span class="PreProc">var</span> body-contents/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-contents-ah +<span id="L253" class="LineNr"> 253 </span> <span class="PreProc">var</span> body-contents/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-contents-ah <span id="L254" class="LineNr"> 254 </span> <a href='word.mu.html#L185'>cursor-to-start</a> body-contents <span id="L255" class="LineNr"> 255 </span> <span class="PreProc">return</span> <span id="L256" class="LineNr"> 256 </span> <span class="Delimiter">}</span> @@ -324,12 +323,12 @@ if ('onhashchange' in window) { <span id="L258" class="LineNr"> 258 </span> $process-function-edit:end-of-line: <span class="Delimiter">{</span> <span id="L259" class="LineNr"> 259 </span> <span class="PreProc">break-if-!=</span> <span id="L260" class="LineNr"> 260 </span> <span class="muComment"># move cursor to end of final word</span> -<span id="L261" class="LineNr"> 261 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L21'>function</a>, body -<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L261" class="LineNr"> 261 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L21'>function</a>, body +<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L263" class="LineNr"> 263 </span> <span class="PreProc">var</span> body-contents-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L264" class="LineNr"> 264 </span> copy-object body-contents-ah, cursor-word-ah <span id="L265" class="LineNr"> 265 </span> <a href='word.mu.html#L114'>final-word</a> cursor-word-ah, cursor-word-ah -<span id="L266" class="LineNr"> 266 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L266" class="LineNr"> 266 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L267" class="LineNr"> 267 </span> <a href='word.mu.html#L192'>cursor-to-end</a> cursor-word <span id="L268" class="LineNr"> 268 </span> <span class="PreProc">return</span> <span id="L269" class="LineNr"> 269 </span> <span class="Delimiter">}</span> @@ -338,9 +337,9 @@ if ('onhashchange' in window) { <span id="L272" class="LineNr"> 272 </span> $process-function-edit:goto-function: <span class="Delimiter">{</span> <span id="L273" class="LineNr"> 273 </span> <span class="PreProc">break-if-!=</span> <span id="L274" class="LineNr"> 274 </span> <span class="muComment"># initialize dialog to name function to jump to</span> -<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> partial-function-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, partial-function-name +<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> partial-function-name-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, partial-function-name <span id="L276" class="LineNr"> 276 </span> <a href='../120allocate.subx.html#L66'>allocate</a> partial-function-name-ah -<span id="L277" class="LineNr"> 277 </span> <span class="PreProc">var</span> partial-function-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *partial-function-name-ah +<span id="L277" class="LineNr"> 277 </span> <span class="PreProc">var</span> partial-function-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *partial-function-name-ah <span id="L278" class="LineNr"> 278 </span> <a href='word.mu.html#L1'>initialize-word</a> partial-function-name <span id="L279" class="LineNr"> 279 </span> <span class="PreProc">return</span> <span id="L280" class="LineNr"> 280 </span> <span class="Delimiter">}</span> @@ -348,7 +347,7 @@ if ('onhashchange' in window) { <span id="L282" class="LineNr"> 282 </span> compare key, <span class="Constant">9</span>/tab <span id="L283" class="LineNr"> 283 </span> $process-function-edit:goto-sandbox: <span class="Delimiter">{</span> <span id="L284" class="LineNr"> 284 </span> <span class="PreProc">break-if-!=</span> -<span id="L285" class="LineNr"> 285 </span> <span class="PreProc">var</span> function-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, cursor-function +<span id="L285" class="LineNr"> 285 </span> <span class="PreProc">var</span> function-ah/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, cursor-function <span id="L286" class="LineNr"> 286 </span> clear-object function-ah <span id="L287" class="LineNr"> 287 </span> <span class="PreProc">return</span> <span id="L288" class="LineNr"> 288 </span> <span class="Delimiter">}</span> @@ -357,7 +356,7 @@ if ('onhashchange' in window) { <span id="L291" class="LineNr"> 291 </span> $process-function-edit:backspace: <span class="Delimiter">{</span> <span id="L292" class="LineNr"> 292 </span> <span class="PreProc">break-if-!=</span> <span id="L293" class="LineNr"> 293 </span> <span class="muComment"># if not at start of some word, delete grapheme before cursor within current word</span> -<span id="L294" class="LineNr"> 294 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word +<span id="L294" class="LineNr"> 294 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word <span id="L295" class="LineNr"> 295 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L296" class="LineNr"> 296 </span> <span class="Delimiter">{</span> <span id="L297" class="LineNr"> 297 </span> <span class="PreProc">break-if-!=</span> @@ -366,7 +365,7 @@ if ('onhashchange' in window) { <span id="L300" class="LineNr"> 300 </span> <span class="Delimiter">}</span> <span id="L301" class="LineNr"> 301 </span> <span class="muComment"># otherwise delete current word and move to end of prev word</span> <span id="L302" class="LineNr"> 302 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev -<span id="L303" class="LineNr"> 303 </span> <span class="PreProc">var</span> prev-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah +<span id="L303" class="LineNr"> 303 </span> <span class="PreProc">var</span> prev-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah <span id="L304" class="LineNr"> 304 </span> <span class="Delimiter">{</span> <span id="L305" class="LineNr"> 305 </span> compare prev-word, <span class="Constant">0</span> <span id="L306" class="LineNr"> 306 </span> <span class="PreProc">break-if-=</span> @@ -382,22 +381,22 @@ if ('onhashchange' in window) { <span id="L316" class="LineNr"> 316 </span><span class="CommentedCode">#? print-string 0, "space\n"</span> <span id="L317" class="LineNr"> 317 </span> <span class="muComment"># if cursor is at start of word, insert word before</span> <span id="L318" class="LineNr"> 318 </span> <span class="Delimiter">{</span> -<span id="L319" class="LineNr"> 319 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word +<span id="L319" class="LineNr"> 319 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word <span id="L320" class="LineNr"> 320 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L321" class="LineNr"> 321 </span> <span class="PreProc">break-if-=</span> -<span id="L322" class="LineNr"> 322 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev +<span id="L322" class="LineNr"> 322 </span> <span class="PreProc">var</span> prev-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev <span id="L323" class="LineNr"> 323 </span> <a href='word.mu.html#L356'>append-word</a> prev-word-ah -<span id="L324" class="LineNr"> 324 </span> <span class="PreProc">var</span> new-prev-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev +<span id="L324" class="LineNr"> 324 </span> <span class="PreProc">var</span> new-prev-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev <span id="L325" class="LineNr"> 325 </span> copy-object new-prev-word-ah, cursor-word-ah <span id="L326" class="LineNr"> 326 </span> <span class="PreProc">return</span> <span id="L327" class="LineNr"> 327 </span> <span class="Delimiter">}</span> <span id="L328" class="LineNr"> 328 </span> <span class="muComment"># if start of word is quote and grapheme before cursor is not, just insert it as usual</span> <span id="L329" class="LineNr"> 329 </span> <span class="muComment"># TODO: support string escaping</span> <span id="L330" class="LineNr"> 330 </span> <span class="Delimiter">{</span> -<span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> <a href='word.mu.html#L132'>first-grapheme</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L132'>first-grapheme</a> cursor-word +<span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> <a href='word.mu.html#L132'>first-grapheme</a>/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L132'>first-grapheme</a> cursor-word <span id="L332" class="LineNr"> 332 </span> compare <a href='word.mu.html#L132'>first-grapheme</a>, <span class="Constant">0x22</span>/double-quote <span id="L333" class="LineNr"> 333 </span> <span class="PreProc">break-if-!=</span> -<span id="L334" class="LineNr"> 334 </span> <span class="PreProc">var</span> final-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L140'>grapheme-before-cursor</a> cursor-word +<span id="L334" class="LineNr"> 334 </span> <span class="PreProc">var</span> final-grapheme/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L140'>grapheme-before-cursor</a> cursor-word <span id="L335" class="LineNr"> 335 </span> compare final-grapheme, <span class="Constant">0x22</span>/double-quote <span id="L336" class="LineNr"> 336 </span> <span class="PreProc">break-if-=</span> <span id="L337" class="LineNr"> 337 </span> <span class="PreProc">break</span> $process-function-edit:space @@ -405,10 +404,10 @@ if ('onhashchange' in window) { <span id="L339" class="LineNr"> 339 </span> <span class="muComment"># if start of word is '[' and grapheme before cursor is not ']', just insert it as usual</span> <span id="L340" class="LineNr"> 340 </span> <span class="muComment"># TODO: support nested arrays</span> <span id="L341" class="LineNr"> 341 </span> <span class="Delimiter">{</span> -<span id="L342" class="LineNr"> 342 </span> <span class="PreProc">var</span> <a href='word.mu.html#L132'>first-grapheme</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L132'>first-grapheme</a> cursor-word +<span id="L342" class="LineNr"> 342 </span> <span class="PreProc">var</span> <a href='word.mu.html#L132'>first-grapheme</a>/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L132'>first-grapheme</a> cursor-word <span id="L343" class="LineNr"> 343 </span> compare <a href='word.mu.html#L132'>first-grapheme</a>, <span class="Constant">0x5b</span>/[ <span id="L344" class="LineNr"> 344 </span> <span class="PreProc">break-if-!=</span> -<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">var</span> final-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L140'>grapheme-before-cursor</a> cursor-word +<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">var</span> final-grapheme/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L140'>grapheme-before-cursor</a> cursor-word <span id="L346" class="LineNr"> 346 </span> compare final-grapheme, <span class="Constant">0x5d</span>/] <span id="L347" class="LineNr"> 347 </span> <span class="PreProc">break-if-=</span> <span id="L348" class="LineNr"> 348 </span> <span class="PreProc">break</span> $process-function-edit:space @@ -416,10 +415,10 @@ if ('onhashchange' in window) { <span id="L350" class="LineNr"> 350 </span> <span class="muComment"># otherwise insert word after and move cursor to it for the next key</span> <span id="L351" class="LineNr"> 351 </span> <span class="muComment"># (but we'll continue to track the current cursor-word for the rest of this function)</span> <span id="L352" class="LineNr"> 352 </span> <a href='word.mu.html#L356'>append-word</a> cursor-word-ah -<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next +<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> next-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next <span id="L354" class="LineNr"> 354 </span> copy-object next-word-ah, cursor-word-ah <span id="L355" class="LineNr"> 355 </span> <span class="muComment"># if cursor is at end of word, that's all</span> -<span id="L356" class="LineNr"> 356 </span> <span class="PreProc">var</span> at-end?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word +<span id="L356" class="LineNr"> 356 </span> <span class="PreProc">var</span> at-end?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word <span id="L357" class="LineNr"> 357 </span> compare at-end?, <span class="Constant">0</span>/false <span id="L358" class="LineNr"> 358 </span> <span class="Delimiter">{</span> <span id="L359" class="LineNr"> 359 </span> <span class="PreProc">break-if-=</span> @@ -427,14 +426,14 @@ if ('onhashchange' in window) { <span id="L361" class="LineNr"> 361 </span> <span class="Delimiter">}</span> <span id="L362" class="LineNr"> 362 </span> <span class="muComment"># otherwise we're in the middle of a word</span> <span id="L363" class="LineNr"> 363 </span> <span class="muComment"># move everything after cursor to the (just created) next word</span> -<span id="L364" class="LineNr"> 364 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next -<span id="L365" class="LineNr"> 365 </span> <span class="PreProc">var</span> _next-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah +<span id="L364" class="LineNr"> 364 </span> <span class="PreProc">var</span> next-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next +<span id="L365" class="LineNr"> 365 </span> <span class="PreProc">var</span> _next-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah <span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _next-word <span id="L367" class="LineNr"> 367 </span> <span class="Delimiter">{</span> -<span id="L368" class="LineNr"> 368 </span> <span class="PreProc">var</span> at-end?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word +<span id="L368" class="LineNr"> 368 </span> <span class="PreProc">var</span> at-end?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word <span id="L369" class="LineNr"> 369 </span> compare at-end?, <span class="Constant">0</span>/false <span id="L370" class="LineNr"> 370 </span> <span class="PreProc">break-if-!=</span> -<span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L214'>pop-after-cursor</a> cursor-word +<span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L214'>pop-after-cursor</a> cursor-word <span id="L372" class="LineNr"> 372 </span> <a href='word.mu.html#L148'>add-grapheme-to-word</a> <a href='../127next-word.subx.html#L11'>next-word</a>, g <span id="L373" class="LineNr"> 373 </span> <span class="PreProc">loop</span> <span id="L374" class="LineNr"> 374 </span> <span class="Delimiter">}</span> @@ -443,7 +442,7 @@ if ('onhashchange' in window) { <span id="L377" class="LineNr"> 377 </span> <span class="Delimiter">}</span> <span id="L378" class="LineNr"> 378 </span> <span class="muComment"># otherwise insert key within current word</span> <span id="L379" class="LineNr"> 379 </span> <span class="PreProc">var</span> g/<span class="muRegEdx">edx</span>: grapheme <span class="Special"><-</span> copy key -<span id="L380" class="LineNr"> 380 </span> <span class="PreProc">var</span> print?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key +<span id="L380" class="LineNr"> 380 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key <span id="L381" class="LineNr"> 381 </span> $process-function-edit:real-grapheme: <span class="Delimiter">{</span> <span id="L382" class="LineNr"> 382 </span> compare print?, <span class="Constant">0</span>/false <span id="L383" class="LineNr"> 383 </span> <span class="PreProc">break-if-=</span> @@ -457,7 +456,7 @@ if ('onhashchange' in window) { <span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _self <span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEdi">edi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox <span id="L393" class="LineNr"> 393 </span> <span class="PreProc">var</span> rename-word-mode-ah?/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-cursor-word -<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> rename-word-mode?/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *rename-word-mode-ah? +<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> rename-word-mode?/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *rename-word-mode-ah? <span id="L395" class="LineNr"> 395 </span> compare rename-word-mode?, <span class="Constant">0</span> <span id="L396" class="LineNr"> 396 </span> <span class="Delimiter">{</span> <span id="L397" class="LineNr"> 397 </span> <span class="PreProc">break-if-=</span> @@ -466,7 +465,7 @@ if ('onhashchange' in window) { <span id="L400" class="LineNr"> 400 </span> <span class="PreProc">return</span> <span id="L401" class="LineNr"> 401 </span> <span class="Delimiter">}</span> <span id="L402" class="LineNr"> 402 </span> <span class="PreProc">var</span> define-function-mode-ah?/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-function -<span id="L403" class="LineNr"> 403 </span> <span class="PreProc">var</span> define-function-mode?/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *define-function-mode-ah? +<span id="L403" class="LineNr"> 403 </span> <span class="PreProc">var</span> define-function-mode?/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *define-function-mode-ah? <span id="L404" class="LineNr"> 404 </span> compare define-function-mode?, <span class="Constant">0</span> <span id="L405" class="LineNr"> 405 </span> <span class="Delimiter">{</span> <span id="L406" class="LineNr"> 406 </span> <span class="PreProc">break-if-=</span> @@ -482,17 +481,17 @@ if ('onhashchange' in window) { <span id="L416" class="LineNr"> 416 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L416'>process-sandbox-edit</a></span> _self: (addr <a href='environment.mu.html#L16'>environment</a>), _sandbox: (addr <a href='data.mu.html#L5'>sandbox</a>), key: grapheme <span class="Delimiter">{</span> <span id="L417" class="LineNr"> 417 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _self <span id="L418" class="LineNr"> 418 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEdi">edi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox -<span id="L419" class="LineNr"> 419 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L420" class="LineNr"> 420 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L419" class="LineNr"> 419 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L420" class="LineNr"> 420 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah <span id="L421" class="LineNr"> 421 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> -<span id="L422" class="LineNr"> 422 </span> <span class="PreProc">var</span> _cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L422" class="LineNr"> 422 </span> <span class="PreProc">var</span> _cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L423" class="LineNr"> 423 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _cursor-word <span id="L424" class="LineNr"> 424 </span> compare key, <span class="Constant">0x445b1b</span>/left-arrow <span id="L425" class="LineNr"> 425 </span> $process-sandbox-edit:key-left-arrow: <span class="Delimiter">{</span> <span id="L426" class="LineNr"> 426 </span> <span class="PreProc">break-if-!=</span> <span id="L427" class="LineNr"> 427 </span><span class="CommentedCode">#? print-string 0, "left-arrow\n"</span> <span id="L428" class="LineNr"> 428 </span> <span class="muComment"># if not at start, move left within current word</span> -<span id="L429" class="LineNr"> 429 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word +<span id="L429" class="LineNr"> 429 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word <span id="L430" class="LineNr"> 430 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L431" class="LineNr"> 431 </span> <span class="Delimiter">{</span> <span id="L432" class="LineNr"> 432 </span> <span class="PreProc">break-if-!=</span> @@ -504,7 +503,7 @@ if ('onhashchange' in window) { <span id="L438" class="LineNr"> 438 </span> <span class="Delimiter">{</span> <span id="L439" class="LineNr"> 439 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L440" class="LineNr"> 440 </span> <span class="PreProc">var</span> expanded-words/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, expanded-words -<span id="L441" class="LineNr"> 441 </span> <span class="PreProc">var</span> curr-word-is-expanded?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='data.mu.html#L327'>find-in-call-paths</a> expanded-words, cursor-call-path +<span id="L441" class="LineNr"> 441 </span> <span class="PreProc">var</span> curr-word-is-expanded?/eax: boolean <span class="Special"><-</span> <a href='data.mu.html#L327'>find-in-call-paths</a> expanded-words, cursor-call-path <span id="L442" class="LineNr"> 442 </span> compare curr-word-is-expanded?, <span class="Constant">0</span>/false <span id="L443" class="LineNr"> 443 </span> <span class="PreProc">break-if-=</span> <span id="L444" class="LineNr"> 444 </span> <span class="muComment"># update cursor-call-path</span> @@ -512,49 +511,49 @@ if ('onhashchange' in window) { <span id="L446" class="LineNr"> 446 </span> <span class="PreProc">var</span> self/<span class="muRegEcx">ecx</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _self <span id="L447" class="LineNr"> 447 </span> <span class="PreProc">var</span> functions/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, functions <span id="L448" class="LineNr"> 448 </span> <span class="PreProc">var</span> body: (handle <a href='data.mu.html#L34'>line</a>) -<span id="L449" class="LineNr"> 449 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address body +<span id="L449" class="LineNr"> 449 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address body <span id="L450" class="LineNr"> 450 </span> <a href='data.mu.html#L232'>function-body</a> functions, cursor-word-ah, body-ah -<span id="L451" class="LineNr"> 451 </span> <span class="PreProc">var</span> body-addr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L451" class="LineNr"> 451 </span> <span class="PreProc">var</span> body-addr/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L452" class="LineNr"> 452 </span> <span class="PreProc">var</span> first-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body-addr, data <span id="L453" class="LineNr"> 453 </span> <span class="PreProc">var</span> final-word-h: (handle <a href='data.mu.html#L42'>word</a>) -<span id="L454" class="LineNr"> 454 </span> <span class="PreProc">var</span> final-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> address final-word-h +<span id="L454" class="LineNr"> 454 </span> <span class="PreProc">var</span> final-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> address final-word-h <span id="L455" class="LineNr"> 455 </span> <a href='word.mu.html#L114'>final-word</a> first-word-ah, final-word-ah <span id="L456" class="LineNr"> 456 </span> <a href='data.mu.html#L515'>push-to-call-path-element</a> cursor-call-path, final-word-ah <span id="L457" class="LineNr"> 457 </span> <span class="muComment"># move cursor to end of word</span> -<span id="L458" class="LineNr"> 458 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L459" class="LineNr"> 459 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L460" class="LineNr"> 460 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> -<span id="L461" class="LineNr"> 461 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L458" class="LineNr"> 458 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L459" class="LineNr"> 459 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L460" class="LineNr"> 460 </span> <span class="PreProc">var</span> cursor-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L461" class="LineNr"> 461 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L462" class="LineNr"> 462 </span> <a href='word.mu.html#L192'>cursor-to-end</a> cursor-word <span id="L463" class="LineNr"> 463 </span> <span class="PreProc">return</span> <span id="L464" class="LineNr"> 464 </span> <span class="Delimiter">}</span> <span id="L465" class="LineNr"> 465 </span> <span class="muComment"># if at first word, look for a caller to jump to</span> <span id="L466" class="LineNr"> 466 </span> $process-sandbox-edit:key-left-arrow-first-word: <span class="Delimiter">{</span> <span id="L467" class="LineNr"> 467 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev -<span id="L468" class="LineNr"> 468 </span> <span class="PreProc">var</span> prev-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah +<span id="L468" class="LineNr"> 468 </span> <span class="PreProc">var</span> prev-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah <span id="L469" class="LineNr"> 469 </span> compare prev-word, <span class="Constant">0</span> <span id="L470" class="LineNr"> 470 </span> <span class="PreProc">break-if-!=</span> <span id="L471" class="LineNr"> 471 </span> $process-sandbox-edit:key-left-arrow-first-word-and-caller: <span class="Delimiter">{</span> <span id="L472" class="LineNr"> 472 </span><span class="CommentedCode">#? print-string 0, "return\n"</span> <span id="L473" class="LineNr"> 473 </span> <span class="Delimiter">{</span> <span id="L474" class="LineNr"> 474 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L475" class="LineNr"> 475 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L475" class="LineNr"> 475 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah <span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> next-cursor-element-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, next -<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> next-cursor-element/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-cursor-element-ah +<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> next-cursor-element/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-cursor-element-ah <span id="L478" class="LineNr"> 478 </span> compare next-cursor-element, <span class="Constant">0</span> <span id="L479" class="LineNr"> 479 </span> <span class="PreProc">break-if-=</span> $process-sandbox-edit:key-left-arrow-first-word-and-caller <span id="L480" class="LineNr"> 480 </span> copy-object next-cursor-element-ah, cursor-call-path-ah <span id="L481" class="LineNr"> 481 </span> <span class="Delimiter">}</span> -<span id="L482" class="LineNr"> 482 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L483" class="LineNr"> 483 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L484" class="LineNr"> 484 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> -<span id="L485" class="LineNr"> 485 </span> <span class="PreProc">var</span> _cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L482" class="LineNr"> 482 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L483" class="LineNr"> 483 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L484" class="LineNr"> 484 </span> <span class="PreProc">var</span> cursor-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L485" class="LineNr"> 485 </span> <span class="PreProc">var</span> _cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L486" class="LineNr"> 486 </span> cursor-word <span class="Special"><-</span> copy _cursor-word <span id="L487" class="LineNr"> 487 </span> <span class="Delimiter">}</span> <span id="L488" class="LineNr"> 488 </span> <span class="Delimiter">}</span> <span id="L489" class="LineNr"> 489 </span> <span class="muComment"># then move to end of previous word</span> <span id="L490" class="LineNr"> 490 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev -<span id="L491" class="LineNr"> 491 </span> <span class="PreProc">var</span> prev-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah +<span id="L491" class="LineNr"> 491 </span> <span class="PreProc">var</span> prev-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah <span id="L492" class="LineNr"> 492 </span> <span class="Delimiter">{</span> <span id="L493" class="LineNr"> 493 </span> compare prev-word, <span class="Constant">0</span> <span id="L494" class="LineNr"> 494 </span> <span class="PreProc">break-if-=</span> @@ -570,7 +569,7 @@ if ('onhashchange' in window) { <span id="L504" class="LineNr"> 504 </span><span class="CommentedCode">#? print-word 0, cursor-word</span> <span id="L505" class="LineNr"> 505 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L506" class="LineNr"> 506 </span><span class="CommentedCode">#? }</span> -<span id="L507" class="LineNr"> 507 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L507" class="LineNr"> 507 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L508" class="LineNr"> 508 </span> <a href='data.mu.html#L465'>decrement-final-element</a> cursor-call-path <span id="L509" class="LineNr"> 509 </span><span class="CommentedCode">#? {</span> <span id="L510" class="LineNr"> 510 </span><span class="CommentedCode">#? var cursor-call-path-ah/eax: (addr handle call-path-element) <- get sandbox, cursor-call-path</span> @@ -589,7 +588,7 @@ if ('onhashchange' in window) { <span id="L523" class="LineNr"> 523 </span> $process-sandbox-edit:key-right-arrow: <span class="Delimiter">{</span> <span id="L524" class="LineNr"> 524 </span> <span class="PreProc">break-if-!=</span> <span id="L525" class="LineNr"> 525 </span> <span class="muComment"># if not at end, move right within current word</span> -<span id="L526" class="LineNr"> 526 </span> <span class="PreProc">var</span> at-end?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word +<span id="L526" class="LineNr"> 526 </span> <span class="PreProc">var</span> at-end?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word <span id="L527" class="LineNr"> 527 </span> compare at-end?, <span class="Constant">0</span>/false <span id="L528" class="LineNr"> 528 </span> <span class="Delimiter">{</span> <span id="L529" class="LineNr"> 529 </span> <span class="PreProc">break-if-!=</span> @@ -600,13 +599,13 @@ if ('onhashchange' in window) { <span id="L534" class="LineNr"> 534 </span> <span class="muComment"># if at final word, look for a caller to jump to</span> <span id="L535" class="LineNr"> 535 </span> <span class="Delimiter">{</span> <span id="L536" class="LineNr"> 536 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next -<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah +<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah <span id="L538" class="LineNr"> 538 </span> compare <a href='../127next-word.subx.html#L11'>next-word</a>, <span class="Constant">0</span> <span id="L539" class="LineNr"> 539 </span> <span class="PreProc">break-if-!=</span> <span id="L540" class="LineNr"> 540 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L541" class="LineNr"> 541 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L541" class="LineNr"> 541 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah <span id="L542" class="LineNr"> 542 </span> <span class="PreProc">var</span> next-cursor-element-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, next -<span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> next-cursor-element/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-cursor-element-ah +<span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> next-cursor-element/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-cursor-element-ah <span id="L544" class="LineNr"> 544 </span> compare next-cursor-element, <span class="Constant">0</span> <span id="L545" class="LineNr"> 545 </span> <span class="PreProc">break-if-=</span> <span id="L546" class="LineNr"> 546 </span> copy-object next-cursor-element-ah, cursor-call-path-ah @@ -614,7 +613,7 @@ if ('onhashchange' in window) { <span id="L548" class="LineNr"> 548 </span> <span class="Delimiter">}</span> <span id="L549" class="LineNr"> 549 </span> <span class="muComment"># otherwise, move to the next word</span> <span id="L550" class="LineNr"> 550 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next -<span id="L551" class="LineNr"> 551 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah +<span id="L551" class="LineNr"> 551 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah <span id="L552" class="LineNr"> 552 </span> <span class="Delimiter">{</span> <span id="L553" class="LineNr"> 553 </span> compare <a href='../127next-word.subx.html#L11'>next-word</a>, <span class="Constant">0</span> <span id="L554" class="LineNr"> 554 </span> <span class="PreProc">break-if-=</span> @@ -628,8 +627,8 @@ if ('onhashchange' in window) { <span id="L562" class="LineNr"> 562 </span> $process-sandbox-edit:key-right-arrow-next-word-is-call-expanded: <span class="Delimiter">{</span> <span id="L563" class="LineNr"> 563 </span><span class="CommentedCode">#? print-string 0, "c\n"</span> <span id="L564" class="LineNr"> 564 </span> <span class="Delimiter">{</span> -<span id="L565" class="LineNr"> 565 </span> <span class="PreProc">var</span> expanded-words/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, expanded-words -<span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> curr-word-is-expanded?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='data.mu.html#L327'>find-in-call-paths</a> expanded-words, cursor-call-path +<span id="L565" class="LineNr"> 565 </span> <span class="PreProc">var</span> expanded-words/eax: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, expanded-words +<span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> curr-word-is-expanded?/eax: boolean <span class="Special"><-</span> <a href='data.mu.html#L327'>find-in-call-paths</a> expanded-words, cursor-call-path <span id="L567" class="LineNr"> 567 </span> compare curr-word-is-expanded?, <span class="Constant">0</span>/false <span id="L568" class="LineNr"> 568 </span> <span class="PreProc">break-if-=</span> $process-sandbox-edit:key-right-arrow-next-word-is-call-expanded <span id="L569" class="LineNr"> 569 </span> <span class="Delimiter">}</span> @@ -637,16 +636,16 @@ if ('onhashchange' in window) { <span id="L571" class="LineNr"> 571 </span> <span class="PreProc">var</span> callee-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> address callee-h <span id="L572" class="LineNr"> 572 </span> <span class="PreProc">var</span> functions/<span class="muRegEbx">ebx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, functions <span id="L573" class="LineNr"> 573 </span> <a href='environment.mu.html#L1846'>callee</a> functions, <a href='../127next-word.subx.html#L11'>next-word</a>, callee-ah -<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1846'>callee</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-ah -<span id="L575" class="LineNr"> 575 </span> <span class="PreProc">var</span> callee-body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1846'>callee</a>, body -<span id="L576" class="LineNr"> 576 </span> <span class="PreProc">var</span> callee-body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-body-ah +<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1846'>callee</a>/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-ah +<span id="L575" class="LineNr"> 575 </span> <span class="PreProc">var</span> callee-body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1846'>callee</a>, body +<span id="L576" class="LineNr"> 576 </span> <span class="PreProc">var</span> callee-body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-body-ah <span id="L577" class="LineNr"> 577 </span> <span class="PreProc">var</span> callee-body-first-word/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> callee-body, data <span id="L578" class="LineNr"> 578 </span> <a href='data.mu.html#L515'>push-to-call-path-element</a> cursor-call-path, callee-body-first-word <span id="L579" class="LineNr"> 579 </span> <span class="muComment"># position cursor at left</span> -<span id="L580" class="LineNr"> 580 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L581" class="LineNr"> 581 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> -<span id="L583" class="LineNr"> 583 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L580" class="LineNr"> 580 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L581" class="LineNr"> 581 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> cursor-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L583" class="LineNr"> 583 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L584" class="LineNr"> 584 </span> <a href='word.mu.html#L185'>cursor-to-start</a> cursor-word <span id="L585" class="LineNr"> 585 </span><span class="CommentedCode">#? print-string 0, "d\n"</span> <span id="L586" class="LineNr"> 586 </span> <span class="PreProc">return</span> @@ -674,28 +673,28 @@ if ('onhashchange' in window) { <span id="L608" class="LineNr"> 608 </span> <span class="PreProc">break-if-!=</span> <span id="L609" class="LineNr"> 609 </span> <span class="muComment"># jump to previous word at same level</span> <span id="L610" class="LineNr"> 610 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev -<span id="L611" class="LineNr"> 611 </span> <span class="PreProc">var</span> prev-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah +<span id="L611" class="LineNr"> 611 </span> <span class="PreProc">var</span> prev-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah <span id="L612" class="LineNr"> 612 </span> <span class="Delimiter">{</span> <span id="L613" class="LineNr"> 613 </span> compare prev-word, <span class="Constant">0</span> <span id="L614" class="LineNr"> 614 </span> <span class="PreProc">break-if-=</span> <span id="L615" class="LineNr"> 615 </span> <a href='word.mu.html#L192'>cursor-to-end</a> prev-word -<span id="L616" class="LineNr"> 616 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L616" class="LineNr"> 616 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L617" class="LineNr"> 617 </span> <a href='data.mu.html#L465'>decrement-final-element</a> cursor-call-path <span id="L618" class="LineNr"> 618 </span> <span class="PreProc">return</span> <span id="L619" class="LineNr"> 619 </span> <span class="Delimiter">}</span> <span id="L620" class="LineNr"> 620 </span> <span class="muComment"># if previous word doesn't exist, try to bump up one level</span> <span id="L621" class="LineNr"> 621 </span> <span class="Delimiter">{</span> <span id="L622" class="LineNr"> 622 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah <span id="L624" class="LineNr"> 624 </span> <span class="PreProc">var</span> caller-cursor-element-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, next -<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> caller-cursor-element/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *caller-cursor-element-ah +<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> caller-cursor-element/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *caller-cursor-element-ah <span id="L626" class="LineNr"> 626 </span> compare caller-cursor-element, <span class="Constant">0</span> <span id="L627" class="LineNr"> 627 </span> <span class="PreProc">break-if-=</span> <span id="L628" class="LineNr"> 628 </span> <span class="muComment"># check if previous word exists in caller</span> -<span id="L629" class="LineNr"> 629 </span> <span class="PreProc">var</span> caller-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> caller-cursor-element, <a href='data.mu.html#L42'>word</a> -<span id="L630" class="LineNr"> 630 </span> <span class="PreProc">var</span> caller-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *caller-word-ah -<span id="L631" class="LineNr"> 631 </span> <span class="PreProc">var</span> word-before-caller-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> caller-word, prev -<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> word-before-caller/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-before-caller-ah +<span id="L629" class="LineNr"> 629 </span> <span class="PreProc">var</span> caller-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> caller-cursor-element, <a href='data.mu.html#L42'>word</a> +<span id="L630" class="LineNr"> 630 </span> <span class="PreProc">var</span> caller-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *caller-word-ah +<span id="L631" class="LineNr"> 631 </span> <span class="PreProc">var</span> word-before-caller-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> caller-word, prev +<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> word-before-caller/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-before-caller-ah <span id="L633" class="LineNr"> 633 </span> compare word-before-caller, <span class="Constant">0</span> <span id="L634" class="LineNr"> 634 </span> <span class="PreProc">break-if-=</span> <span id="L635" class="LineNr"> 635 </span> <span class="muComment"># if so jump to it</span> @@ -710,22 +709,22 @@ if ('onhashchange' in window) { <span id="L644" class="LineNr"> 644 </span><span class="CommentedCode">#? print-string 0, "AA\n"</span> <span id="L645" class="LineNr"> 645 </span> <span class="muComment"># jump to previous word at same level</span> <span id="L646" class="LineNr"> 646 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next -<span id="L647" class="LineNr"> 647 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah +<span id="L647" class="LineNr"> 647 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah <span id="L648" class="LineNr"> 648 </span> <span class="Delimiter">{</span> <span id="L649" class="LineNr"> 649 </span> compare <a href='../127next-word.subx.html#L11'>next-word</a>, <span class="Constant">0</span> <span id="L650" class="LineNr"> 650 </span> <span class="PreProc">break-if-=</span> <span id="L651" class="LineNr"> 651 </span><span class="CommentedCode">#? print-string 0, "BB\n"</span> <span id="L652" class="LineNr"> 652 </span> <a href='word.mu.html#L192'>cursor-to-end</a> <a href='../127next-word.subx.html#L11'>next-word</a> -<span id="L653" class="LineNr"> 653 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L653" class="LineNr"> 653 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L654" class="LineNr"> 654 </span> <a href='data.mu.html#L453'>increment-final-element</a> cursor-call-path <span id="L655" class="LineNr"> 655 </span> <span class="PreProc">return</span> <span id="L656" class="LineNr"> 656 </span> <span class="Delimiter">}</span> <span id="L657" class="LineNr"> 657 </span> <span class="muComment"># if next word doesn't exist, try to bump up one level</span> <span id="L658" class="LineNr"> 658 </span><span class="CommentedCode">#? print-string 0, "CC\n"</span> <span id="L659" class="LineNr"> 659 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L660" class="LineNr"> 660 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L660" class="LineNr"> 660 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah <span id="L661" class="LineNr"> 661 </span> <span class="PreProc">var</span> caller-cursor-element-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, next -<span id="L662" class="LineNr"> 662 </span> <span class="PreProc">var</span> caller-cursor-element/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *caller-cursor-element-ah +<span id="L662" class="LineNr"> 662 </span> <span class="PreProc">var</span> caller-cursor-element/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *caller-cursor-element-ah <span id="L663" class="LineNr"> 663 </span> compare caller-cursor-element, <span class="Constant">0</span> <span id="L664" class="LineNr"> 664 </span> <span class="PreProc">break-if-=</span> <span id="L665" class="LineNr"> 665 </span><span class="CommentedCode">#? print-string 0, "DD\n"</span> @@ -736,9 +735,9 @@ if ('onhashchange' in window) { <span id="L670" class="LineNr"> 670 </span> $process-sandbox-edit:goto-function: <span class="Delimiter">{</span> <span id="L671" class="LineNr"> 671 </span> <span class="PreProc">break-if-!=</span> <span id="L672" class="LineNr"> 672 </span> <span class="muComment"># initialize dialog to name function to jump to</span> -<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> partial-function-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, partial-function-name +<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> partial-function-name-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, partial-function-name <span id="L674" class="LineNr"> 674 </span> <a href='../120allocate.subx.html#L66'>allocate</a> partial-function-name-ah -<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">var</span> partial-function-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *partial-function-name-ah +<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">var</span> partial-function-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *partial-function-name-ah <span id="L676" class="LineNr"> 676 </span> <a href='word.mu.html#L1'>initialize-word</a> partial-function-name <span id="L677" class="LineNr"> 677 </span> <span class="PreProc">return</span> <span id="L678" class="LineNr"> 678 </span> <span class="Delimiter">}</span> @@ -747,13 +746,13 @@ if ('onhashchange' in window) { <span id="L681" class="LineNr"> 681 </span> $process-sandbox-edit:start-of-line: <span class="Delimiter">{</span> <span id="L682" class="LineNr"> 682 </span> <span class="PreProc">break-if-!=</span> <span id="L683" class="LineNr"> 683 </span> <span class="muComment"># move cursor up past all calls and to start of line</span> -<span id="L684" class="LineNr"> 684 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L684" class="LineNr"> 684 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L685" class="LineNr"> 685 </span> <a href='data.mu.html#L537'>drop-nested-calls</a> cursor-call-path-ah <span id="L686" class="LineNr"> 686 </span> <a href='data.mu.html#L489'>move-final-element-to-start-of-line</a> cursor-call-path-ah <span id="L687" class="LineNr"> 687 </span> <span class="muComment"># move cursor to start of word</span> -<span id="L688" class="LineNr"> 688 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> -<span id="L690" class="LineNr"> 690 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L688" class="LineNr"> 688 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> cursor-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L690" class="LineNr"> 690 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L691" class="LineNr"> 691 </span> <a href='word.mu.html#L185'>cursor-to-start</a> cursor-word <span id="L692" class="LineNr"> 692 </span> <span class="muComment"># this works as long as the first word isn't expanded</span> <span id="L693" class="LineNr"> 693 </span> <span class="muComment"># but we don't expect to see zero-arg functions first-up</span> @@ -763,13 +762,13 @@ if ('onhashchange' in window) { <span id="L697" class="LineNr"> 697 </span> $process-sandbox-edit:end-of-line: <span class="Delimiter">{</span> <span id="L698" class="LineNr"> 698 </span> <span class="PreProc">break-if-!=</span> <span id="L699" class="LineNr"> 699 </span> <span class="muComment"># move cursor up past all calls and to start of line</span> -<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L701" class="LineNr"> 701 </span> <a href='data.mu.html#L537'>drop-nested-calls</a> cursor-call-path-ah <span id="L702" class="LineNr"> 702 </span> <a href='data.mu.html#L502'>move-final-element-to-end-of-line</a> cursor-call-path-ah <span id="L703" class="LineNr"> 703 </span> <span class="muComment"># move cursor to end of word</span> -<span id="L704" class="LineNr"> 704 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L705" class="LineNr"> 705 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> -<span id="L706" class="LineNr"> 706 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L704" class="LineNr"> 704 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L705" class="LineNr"> 705 </span> <span class="PreProc">var</span> cursor-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L706" class="LineNr"> 706 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L707" class="LineNr"> 707 </span> <a href='word.mu.html#L192'>cursor-to-end</a> cursor-word <span id="L708" class="LineNr"> 708 </span> <span class="muComment"># this works because expanded words lie to the right of their bodies</span> <span id="L709" class="LineNr"> 709 </span> <span class="muComment"># so the final word is always guaranteed to be at the top-level</span> @@ -783,10 +782,10 @@ if ('onhashchange' in window) { <span id="L717" class="LineNr"> 717 </span> <span class="PreProc">return</span> <span id="L718" class="LineNr"> 718 </span> <span class="Delimiter">}</span> <span id="L719" class="LineNr"> 719 </span> <span class="muComment"># if cursor is within a call, disable editing hotkeys below</span> -<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L721" class="LineNr"> 721 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L722" class="LineNr"> 722 </span> <span class="PreProc">var</span> next-cursor-element-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, next -<span id="L723" class="LineNr"> 723 </span> <span class="PreProc">var</span> next-cursor-element/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-cursor-element-ah +<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L721" class="LineNr"> 721 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L722" class="LineNr"> 722 </span> <span class="PreProc">var</span> next-cursor-element-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, next +<span id="L723" class="LineNr"> 723 </span> <span class="PreProc">var</span> next-cursor-element/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-cursor-element-ah <span id="L724" class="LineNr"> 724 </span> compare next-cursor-element, <span class="Constant">0</span> <span id="L725" class="LineNr"> 725 </span> <span class="Delimiter">{</span> <span id="L726" class="LineNr"> 726 </span> <span class="PreProc">break-if-=</span> @@ -797,7 +796,7 @@ if ('onhashchange' in window) { <span id="L731" class="LineNr"> 731 </span> $process-sandbox-edit:backspace: <span class="Delimiter">{</span> <span id="L732" class="LineNr"> 732 </span> <span class="PreProc">break-if-!=</span> <span id="L733" class="LineNr"> 733 </span> <span class="muComment"># if not at start of some word, delete grapheme before cursor within current word</span> -<span id="L734" class="LineNr"> 734 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word +<span id="L734" class="LineNr"> 734 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word <span id="L735" class="LineNr"> 735 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L736" class="LineNr"> 736 </span> <span class="Delimiter">{</span> <span id="L737" class="LineNr"> 737 </span> <span class="PreProc">break-if-!=</span> @@ -805,14 +804,14 @@ if ('onhashchange' in window) { <span id="L739" class="LineNr"> 739 </span> <span class="PreProc">return</span> <span id="L740" class="LineNr"> 740 </span> <span class="Delimiter">}</span> <span id="L741" class="LineNr"> 741 </span> <span class="muComment"># otherwise delete current word and move to end of prev word</span> -<span id="L742" class="LineNr"> 742 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev -<span id="L743" class="LineNr"> 743 </span> <span class="PreProc">var</span> prev-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah +<span id="L742" class="LineNr"> 742 </span> <span class="PreProc">var</span> prev-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev +<span id="L743" class="LineNr"> 743 </span> <span class="PreProc">var</span> prev-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah <span id="L744" class="LineNr"> 744 </span> <span class="Delimiter">{</span> <span id="L745" class="LineNr"> 745 </span> compare prev-word, <span class="Constant">0</span> <span id="L746" class="LineNr"> 746 </span> <span class="PreProc">break-if-=</span> <span id="L747" class="LineNr"> 747 </span> <a href='word.mu.html#L192'>cursor-to-end</a> prev-word <span id="L748" class="LineNr"> 748 </span> <a href='word.mu.html#L222'>delete-next</a> prev-word -<span id="L749" class="LineNr"> 749 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L749" class="LineNr"> 749 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L750" class="LineNr"> 750 </span> <a href='data.mu.html#L465'>decrement-final-element</a> cursor-call-path <span id="L751" class="LineNr"> 751 </span> <span class="Delimiter">}</span> <span id="L752" class="LineNr"> 752 </span> <span class="PreProc">return</span> @@ -823,22 +822,22 @@ if ('onhashchange' in window) { <span id="L757" class="LineNr"> 757 </span><span class="CommentedCode">#? print-string 0, "space\n"</span> <span id="L758" class="LineNr"> 758 </span> <span class="muComment"># if cursor is at start of word, insert word before</span> <span id="L759" class="LineNr"> 759 </span> <span class="Delimiter">{</span> -<span id="L760" class="LineNr"> 760 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word +<span id="L760" class="LineNr"> 760 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> cursor-word <span id="L761" class="LineNr"> 761 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L762" class="LineNr"> 762 </span> <span class="PreProc">break-if-=</span> -<span id="L763" class="LineNr"> 763 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev +<span id="L763" class="LineNr"> 763 </span> <span class="PreProc">var</span> prev-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, prev <span id="L764" class="LineNr"> 764 </span> <a href='word.mu.html#L356'>append-word</a> prev-word-ah -<span id="L765" class="LineNr"> 765 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L765" class="LineNr"> 765 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L766" class="LineNr"> 766 </span> <a href='data.mu.html#L465'>decrement-final-element</a> cursor-call-path <span id="L767" class="LineNr"> 767 </span> <span class="PreProc">return</span> <span id="L768" class="LineNr"> 768 </span> <span class="Delimiter">}</span> <span id="L769" class="LineNr"> 769 </span> <span class="muComment"># if start of word is quote and grapheme before cursor is not, just insert it as usual</span> <span id="L770" class="LineNr"> 770 </span> <span class="muComment"># TODO: support string escaping</span> <span id="L771" class="LineNr"> 771 </span> <span class="Delimiter">{</span> -<span id="L772" class="LineNr"> 772 </span> <span class="PreProc">var</span> <a href='word.mu.html#L132'>first-grapheme</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L132'>first-grapheme</a> cursor-word +<span id="L772" class="LineNr"> 772 </span> <span class="PreProc">var</span> <a href='word.mu.html#L132'>first-grapheme</a>/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L132'>first-grapheme</a> cursor-word <span id="L773" class="LineNr"> 773 </span> compare <a href='word.mu.html#L132'>first-grapheme</a>, <span class="Constant">0x22</span>/double-quote <span id="L774" class="LineNr"> 774 </span> <span class="PreProc">break-if-!=</span> -<span id="L775" class="LineNr"> 775 </span> <span class="PreProc">var</span> final-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L140'>grapheme-before-cursor</a> cursor-word +<span id="L775" class="LineNr"> 775 </span> <span class="PreProc">var</span> final-grapheme/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L140'>grapheme-before-cursor</a> cursor-word <span id="L776" class="LineNr"> 776 </span> compare final-grapheme, <span class="Constant">0x22</span>/double-quote <span id="L777" class="LineNr"> 777 </span> <span class="PreProc">break-if-=</span> <span id="L778" class="LineNr"> 778 </span> <span class="PreProc">break</span> $process-sandbox-edit:space @@ -846,10 +845,10 @@ if ('onhashchange' in window) { <span id="L780" class="LineNr"> 780 </span> <span class="muComment"># if start of word is '[' and grapheme before cursor is not ']', just insert it as usual</span> <span id="L781" class="LineNr"> 781 </span> <span class="muComment"># TODO: support nested arrays</span> <span id="L782" class="LineNr"> 782 </span> <span class="Delimiter">{</span> -<span id="L783" class="LineNr"> 783 </span> <span class="PreProc">var</span> <a href='word.mu.html#L132'>first-grapheme</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L132'>first-grapheme</a> cursor-word +<span id="L783" class="LineNr"> 783 </span> <span class="PreProc">var</span> <a href='word.mu.html#L132'>first-grapheme</a>/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L132'>first-grapheme</a> cursor-word <span id="L784" class="LineNr"> 784 </span> compare <a href='word.mu.html#L132'>first-grapheme</a>, <span class="Constant">0x5b</span>/[ <span id="L785" class="LineNr"> 785 </span> <span class="PreProc">break-if-!=</span> -<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> final-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L140'>grapheme-before-cursor</a> cursor-word +<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> final-grapheme/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L140'>grapheme-before-cursor</a> cursor-word <span id="L787" class="LineNr"> 787 </span> compare final-grapheme, <span class="Constant">0x5d</span>/] <span id="L788" class="LineNr"> 788 </span> <span class="PreProc">break-if-=</span> <span id="L789" class="LineNr"> 789 </span> <span class="PreProc">break</span> $process-sandbox-edit:space @@ -857,10 +856,10 @@ if ('onhashchange' in window) { <span id="L791" class="LineNr"> 791 </span> <span class="muComment"># otherwise insert word after and move cursor to it for the next key</span> <span id="L792" class="LineNr"> 792 </span> <span class="muComment"># (but we'll continue to track the current cursor-word for the rest of this function)</span> <span id="L793" class="LineNr"> 793 </span> <a href='word.mu.html#L356'>append-word</a> cursor-word-ah -<span id="L794" class="LineNr"> 794 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L794" class="LineNr"> 794 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L795" class="LineNr"> 795 </span> <a href='data.mu.html#L453'>increment-final-element</a> cursor-call-path <span id="L796" class="LineNr"> 796 </span> <span class="muComment"># if cursor is at end of word, that's all</span> -<span id="L797" class="LineNr"> 797 </span> <span class="PreProc">var</span> at-end?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word +<span id="L797" class="LineNr"> 797 </span> <span class="PreProc">var</span> at-end?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word <span id="L798" class="LineNr"> 798 </span> compare at-end?, <span class="Constant">0</span>/false <span id="L799" class="LineNr"> 799 </span> <span class="Delimiter">{</span> <span id="L800" class="LineNr"> 800 </span> <span class="PreProc">break-if-=</span> @@ -868,14 +867,14 @@ if ('onhashchange' in window) { <span id="L802" class="LineNr"> 802 </span> <span class="Delimiter">}</span> <span id="L803" class="LineNr"> 803 </span> <span class="muComment"># otherwise we're in the middle of a word</span> <span id="L804" class="LineNr"> 804 </span> <span class="muComment"># move everything after cursor to the (just created) next word</span> -<span id="L805" class="LineNr"> 805 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next -<span id="L806" class="LineNr"> 806 </span> <span class="PreProc">var</span> _next-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah +<span id="L805" class="LineNr"> 805 </span> <span class="PreProc">var</span> next-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next +<span id="L806" class="LineNr"> 806 </span> <span class="PreProc">var</span> _next-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah <span id="L807" class="LineNr"> 807 </span> <span class="PreProc">var</span> <a href='../127next-word.subx.html#L11'>next-word</a>/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _next-word <span id="L808" class="LineNr"> 808 </span> <span class="Delimiter">{</span> -<span id="L809" class="LineNr"> 809 </span> <span class="PreProc">var</span> at-end?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word +<span id="L809" class="LineNr"> 809 </span> <span class="PreProc">var</span> at-end?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L163'>cursor-at-end?</a> cursor-word <span id="L810" class="LineNr"> 810 </span> compare at-end?, <span class="Constant">0</span>/false <span id="L811" class="LineNr"> 811 </span> <span class="PreProc">break-if-!=</span> -<span id="L812" class="LineNr"> 812 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='word.mu.html#L214'>pop-after-cursor</a> cursor-word +<span id="L812" class="LineNr"> 812 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='word.mu.html#L214'>pop-after-cursor</a> cursor-word <span id="L813" class="LineNr"> 813 </span> <a href='word.mu.html#L148'>add-grapheme-to-word</a> <a href='../127next-word.subx.html#L11'>next-word</a>, g <span id="L814" class="LineNr"> 814 </span> <span class="PreProc">loop</span> <span id="L815" class="LineNr"> 815 </span> <span class="Delimiter">}</span> @@ -887,9 +886,9 @@ if ('onhashchange' in window) { <span id="L821" class="LineNr"> 821 </span> <span class="PreProc">break-if-!=</span> <span id="L822" class="LineNr"> 822 </span> <span class="muComment"># TODO: ensure current word is not a function</span> <span id="L823" class="LineNr"> 823 </span> <span class="muComment"># rename word at cursor</span> -<span id="L824" class="LineNr"> 824 </span> <span class="PreProc">var</span> new-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-cursor-word +<span id="L824" class="LineNr"> 824 </span> <span class="PreProc">var</span> new-name-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-cursor-word <span id="L825" class="LineNr"> 825 </span> <a href='../120allocate.subx.html#L66'>allocate</a> new-name-ah -<span id="L826" class="LineNr"> 826 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L826" class="LineNr"> 826 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah <span id="L827" class="LineNr"> 827 </span> <a href='word.mu.html#L1'>initialize-word</a> new-name <span id="L828" class="LineNr"> 828 </span> <span class="PreProc">return</span> <span id="L829" class="LineNr"> 829 </span> <span class="Delimiter">}</span> @@ -897,15 +896,15 @@ if ('onhashchange' in window) { <span id="L831" class="LineNr"> 831 </span> $process:define-function: <span class="Delimiter">{</span> <span id="L832" class="LineNr"> 832 </span> <span class="PreProc">break-if-!=</span> <span id="L833" class="LineNr"> 833 </span> <span class="muComment"># define function out of line at cursor</span> -<span id="L834" class="LineNr"> 834 </span> <span class="PreProc">var</span> new-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-function +<span id="L834" class="LineNr"> 834 </span> <span class="PreProc">var</span> new-name-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-function <span id="L835" class="LineNr"> 835 </span> <a href='../120allocate.subx.html#L66'>allocate</a> new-name-ah -<span id="L836" class="LineNr"> 836 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L836" class="LineNr"> 836 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah <span id="L837" class="LineNr"> 837 </span> <a href='word.mu.html#L1'>initialize-word</a> new-name <span id="L838" class="LineNr"> 838 </span> <span class="PreProc">return</span> <span id="L839" class="LineNr"> 839 </span> <span class="Delimiter">}</span> <span id="L840" class="LineNr"> 840 </span> <span class="muComment"># otherwise insert key within current word</span> <span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> g/<span class="muRegEdx">edx</span>: grapheme <span class="Special"><-</span> copy key -<span id="L842" class="LineNr"> 842 </span> <span class="PreProc">var</span> print?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key +<span id="L842" class="LineNr"> 842 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key <span id="L843" class="LineNr"> 843 </span> $process-sandbox-edit:real-grapheme: <span class="Delimiter">{</span> <span id="L844" class="LineNr"> 844 </span> compare print?, <span class="Constant">0</span>/false <span id="L845" class="LineNr"> 845 </span> <span class="PreProc">break-if-=</span> @@ -935,16 +934,16 @@ if ('onhashchange' in window) { <span id="L869" class="LineNr"> 869 </span><span class="CommentedCode">#? print-string 0, "rename\n"</span> <span id="L870" class="LineNr"> 870 </span> <span class="muComment"># new line</span> <span id="L871" class="LineNr"> 871 </span> <span class="PreProc">var</span> new-line-h: (handle <a href='data.mu.html#L34'>line</a>) -<span id="L872" class="LineNr"> 872 </span> <span class="PreProc">var</span> new-line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address new-line-h +<span id="L872" class="LineNr"> 872 </span> <span class="PreProc">var</span> new-line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address new-line-h <span id="L873" class="LineNr"> 873 </span> <a href='../120allocate.subx.html#L66'>allocate</a> new-line-ah -<span id="L874" class="LineNr"> 874 </span> <span class="PreProc">var</span> new-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-line-ah +<span id="L874" class="LineNr"> 874 </span> <span class="PreProc">var</span> new-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-line-ah <span id="L875" class="LineNr"> 875 </span> <a href='data.mu.html#L102'>initialize-line</a> new-line <span id="L876" class="LineNr"> 876 </span> <span class="PreProc">var</span> new-line-word-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-line, data <span id="L877" class="LineNr"> 877 </span> <span class="Delimiter">{</span> <span id="L878" class="LineNr"> 878 </span> <span class="muComment"># move word at cursor to new line</span> -<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L880" class="LineNr"> 880 </span> <span class="PreProc">var</span> cursor/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-ah -<span id="L881" class="LineNr"> 881 </span> <span class="PreProc">var</span> word-at-cursor-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor, <a href='data.mu.html#L42'>word</a> +<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">var</span> cursor-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L880" class="LineNr"> 880 </span> <span class="PreProc">var</span> cursor/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-ah +<span id="L881" class="LineNr"> 881 </span> <span class="PreProc">var</span> word-at-cursor-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor, <a href='data.mu.html#L42'>word</a> <span id="L882" class="LineNr"> 882 </span><span class="CommentedCode">#? print-string 0, "cursor before at word "</span> <span id="L883" class="LineNr"> 883 </span><span class="CommentedCode">#? {</span> <span id="L884" class="LineNr"> 884 </span><span class="CommentedCode">#? var cursor-word/eax: (addr word) <- lookup *word-at-cursor-ah</span> @@ -975,7 +974,7 @@ if ('onhashchange' in window) { <span id="L909" class="LineNr"> 909 </span> <span class="Delimiter">}</span> <span id="L910" class="LineNr"> 910 </span> <span class="muComment"># prepend '=' to name</span> <span id="L911" class="LineNr"> 911 </span> <span class="Delimiter">{</span> -<span id="L912" class="LineNr"> 912 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L912" class="LineNr"> 912 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah <span id="L913" class="LineNr"> 913 </span> <a href='word.mu.html#L185'>cursor-to-start</a> new-name <span id="L914" class="LineNr"> 914 </span> <a href='word.mu.html#L148'>add-grapheme-to-word</a> new-name, <span class="Constant">0x3d</span>/= <span id="L915" class="LineNr"> 915 </span> <span class="Delimiter">}</span> @@ -1008,22 +1007,22 @@ if ('onhashchange' in window) { <span id="L942" class="LineNr"> 942 </span> $process-sandbox-rename:backspace: <span class="Delimiter">{</span> <span id="L943" class="LineNr"> 943 </span> <span class="PreProc">break-if-!=</span> <span id="L944" class="LineNr"> 944 </span> <span class="muComment"># if not at start, delete grapheme before cursor</span> -<span id="L945" class="LineNr"> 945 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah -<span id="L946" class="LineNr"> 946 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> new-name +<span id="L945" class="LineNr"> 945 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L946" class="LineNr"> 946 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> new-name <span id="L947" class="LineNr"> 947 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L948" class="LineNr"> 948 </span> <span class="Delimiter">{</span> <span id="L949" class="LineNr"> 949 </span> <span class="PreProc">break-if-!=</span> -<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah <span id="L951" class="LineNr"> 951 </span> <a href='word.mu.html#L207'>delete-before-cursor</a> new-name <span id="L952" class="LineNr"> 952 </span> <span class="Delimiter">}</span> <span id="L953" class="LineNr"> 953 </span> <span class="PreProc">return</span> <span id="L954" class="LineNr"> 954 </span> <span class="Delimiter">}</span> <span id="L955" class="LineNr"> 955 </span> <span class="muComment"># otherwise insert key within current word</span> -<span id="L956" class="LineNr"> 956 </span> <span class="PreProc">var</span> print?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key +<span id="L956" class="LineNr"> 956 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key <span id="L957" class="LineNr"> 957 </span> $process-sandbox-rename:real-grapheme: <span class="Delimiter">{</span> <span id="L958" class="LineNr"> 958 </span> compare print?, <span class="Constant">0</span>/false <span id="L959" class="LineNr"> 959 </span> <span class="PreProc">break-if-=</span> -<span id="L960" class="LineNr"> 960 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L960" class="LineNr"> 960 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah <span id="L961" class="LineNr"> 961 </span> <a href='word.mu.html#L148'>add-grapheme-to-word</a> new-name, key <span id="L962" class="LineNr"> 962 </span> <span class="PreProc">return</span> <span id="L963" class="LineNr"> 963 </span> <span class="Delimiter">}</span> @@ -1053,30 +1052,30 @@ if ('onhashchange' in window) { <span id="L987" class="LineNr"> 987 </span> <span class="PreProc">var</span> new-function: (handle <a href='data.mu.html#L21'>function</a>) <span id="L988" class="LineNr"> 988 </span> <span class="PreProc">var</span> new-function-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> address new-function <span id="L989" class="LineNr"> 989 </span> <a href='../120allocate.subx.html#L66'>allocate</a> new-function-ah -<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> _new-function/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-function-ah +<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> _new-function/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-function-ah <span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> new-function/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _new-function <span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-function, next <span id="L993" class="LineNr"> 993 </span> copy-object functions, dest <span id="L994" class="LineNr"> 994 </span> copy-object new-function-ah, functions <span id="L995" class="LineNr"> 995 </span> <span class="muComment"># set function name to new-name</span> -<span id="L996" class="LineNr"> 996 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L996" class="LineNr"> 996 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah <span id="L997" class="LineNr"> 997 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-function, name <span id="L998" class="LineNr"> 998 </span> <a href='word.mu.html#L480'>word-to-string</a> new-name, dest <span id="L999" class="LineNr"> 999 </span> <span class="muComment"># move final line to body</span> -<span id="L1000" class="LineNr">1000 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-function, body +<span id="L1000" class="LineNr">1000 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-function, body <span id="L1001" class="LineNr">1001 </span> <a href='../120allocate.subx.html#L66'>allocate</a> body-ah -<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L1003" class="LineNr">1003 </span> <span class="PreProc">var</span> body-contents/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> body, data <span id="L1004" class="LineNr">1004 </span> <span class="PreProc">var</span> final-line-storage: (handle <a href='data.mu.html#L34'>line</a>) -<span id="L1005" class="LineNr">1005 </span> <span class="PreProc">var</span> final-line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address final-line-storage +<span id="L1005" class="LineNr">1005 </span> <span class="PreProc">var</span> final-line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address final-line-storage <span id="L1006" class="LineNr">1006 </span> <a href='environment.mu.html#L1526'>final-line</a> <a href='data.mu.html#L5'>sandbox</a>, final-line-ah -<span id="L1007" class="LineNr">1007 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-line-ah -<span id="L1008" class="LineNr">1008 </span> <span class="PreProc">var</span> final-line-contents/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1526'>final-line</a>, data +<span id="L1007" class="LineNr">1007 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-line-ah +<span id="L1008" class="LineNr">1008 </span> <span class="PreProc">var</span> final-line-contents/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1526'>final-line</a>, data <span id="L1009" class="LineNr">1009 </span> copy-object final-line-contents, body-contents <span id="L1010" class="LineNr">1010 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-function, cursor-word <span id="L1011" class="LineNr">1011 </span> copy-object final-line-contents, cursor-word-ah <span id="L1012" class="LineNr">1012 </span> <span class="Delimiter">{</span> -<span id="L1013" class="LineNr">1013 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L1013" class="LineNr">1013 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L1014" class="LineNr">1014 </span> <a href='word.mu.html#L185'>cursor-to-start</a> cursor-word <span id="L1015" class="LineNr">1015 </span> <span class="Delimiter">}</span> <span id="L1016" class="LineNr">1016 </span> <span class="muComment">#</span> @@ -1089,7 +1088,7 @@ if ('onhashchange' in window) { <span id="L1023" class="LineNr">1023 </span> <span class="PreProc">var</span> empty-word: (handle <a href='data.mu.html#L42'>word</a>) <span id="L1024" class="LineNr">1024 </span> <a href='../120allocate.subx.html#L497'>copy-handle</a> empty-word, new-name-ah <span id="L1025" class="LineNr">1025 </span> <span class="muComment"># update cursor</span> -<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> final-line-storage +<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> final-line-storage <span id="L1027" class="LineNr">1027 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L1028" class="LineNr">1028 </span> <a href='../120allocate.subx.html#L66'>allocate</a> cursor-call-path-ah <span class="muComment"># leak</span> <span id="L1029" class="LineNr">1029 </span> <a href='data.mu.html#L318'>initialize-path-from-line</a> <a href='environment.mu.html#L1526'>final-line</a>, cursor-call-path-ah @@ -1100,22 +1099,22 @@ if ('onhashchange' in window) { <span id="L1034" class="LineNr">1034 </span> $process-sandbox-define:backspace: <span class="Delimiter">{</span> <span id="L1035" class="LineNr">1035 </span> <span class="PreProc">break-if-!=</span> <span id="L1036" class="LineNr">1036 </span> <span class="muComment"># if not at start, delete grapheme before cursor</span> -<span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah -<span id="L1038" class="LineNr">1038 </span> <span class="PreProc">var</span> at-start?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> new-name +<span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L1038" class="LineNr">1038 </span> <span class="PreProc">var</span> at-start?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L155'>cursor-at-start?</a> new-name <span id="L1039" class="LineNr">1039 </span> compare at-start?, <span class="Constant">0</span>/false <span id="L1040" class="LineNr">1040 </span> <span class="Delimiter">{</span> <span id="L1041" class="LineNr">1041 </span> <span class="PreProc">break-if-!=</span> -<span id="L1042" class="LineNr">1042 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L1042" class="LineNr">1042 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah <span id="L1043" class="LineNr">1043 </span> <a href='word.mu.html#L207'>delete-before-cursor</a> new-name <span id="L1044" class="LineNr">1044 </span> <span class="Delimiter">}</span> <span id="L1045" class="LineNr">1045 </span> <span class="PreProc">return</span> <span id="L1046" class="LineNr">1046 </span> <span class="Delimiter">}</span> <span id="L1047" class="LineNr">1047 </span> <span class="muComment"># otherwise insert key within current word</span> -<span id="L1048" class="LineNr">1048 </span> <span class="PreProc">var</span> print?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key +<span id="L1048" class="LineNr">1048 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='environment.mu.html#L2147'>real-grapheme?</a> key <span id="L1049" class="LineNr">1049 </span> $process-sandbox-define:real-grapheme: <span class="Delimiter">{</span> <span id="L1050" class="LineNr">1050 </span> compare print?, <span class="Constant">0</span>/false <span id="L1051" class="LineNr">1051 </span> <span class="PreProc">break-if-=</span> -<span id="L1052" class="LineNr">1052 </span> <span class="PreProc">var</span> new-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah +<span id="L1052" class="LineNr">1052 </span> <span class="PreProc">var</span> new-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *new-name-ah <span id="L1053" class="LineNr">1053 </span> <a href='word.mu.html#L148'>add-grapheme-to-word</a> new-name, key <span id="L1054" class="LineNr">1054 </span> <span class="PreProc">return</span> <span id="L1055" class="LineNr">1055 </span> <span class="Delimiter">}</span> @@ -1127,24 +1126,24 @@ if ('onhashchange' in window) { <span id="L1061" class="LineNr">1061 </span><span class="muComment"># Assumes function body is a single line for now.</span> <span id="L1062" class="LineNr">1062 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1062'>copy-unbound-words-to-args</a></span> _functions: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Delimiter">{</span> <span id="L1063" class="LineNr">1063 </span> <span class="muComment"># target</span> -<span id="L1064" class="LineNr">1064 </span> <span class="PreProc">var</span> target-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _functions -<span id="L1065" class="LineNr">1065 </span> <span class="PreProc">var</span> _target/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah +<span id="L1064" class="LineNr">1064 </span> <span class="PreProc">var</span> target-ah/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _functions +<span id="L1065" class="LineNr">1065 </span> <span class="PreProc">var</span> _target/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah <span id="L1066" class="LineNr">1066 </span> <span class="PreProc">var</span> target/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _target <span id="L1067" class="LineNr">1067 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, args <span id="L1068" class="LineNr">1068 </span> <span class="muComment"># next</span> <span id="L1069" class="LineNr">1069 </span> <span class="PreProc">var</span> functions-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, next <span id="L1070" class="LineNr">1070 </span> <span class="muComment"># src</span> -<span id="L1071" class="LineNr">1071 </span> <span class="PreProc">var</span> line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, body -<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah -<span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data -<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L1071" class="LineNr">1071 </span> <span class="PreProc">var</span> line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, body +<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah +<span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> curr-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data +<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L1075" class="LineNr">1075 </span> <span class="Delimiter">{</span> <span id="L1076" class="LineNr">1076 </span> compare curr, <span class="Constant">0</span> <span id="L1077" class="LineNr">1077 </span> <span class="PreProc">break-if-=</span> <span id="L1078" class="LineNr">1078 </span> $copy-unbound-words-to-args:loop-iter: <span class="Delimiter">{</span> <span id="L1079" class="LineNr">1079 </span> <span class="muComment"># is it a number?</span> <span id="L1080" class="LineNr">1080 </span> <span class="Delimiter">{</span> -<span id="L1081" class="LineNr">1081 </span> <span class="PreProc">var</span> int?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L487'>word-is-decimal-integer?</a> curr +<span id="L1081" class="LineNr">1081 </span> <span class="PreProc">var</span> int?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L487'>word-is-decimal-integer?</a> curr <span id="L1082" class="LineNr">1082 </span> compare int?, <span class="Constant">0</span>/false <span id="L1083" class="LineNr">1083 </span> <span class="PreProc">break-if-!=</span> $copy-unbound-words-to-args:loop-iter <span id="L1084" class="LineNr">1084 </span> <span class="Delimiter">}</span> @@ -1174,7 +1173,7 @@ if ('onhashchange' in window) { <span id="L1108" class="LineNr">1108 </span> <span class="Delimiter">{</span> <span id="L1109" class="LineNr">1109 </span> <span class="muComment">## numbers</span> <span id="L1110" class="LineNr">1110 </span> <span class="muComment"># if w == "+" return true</span> -<span id="L1111" class="LineNr">1111 </span> <span class="PreProc">var</span> subresult/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L98'>word-equal?</a> w, <span class="Constant">"+"</span> +<span id="L1111" class="LineNr">1111 </span> <span class="PreProc">var</span> subresult/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L98'>word-equal?</a> w, <span class="Constant">"+"</span> <span id="L1112" class="LineNr">1112 </span> compare subresult, <span class="Constant">0</span>/false <span id="L1113" class="LineNr">1113 </span> <span class="PreProc">break-if-!=</span> <span id="L1114" class="LineNr">1114 </span> <span class="muComment"># if w == "-" return true</span> @@ -1255,34 +1254,34 @@ if ('onhashchange' in window) { <span id="L1189" class="LineNr">1189 </span> <span class="PreProc">break-if-!=</span> <span id="L1190" class="LineNr">1190 </span> <span class="muComment"># return w in functions</span> <span id="L1191" class="LineNr">1191 </span> <span class="PreProc">var</span> out-h: (handle <a href='data.mu.html#L21'>function</a>) -<span id="L1192" class="LineNr">1192 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> address out-h +<span id="L1192" class="LineNr">1192 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> address out-h <span id="L1193" class="LineNr">1193 </span> <a href='environment.mu.html#L1846'>callee</a> functions-ah, w, out -<span id="L1194" class="LineNr">1194 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out +<span id="L1194" class="LineNr">1194 </span> <span class="PreProc">var</span> found?/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out <span id="L1195" class="LineNr">1195 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> copy found? <span id="L1196" class="LineNr">1196 </span> <span class="Delimiter">}</span> <span id="L1197" class="LineNr">1197 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L1198" class="LineNr">1198 </span><span class="Delimiter">}</span> <span id="L1199" class="LineNr">1199 </span> <span id="L1200" class="LineNr">1200 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1200'>arg-exists?</a></span> _f-ah: (addr handle <a href='data.mu.html#L21'>function</a>), arg: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: boolean <span class="Delimiter">{</span> -<span id="L1201" class="LineNr">1201 </span> <span class="PreProc">var</span> f-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f-ah -<span id="L1202" class="LineNr">1202 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *f-ah -<span id="L1203" class="LineNr">1203 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args +<span id="L1201" class="LineNr">1201 </span> <span class="PreProc">var</span> f-ah/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f-ah +<span id="L1202" class="LineNr">1202 </span> <span class="PreProc">var</span> f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *f-ah +<span id="L1203" class="LineNr">1203 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L1204" class="LineNr">1204 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEbx">ebx</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L496'>word-exists?</a> args-ah, arg <span id="L1205" class="LineNr">1205 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L1206" class="LineNr">1206 </span><span class="Delimiter">}</span> <span id="L1207" class="LineNr">1207 </span> <span id="L1208" class="LineNr">1208 </span><span class="muComment"># construct a call to `f` with copies of exactly its args</span> <span id="L1209" class="LineNr">1209 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1209'>construct-call</a></span> _f-ah: (addr handle <a href='data.mu.html#L21'>function</a>), _dest-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> -<span id="L1210" class="LineNr">1210 </span> <span class="PreProc">var</span> f-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f-ah -<span id="L1211" class="LineNr">1211 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *f-ah +<span id="L1210" class="LineNr">1210 </span> <span class="PreProc">var</span> f-ah/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f-ah +<span id="L1211" class="LineNr">1211 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *f-ah <span id="L1212" class="LineNr">1212 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f <span id="L1213" class="LineNr">1213 </span> <span class="muComment"># append args in reverse</span> -<span id="L1214" class="LineNr">1214 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args +<span id="L1214" class="LineNr">1214 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L1215" class="LineNr">1215 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah <span id="L1216" class="LineNr">1216 </span> <a href='word.mu.html#L277'>copy-words-in-reverse</a> args-ah, dest-ah <span id="L1217" class="LineNr">1217 </span> <span class="muComment"># append name</span> -<span id="L1218" class="LineNr">1218 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name -<span id="L1219" class="LineNr">1219 </span> <span class="PreProc">var</span> name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *name-ah +<span id="L1218" class="LineNr">1218 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L1219" class="LineNr">1219 </span> <span class="PreProc">var</span> name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *name-ah <span id="L1220" class="LineNr">1220 </span> <a href='word.mu.html#L319'>append-word-at-end-with</a> dest-ah, name <span id="L1221" class="LineNr">1221 </span><span class="Delimiter">}</span> <span id="L1222" class="LineNr">1222 </span> @@ -1294,9 +1293,9 @@ if ('onhashchange' in window) { <span id="L1228" class="LineNr">1228 </span> copy-object _words, out <span id="L1229" class="LineNr">1229 </span> <span class="PreProc">return</span> <span id="L1230" class="LineNr">1230 </span> <span class="Delimiter">}</span> -<span id="L1231" class="LineNr">1231 </span> <span class="PreProc">var</span> words-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _words -<span id="L1232" class="LineNr">1232 </span> <span class="PreProc">var</span> words/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *words-ah -<span id="L1233" class="LineNr">1233 </span> <span class="PreProc">var</span> next/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> words, next +<span id="L1231" class="LineNr">1231 </span> <span class="PreProc">var</span> words-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _words +<span id="L1232" class="LineNr">1232 </span> <span class="PreProc">var</span> words/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *words-ah +<span id="L1233" class="LineNr">1233 </span> <span class="PreProc">var</span> next/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> words, next <span id="L1234" class="LineNr">1234 </span> n <span class="Special"><-</span> decrement <span id="L1235" class="LineNr">1235 </span> <a href='environment.mu.html#L1223'>word-index</a> next, n, out <span id="L1236" class="LineNr">1236 </span><span class="Delimiter">}</span> @@ -1309,7 +1308,7 @@ if ('onhashchange' in window) { <span id="L1243" class="LineNr">1243 </span><span class="CommentedCode">#? dump-call-path-element 0, cursor-call-path</span> <span id="L1244" class="LineNr">1244 </span><span class="CommentedCode">#? print-string 0, "expanded words:\n"</span> <span id="L1245" class="LineNr">1245 </span><span class="CommentedCode">#? dump-call-paths 0, expanded-words</span> -<span id="L1246" class="LineNr">1246 </span> <span class="PreProc">var</span> already-expanded?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='data.mu.html#L327'>find-in-call-paths</a> expanded-words, cursor-call-path +<span id="L1246" class="LineNr">1246 </span> <span class="PreProc">var</span> already-expanded?/eax: boolean <span class="Special"><-</span> <a href='data.mu.html#L327'>find-in-call-paths</a> expanded-words, cursor-call-path <span id="L1247" class="LineNr">1247 </span> compare already-expanded?, <span class="Constant">0</span>/false <span id="L1248" class="LineNr">1248 </span> <span class="Delimiter">{</span> <span id="L1249" class="LineNr">1249 </span> <span class="PreProc">break-if-!=</span> @@ -1331,27 +1330,27 @@ if ('onhashchange' in window) { <span id="L1265" class="LineNr">1265 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox <span id="L1266" class="LineNr">1266 </span> <span class="PreProc">var</span> line-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data <span id="L1267" class="LineNr">1267 </span> <span class="Delimiter">{</span> -<span id="L1268" class="LineNr">1268 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah +<span id="L1268" class="LineNr">1268 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah <span id="L1269" class="LineNr">1269 </span> <span class="PreProc">var</span> next-line-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, next -<span id="L1270" class="LineNr">1270 </span> <span class="PreProc">var</span> next-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah +<span id="L1270" class="LineNr">1270 </span> <span class="PreProc">var</span> next-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah <span id="L1271" class="LineNr">1271 </span> compare next-line, <span class="Constant">0</span> <span id="L1272" class="LineNr">1272 </span> <span class="PreProc">break-if-=</span> <span id="L1273" class="LineNr">1273 </span> line-ah <span class="Special"><-</span> copy next-line-ah <span id="L1274" class="LineNr">1274 </span> <span class="PreProc">loop</span> <span id="L1275" class="LineNr">1275 </span> <span class="Delimiter">}</span> -<span id="L1276" class="LineNr">1276 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah +<span id="L1276" class="LineNr">1276 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah <span id="L1277" class="LineNr">1277 </span> <span class="PreProc">var</span> final-line-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, next <span id="L1278" class="LineNr">1278 </span> <a href='../120allocate.subx.html#L66'>allocate</a> final-line-ah -<span id="L1279" class="LineNr">1279 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-line-ah +<span id="L1279" class="LineNr">1279 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-line-ah <span id="L1280" class="LineNr">1280 </span> <a href='data.mu.html#L102'>initialize-line</a> <a href='environment.mu.html#L1526'>final-line</a> -<span id="L1281" class="LineNr">1281 </span> <span class="PreProc">var</span> final-prev/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1526'>final-line</a>, prev +<span id="L1281" class="LineNr">1281 </span> <span class="PreProc">var</span> final-prev/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1526'>final-line</a>, prev <span id="L1282" class="LineNr">1282 </span> copy-object line-ah, final-prev <span id="L1283" class="LineNr">1283 </span> <span class="muComment"># clear cursor</span> -<span id="L1284" class="LineNr">1284 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-line-ah +<span id="L1284" class="LineNr">1284 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-line-ah <span id="L1285" class="LineNr">1285 </span> <span class="PreProc">var</span> word-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1526'>final-line</a>, data -<span id="L1286" class="LineNr">1286 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L1287" class="LineNr">1287 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L1286" class="LineNr">1286 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L1287" class="LineNr">1287 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> dest/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> <span id="L1289" class="LineNr">1289 </span> copy-object word-ah, dest <span id="L1290" class="LineNr">1290 </span><span class="Delimiter">}</span> <span id="L1291" class="LineNr">1291 </span> @@ -1365,9 +1364,9 @@ if ('onhashchange' in window) { <span id="L1299" class="LineNr">1299 </span> <span class="PreProc">var</span> functions/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, functions <span id="L1300" class="LineNr">1300 </span> <span class="muComment"># line</span> <span id="L1301" class="LineNr">1301 </span> <span class="PreProc">var</span> sandbox-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, sandboxes -<span id="L1302" class="LineNr">1302 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *sandbox-ah -<span id="L1303" class="LineNr">1303 </span> <span class="PreProc">var</span> line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data -<span id="L1304" class="LineNr">1304 </span> <span class="PreProc">var</span> _line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah +<span id="L1302" class="LineNr">1302 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/eax: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *sandbox-ah +<span id="L1303" class="LineNr">1303 </span> <span class="PreProc">var</span> line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data +<span id="L1304" class="LineNr">1304 </span> <span class="PreProc">var</span> _line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *line-ah <span id="L1305" class="LineNr">1305 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _line <span id="L1306" class="LineNr">1306 </span> <a href='rpn.mu.html#L1'>evaluate</a> functions, <span class="Constant">0</span>, <a href='data.mu.html#L34'>line</a>, <span class="Constant">0</span>, stack <span id="L1307" class="LineNr">1307 </span><span class="Delimiter">}</span> @@ -1379,18 +1378,18 @@ if ('onhashchange' in window) { <span id="L1313" class="LineNr">1313 </span> <span class="muComment"># menu</span> <span id="L1314" class="LineNr">1314 </span> <a href='environment.mu.html#L1342'>render-menu</a> env <span id="L1315" class="LineNr">1315 </span> <span class="muComment"># screen</span> -<span id="L1316" class="LineNr">1316 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L1317" class="LineNr">1317 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L1316" class="LineNr">1316 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L1317" class="LineNr">1317 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L1318" class="LineNr">1318 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1319" class="LineNr">1319 </span> <span class="muComment"># functions</span> -<span id="L1320" class="LineNr">1320 </span> <span class="PreProc">var</span> sep-col/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, code-separator-col +<span id="L1320" class="LineNr">1320 </span> <span class="PreProc">var</span> sep-col/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, code-separator-col <span id="L1321" class="LineNr">1321 </span> <span class="PreProc">var</span> functions/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, functions <span id="L1322" class="LineNr">1322 </span> <a href='environment.mu.html#L2078'>render-functions</a> <a href='../405screen.mu.html#L9'>screen</a>, *sep-col, env <span id="L1323" class="LineNr">1323 </span> <span class="muComment"># sandbox</span> <span id="L1324" class="LineNr">1324 </span> <span class="PreProc">var</span> repl-col/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *sep-col <span id="L1325" class="LineNr">1325 </span> repl-col <span class="Special"><-</span> add <span class="Constant">2</span>/repl-margin-left -<span id="L1326" class="LineNr">1326 </span> <span class="PreProc">var</span> cursor-sandbox-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-sandbox -<span id="L1327" class="LineNr">1327 </span> <span class="PreProc">var</span> cursor-sandbox/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-sandbox-ah +<span id="L1326" class="LineNr">1326 </span> <span class="PreProc">var</span> cursor-sandbox-ah/eax: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-sandbox +<span id="L1327" class="LineNr">1327 </span> <span class="PreProc">var</span> cursor-sandbox/eax: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-sandbox-ah <span id="L1328" class="LineNr">1328 </span> <span class="muComment"># bindings</span> <span id="L1329" class="LineNr">1329 </span> <span class="PreProc">var</span> bindings-storage: <a href='data.mu.html#L59'>table</a> <span id="L1330" class="LineNr">1330 </span> <span class="PreProc">var</span> bindings/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> address bindings-storage @@ -1407,16 +1406,16 @@ if ('onhashchange' in window) { <span id="L1341" class="LineNr">1341 </span><span class="muComment"># draw a wordstar-style cheatsheet of shortcuts on the bottom line of the screen</span> <span id="L1342" class="LineNr">1342 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1342'>render-menu</a></span> _env: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Delimiter">{</span> <span id="L1343" class="LineNr">1343 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _env -<span id="L1344" class="LineNr">1344 </span> <span class="PreProc">var</span> cursor-function-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-function -<span id="L1345" class="LineNr">1345 </span> <span class="PreProc">var</span> cursor-function/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-function-ah +<span id="L1344" class="LineNr">1344 </span> <span class="PreProc">var</span> cursor-function-ah/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-function +<span id="L1345" class="LineNr">1345 </span> <span class="PreProc">var</span> cursor-function/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-function-ah <span id="L1346" class="LineNr">1346 </span> <span class="Delimiter">{</span> <span id="L1347" class="LineNr">1347 </span> compare cursor-function, <span class="Constant">0</span> <span id="L1348" class="LineNr">1348 </span> <span class="PreProc">break-if-=</span> <span id="L1349" class="LineNr">1349 </span> <a href='environment.mu.html#L1927'>render-function-menu</a> env <span id="L1350" class="LineNr">1350 </span> <span class="PreProc">return</span> <span id="L1351" class="LineNr">1351 </span> <span class="Delimiter">}</span> -<span id="L1352" class="LineNr">1352 </span> <span class="PreProc">var</span> cursor-sandbox-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-sandbox -<span id="L1353" class="LineNr">1353 </span> <span class="PreProc">var</span> cursor-sandbox/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-sandbox-ah +<span id="L1352" class="LineNr">1352 </span> <span class="PreProc">var</span> cursor-sandbox-ah/eax: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-sandbox +<span id="L1353" class="LineNr">1353 </span> <span class="PreProc">var</span> cursor-sandbox/eax: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-sandbox-ah <span id="L1354" class="LineNr">1354 </span> <span class="Delimiter">{</span> <span id="L1355" class="LineNr">1355 </span> compare cursor-sandbox, <span class="Constant">0</span> <span id="L1356" class="LineNr">1356 </span> <span class="PreProc">break-if-=</span> @@ -1429,67 +1428,67 @@ if ('onhashchange' in window) { <span id="L1363" class="LineNr">1363 </span><span class="muComment"># we just do nothing here if a dialog is up.</span> <span id="L1364" class="LineNr">1364 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1364'>position-cursor</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _env: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Delimiter">{</span> <span id="L1365" class="LineNr">1365 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _env -<span id="L1366" class="LineNr">1366 </span> <span class="PreProc">var</span> goto-function-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, partial-function-name -<span id="L1367" class="LineNr">1367 </span> <span class="PreProc">var</span> goto-function/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *goto-function-ah +<span id="L1366" class="LineNr">1366 </span> <span class="PreProc">var</span> goto-function-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, partial-function-name +<span id="L1367" class="LineNr">1367 </span> <span class="PreProc">var</span> goto-function/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *goto-function-ah <span id="L1368" class="LineNr">1368 </span> <span class="Delimiter">{</span> <span id="L1369" class="LineNr">1369 </span> compare goto-function, <span class="Constant">0</span> <span id="L1370" class="LineNr">1370 </span> <span class="PreProc">break-if-=</span> <span id="L1371" class="LineNr">1371 </span> <span class="PreProc">return</span> <span id="L1372" class="LineNr">1372 </span> <span class="Delimiter">}</span> -<span id="L1373" class="LineNr">1373 </span> <span class="PreProc">var</span> cursor-function-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-function -<span id="L1374" class="LineNr">1374 </span> <span class="PreProc">var</span> cursor-function/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-function-ah +<span id="L1373" class="LineNr">1373 </span> <span class="PreProc">var</span> cursor-function-ah/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-function +<span id="L1374" class="LineNr">1374 </span> <span class="PreProc">var</span> cursor-function/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-function-ah <span id="L1375" class="LineNr">1375 </span> <span class="Delimiter">{</span> <span id="L1376" class="LineNr">1376 </span> compare cursor-function, <span class="Constant">0</span> <span id="L1377" class="LineNr">1377 </span> <span class="PreProc">break-if-=</span> <span id="L1378" class="LineNr">1378 </span> <span class="PreProc">var</span> cursor-row/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-function, cursor-row -<span id="L1379" class="LineNr">1379 </span> <span class="PreProc">var</span> cursor-col/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-function, cursor-col +<span id="L1379" class="LineNr">1379 </span> <span class="PreProc">var</span> cursor-col/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-function, cursor-col <span id="L1380" class="LineNr">1380 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, *cursor-row, *cursor-col <span id="L1381" class="LineNr">1381 </span> <span class="PreProc">return</span> <span id="L1382" class="LineNr">1382 </span> <span class="Delimiter">}</span> -<span id="L1383" class="LineNr">1383 </span> <span class="PreProc">var</span> cursor-sandbox-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-sandbox -<span id="L1384" class="LineNr">1384 </span> <span class="PreProc">var</span> cursor-sandbox/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-sandbox-ah +<span id="L1383" class="LineNr">1383 </span> <span class="PreProc">var</span> cursor-sandbox-ah/eax: (addr handle <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, cursor-sandbox +<span id="L1384" class="LineNr">1384 </span> <span class="PreProc">var</span> cursor-sandbox/eax: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-sandbox-ah <span id="L1385" class="LineNr">1385 </span> <span class="Delimiter">{</span> <span id="L1386" class="LineNr">1386 </span> compare cursor-sandbox, <span class="Constant">0</span> <span id="L1387" class="LineNr">1387 </span> <span class="PreProc">break-if-=</span> <span id="L1388" class="LineNr">1388 </span> <span class="muComment"># if in a dialog, return</span> <span id="L1389" class="LineNr">1389 </span> <span class="Delimiter">{</span> -<span id="L1390" class="LineNr">1390 </span> <span class="PreProc">var</span> partial-word-rename-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-sandbox, partial-name-for-cursor-word -<span id="L1391" class="LineNr">1391 </span> <span class="PreProc">var</span> partial-word-rename/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *partial-word-rename-ah +<span id="L1390" class="LineNr">1390 </span> <span class="PreProc">var</span> partial-word-rename-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-sandbox, partial-name-for-cursor-word +<span id="L1391" class="LineNr">1391 </span> <span class="PreProc">var</span> partial-word-rename/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *partial-word-rename-ah <span id="L1392" class="LineNr">1392 </span> compare partial-word-rename, <span class="Constant">0</span> <span id="L1393" class="LineNr">1393 </span> <span class="PreProc">break-if-=</span> <span id="L1394" class="LineNr">1394 </span> <span class="PreProc">return</span> <span id="L1395" class="LineNr">1395 </span> <span class="Delimiter">}</span> <span id="L1396" class="LineNr">1396 </span> <span class="Delimiter">{</span> -<span id="L1397" class="LineNr">1397 </span> <span class="PreProc">var</span> partial-function-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-sandbox, partial-name-for-function -<span id="L1398" class="LineNr">1398 </span> <span class="PreProc">var</span> partial-function-name/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *partial-function-name-ah +<span id="L1397" class="LineNr">1397 </span> <span class="PreProc">var</span> partial-function-name-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-sandbox, partial-name-for-function +<span id="L1398" class="LineNr">1398 </span> <span class="PreProc">var</span> partial-function-name/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *partial-function-name-ah <span id="L1399" class="LineNr">1399 </span> compare partial-function-name, <span class="Constant">0</span> <span id="L1400" class="LineNr">1400 </span> <span class="PreProc">break-if-=</span> <span id="L1401" class="LineNr">1401 </span> <span class="PreProc">return</span> <span id="L1402" class="LineNr">1402 </span> <span class="Delimiter">}</span> <span id="L1403" class="LineNr">1403 </span> <span class="PreProc">var</span> cursor-row/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-sandbox, cursor-row -<span id="L1404" class="LineNr">1404 </span> <span class="PreProc">var</span> cursor-col/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-sandbox, cursor-col +<span id="L1404" class="LineNr">1404 </span> <span class="PreProc">var</span> cursor-col/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-sandbox, cursor-col <span id="L1405" class="LineNr">1405 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, *cursor-row, *cursor-col <span id="L1406" class="LineNr">1406 </span> <span class="Delimiter">}</span> <span id="L1407" class="LineNr">1407 </span><span class="Delimiter">}</span> <span id="L1408" class="LineNr">1408 </span> <span id="L1409" class="LineNr">1409 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1409'>render-goto-dialog</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _env: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Delimiter">{</span> <span id="L1410" class="LineNr">1410 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _env -<span id="L1411" class="LineNr">1411 </span> <span class="PreProc">var</span> goto-function-mode-ah?/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, partial-function-name -<span id="L1412" class="LineNr">1412 </span> <span class="PreProc">var</span> goto-function-mode?/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *goto-function-mode-ah? +<span id="L1411" class="LineNr">1411 </span> <span class="PreProc">var</span> goto-function-mode-ah?/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, partial-function-name +<span id="L1412" class="LineNr">1412 </span> <span class="PreProc">var</span> goto-function-mode?/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *goto-function-mode-ah? <span id="L1413" class="LineNr">1413 </span> compare goto-function-mode?, <span class="Constant">0</span>/false <span id="L1414" class="LineNr">1414 </span> <span class="PreProc">break-if-=</span> <span id="L1415" class="LineNr">1415 </span> <span class="muComment"># clear a space for the dialog</span> <span id="L1416" class="LineNr">1416 </span> <span class="PreProc">var</span> top-row/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">3</span> <span id="L1417" class="LineNr">1417 </span> <span class="PreProc">var</span> bottom-row/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">9</span> -<span id="L1418" class="LineNr">1418 </span> <span class="PreProc">var</span> sep-col/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, code-separator-col +<span id="L1418" class="LineNr">1418 </span> <span class="PreProc">var</span> sep-col/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, code-separator-col <span id="L1419" class="LineNr">1419 </span> <span class="PreProc">var</span> left-col/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *sep-col <span id="L1420" class="LineNr">1420 </span> left-col <span class="Special"><-</span> subtract <span class="Constant">0x10</span> -<span id="L1421" class="LineNr">1421 </span> <span class="PreProc">var</span> right-col/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *sep-col +<span id="L1421" class="LineNr">1421 </span> <span class="PreProc">var</span> right-col/eax: int <span class="Special"><-</span> copy *sep-col <span id="L1422" class="LineNr">1422 </span> right-col <span class="Special"><-</span> add <span class="Constant">0x10</span> <span id="L1423" class="LineNr">1423 </span> <a href='box.mu.html#L71'>clear-rect</a> <a href='../405screen.mu.html#L9'>screen</a>, top-row, left-col, bottom-row, right-col <span id="L1424" class="LineNr">1424 </span> <a href='box.mu.html#L1'>draw-box</a> <a href='../405screen.mu.html#L9'>screen</a>, top-row, left-col, bottom-row, right-col <span id="L1425" class="LineNr">1425 </span> <span class="muComment"># render a little menu for the dialog</span> -<span id="L1426" class="LineNr">1426 </span> <span class="PreProc">var</span> menu-row/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy bottom-row +<span id="L1426" class="LineNr">1426 </span> <span class="PreProc">var</span> menu-row/eax: int <span class="Special"><-</span> copy bottom-row <span id="L1427" class="LineNr">1427 </span> menu-row <span class="Special"><-</span> decrement <span id="L1428" class="LineNr">1428 </span> <span class="PreProc">var</span> menu-col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy left-col <span id="L1429" class="LineNr">1429 </span> menu-col <span class="Special"><-</span> add <span class="Constant">2</span> @@ -1507,21 +1506,21 @@ if ('onhashchange' in window) { <span id="L1441" class="LineNr">1441 </span> start-col <span class="Special"><-</span> increment <span id="L1442" class="LineNr">1442 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">6</span>, start-col <span class="muComment"># cursor-row</span> <span id="L1443" class="LineNr">1443 </span> <span class="PreProc">var</span> word-ah?/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, partial-function-name -<span id="L1444" class="LineNr">1444 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? +<span id="L1444" class="LineNr">1444 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? <span id="L1445" class="LineNr">1445 </span> <a href='word.mu.html#L238'>print-word</a> <a href='../405screen.mu.html#L9'>screen</a>, <a href='data.mu.html#L42'>word</a> <span id="L1446" class="LineNr">1446 </span><span class="Delimiter">}</span> <span id="L1447" class="LineNr">1447 </span> <span id="L1448" class="LineNr">1448 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1448'>render-sandbox</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), functions: (addr handle <a href='data.mu.html#L21'>function</a>), bindings: (addr <a href='data.mu.html#L59'>table</a>), _sandbox: (addr <a href='data.mu.html#L5'>sandbox</a>), top-row: int, left-col: int <span class="Delimiter">{</span> <span id="L1449" class="LineNr">1449 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox <span id="L1450" class="LineNr">1450 </span> <span class="muComment"># line</span> -<span id="L1451" class="LineNr">1451 </span> <span class="PreProc">var</span> curr-line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data -<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> _curr-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-line-ah +<span id="L1451" class="LineNr">1451 </span> <span class="PreProc">var</span> curr-line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data +<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> _curr-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-line-ah <span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> curr-line/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _curr-line <span id="L1454" class="LineNr">1454 </span> <span class="muComment">#</span> <span id="L1455" class="LineNr">1455 </span> <span class="PreProc">var</span> curr-row/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy top-row <span id="L1456" class="LineNr">1456 </span> <span class="muComment"># cursor row, col</span> <span id="L1457" class="LineNr">1457 </span> <span class="PreProc">var</span> cursor-row-addr: (addr int) -<span id="L1458" class="LineNr">1458 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-row +<span id="L1458" class="LineNr">1458 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-row <span id="L1459" class="LineNr">1459 </span> copy-to cursor-row-addr, tmp <span id="L1460" class="LineNr">1460 </span> <span class="PreProc">var</span> cursor-col-addr: (addr int) <span id="L1461" class="LineNr">1461 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-col @@ -1529,15 +1528,15 @@ if ('onhashchange' in window) { <span id="L1463" class="LineNr">1463 </span> <span class="muComment"># render all but final line without stack</span> <span id="L1464" class="LineNr">1464 </span><span class="CommentedCode">#? print-string 0, "render all but final line\n"</span> <span id="L1465" class="LineNr">1465 </span> <span class="Delimiter">{</span> -<span id="L1466" class="LineNr">1466 </span> <span class="PreProc">var</span> next-line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr-line, next -<span id="L1467" class="LineNr">1467 </span> <span class="PreProc">var</span> next-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah +<span id="L1466" class="LineNr">1466 </span> <span class="PreProc">var</span> next-line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr-line, next +<span id="L1467" class="LineNr">1467 </span> <span class="PreProc">var</span> next-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah <span id="L1468" class="LineNr">1468 </span> compare next-line, <span class="Constant">0</span> <span id="L1469" class="LineNr">1469 </span> <span class="PreProc">break-if-=</span> <span id="L1470" class="LineNr">1470 </span> <span class="Delimiter">{</span> -<span id="L1471" class="LineNr">1471 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L1472" class="LineNr">1472 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L1473" class="LineNr">1473 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> -<span id="L1474" class="LineNr">1474 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L1471" class="LineNr">1471 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L1472" class="LineNr">1472 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L1473" class="LineNr">1473 </span> <span class="PreProc">var</span> cursor-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L1474" class="LineNr">1474 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L1475" class="LineNr">1475 </span> <span class="muComment"># it's enough to pass in the first word of the path, because if the path isn't a singleton the word is guaranteed to be unique</span> <span id="L1476" class="LineNr">1476 </span> <a href='environment.mu.html#L1634'>render-line-without-stack</a> <a href='../405screen.mu.html#L9'>screen</a>, curr-line, curr-row, left-col, cursor-word, cursor-row-addr, cursor-col-addr <span id="L1477" class="LineNr">1477 </span> <span class="Delimiter">}</span> @@ -1557,10 +1556,10 @@ if ('onhashchange' in window) { <span id="L1491" class="LineNr">1491 </span> <span class="muComment"># expanded-words</span> <span id="L1492" class="LineNr">1492 </span> <span class="PreProc">var</span> expanded-words/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L71'>call-path</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, expanded-words <span id="L1493" class="LineNr">1493 </span> <span class="muComment"># cursor-word</span> -<span id="L1494" class="LineNr">1494 </span> <span class="PreProc">var</span> cursor-call-path-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L1495" class="LineNr">1495 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah -<span id="L1496" class="LineNr">1496 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> -<span id="L1497" class="LineNr">1497 </span> <span class="PreProc">var</span> _cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L1494" class="LineNr">1494 </span> <span class="PreProc">var</span> cursor-call-path-ah/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L1495" class="LineNr">1495 </span> <span class="PreProc">var</span> cursor-call-path/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-call-path-ah +<span id="L1496" class="LineNr">1496 </span> <span class="PreProc">var</span> cursor-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-call-path, <a href='data.mu.html#L42'>word</a> +<span id="L1497" class="LineNr">1497 </span> <span class="PreProc">var</span> _cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L1498" class="LineNr">1498 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _cursor-word <span id="L1499" class="LineNr">1499 </span><span class="CommentedCode">#? print-string 0, "word at cursor: "</span> <span id="L1500" class="LineNr">1500 </span><span class="CommentedCode">#? print-word 0, cursor-word</span> @@ -1568,18 +1567,18 @@ if ('onhashchange' in window) { <span id="L1502" class="LineNr">1502 </span> <span class="muComment"># cursor-call-path</span> <span id="L1503" class="LineNr">1503 </span> <span class="PreProc">var</span> cursor-call-path: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span id="L1504" class="LineNr">1504 </span> <span class="Delimiter">{</span> -<span id="L1505" class="LineNr">1505 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path +<span id="L1505" class="LineNr">1505 </span> <span class="PreProc">var</span> src/eax: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path <span id="L1506" class="LineNr">1506 </span> copy-to cursor-call-path, src <span id="L1507" class="LineNr">1507 </span> <span class="Delimiter">}</span> <span id="L1508" class="LineNr">1508 </span> <span class="muComment"># first line</span> -<span id="L1509" class="LineNr">1509 </span> <span class="PreProc">var</span> first-line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data -<span id="L1510" class="LineNr">1510 </span> <span class="PreProc">var</span> _first-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *first-line-ah +<span id="L1509" class="LineNr">1509 </span> <span class="PreProc">var</span> first-line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data +<span id="L1510" class="LineNr">1510 </span> <span class="PreProc">var</span> _first-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *first-line-ah <span id="L1511" class="LineNr">1511 </span> <span class="PreProc">var</span> first-line/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _first-line <span id="L1512" class="LineNr">1512 </span> <span class="muComment"># final line</span> <span id="L1513" class="LineNr">1513 </span> <span class="PreProc">var</span> final-line-storage: (handle <a href='data.mu.html#L34'>line</a>) -<span id="L1514" class="LineNr">1514 </span> <span class="PreProc">var</span> final-line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address final-line-storage +<span id="L1514" class="LineNr">1514 </span> <span class="PreProc">var</span> final-line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address final-line-storage <span id="L1515" class="LineNr">1515 </span> <a href='environment.mu.html#L1526'>final-line</a> <a href='data.mu.html#L5'>sandbox</a>, final-line-ah -<span id="L1516" class="LineNr">1516 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-line-ah +<span id="L1516" class="LineNr">1516 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1526'>final-line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *final-line-ah <span id="L1517" class="LineNr">1517 </span> <span class="muComment"># curr-path</span> <span id="L1518" class="LineNr">1518 </span> <span class="PreProc">var</span> curr-path-storage: (handle <a href='data.mu.html#L77'>call-path-element</a>) <span id="L1519" class="LineNr">1519 </span> <span class="PreProc">var</span> curr-path/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> address curr-path-storage @@ -1593,9 +1592,9 @@ if ('onhashchange' in window) { <span id="L1527" class="LineNr">1527 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox <span id="L1528" class="LineNr">1528 </span> <span class="PreProc">var</span> curr-line-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, data <span id="L1529" class="LineNr">1529 </span> <span class="Delimiter">{</span> -<span id="L1530" class="LineNr">1530 </span> <span class="PreProc">var</span> curr-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-line-ah +<span id="L1530" class="LineNr">1530 </span> <span class="PreProc">var</span> curr-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-line-ah <span id="L1531" class="LineNr">1531 </span> <span class="PreProc">var</span> next-line-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr-line, next -<span id="L1532" class="LineNr">1532 </span> <span class="PreProc">var</span> next-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah +<span id="L1532" class="LineNr">1532 </span> <span class="PreProc">var</span> next-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah <span id="L1533" class="LineNr">1533 </span> compare next-line, <span class="Constant">0</span> <span id="L1534" class="LineNr">1534 </span> <span class="PreProc">break-if-=</span> <span id="L1535" class="LineNr">1535 </span> curr-line-ah <span class="Special"><-</span> copy next-line-ah @@ -1607,12 +1606,12 @@ if ('onhashchange' in window) { <span id="L1541" class="LineNr">1541 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1541'>render-rename-dialog</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _sandbox: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Delimiter">{</span> <span id="L1542" class="LineNr">1542 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEdi">edi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox <span id="L1543" class="LineNr">1543 </span> <span class="PreProc">var</span> rename-word-mode-ah?/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-cursor-word -<span id="L1544" class="LineNr">1544 </span> <span class="PreProc">var</span> rename-word-mode?/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *rename-word-mode-ah? +<span id="L1544" class="LineNr">1544 </span> <span class="PreProc">var</span> rename-word-mode?/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *rename-word-mode-ah? <span id="L1545" class="LineNr">1545 </span> compare rename-word-mode?, <span class="Constant">0</span>/false <span id="L1546" class="LineNr">1546 </span> <span class="PreProc">break-if-=</span> <span id="L1547" class="LineNr">1547 </span> <span class="muComment"># clear a space for the dialog</span> <span id="L1548" class="LineNr">1548 </span> <span class="PreProc">var</span> cursor-row/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-row -<span id="L1549" class="LineNr">1549 </span> <span class="PreProc">var</span> top-row/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *cursor-row +<span id="L1549" class="LineNr">1549 </span> <span class="PreProc">var</span> top-row/eax: int <span class="Special"><-</span> copy *cursor-row <span id="L1550" class="LineNr">1550 </span> top-row <span class="Special"><-</span> subtract <span class="Constant">3</span> <span id="L1551" class="LineNr">1551 </span> <span class="PreProc">var</span> bottom-row/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-row <span id="L1552" class="LineNr">1552 </span> bottom-row <span class="Special"><-</span> add <span class="Constant">3</span> @@ -1641,24 +1640,24 @@ if ('onhashchange' in window) { <span id="L1575" class="LineNr">1575 </span> <span class="PreProc">var</span> cursor-col/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-col <span id="L1576" class="LineNr">1576 </span> <span class="PreProc">var</span> start-col/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-col <span id="L1577" class="LineNr">1577 </span> <span class="PreProc">var</span> word-ah?/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-cursor-word -<span id="L1578" class="LineNr">1578 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? -<span id="L1579" class="LineNr">1579 </span> <span class="PreProc">var</span> <a href='word.mu.html#L199'>cursor-index</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L199'>cursor-index</a> <a href='data.mu.html#L42'>word</a> +<span id="L1578" class="LineNr">1578 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? +<span id="L1579" class="LineNr">1579 </span> <span class="PreProc">var</span> <a href='word.mu.html#L199'>cursor-index</a>/eax: int <span class="Special"><-</span> <a href='word.mu.html#L199'>cursor-index</a> <a href='data.mu.html#L42'>word</a> <span id="L1580" class="LineNr">1580 </span> start-col <span class="Special"><-</span> subtract <a href='word.mu.html#L199'>cursor-index</a> <span id="L1581" class="LineNr">1581 </span> <span class="PreProc">var</span> cursor-row/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-row <span id="L1582" class="LineNr">1582 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, *cursor-row, start-col -<span id="L1583" class="LineNr">1583 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? +<span id="L1583" class="LineNr">1583 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? <span id="L1584" class="LineNr">1584 </span> <a href='word.mu.html#L238'>print-word</a> <a href='../405screen.mu.html#L9'>screen</a>, <a href='data.mu.html#L42'>word</a> <span id="L1585" class="LineNr">1585 </span><span class="Delimiter">}</span> <span id="L1586" class="LineNr">1586 </span> <span id="L1587" class="LineNr">1587 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1587'>render-define-dialog</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _sandbox: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Delimiter">{</span> <span id="L1588" class="LineNr">1588 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEdi">edi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox <span id="L1589" class="LineNr">1589 </span> <span class="PreProc">var</span> define-function-mode-ah?/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-function -<span id="L1590" class="LineNr">1590 </span> <span class="PreProc">var</span> define-function-mode?/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *define-function-mode-ah? +<span id="L1590" class="LineNr">1590 </span> <span class="PreProc">var</span> define-function-mode?/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *define-function-mode-ah? <span id="L1591" class="LineNr">1591 </span> compare define-function-mode?, <span class="Constant">0</span>/false <span id="L1592" class="LineNr">1592 </span> <span class="PreProc">break-if-=</span> <span id="L1593" class="LineNr">1593 </span> <span class="muComment"># clear a space for the dialog</span> <span id="L1594" class="LineNr">1594 </span> <span class="PreProc">var</span> cursor-row/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-row -<span id="L1595" class="LineNr">1595 </span> <span class="PreProc">var</span> top-row/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *cursor-row +<span id="L1595" class="LineNr">1595 </span> <span class="PreProc">var</span> top-row/eax: int <span class="Special"><-</span> copy *cursor-row <span id="L1596" class="LineNr">1596 </span> top-row <span class="Special"><-</span> subtract <span class="Constant">3</span> <span id="L1597" class="LineNr">1597 </span> <span class="PreProc">var</span> bottom-row/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-row <span id="L1598" class="LineNr">1598 </span> bottom-row <span class="Special"><-</span> add <span class="Constant">3</span> @@ -1687,21 +1686,21 @@ if ('onhashchange' in window) { <span id="L1621" class="LineNr">1621 </span> <span class="PreProc">var</span> cursor-col/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-col <span id="L1622" class="LineNr">1622 </span> <span class="PreProc">var</span> start-col/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-col <span id="L1623" class="LineNr">1623 </span> <span class="PreProc">var</span> word-ah?/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, partial-name-for-function -<span id="L1624" class="LineNr">1624 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? -<span id="L1625" class="LineNr">1625 </span> <span class="PreProc">var</span> <a href='word.mu.html#L199'>cursor-index</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L199'>cursor-index</a> <a href='data.mu.html#L42'>word</a> +<span id="L1624" class="LineNr">1624 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? +<span id="L1625" class="LineNr">1625 </span> <span class="PreProc">var</span> <a href='word.mu.html#L199'>cursor-index</a>/eax: int <span class="Special"><-</span> <a href='word.mu.html#L199'>cursor-index</a> <a href='data.mu.html#L42'>word</a> <span id="L1626" class="LineNr">1626 </span> start-col <span class="Special"><-</span> subtract <a href='word.mu.html#L199'>cursor-index</a> <span id="L1627" class="LineNr">1627 </span> <span class="PreProc">var</span> cursor-row/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-row <span id="L1628" class="LineNr">1628 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, *cursor-row, start-col -<span id="L1629" class="LineNr">1629 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? +<span id="L1629" class="LineNr">1629 </span> <span class="PreProc">var</span> <a href='data.mu.html#L42'>word</a>/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah? <span id="L1630" class="LineNr">1630 </span> <a href='word.mu.html#L238'>print-word</a> <a href='../405screen.mu.html#L9'>screen</a>, <a href='data.mu.html#L42'>word</a> <span id="L1631" class="LineNr">1631 </span><span class="Delimiter">}</span> <span id="L1632" class="LineNr">1632 </span> <span id="L1633" class="LineNr">1633 </span><span class="muComment"># Render just the words in 'line'.</span> <span id="L1634" class="LineNr">1634 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1634'>render-line-without-stack</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _line: (addr <a href='data.mu.html#L34'>line</a>), curr-row: int, left-col: int, cursor-word: (addr <a href='data.mu.html#L42'>word</a>), cursor-row-addr: (addr int), cursor-col-addr: (addr int) <span class="Delimiter">{</span> <span id="L1635" class="LineNr">1635 </span> <span class="muComment"># curr-word</span> -<span id="L1636" class="LineNr">1636 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _line -<span id="L1637" class="LineNr">1637 </span> <span class="PreProc">var</span> first-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data -<span id="L1638" class="LineNr">1638 </span> <span class="PreProc">var</span> _curr-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *first-word-ah +<span id="L1636" class="LineNr">1636 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _line +<span id="L1637" class="LineNr">1637 </span> <span class="PreProc">var</span> first-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data +<span id="L1638" class="LineNr">1638 </span> <span class="PreProc">var</span> _curr-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *first-word-ah <span id="L1639" class="LineNr">1639 </span> <span class="PreProc">var</span> curr-word/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _curr-word <span id="L1640" class="LineNr">1640 </span> <span class="muComment">#</span> <span id="L1641" class="LineNr">1641 </span> <span class="muComment"># loop-carried dependency</span> @@ -1720,7 +1719,7 @@ if ('onhashchange' in window) { <span id="L1654" class="LineNr">1654 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, curr-row, curr-col <span id="L1655" class="LineNr">1655 </span> <a href='word.mu.html#L238'>print-word</a> <a href='../405screen.mu.html#L9'>screen</a>, curr-word <span id="L1656" class="LineNr">1656 </span> <span class="Delimiter">{</span> -<span id="L1657" class="LineNr">1657 </span> <span class="PreProc">var</span> max-width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L106'>word-length</a> curr-word +<span id="L1657" class="LineNr">1657 </span> <span class="PreProc">var</span> max-width/eax: int <span class="Special"><-</span> <a href='word.mu.html#L106'>word-length</a> curr-word <span id="L1658" class="LineNr">1658 </span> curr-col <span class="Special"><-</span> add max-width <span id="L1659" class="LineNr">1659 </span> curr-col <span class="Special"><-</span> add <span class="Constant">1</span>/margin-right <span id="L1660" class="LineNr">1660 </span> <span class="Delimiter">}</span> @@ -1742,34 +1741,34 @@ if ('onhashchange' in window) { <span id="L1676" class="LineNr">1676 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L1677" class="LineNr">1677 </span><span class="CommentedCode">#? }</span> <span id="L1678" class="LineNr">1678 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> copy cursor-row-addr -<span id="L1679" class="LineNr">1679 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy curr-row +<span id="L1679" class="LineNr">1679 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> copy curr-row <span id="L1680" class="LineNr">1680 </span> copy-to *dest, src <span id="L1681" class="LineNr">1681 </span> dest <span class="Special"><-</span> copy cursor-col-addr <span id="L1682" class="LineNr">1682 </span> copy-to *dest, old-col -<span id="L1683" class="LineNr">1683 </span> <span class="PreProc">var</span> cursor-index-in-word/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L199'>cursor-index</a> curr-word +<span id="L1683" class="LineNr">1683 </span> <span class="PreProc">var</span> cursor-index-in-word/eax: int <span class="Special"><-</span> <a href='word.mu.html#L199'>cursor-index</a> curr-word <span id="L1684" class="LineNr">1684 </span> add-to *dest, cursor-index-in-word <span id="L1685" class="LineNr">1685 </span> <span class="Delimiter">}</span> <span id="L1686" class="LineNr">1686 </span> <span class="muComment"># loop update</span> <span id="L1687" class="LineNr">1687 </span> <span class="PreProc">var</span> next-word-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr-word, next -<span id="L1688" class="LineNr">1688 </span> <span class="PreProc">var</span> _curr-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah +<span id="L1688" class="LineNr">1688 </span> <span class="PreProc">var</span> _curr-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-word-ah <span id="L1689" class="LineNr">1689 </span> curr-word <span class="Special"><-</span> copy _curr-word <span id="L1690" class="LineNr">1690 </span> <span class="PreProc">loop</span> <span id="L1691" class="LineNr">1691 </span> <span class="Delimiter">}</span> <span id="L1692" class="LineNr">1692 </span><span class="Delimiter">}</span> <span id="L1693" class="LineNr">1693 </span> -<span id="L1694" class="LineNr">1694 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1694'>call-depth-at-cursor</a></span> _sandbox: (addr <a href='data.mu.html#L5'>sandbox</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L1694" class="LineNr">1694 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1694'>call-depth-at-cursor</a></span> _sandbox: (addr <a href='data.mu.html#L5'>sandbox</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L1695" class="LineNr">1695 </span> <span class="PreProc">var</span> <a href='data.mu.html#L5'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L5'>sandbox</a>) <span class="Special"><-</span> copy _sandbox <span id="L1696" class="LineNr">1696 </span> <span class="PreProc">var</span> cursor-call-path/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L5'>sandbox</a>, cursor-call-path -<span id="L1697" class="LineNr">1697 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='environment.mu.html#L1702'>call-path-element-length</a> cursor-call-path +<span id="L1697" class="LineNr">1697 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> <a href='environment.mu.html#L1702'>call-path-element-length</a> cursor-call-path <span id="L1698" class="LineNr">1698 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add <span class="Constant">2</span> <span class="muComment"># input-row - 1</span> <span id="L1699" class="LineNr">1699 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L1700" class="LineNr">1700 </span><span class="Delimiter">}</span> <span id="L1701" class="LineNr">1701 </span> -<span id="L1702" class="LineNr">1702 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1702'>call-path-element-length</a></span> _x: (addr handle <a href='data.mu.html#L77'>call-path-element</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L1702" class="LineNr">1702 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1702'>call-path-element-length</a></span> _x: (addr handle <a href='data.mu.html#L77'>call-path-element</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L1703" class="LineNr">1703 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> copy _x <span id="L1704" class="LineNr">1704 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1705" class="LineNr">1705 </span> <span class="Delimiter">{</span> -<span id="L1706" class="LineNr">1706 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L1706" class="LineNr">1706 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L77'>call-path-element</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L1707" class="LineNr">1707 </span> compare curr, <span class="Constant">0</span> <span id="L1708" class="LineNr">1708 </span> <span class="PreProc">break-if-=</span> <span id="L1709" class="LineNr">1709 </span> curr-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, next @@ -1788,8 +1787,8 @@ if ('onhashchange' in window) { <span id="L1722" class="LineNr">1722 </span><span class="CommentedCode">#? dump-table bindings</span> <span id="L1723" class="LineNr">1723 </span> <span class="muComment"># curr-word</span> <span id="L1724" class="LineNr">1724 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy _line -<span id="L1725" class="LineNr">1725 </span> <span class="PreProc">var</span> first-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data -<span id="L1726" class="LineNr">1726 </span> <span class="PreProc">var</span> curr-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *first-word-ah +<span id="L1725" class="LineNr">1725 </span> <span class="PreProc">var</span> first-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data +<span id="L1726" class="LineNr">1726 </span> <span class="PreProc">var</span> curr-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *first-word-ah <span id="L1727" class="LineNr">1727 </span> <span class="muComment">#</span> <span id="L1728" class="LineNr">1728 </span> <span class="muComment"># loop-carried dependency</span> <span id="L1729" class="LineNr">1729 </span> <span class="PreProc">var</span> curr-col/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy left-col @@ -1804,7 +1803,7 @@ if ('onhashchange' in window) { <span id="L1738" class="LineNr">1738 </span> $render-line:subsidiary: <span class="Delimiter">{</span> <span id="L1739" class="LineNr">1739 </span> <span class="Delimiter">{</span> <span id="L1740" class="LineNr">1740 </span><span class="CommentedCode">#? print-string 0, "check sub\n"</span> -<span id="L1741" class="LineNr">1741 </span> <span class="PreProc">var</span> display-subsidiary-stack?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='data.mu.html#L327'>find-in-call-paths</a> expanded-words, curr-path +<span id="L1741" class="LineNr">1741 </span> <span class="PreProc">var</span> display-subsidiary-stack?/eax: boolean <span class="Special"><-</span> <a href='data.mu.html#L327'>find-in-call-paths</a> expanded-words, curr-path <span id="L1742" class="LineNr">1742 </span> compare display-subsidiary-stack?, <span class="Constant">0</span>/false <span id="L1743" class="LineNr">1743 </span> <span class="PreProc">break-if-=</span> $render-line:subsidiary <span id="L1744" class="LineNr">1744 </span> <span class="Delimiter">}</span> @@ -1815,7 +1814,7 @@ if ('onhashchange' in window) { <span id="L1749" class="LineNr">1749 </span> <span class="PreProc">var</span> callee-h: (handle <a href='data.mu.html#L21'>function</a>) <span id="L1750" class="LineNr">1750 </span> <span class="PreProc">var</span> callee-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> address callee-h <span id="L1751" class="LineNr">1751 </span> <a href='environment.mu.html#L1846'>callee</a> functions, curr-word, callee-ah -<span id="L1752" class="LineNr">1752 </span> <span class="PreProc">var</span> _callee/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-ah +<span id="L1752" class="LineNr">1752 </span> <span class="PreProc">var</span> _callee/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-ah <span id="L1753" class="LineNr">1753 </span> <a href='environment.mu.html#L1846'>callee</a> <span class="Special"><-</span> copy _callee <span id="L1754" class="LineNr">1754 </span> compare <a href='environment.mu.html#L1846'>callee</a>, <span class="Constant">0</span> <span id="L1755" class="LineNr">1755 </span> <span class="PreProc">break-if-=</span> $render-line:subsidiary @@ -1824,7 +1823,7 @@ if ('onhashchange' in window) { <span id="L1758" class="LineNr">1758 </span> <a href='../405screen.mu.html#L523'>start-color</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">8</span>, <span class="Constant">7</span> <span id="L1759" class="LineNr">1759 </span> <a href='word.mu.html#L238'>print-word</a> <a href='../405screen.mu.html#L9'>screen</a>, curr-word <span id="L1760" class="LineNr">1760 </span> <span class="Delimiter">{</span> -<span id="L1761" class="LineNr">1761 </span> <span class="PreProc">var</span> word-len/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L106'>word-length</a> curr-word +<span id="L1761" class="LineNr">1761 </span> <span class="PreProc">var</span> word-len/eax: int <span class="Special"><-</span> <a href='word.mu.html#L106'>word-length</a> curr-word <span id="L1762" class="LineNr">1762 </span> curr-col <span class="Special"><-</span> add word-len <span id="L1763" class="LineNr">1763 </span> curr-col <span class="Special"><-</span> add <span class="Constant">2</span> <span id="L1764" class="LineNr">1764 </span> increment top-row @@ -1834,8 +1833,8 @@ if ('onhashchange' in window) { <span id="L1768" class="LineNr">1768 </span> <span class="PreProc">var</span> stack/<span class="muRegEdx">edx</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> address stack-storage <span id="L1769" class="LineNr">1769 </span> <a href='value-stack.mu.html#L8'>initialize-value-stack</a> stack, <span class="Constant">0x10</span> <span id="L1770" class="LineNr">1770 </span> <span class="Delimiter">{</span> -<span id="L1771" class="LineNr">1771 </span> <span class="PreProc">var</span> prev-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr-word, prev -<span id="L1772" class="LineNr">1772 </span> <span class="PreProc">var</span> prev-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah +<span id="L1771" class="LineNr">1771 </span> <span class="PreProc">var</span> prev-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr-word, prev +<span id="L1772" class="LineNr">1772 </span> <span class="PreProc">var</span> prev-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-word-ah <span id="L1773" class="LineNr">1773 </span> compare prev-word, <span class="Constant">0</span> <span id="L1774" class="LineNr">1774 </span> <span class="PreProc">break-if-=</span> <span id="L1775" class="LineNr">1775 </span> <span class="PreProc">var</span> bindings2-storage: <a href='data.mu.html#L59'>table</a> @@ -1849,8 +1848,8 @@ if ('onhashchange' in window) { <span id="L1783" class="LineNr">1783 </span> <a href='table.mu.html#L1'>initialize-table</a> callee-bindings, <span class="Constant">0x10</span> <span id="L1784" class="LineNr">1784 </span> <a href='rpn.mu.html#L828'>bind-args</a> <a href='environment.mu.html#L1846'>callee</a>, stack, callee-bindings <span id="L1785" class="LineNr">1785 </span> <span class="muComment"># obtain body</span> -<span id="L1786" class="LineNr">1786 </span> <span class="PreProc">var</span> callee-body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1846'>callee</a>, body -<span id="L1787" class="LineNr">1787 </span> <span class="PreProc">var</span> callee-body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-body-ah +<span id="L1786" class="LineNr">1786 </span> <span class="PreProc">var</span> callee-body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1846'>callee</a>, body +<span id="L1787" class="LineNr">1787 </span> <span class="PreProc">var</span> callee-body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-body-ah <span id="L1788" class="LineNr">1788 </span> <span class="PreProc">var</span> callee-body-first-word/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> callee-body, data <span id="L1789" class="LineNr">1789 </span> <span class="muComment"># - render subsidiary stack</span> <span id="L1790" class="LineNr">1790 </span> <a href='data.mu.html#L515'>push-to-call-path-element</a> curr-path, callee-body-first-word <span class="muComment"># leak</span> @@ -1880,18 +1879,18 @@ if ('onhashchange' in window) { <span id="L1814" class="LineNr">1814 </span> <span class="muComment"># cache cursor column if necessary</span> <span id="L1815" class="LineNr">1815 </span> $render-line:cache-cursor-column: <span class="Delimiter">{</span> <span id="L1816" class="LineNr">1816 </span> <span class="Delimiter">{</span> -<span id="L1817" class="LineNr">1817 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='data.mu.html#L348'>call-path-element-match?</a> curr-path, cursor-call-path +<span id="L1817" class="LineNr">1817 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='data.mu.html#L348'>call-path-element-match?</a> curr-path, cursor-call-path <span id="L1818" class="LineNr">1818 </span> compare found?, <span class="Constant">0</span>/false <span id="L1819" class="LineNr">1819 </span> <span class="PreProc">break-if-=</span> $render-line:cache-cursor-column <span id="L1820" class="LineNr">1820 </span> <span class="Delimiter">}</span> <span id="L1821" class="LineNr">1821 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> copy cursor-row-addr <span id="L1822" class="LineNr">1822 </span> <span class="Delimiter">{</span> -<span id="L1823" class="LineNr">1823 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy top-row +<span id="L1823" class="LineNr">1823 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> copy top-row <span id="L1824" class="LineNr">1824 </span> copy-to *dest, src <span id="L1825" class="LineNr">1825 </span> <span class="Delimiter">}</span> <span id="L1826" class="LineNr">1826 </span> dest <span class="Special"><-</span> copy cursor-col-addr <span id="L1827" class="LineNr">1827 </span> copy-to *dest, old-col -<span id="L1828" class="LineNr">1828 </span> <span class="PreProc">var</span> cursor-index-in-word/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L199'>cursor-index</a> curr-word +<span id="L1828" class="LineNr">1828 </span> <span class="PreProc">var</span> cursor-index-in-word/eax: int <span class="Special"><-</span> <a href='word.mu.html#L199'>cursor-index</a> curr-word <span id="L1829" class="LineNr">1829 </span> add-to *dest, cursor-index-in-word <span id="L1830" class="LineNr">1830 </span> <span class="Delimiter">}</span> <span id="L1831" class="LineNr">1831 </span> <span class="muComment"># loop update</span> @@ -1948,19 +1947,19 @@ if ('onhashchange' in window) { <span id="L1882" class="LineNr">1882 </span> compare *top-addr, <span class="Constant">0</span> <span id="L1883" class="LineNr">1883 </span> <span class="PreProc">break-if-<=</span> <span id="L1884" class="LineNr">1884 </span> decrement *top-addr -<span id="L1885" class="LineNr">1885 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> stack-addr, data -<span id="L1886" class="LineNr">1886 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L1885" class="LineNr">1885 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> stack-addr, data +<span id="L1886" class="LineNr">1886 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L1887" class="LineNr">1887 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L1888" class="LineNr">1888 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEcx">ecx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> -<span id="L1889" class="LineNr">1889 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset +<span id="L1889" class="LineNr">1889 </span> <span class="PreProc">var</span> val/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset <span id="L1890" class="LineNr">1890 </span> <a href='value.mu.html#L1'>render-value-at</a> <a href='../405screen.mu.html#L9'>screen</a>, curr-row, indented-col, val, <span class="Constant">1</span>/top-level=true <span id="L1891" class="LineNr">1891 </span> <span class="Delimiter">{</span> -<span id="L1892" class="LineNr">1892 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='value.mu.html#L218'>value-width</a> val, <span class="Constant">1</span> +<span id="L1892" class="LineNr">1892 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> <a href='value.mu.html#L218'>value-width</a> val, <span class="Constant">1</span> <span id="L1893" class="LineNr">1893 </span> compare width, max-width <span id="L1894" class="LineNr">1894 </span> <span class="PreProc">break-if-<=</span> <span id="L1895" class="LineNr">1895 </span> max-width <span class="Special"><-</span> copy width <span id="L1896" class="LineNr">1896 </span> <span class="Delimiter">}</span> -<span id="L1897" class="LineNr">1897 </span> <span class="PreProc">var</span> height/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='value.mu.html#L314'>value-height</a> val +<span id="L1897" class="LineNr">1897 </span> <span class="PreProc">var</span> height/eax: int <span class="Special"><-</span> <a href='value.mu.html#L314'>value-height</a> val <span id="L1898" class="LineNr">1898 </span> curr-row <span class="Special"><-</span> add height <span id="L1899" class="LineNr">1899 </span> <span class="PreProc">loop</span> <span id="L1900" class="LineNr">1900 </span> <span class="Delimiter">}</span> @@ -1973,7 +1972,7 @@ if ('onhashchange' in window) { <span id="L1907" class="LineNr">1907 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, top-row, left-col <span id="L1908" class="LineNr">1908 </span> <a href='word.mu.html#L238'>print-word</a> <a href='../405screen.mu.html#L9'>screen</a>, <a href='word.mu.html#L114'>final-word</a> <span id="L1909" class="LineNr">1909 </span> <span class="Delimiter">{</span> -<span id="L1910" class="LineNr">1910 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L106'>word-length</a> <a href='word.mu.html#L114'>final-word</a> +<span id="L1910" class="LineNr">1910 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> <a href='word.mu.html#L106'>word-length</a> <a href='word.mu.html#L114'>final-word</a> <span id="L1911" class="LineNr">1911 </span> compare width, max-width <span id="L1912" class="LineNr">1912 </span> <span class="PreProc">break-if-<=</span> <span id="L1913" class="LineNr">1913 </span> max-width <span class="Special"><-</span> copy width @@ -1993,9 +1992,9 @@ if ('onhashchange' in window) { <span id="L1927" class="LineNr">1927 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1927'>render-function-menu</a></span> _env: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Delimiter">{</span> <span id="L1928" class="LineNr">1928 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _env <span id="L1929" class="LineNr">1929 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L1930" class="LineNr">1930 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L1930" class="LineNr">1930 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L1931" class="LineNr">1931 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1932" class="LineNr">1932 </span> <span class="PreProc">var</span> nrows/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, nrows +<span id="L1932" class="LineNr">1932 </span> <span class="PreProc">var</span> nrows/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, nrows <span id="L1933" class="LineNr">1933 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, *nrows, <span class="Constant">0</span> <span id="L1934" class="LineNr">1934 </span> <a href='../405screen.mu.html#L569'>start-reverse-video</a> <a href='../405screen.mu.html#L9'>screen</a> <span id="L1935" class="LineNr">1935 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">" ctrl-q "</span> @@ -2030,9 +2029,9 @@ if ('onhashchange' in window) { <span id="L1964" class="LineNr">1964 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L1964'>render-sandbox-menu</a></span> _env: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Delimiter">{</span> <span id="L1965" class="LineNr">1965 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _env <span id="L1966" class="LineNr">1966 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L1967" class="LineNr">1967 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L1967" class="LineNr">1967 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L1968" class="LineNr">1968 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1969" class="LineNr">1969 </span> <span class="PreProc">var</span> nrows/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, nrows +<span id="L1969" class="LineNr">1969 </span> <span class="PreProc">var</span> nrows/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, nrows <span id="L1970" class="LineNr">1970 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, *nrows, <span class="Constant">0</span> <span id="L1971" class="LineNr">1971 </span> <a href='../405screen.mu.html#L569'>start-reverse-video</a> <a href='../405screen.mu.html#L9'>screen</a> <span id="L1972" class="LineNr">1972 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">" ctrl-q "</span> @@ -2079,19 +2078,19 @@ if ('onhashchange' in window) { <span id="L2013" class="LineNr">2013 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L2013'>clear-canvas</a></span> _env: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Delimiter">{</span> <span id="L2014" class="LineNr">2014 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _env <span id="L2015" class="LineNr">2015 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L2016" class="LineNr">2016 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L2016" class="LineNr">2016 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L2017" class="LineNr">2017 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L2018" class="LineNr">2018 </span> <a href='../405screen.mu.html#L78'>clear-screen</a> <a href='../405screen.mu.html#L9'>screen</a> -<span id="L2019" class="LineNr">2019 </span> <span class="PreProc">var</span> nrows/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, nrows +<span id="L2019" class="LineNr">2019 </span> <span class="PreProc">var</span> nrows/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, nrows <span id="L2020" class="LineNr">2020 </span> <span class="PreProc">var</span> sep-col/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, code-separator-col <span id="L2021" class="LineNr">2021 </span> <span class="muComment"># divider</span> <span id="L2022" class="LineNr">2022 </span> <a href='box.mu.html#L38'>draw-vertical-line</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>, *nrows, *sep-col <span id="L2023" class="LineNr">2023 </span> <span class="muComment"># primitives</span> -<span id="L2024" class="LineNr">2024 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='environment.mu.html#L2028'>render-primitives</a> <a href='../405screen.mu.html#L9'>screen</a>, *nrows, *sep-col +<span id="L2024" class="LineNr">2024 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='environment.mu.html#L2028'>render-primitives</a> <a href='../405screen.mu.html#L9'>screen</a>, *nrows, *sep-col <span id="L2025" class="LineNr">2025 </span><span class="Delimiter">}</span> <span id="L2026" class="LineNr">2026 </span> <span id="L2027" class="LineNr">2027 </span><span class="muComment"># return value: top-most row written to</span> -<span id="L2028" class="LineNr">2028 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L2028'>render-primitives</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), bottom-margin-row: int, right-col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L2028" class="LineNr">2028 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L2028'>render-primitives</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), bottom-margin-row: int, right-col: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L2029" class="LineNr">2029 </span> <span class="muComment"># render primitives from the bottom of the screen upward</span> <span id="L2030" class="LineNr">2030 </span> <span class="PreProc">var</span> row/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy bottom-margin-row <span id="L2031" class="LineNr">2031 </span> row <span class="Special"><-</span> subtract <span class="Constant">1</span> @@ -2120,12 +2119,12 @@ if ('onhashchange' in window) { <span id="L2054" class="LineNr">2054 </span> <span class="muComment"># decrement row if necessary</span> <span id="L2055" class="LineNr">2055 </span> <span class="PreProc">var</span> new-col/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy col <span id="L2056" class="LineNr">2056 </span> <span class="PreProc">var</span> heading/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _heading -<span id="L2057" class="LineNr">2057 </span> <span class="PreProc">var</span> len1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> length heading +<span id="L2057" class="LineNr">2057 </span> <span class="PreProc">var</span> len1/eax: int <span class="Special"><-</span> length heading <span id="L2058" class="LineNr">2058 </span> new-col <span class="Special"><-</span> add len1 <span id="L2059" class="LineNr">2059 </span> <span class="PreProc">var</span> contents/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _contents -<span id="L2060" class="LineNr">2060 </span> <span class="PreProc">var</span> len2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> length contents +<span id="L2060" class="LineNr">2060 </span> <span class="PreProc">var</span> len2/eax: int <span class="Special"><-</span> length contents <span id="L2061" class="LineNr">2061 </span> new-col <span class="Special"><-</span> add len2 -<span id="L2062" class="LineNr">2062 </span> <span class="PreProc">var</span> bound/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy right-col +<span id="L2062" class="LineNr">2062 </span> <span class="PreProc">var</span> bound/eax: int <span class="Special"><-</span> copy right-col <span id="L2063" class="LineNr">2063 </span> bound <span class="Special"><-</span> decrement <span id="L2064" class="LineNr">2064 </span> <span class="Delimiter">{</span> <span id="L2065" class="LineNr">2065 </span> compare new-col, bound @@ -2147,7 +2146,7 @@ if ('onhashchange' in window) { <span id="L2081" class="LineNr">2081 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> copy _env <span id="L2082" class="LineNr">2082 </span> <span class="PreProc">var</span> functions/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> env, functions <span id="L2083" class="LineNr">2083 </span> <span class="Delimiter">{</span> -<span id="L2084" class="LineNr">2084 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *functions +<span id="L2084" class="LineNr">2084 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *functions <span id="L2085" class="LineNr">2085 </span> compare curr, <span class="Constant">0</span> <span id="L2086" class="LineNr">2086 </span> <span class="PreProc">break-if-=</span> <span id="L2087" class="LineNr">2087 </span> row, dummy-col <span class="Special"><-</span> <a href='environment.mu.html#L2096'>render-function-right-aligned</a> <a href='../405screen.mu.html#L9'>screen</a>, row, right-col, curr @@ -2163,10 +2162,10 @@ if ('onhashchange' in window) { <span id="L2097" class="LineNr">2097 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy right-col <span id="L2098" class="LineNr">2098 </span> col <span class="Special"><-</span> subtract <span class="Constant">1</span>/function-right-margin <span id="L2099" class="LineNr">2099 </span> <span class="PreProc">var</span> col2/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy col -<span id="L2100" class="LineNr">2100 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='data.mu.html#L583'>function-width</a> f +<span id="L2100" class="LineNr">2100 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> <a href='data.mu.html#L583'>function-width</a> f <span id="L2101" class="LineNr">2101 </span> col <span class="Special"><-</span> subtract width <span id="L2102" class="LineNr">2102 </span> <span class="PreProc">var</span> new-row/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy row -<span id="L2103" class="LineNr">2103 </span> <span class="PreProc">var</span> height/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='data.mu.html#L621'>function-height</a> f +<span id="L2103" class="LineNr">2103 </span> <span class="PreProc">var</span> height/eax: int <span class="Special"><-</span> <a href='data.mu.html#L621'>function-height</a> f <span id="L2104" class="LineNr">2104 </span> new-row <span class="Special"><-</span> add height <span id="L2105" class="LineNr">2105 </span> new-row <span class="Special"><-</span> decrement <span id="L2106" class="LineNr">2106 </span> col <span class="Special"><-</span> subtract <span class="Constant">1</span>/function-left-padding @@ -2189,8 +2188,8 @@ if ('onhashchange' in window) { <span id="L2123" class="LineNr">2123 </span> <span class="PreProc">var</span> args/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, args <span id="L2124" class="LineNr">2124 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <a href='../405screen.mu.html#L9'>screen</a>, row, col <span id="L2125" class="LineNr">2125 </span> <a href='word.mu.html#L245'>print-words-in-reverse</a> <a href='../405screen.mu.html#L9'>screen</a>, args -<span id="L2126" class="LineNr">2126 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name -<span id="L2127" class="LineNr">2127 </span> <span class="PreProc">var</span> name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *name-ah +<span id="L2126" class="LineNr">2126 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L2127" class="LineNr">2127 </span> <span class="PreProc">var</span> name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *name-ah <span id="L2128" class="LineNr">2128 </span> <a href='../405screen.mu.html#L541'>start-bold</a> <a href='../405screen.mu.html#L9'>screen</a> <span id="L2129" class="LineNr">2129 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, name <span id="L2130" class="LineNr">2130 </span> <a href='../405screen.mu.html#L506'>reset-formatting</a> <a href='../405screen.mu.html#L9'>screen</a> @@ -2202,15 +2201,15 @@ if ('onhashchange' in window) { <span id="L2136" class="LineNr">2136 </span> add-to col, <span class="Constant">2</span> <span id="L2137" class="LineNr">2137 </span> <span class="PreProc">var</span> cursor-row/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, cursor-row <span id="L2138" class="LineNr">2138 </span> <span class="PreProc">var</span> cursor-col/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, cursor-col -<span id="L2139" class="LineNr">2139 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, cursor-word -<span id="L2140" class="LineNr">2140 </span> <span class="PreProc">var</span> _cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L2139" class="LineNr">2139 </span> <span class="PreProc">var</span> cursor-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, cursor-word +<span id="L2140" class="LineNr">2140 </span> <span class="PreProc">var</span> _cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L2141" class="LineNr">2141 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _cursor-word -<span id="L2142" class="LineNr">2142 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body -<span id="L2143" class="LineNr">2143 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L2142" class="LineNr">2142 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, body +<span id="L2143" class="LineNr">2143 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L2144" class="LineNr">2144 </span> <a href='environment.mu.html#L1634'>render-line-without-stack</a> <a href='../405screen.mu.html#L9'>screen</a>, body, row, col, cursor-word, cursor-row, cursor-col <span id="L2145" class="LineNr">2145 </span><span class="Delimiter">}</span> <span id="L2146" class="LineNr">2146 </span> -<span id="L2147" class="LineNr">2147 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L2147'>real-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L2147" class="LineNr">2147 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L2147'>real-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L2148" class="LineNr">2148 </span> <span class="muComment"># if g == newline return true</span> <span id="L2149" class="LineNr">2149 </span> compare g, <span class="Constant">0xa</span> <span id="L2150" class="LineNr">2150 </span> <span class="Delimiter">{</span> diff --git a/html/linux/tile/float-stack.mu.html b/html/linux/tile/float-stack.mu.html index 5a092a31..e0c25c97 100644 --- a/html/linux/tile/float-stack.mu.html +++ b/html/linux/tile/float-stack.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEcx { color: #af875f; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.muRegEdx { color: #878700; } -.muRegEax { color: #875f00; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.Constant { color: #008787; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.Special { color: #ff6060; } --> </style> @@ -69,13 +68,13 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='float-stack.mu.html#L1'>float-stack</a>) <span class="Special"><-</span> copy _self <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data <span id="L9" class="LineNr"> 9 </span> populate d, n -<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L11" class="LineNr">11 </span> copy-to *top, <span class="Constant">0</span> <span id="L12" class="LineNr">12 </span><span class="Delimiter">}</span> <span id="L13" class="LineNr">13 </span> <span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='float-stack.mu.html#L14'>clear-float-stack</a></span> _self: (addr <a href='float-stack.mu.html#L1'>float-stack</a>) <span class="Delimiter">{</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='float-stack.mu.html#L1'>float-stack</a>) <span class="Special"><-</span> copy _self -<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L17" class="LineNr">17 </span> copy-to *top, <span class="Constant">0</span> <span id="L18" class="LineNr">18 </span><span class="Delimiter">}</span> <span id="L19" class="LineNr">19 </span> @@ -83,7 +82,7 @@ if ('onhashchange' in window) { <span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='float-stack.mu.html#L1'>float-stack</a>) <span class="Special"><-</span> copy _self <span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array float) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> data/eax: (addr array float) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> <span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> val/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy _val @@ -102,15 +101,15 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr">40 </span> <span class="Delimiter">}</span> <span id="L41" class="LineNr">41 </span> subtract-from *top-addr, <span class="Constant">1</span> <span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L43" class="LineNr">43 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array float) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L43" class="LineNr">43 </span> <span class="PreProc">var</span> data/eax: (addr array float) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L44" class="LineNr">44 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr -<span id="L45" class="LineNr">45 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> +<span id="L45" class="LineNr">45 </span> <span class="PreProc">var</span> result-addr/eax: (addr float) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> <span id="L46" class="LineNr">46 </span> <span class="PreProc">return</span> *result-addr <span id="L47" class="LineNr">47 </span><span class="Delimiter">}</span> <span id="L48" class="LineNr">48 </span> -<span id="L49" class="LineNr">49 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='float-stack.mu.html#L49'>float-stack-empty?</a></span> _self: (addr <a href='float-stack.mu.html#L1'>float-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L49" class="LineNr">49 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='float-stack.mu.html#L49'>float-stack-empty?</a></span> _self: (addr <a href='float-stack.mu.html#L1'>float-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L50" class="LineNr">50 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='float-stack.mu.html#L1'>float-stack</a>) <span class="Special"><-</span> copy _self -<span id="L51" class="LineNr">51 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L51" class="LineNr">51 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L52" class="LineNr">52 </span> compare *top-addr, <span class="Constant">0</span> <span id="L53" class="LineNr">53 </span> <span class="Delimiter">{</span> <span id="L54" class="LineNr">54 </span> <span class="PreProc">break-if-!=</span> @@ -119,9 +118,9 @@ if ('onhashchange' in window) { <span id="L57" class="LineNr">57 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L58" class="LineNr">58 </span><span class="Delimiter">}</span> <span id="L59" class="LineNr">59 </span> -<span id="L60" class="LineNr">60 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='float-stack.mu.html#L60'>float-stack-length</a></span> _self: (addr <a href='float-stack.mu.html#L1'>float-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L60" class="LineNr">60 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='float-stack.mu.html#L60'>float-stack-length</a></span> _self: (addr <a href='float-stack.mu.html#L1'>float-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L61" class="LineNr">61 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='float-stack.mu.html#L1'>float-stack</a>) <span class="Special"><-</span> copy _self -<span id="L62" class="LineNr">62 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L62" class="LineNr">62 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L63" class="LineNr">63 </span> <span class="PreProc">return</span> *top-addr <span id="L64" class="LineNr">64 </span><span class="Delimiter">}</span> </pre> diff --git a/html/linux/tile/gap-buffer.mu.html b/html/linux/tile/gap-buffer.mu.html index 0aac2736..fb081947 100644 --- a/html/linux/tile/gap-buffer.mu.html +++ b/html/linux/tile/gap-buffer.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdi { color: #87ffd7; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .LineNr { } -.muRegEdx { color: #878700; } -.muRegEcx { color: #af875f; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.Constant { color: #008787; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muComment { color: #005faf; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> @@ -69,9 +68,9 @@ if ('onhashchange' in window) { <span id="L5" class="LineNr"> 5 </span> <span id="L6" class="LineNr"> 6 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L6'>initialize-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left +<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left <span id="L9" class="LineNr"> 9 </span> <a href='grapheme-stack.mu.html#L6'>initialize-grapheme-stack</a> left, <span class="Constant">0x10</span>/max-word-size -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right <span id="L11" class="LineNr"> 11 </span> <a href='grapheme-stack.mu.html#L6'>initialize-grapheme-stack</a> right, <span class="Constant">0x10</span>/max-word-size <span id="L12" class="LineNr"> 12 </span><span class="Delimiter">}</span> <span id="L13" class="LineNr"> 13 </span> @@ -82,10 +81,10 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L19" class="LineNr"> 19 </span> <a href='../108write.subx.html#L24'>write</a> stream, s <span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">{</span> -<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> stream +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> stream <span id="L22" class="LineNr"> 22 </span> compare done?, <span class="Constant">0</span>/false <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">break-if-!=</span> -<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> stream +<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> stream <span id="L25" class="LineNr"> 25 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> self, g <span id="L26" class="LineNr"> 26 </span> <span class="PreProc">loop</span> <span id="L27" class="LineNr"> 27 </span> <span class="Delimiter">}</span> @@ -101,9 +100,9 @@ if ('onhashchange' in window) { <span id="L37" class="LineNr"> 37 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L37'>emit-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>), out: (addr stream byte) <span class="Delimiter">{</span> <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L39" class="LineNr"> 39 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> out -<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left +<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left <span id="L41" class="LineNr"> 41 </span> <a href='gap-buffer.mu.html#L47'>emit-stack-from-bottom</a> left, out -<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right +<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right <span id="L43" class="LineNr"> 43 </span> <a href='gap-buffer.mu.html#L65'>emit-stack-from-top</a> right, out <span id="L44" class="LineNr"> 44 </span><span class="Delimiter">}</span> <span id="L45" class="LineNr"> 45 </span> @@ -111,10 +110,10 @@ if ('onhashchange' in window) { <span id="L47" class="LineNr"> 47 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L47'>emit-stack-from-bottom</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), out: (addr stream byte) <span class="Delimiter">{</span> <span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L50" class="LineNr"> 50 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L50" class="LineNr"> 50 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L54" class="LineNr"> 54 </span> <span class="Delimiter">{</span> <span id="L55" class="LineNr"> 55 </span> compare i, *top-addr <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">break-if->=</span> @@ -129,10 +128,10 @@ if ('onhashchange' in window) { <span id="L65" class="LineNr"> 65 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L65'>emit-stack-from-top</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), out: (addr stream byte) <span class="Delimiter">{</span> <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> -<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy *top-addr <span id="L72" class="LineNr"> 72 </span> i <span class="Special"><-</span> decrement <span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> <span id="L74" class="LineNr"> 74 </span> compare i, <span class="Constant">0</span> @@ -146,33 +145,33 @@ 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="muFunction"><a href='gap-buffer.mu.html#L83'>render-gap-buffer</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _gap: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _gap -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> gap, left +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> gap, left <span id="L86" class="LineNr"> 86 </span> <a href='grapheme-stack.mu.html#L78'>render-stack-from-bottom</a> left, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> gap, right +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> gap, right <span id="L88" class="LineNr"> 88 </span> <a href='grapheme-stack.mu.html#L97'>render-stack-from-top</a> right, <a href='../405screen.mu.html#L9'>screen</a> <span id="L89" class="LineNr"> 89 </span><span class="Delimiter">}</span> <span id="L90" class="LineNr"> 90 </span> -<span id="L91" class="LineNr"> 91 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L91'>gap-buffer-length</a></span> _gap: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L91" class="LineNr"> 91 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L91'>gap-buffer-length</a></span> _gap: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _gap -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> gap, left -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> left, <a href='../203stack.subx.html#L338'>top</a> +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> gap, left +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> left, <a href='../203stack.subx.html#L338'>top</a> <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> left-length/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *tmp <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> right/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> gap, right <span id="L97" class="LineNr"> 97 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> right, <a href='../203stack.subx.html#L338'>top</a> -<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tmp +<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> copy *tmp <span id="L99" class="LineNr"> 99 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add left-length <span id="L100" class="LineNr">100 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L101" class="LineNr">101 </span><span class="Delimiter">}</span> <span id="L102" class="LineNr">102 </span> <span id="L103" class="LineNr">103 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>), g: grapheme <span class="Delimiter">{</span> <span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left +<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left <span id="L106" class="LineNr">106 </span> <a href='grapheme-stack.mu.html#L31'>push-grapheme-stack</a> left, g <span id="L107" class="LineNr">107 </span><span class="Delimiter">}</span> <span id="L108" class="LineNr">108 </span> <span id="L109" class="LineNr">109 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L109'>gap-to-start</a></span> self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L110" class="LineNr">110 </span> <span class="Delimiter">{</span> -<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> self +<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> curr/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> self <span id="L112" class="LineNr">112 </span> compare curr, <span class="Constant">-1</span> <span id="L113" class="LineNr">113 </span> <span class="PreProc">loop-if-!=</span> <span id="L114" class="LineNr">114 </span> <span class="Delimiter">}</span> @@ -180,29 +179,29 @@ if ('onhashchange' in window) { <span id="L116" class="LineNr">116 </span> <span id="L117" class="LineNr">117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L117'>gap-to-end</a></span> self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L118" class="LineNr">118 </span> <span class="Delimiter">{</span> -<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L139'>gap-right</a> self +<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> curr/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L139'>gap-right</a> self <span id="L120" class="LineNr">120 </span> compare curr, <span class="Constant">-1</span> <span id="L121" class="LineNr">121 </span> <span class="PreProc">loop-if-!=</span> <span id="L122" class="LineNr">122 </span> <span class="Delimiter">}</span> <span id="L123" class="LineNr">123 </span><span class="Delimiter">}</span> <span id="L124" class="LineNr">124 </span> -<span id="L125" class="LineNr">125 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L125'>gap-at-start?</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L125" class="LineNr">125 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L125'>gap-at-start?</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L20'>grapheme-stack-empty?</a> left +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L20'>grapheme-stack-empty?</a> left <span id="L129" class="LineNr">129 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L130" class="LineNr">130 </span><span class="Delimiter">}</span> <span id="L131" class="LineNr">131 </span> -<span id="L132" class="LineNr">132 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L132'>gap-at-end?</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L132" class="LineNr">132 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L132'>gap-at-end?</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L20'>grapheme-stack-empty?</a> right +<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L20'>grapheme-stack-empty?</a> right <span id="L136" class="LineNr">136 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L137" class="LineNr">137 </span><span class="Delimiter">}</span> <span id="L138" class="LineNr">138 </span> -<span id="L139" class="LineNr">139 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L139'>gap-right</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L139" class="LineNr">139 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L139'>gap-right</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right <span id="L143" class="LineNr">143 </span> g <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> right <span id="L144" class="LineNr">144 </span> compare g, <span class="Constant">-1</span> @@ -214,9 +213,9 @@ if ('onhashchange' in window) { <span id="L150" class="LineNr">150 </span> <span class="PreProc">return</span> g <span id="L151" class="LineNr">151 </span><span class="Delimiter">}</span> <span id="L152" class="LineNr">152 </span> -<span id="L153" class="LineNr">153 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L153'>gap-left</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L153" class="LineNr">153 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L153'>gap-left</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L154" class="LineNr">154 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L156" class="LineNr">156 </span> <span class="Delimiter">{</span> <span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left <span id="L158" class="LineNr">158 </span> g <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> left @@ -230,45 +229,45 @@ if ('onhashchange' in window) { <span id="L166" class="LineNr">166 </span> <span class="PreProc">return</span> g <span id="L167" class="LineNr">167 </span><span class="Delimiter">}</span> <span id="L168" class="LineNr">168 </span> -<span id="L169" class="LineNr">169 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L169'>gap-index</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left -<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> left, <a href='../203stack.subx.html#L338'>top</a> -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L169" class="LineNr">169 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L169'>gap-index</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> self/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self +<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left +<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> left, <a href='../203stack.subx.html#L338'>top</a> +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> copy *top-addr <span id="L174" class="LineNr">174 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L175" class="LineNr">175 </span><span class="Delimiter">}</span> <span id="L176" class="LineNr">176 </span> -<span id="L177" class="LineNr">177 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L177'>first-grapheme-in-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L177" class="LineNr">177 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L177'>first-grapheme-in-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L179" class="LineNr">179 </span> <span class="muComment"># try to read from left</span> -<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left +<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left <span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> left, <a href='../203stack.subx.html#L338'>top</a> <span id="L182" class="LineNr">182 </span> compare *top-addr, <span class="Constant">0</span> <span id="L183" class="LineNr">183 </span> <span class="Delimiter">{</span> <span id="L184" class="LineNr">184 </span> <span class="PreProc">break-if-<=</span> -<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> left, data -<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L187" class="LineNr">187 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, <span class="Constant">0</span> +<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> left, data +<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L187" class="LineNr">187 </span> <span class="PreProc">var</span> result-addr/eax: (addr grapheme) <span class="Special"><-</span> index data, <span class="Constant">0</span> <span id="L188" class="LineNr">188 </span> <span class="PreProc">return</span> *result-addr <span id="L189" class="LineNr">189 </span> <span class="Delimiter">}</span> <span id="L190" class="LineNr">190 </span> <span class="muComment"># try to read from right</span> -<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right +<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right <span id="L192" class="LineNr">192 </span> top-addr <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> right, <a href='../203stack.subx.html#L338'>top</a> <span id="L193" class="LineNr">193 </span> compare *top-addr, <span class="Constant">0</span> <span id="L194" class="LineNr">194 </span> <span class="Delimiter">{</span> <span id="L195" class="LineNr">195 </span> <span class="PreProc">break-if-<=</span> -<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> right, data -<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> right, data +<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L199" class="LineNr">199 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement -<span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> +<span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> result-addr/eax: (addr grapheme) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> <span id="L201" class="LineNr">201 </span> <span class="PreProc">return</span> *result-addr <span id="L202" class="LineNr">202 </span> <span class="Delimiter">}</span> <span id="L203" class="LineNr">203 </span> <span class="muComment"># give up</span> <span id="L204" class="LineNr">204 </span> <span class="PreProc">return</span> <span class="Constant">-1</span> <span id="L205" class="LineNr">205 </span><span class="Delimiter">}</span> <span id="L206" class="LineNr">206 </span> -<span id="L207" class="LineNr">207 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L207'>grapheme-before-cursor-in-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L207" class="LineNr">207 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L207'>grapheme-before-cursor-in-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L209" class="LineNr">209 </span> <span class="muComment"># try to read from left</span> <span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left @@ -276,7 +275,7 @@ if ('onhashchange' in window) { <span id="L212" class="LineNr">212 </span> compare *top-addr, <span class="Constant">0</span> <span id="L213" class="LineNr">213 </span> <span class="Delimiter">{</span> <span id="L214" class="LineNr">214 </span> <span class="PreProc">break-if-<=</span> -<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> left +<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> left <span id="L216" class="LineNr">216 </span> <a href='grapheme-stack.mu.html#L31'>push-grapheme-stack</a> left, <a href='data.mu.html#L82'>result</a> <span id="L217" class="LineNr">217 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L218" class="LineNr">218 </span> <span class="Delimiter">}</span> @@ -285,19 +284,19 @@ if ('onhashchange' in window) { <span id="L221" class="LineNr">221 </span><span class="Delimiter">}</span> <span id="L222" class="LineNr">222 </span> <span id="L223" class="LineNr">223 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L223'>delete-before-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Delimiter">{</span> -<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left -<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> left +<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> self/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self +<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left +<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> left <span id="L227" class="LineNr">227 </span><span class="Delimiter">}</span> <span id="L228" class="LineNr">228 </span> -<span id="L229" class="LineNr">229 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L229'>pop-after-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> -<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right -<span id="L232" class="LineNr">232 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> right +<span id="L229" class="LineNr">229 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L229'>pop-after-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> +<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> self/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self +<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, right +<span id="L232" class="LineNr">232 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> right <span id="L233" class="LineNr">233 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L234" class="LineNr">234 </span><span class="Delimiter">}</span> <span id="L235" class="LineNr">235 </span> -<span id="L236" class="LineNr">236 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>), s: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L236" class="LineNr">236 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L238" class="LineNr">238 </span> <span class="muComment"># complication: graphemes may be multiple bytes</span> <span id="L239" class="LineNr">239 </span> <span class="muComment"># so don't rely on length</span> @@ -307,7 +306,7 @@ if ('onhashchange' in window) { <span id="L243" class="LineNr">243 </span> <a href='../108write.subx.html#L24'>write</a> expected-stream, s <span id="L244" class="LineNr">244 </span> <span class="muComment"># compare left</span> <span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> left/<span class="muRegEdx">edx</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left -<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>prefix-match?</a> left, expected-stream +<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>prefix-match?</a> left, expected-stream <span id="L247" class="LineNr">247 </span> compare <a href='data.mu.html#L82'>result</a>, <span class="Constant">0</span>/false <span id="L248" class="LineNr">248 </span> <span class="Delimiter">{</span> <span id="L249" class="LineNr">249 </span> <span class="PreProc">break-if-!=</span> @@ -331,13 +330,13 @@ if ('onhashchange' in window) { <span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> g/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> address _g <span id="L268" class="LineNr">268 </span> <a href='gap-buffer.mu.html#L6'>initialize-gap-buffer</a> g <span id="L269" class="LineNr">269 </span> <span class="muComment">#</span> -<span id="L270" class="LineNr">270 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L270" class="LineNr">270 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L271" class="LineNr">271 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c <span id="L272" class="LineNr">272 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c <span id="L273" class="LineNr">273 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c <span id="L274" class="LineNr">274 </span> <span class="muComment"># gap is at end (right is empty)</span> -<span id="L275" class="LineNr">275 </span> <span class="PreProc">var</span> _result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> -<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _result +<span id="L275" class="LineNr">275 </span> <span class="PreProc">var</span> _result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> +<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> copy _result <span id="L277" class="LineNr">277 </span> <a href='../102test.subx.html#L23'>check-ints-equal</a> <a href='data.mu.html#L82'>result</a>, <span class="Constant">1</span>, <span class="Constant">"F - test-gap-buffer-equal-from-end?"</span> <span id="L278" class="LineNr">278 </span><span class="Delimiter">}</span> <span id="L279" class="LineNr">279 </span> @@ -346,14 +345,14 @@ if ('onhashchange' in window) { <span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> g/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> address _g <span id="L283" class="LineNr">283 </span> <a href='gap-buffer.mu.html#L6'>initialize-gap-buffer</a> g <span id="L284" class="LineNr">284 </span> <span class="muComment">#</span> -<span id="L285" class="LineNr">285 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L285" class="LineNr">285 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L286" class="LineNr">286 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c <span id="L287" class="LineNr">287 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c <span id="L288" class="LineNr">288 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c -<span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> g +<span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> g <span id="L290" class="LineNr">290 </span> <span class="muComment"># gap is in the middle</span> -<span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> _result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> -<span id="L292" class="LineNr">292 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _result +<span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> _result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> +<span id="L292" class="LineNr">292 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> copy _result <span id="L293" class="LineNr">293 </span> <a href='../102test.subx.html#L23'>check-ints-equal</a> <a href='data.mu.html#L82'>result</a>, <span class="Constant">1</span>, <span class="Constant">"F - test-gap-buffer-equal-from-middle?"</span> <span id="L294" class="LineNr">294 </span><span class="Delimiter">}</span> <span id="L295" class="LineNr">295 </span> @@ -362,26 +361,26 @@ if ('onhashchange' in window) { <span id="L298" class="LineNr">298 </span> <span class="PreProc">var</span> g/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> address _g <span id="L299" class="LineNr">299 </span> <a href='gap-buffer.mu.html#L6'>initialize-gap-buffer</a> g <span id="L300" class="LineNr">300 </span> <span class="muComment">#</span> -<span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> c/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L302" class="LineNr">302 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c <span id="L303" class="LineNr">303 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c <span id="L304" class="LineNr">304 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> g, c -<span id="L305" class="LineNr">305 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> g +<span id="L305" class="LineNr">305 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> g <span id="L306" class="LineNr">306 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> g <span id="L307" class="LineNr">307 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> g <span id="L308" class="LineNr">308 </span> <span class="muComment"># gap is at the start</span> -<span id="L309" class="LineNr">309 </span> <span class="PreProc">var</span> _result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> -<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _result +<span id="L309" class="LineNr">309 </span> <span class="PreProc">var</span> _result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> +<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> copy _result <span id="L311" class="LineNr">311 </span> <a href='../102test.subx.html#L23'>check-ints-equal</a> <a href='data.mu.html#L82'>result</a>, <span class="Constant">1</span>, <span class="Constant">"F - test-gap-buffer-equal-from-start?"</span> <span id="L312" class="LineNr">312 </span><span class="Delimiter">}</span> <span id="L313" class="LineNr">313 </span> <span id="L314" class="LineNr">314 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L314'>copy-gap-buffer</a></span> _src-ah: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>), _dest-ah: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L315" class="LineNr">315 </span> <span class="muComment"># obtain src-a, dest-a</span> -<span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _src-ah -<span id="L317" class="LineNr">317 </span> <span class="PreProc">var</span> _src-a/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _src-ah +<span id="L317" class="LineNr">317 </span> <span class="PreProc">var</span> _src-a/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L318" class="LineNr">318 </span> <span class="PreProc">var</span> src-a/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _src-a -<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _dest-ah -<span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> _dest-a/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah +<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _dest-ah +<span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> _dest-a/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah <span id="L321" class="LineNr">321 </span> <span class="PreProc">var</span> dest-a/<span class="muRegEdi">edi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _dest-a <span id="L322" class="LineNr">322 </span> <span class="muComment"># copy left grapheme-stack</span> <span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-a, left @@ -393,10 +392,10 @@ if ('onhashchange' in window) { <span id="L329" class="LineNr">329 </span> <a href='grapheme-stack.mu.html#L59'>copy-grapheme-stack</a> src, dest <span id="L330" class="LineNr">330 </span><span class="Delimiter">}</span> <span id="L331" class="LineNr">331 </span> -<span id="L332" class="LineNr">332 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L332'>gap-buffer-is-decimal-integer?</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L332" class="LineNr">332 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L332'>gap-buffer-is-decimal-integer?</a></span> _self: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L333" class="LineNr">333 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, left -<span id="L335" class="LineNr">335 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L172'>grapheme-stack-is-decimal-integer?</a> curr +<span id="L335" class="LineNr">335 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L172'>grapheme-stack-is-decimal-integer?</a> curr <span id="L336" class="LineNr">336 </span> <span class="Delimiter">{</span> <span id="L337" class="LineNr">337 </span> compare <a href='data.mu.html#L82'>result</a>, <span class="Constant">0</span>/false <span id="L338" class="LineNr">338 </span> <span class="PreProc">break-if-=</span> diff --git a/html/linux/tile/grapheme-stack.mu.html b/html/linux/tile/grapheme-stack.mu.html index 9c14b5e8..884021d3 100644 --- a/html/linux/tile/grapheme-stack.mu.html +++ b/html/linux/tile/grapheme-stack.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEcx { color: #af875f; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEdx { color: #af5f00; } .LineNr { } -.muRegEdx { color: #878700; } -.muRegEax { color: #875f00; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } -.Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } .Constant { color: #008787; } -.PreProc { color: #c000c0; } .muComment { color: #005faf; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Special { color: #ff6060; } --> </style> @@ -71,19 +70,19 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data <span id="L9" class="LineNr"> 9 </span> populate d, n -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L11" class="LineNr"> 11 </span> copy-to *top, <span class="Constant">0</span> <span id="L12" class="LineNr"> 12 </span><span class="Delimiter">}</span> <span id="L13" class="LineNr"> 13 </span> <span id="L14" class="LineNr"> 14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L14'>clear-grapheme-stack</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Delimiter">{</span> <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self -<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L17" class="LineNr"> 17 </span> copy-to *top, <span class="Constant">0</span> <span id="L18" class="LineNr"> 18 </span><span class="Delimiter">}</span> <span id="L19" class="LineNr"> 19 </span> -<span id="L20" class="LineNr"> 20 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L20'>grapheme-stack-empty?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L20" class="LineNr"> 20 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L20'>grapheme-stack-empty?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self -<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L23" class="LineNr"> 23 </span> compare *top, <span class="Constant">0</span> <span id="L24" class="LineNr"> 24 </span> <span class="Delimiter">{</span> <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">break-if-!=</span> @@ -96,15 +95,15 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr grapheme) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> -<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy _val +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> val/eax: grapheme <span class="Special"><-</span> copy _val <span id="L39" class="LineNr"> 39 </span> copy-to *dest-addr, val <span id="L40" class="LineNr"> 40 </span> add-to *top-addr, <span class="Constant">1</span> <span id="L41" class="LineNr"> 41 </span><span class="Delimiter">}</span> <span id="L42" class="LineNr"> 42 </span> -<span id="L43" class="LineNr"> 43 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L43" class="LineNr"> 43 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L46" class="LineNr"> 46 </span> <span class="Delimiter">{</span> @@ -114,19 +113,19 @@ if ('onhashchange' in window) { <span id="L50" class="LineNr"> 50 </span> <span class="Delimiter">}</span> <span id="L51" class="LineNr"> 51 </span> subtract-from *top-addr, <span class="Constant">1</span> <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr -<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> result-addr/eax: (addr grapheme) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">return</span> *result-addr <span id="L57" class="LineNr"> 57 </span><span class="Delimiter">}</span> <span id="L58" class="LineNr"> 58 </span> <span id="L59" class="LineNr"> 59 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L59'>copy-grapheme-stack</a></span> _src: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), dest: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Delimiter">{</span> <span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _src <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, data -<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, <a href='../203stack.subx.html#L338'>top</a> -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span> <span id="L67" class="LineNr"> 67 </span> compare i, *top-addr <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if->=</span> @@ -142,10 +141,10 @@ if ('onhashchange' in window) { <span id="L78" class="LineNr"> 78 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L78'>render-stack-from-bottom</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Delimiter">{</span> <span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L85" class="LineNr"> 85 </span> <span class="Delimiter">{</span> <span id="L86" class="LineNr"> 86 </span> compare i, *top-addr <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">break-if->=</span> @@ -161,10 +160,10 @@ if ('onhashchange' in window) { <span id="L97" class="LineNr"> 97 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L97'>render-stack-from-top</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Delimiter">{</span> <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> -<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy *top-addr <span id="L104" class="LineNr">104 </span> i <span class="Special"><-</span> decrement <span id="L105" class="LineNr">105 </span> <span class="Delimiter">{</span> <span id="L106" class="LineNr">106 </span> compare i, <span class="Constant">0</span> @@ -178,10 +177,10 @@ if ('onhashchange' in window) { <span id="L114" class="LineNr">114 </span> <span id="L115" class="LineNr">115 </span><span class="muComment"># compare from bottom</span> <span id="L116" class="LineNr">116 </span><span class="muComment"># beware: modifies 'stream', which must be disposed of after a false result</span> -<span id="L117" class="LineNr">117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L117'>prefix-match?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L117" class="LineNr">117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L117'>prefix-match?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> @@ -191,7 +190,7 @@ if ('onhashchange' in window) { <span id="L127" class="LineNr">127 </span> <span class="muComment"># if curr != expected, return false</span> <span id="L128" class="LineNr">128 </span> <span class="Delimiter">{</span> <span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEdx">edx</span>: (addr grapheme) <span class="Special"><-</span> index data, i -<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s +<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> expected/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s <span id="L131" class="LineNr">131 </span> <span class="Delimiter">{</span> <span id="L132" class="LineNr">132 </span> compare expected, *curr-a <span id="L133" class="LineNr">133 </span> <span class="PreProc">break-if-=</span> @@ -206,12 +205,12 @@ if ('onhashchange' in window) { <span id="L142" class="LineNr">142 </span> <span id="L143" class="LineNr">143 </span><span class="muComment"># compare from bottom</span> <span id="L144" class="LineNr">144 </span><span class="muComment"># beware: modifies 'stream', which must be disposed of after a false result</span> -<span id="L145" class="LineNr">145 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L145'>suffix-match?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L145" class="LineNr">145 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L145'>suffix-match?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data -<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L152" class="LineNr">152 </span> i <span class="Special"><-</span> decrement <span id="L153" class="LineNr">153 </span> <span class="Delimiter">{</span> @@ -219,7 +218,7 @@ if ('onhashchange' in window) { <span id="L155" class="LineNr">155 </span> <span class="PreProc">break-if-<</span> <span id="L156" class="LineNr">156 </span> <span class="Delimiter">{</span> <span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEdx">edx</span>: (addr grapheme) <span class="Special"><-</span> index data, i -<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s +<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> expected/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s <span id="L159" class="LineNr">159 </span> <span class="muComment"># if curr != expected, return false</span> <span id="L160" class="LineNr">160 </span> <span class="Delimiter">{</span> <span id="L161" class="LineNr">161 </span> compare expected, *curr-a @@ -233,14 +232,14 @@ if ('onhashchange' in window) { <span id="L169" class="LineNr">169 </span> <span class="PreProc">return</span> <span class="Constant">1</span> <span class="muComment"># true</span> <span id="L170" class="LineNr">170 </span><span class="Delimiter">}</span> <span id="L171" class="LineNr">171 </span> -<span id="L172" class="LineNr">172 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L172'>grapheme-stack-is-decimal-integer?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L172" class="LineNr">172 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L172'>grapheme-stack-is-decimal-integer?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> copy _self -<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data +<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> data/<span class="muRegEdx">edx</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">1</span>/true +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> copy <span class="Constant">1</span>/true <span id="L180" class="LineNr">180 </span> $grapheme-stack-is-integer?:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L181" class="LineNr">181 </span> compare i, *top-addr <span id="L182" class="LineNr">182 </span> <span class="PreProc">break-if->=</span> diff --git a/html/linux/tile/main.mu.html b/html/linux/tile/main.mu.html index 561bdd7a..c317d1dd 100644 --- a/html/linux/tile/main.mu.html +++ b/html/linux/tile/main.mu.html @@ -14,18 +14,17 @@ 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; } -.muRegEsi { color: #87d787; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } .LineNr { } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.muRegEax { color: #875f00; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> @@ -62,14 +61,14 @@ if ('onhashchange' in window) { <a href='https://github.com/akkartik/mu/blob/main/linux/tile/main.mu'>https://github.com/akkartik/mu/blob/main/linux/tile/main.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='main.mu.html#L1'>main</a></span> args-on-stack: (addr array addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L2" class="LineNr"> 2 </span> <span class="PreProc">var</span> args/<span class="muRegEax">eax</span>: (addr array addr array byte) <span class="Special"><-</span> copy args-on-stack +<span id="L2" class="LineNr"> 2 </span> <span class="PreProc">var</span> args/eax: (addr array addr array byte) <span class="Special"><-</span> copy args-on-stack <span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length args <span id="L4" class="LineNr"> 4 </span> compare len, <span class="Constant">2</span> <span id="L5" class="LineNr"> 5 </span> <span class="Delimiter">{</span> <span id="L6" class="LineNr"> 6 </span> <span class="PreProc">break-if-!=</span> <span id="L7" class="LineNr"> 7 </span> <span class="muComment"># if single arg is 'test', run tests</span> <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> tmp/<span class="muRegEcx">ecx</span>: (addr addr array byte) <span class="Special"><-</span> index args, <span class="Constant">1</span> -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> *tmp, <span class="Constant">"test"</span> +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> tmp2/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> *tmp, <span class="Constant">"test"</span> <span id="L10" class="LineNr"> 10 </span> compare tmp2, <span class="Constant">0</span>/false <span id="L11" class="LineNr"> 11 </span> <span class="Delimiter">{</span> <span id="L12" class="LineNr"> 12 </span> <span class="PreProc">break-if-=</span> @@ -117,7 +116,7 @@ if ('onhashchange' in window) { <span id="L54" class="LineNr"> 54 </span> <a href='environment.mu.html#L30'>initialize-environment</a> env <span id="L55" class="LineNr"> 55 </span> <span class="Delimiter">{</span> <span id="L56" class="LineNr"> 56 </span> <a href='environment.mu.html#L1309'>render</a> env -<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> +<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> key/eax: grapheme <span class="Special"><-</span> <a href='../305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> <span id="L58" class="LineNr"> 58 </span> compare key, <span class="Constant">0x11</span>/ctrl-q <span id="L59" class="LineNr"> 59 </span> <span class="PreProc">break-if-=</span> <span id="L60" class="LineNr"> 60 </span> <a href='environment.mu.html#L73'>process</a> env, key @@ -139,10 +138,10 @@ if ('onhashchange' in window) { <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> cmds-stream-a/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address cmds-stream <span id="L77" class="LineNr"> 77 </span> <a href='../108write.subx.html#L24'>write</a> cmds-stream-a, cmds <span id="L78" class="LineNr"> 78 </span> <span class="Delimiter">{</span> -<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> cmds-stream-a +<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> cmds-stream-a <span id="L80" class="LineNr"> 80 </span> compare done?, <span class="Constant">0</span>/false <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">break-if-!=</span> -<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> cmds-stream-a +<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> cmds-stream-a <span id="L83" class="LineNr"> 83 </span> <a href='environment.mu.html#L73'>process</a> env, g <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">loop</span> <span id="L85" class="LineNr"> 85 </span> <span class="Delimiter">}</span> @@ -157,7 +156,7 @@ if ('onhashchange' in window) { <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage <span id="L95" class="LineNr"> 95 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> <a href='data.mu.html#L34'>line</a> <span id="L96" class="LineNr"> 96 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> <a href='data.mu.html#L34'>line</a> -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> <a href='data.mu.html#L34'>line</a> +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> <a href='data.mu.html#L34'>line</a> <span id="L98" class="LineNr"> 98 </span> compare done?, <span class="Constant">0</span>/false <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">break-if-!=</span> <span id="L100" class="LineNr">100 </span> <span class="muComment"># parse</span> @@ -165,10 +164,10 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L16'>environment</a>) <span class="Special"><-</span> address env-storage <span id="L103" class="LineNr">103 </span> <a href='environment.mu.html#L30'>initialize-environment</a> env <span id="L104" class="LineNr">104 </span> <span class="Delimiter">{</span> -<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> <a href='data.mu.html#L34'>line</a> +<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> <a href='data.mu.html#L34'>line</a> <span id="L106" class="LineNr">106 </span> compare done?, <span class="Constant">0</span>/false <span id="L107" class="LineNr">107 </span> <span class="PreProc">break-if-!=</span> -<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> <a href='data.mu.html#L34'>line</a> +<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> <a href='data.mu.html#L34'>line</a> <span id="L109" class="LineNr">109 </span> <a href='environment.mu.html#L73'>process</a> env, g <span id="L110" class="LineNr">110 </span> <span class="PreProc">loop</span> <span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> @@ -178,7 +177,7 @@ if ('onhashchange' in window) { <span id="L115" class="LineNr">115 </span> <a href='value-stack.mu.html#L8'>initialize-value-stack</a> stack, <span class="Constant">0x10</span> <span id="L116" class="LineNr">116 </span> <a href='environment.mu.html#L1296'>evaluate-environment</a> env, stack <span id="L117" class="LineNr">117 </span> <span class="muComment"># print</span> -<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='value-stack.mu.html#L108'>value-stack-empty?</a> stack +<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='value-stack.mu.html#L108'>value-stack-empty?</a> stack <span id="L119" class="LineNr">119 </span> <span class="Delimiter">{</span> <span id="L120" class="LineNr">120 </span> compare empty?, <span class="Constant">0</span>/false <span id="L121" class="LineNr">121 </span> <span class="PreProc">break-if-!=</span> @@ -186,7 +185,7 @@ if ('onhashchange' in window) { <span id="L123" class="LineNr">123 </span> <a href='../412print-float-decimal.mu.html#L151'>print-float-decimal-approximate</a> <span class="Constant">0</span>, <a href='data.mu.html#L82'>result</a>, <span class="Constant">3</span> <span id="L124" class="LineNr">124 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> <span id="L125" class="LineNr">125 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"width: "</span> -<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../412print-float-decimal.mu.html#L510'>float-size</a> <a href='data.mu.html#L82'>result</a>, <span class="Constant">3</span> +<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> <a href='../412print-float-decimal.mu.html#L510'>float-size</a> <a href='data.mu.html#L82'>result</a>, <span class="Constant">3</span> <span id="L127" class="LineNr">127 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, width <span id="L128" class="LineNr">128 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> <span id="L129" class="LineNr">129 </span> <span class="Delimiter">}</span> diff --git a/html/linux/tile/rpn.mu.html b/html/linux/tile/rpn.mu.html index 2d4b0405..f860763d 100644 --- a/html/linux/tile/rpn.mu.html +++ b/html/linux/tile/rpn.mu.html @@ -16,19 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -65,9 +64,9 @@ if ('onhashchange' in window) { <a href='https://github.com/akkartik/mu/blob/main/linux/tile/rpn.mu'>https://github.com/akkartik/mu/blob/main/linux/tile/rpn.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L1'>evaluate</a></span> functions: (addr handle <a href='data.mu.html#L21'>function</a>), bindings: (addr <a href='data.mu.html#L59'>table</a>), scratch: (addr <a href='data.mu.html#L34'>line</a>), end: (addr <a href='data.mu.html#L42'>word</a>), out: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Delimiter">{</span> -<span id="L2" class="LineNr"> 2 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy scratch -<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data -<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah +<span id="L2" class="LineNr"> 2 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy scratch +<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, data +<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *word-ah <span id="L5" class="LineNr"> 5 </span> <span class="PreProc">var</span> curr-stream-storage: (stream byte <span class="Constant">0x10</span>) <span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> curr-stream/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address curr-stream-storage <span id="L7" class="LineNr"> 7 </span> <a href='value-stack.mu.html#L16'>clear-value-stack</a> out @@ -84,7 +83,7 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr"> 18 </span> <span class="muComment">### if curr-stream is an operator, perform it</span> <span id="L19" class="LineNr"> 19 </span> <span class="muComment">## numbers</span> <span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">{</span> -<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> add?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"+"</span> +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> add?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"+"</span> <span id="L22" class="LineNr"> 22 </span> compare add?, <span class="Constant">0</span> <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">break-if-=</span> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> _b/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='value-stack.mu.html#L88'>pop-number-from-value-stack</a> out @@ -95,7 +94,7 @@ if ('onhashchange' in window) { <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L30" class="LineNr"> 30 </span> <span class="Delimiter">}</span> <span id="L31" class="LineNr"> 31 </span> <span class="Delimiter">{</span> -<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> sub?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"-"</span> +<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> sub?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"-"</span> <span id="L33" class="LineNr"> 33 </span> compare sub?, <span class="Constant">0</span> <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">break-if-=</span> <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> _b/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='value-stack.mu.html#L88'>pop-number-from-value-stack</a> out @@ -106,7 +105,7 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L41" class="LineNr"> 41 </span> <span class="Delimiter">}</span> <span id="L42" class="LineNr"> 42 </span> <span class="Delimiter">{</span> -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> mul?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"*"</span> +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> mul?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"*"</span> <span id="L44" class="LineNr"> 44 </span> compare mul?, <span class="Constant">0</span> <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">break-if-=</span> <span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> _b/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='value-stack.mu.html#L88'>pop-number-from-value-stack</a> out @@ -117,7 +116,7 @@ if ('onhashchange' in window) { <span id="L51" class="LineNr"> 51 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L52" class="LineNr"> 52 </span> <span class="Delimiter">}</span> <span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">{</span> -<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> div?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"/"</span> +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> div?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"/"</span> <span id="L55" class="LineNr"> 55 </span> compare div?, <span class="Constant">0</span> <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">break-if-=</span> <span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> _b/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='value-stack.mu.html#L88'>pop-number-from-value-stack</a> out @@ -128,7 +127,7 @@ if ('onhashchange' in window) { <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L63" class="LineNr"> 63 </span> <span class="Delimiter">}</span> <span id="L64" class="LineNr"> 64 </span> <span class="Delimiter">{</span> -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> sqrt?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"sqrt"</span> +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> sqrt?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"sqrt"</span> <span id="L66" class="LineNr"> 66 </span> compare sqrt?, <span class="Constant">0</span> <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">break-if-=</span> <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> a/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='value-stack.mu.html#L88'>pop-number-from-value-stack</a> out @@ -138,7 +137,7 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr"> 72 </span> <span class="Delimiter">}</span> <span id="L73" class="LineNr"> 73 </span> <span class="muComment">## strings/arrays</span> <span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">{</span> -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> len?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"len"</span> +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> len?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"len"</span> <span id="L76" class="LineNr"> 76 </span> compare len?, <span class="Constant">0</span> <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">break-if-=</span> <span id="L78" class="LineNr"> 78 </span><span class="CommentedCode">#? print-string 0, "is len\n"</span> @@ -148,28 +147,28 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span> compare *top-addr, <span class="Constant">0</span> <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">break-if-<=</span> <span id="L84" class="LineNr"> 84 </span><span class="CommentedCode">#? print-string 0, "stack has stuff\n"</span> -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L88" class="LineNr"> 88 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> target-val/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset <span id="L91" class="LineNr"> 91 </span> <span class="muComment"># check target-val is a string or array</span> -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> target-type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> target-type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L93" class="LineNr"> 93 </span> compare *target-type-addr, <span class="Constant">1</span>/string <span id="L94" class="LineNr"> 94 </span> <span class="Delimiter">{</span> <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">break-if-!=</span> <span id="L96" class="LineNr"> 96 </span> <span class="muComment"># compute length</span> -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data -<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data +<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> src/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> length src <span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> result-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert <a href='data.mu.html#L82'>result</a> <span id="L101" class="LineNr">101 </span> <span class="muComment"># save result into target-val</span> -<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L103" class="LineNr">103 </span> copy-to *type-addr, <span class="Constant">0</span>/int -<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> target-string-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data +<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> target-string-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data <span id="L105" class="LineNr">105 </span> clear-object target-string-ah -<span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, number-data +<span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> target/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, number-data <span id="L107" class="LineNr">107 </span> copy-to *target, result-f <span id="L108" class="LineNr">108 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L109" class="LineNr">109 </span> <span class="Delimiter">}</span> @@ -177,23 +176,23 @@ if ('onhashchange' in window) { <span id="L111" class="LineNr">111 </span> <span class="Delimiter">{</span> <span id="L112" class="LineNr">112 </span> <span class="PreProc">break-if-!=</span> <span id="L113" class="LineNr">113 </span> <span class="muComment"># compute length</span> -<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, array-data -<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, array-data +<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> src/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> length src <span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> result-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert <a href='data.mu.html#L82'>result</a> <span id="L118" class="LineNr">118 </span> <span class="muComment"># save result into target-val</span> -<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L120" class="LineNr">120 </span> copy-to *type-addr, <span class="Constant">0</span>/int -<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> target-array-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, array-data +<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> target-array-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, array-data <span id="L122" class="LineNr">122 </span> clear-object target-array-ah -<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, number-data +<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> target/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, number-data <span id="L124" class="LineNr">124 </span> copy-to *target, result-f <span id="L125" class="LineNr">125 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L126" class="LineNr">126 </span> <span class="Delimiter">}</span> <span id="L127" class="LineNr">127 </span> <span class="Delimiter">}</span> <span id="L128" class="LineNr">128 </span> <span class="muComment">## files</span> <span id="L129" class="LineNr">129 </span> <span class="Delimiter">{</span> -<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> open?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"open"</span> +<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> open?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"open"</span> <span id="L131" class="LineNr">131 </span> compare open?, <span class="Constant">0</span> <span id="L132" class="LineNr">132 </span> <span class="PreProc">break-if-=</span> <span id="L133" class="LineNr">133 </span> <span class="muComment"># pop target-val from out</span> @@ -201,32 +200,32 @@ if ('onhashchange' in window) { <span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, <a href='../203stack.subx.html#L338'>top</a> <span id="L136" class="LineNr">136 </span> compare *top-addr, <span class="Constant">0</span> <span id="L137" class="LineNr">137 </span> <span class="PreProc">break-if-<=</span> -<span id="L138" class="LineNr">138 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L138" class="LineNr">138 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L141" class="LineNr">141 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> target-val/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset <span id="L144" class="LineNr">144 </span> <span class="muComment"># check target-val is a string</span> -<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> target-type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> target-type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L146" class="LineNr">146 </span> compare *target-type-addr, <span class="Constant">1</span>/string <span id="L147" class="LineNr">147 </span> <span class="PreProc">break-if-!=</span> <span id="L148" class="LineNr">148 </span> <span class="muComment"># open target-val as a filename and save the handle in target-val</span> -<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data -<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data +<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> src/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEcx">ecx</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data <span id="L152" class="LineNr">152 </span> <a href='../306files.subx.html#L9'>open</a> src, <span class="Constant">0</span>, result-ah <span class="muComment"># write? = false</span> <span id="L153" class="LineNr">153 </span> <span class="muComment"># save result into target-val</span> -<span id="L154" class="LineNr">154 </span> <span class="PreProc">var</span> type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L154" class="LineNr">154 </span> <span class="PreProc">var</span> type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L155" class="LineNr">155 </span> copy-to *type-addr, <span class="Constant">3</span>/file -<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> target-string-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> target-string-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data <span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> filename-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, filename <span id="L158" class="LineNr">158 </span> copy-object target-string-ah, filename-ah <span id="L159" class="LineNr">159 </span> clear-object target-string-ah <span id="L160" class="LineNr">160 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L161" class="LineNr">161 </span> <span class="Delimiter">}</span> <span id="L162" class="LineNr">162 </span> <span class="Delimiter">{</span> -<span id="L163" class="LineNr">163 </span> <span class="PreProc">var</span> read?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"read"</span> +<span id="L163" class="LineNr">163 </span> <span class="PreProc">var</span> read?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"read"</span> <span id="L164" class="LineNr">164 </span> compare read?, <span class="Constant">0</span> <span id="L165" class="LineNr">165 </span> <span class="PreProc">break-if-=</span> <span id="L166" class="LineNr">166 </span> <span class="muComment"># pop target-val from out</span> @@ -234,34 +233,34 @@ if ('onhashchange' in window) { <span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, <a href='../203stack.subx.html#L338'>top</a> <span id="L169" class="LineNr">169 </span> compare *top-addr, <span class="Constant">0</span> <span id="L170" class="LineNr">170 </span> <span class="PreProc">break-if-<=</span> -<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L174" class="LineNr">174 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> target-val/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset <span id="L177" class="LineNr">177 </span> <span class="muComment"># check target-val is a file</span> -<span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> target-type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> target-type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L179" class="LineNr">179 </span> compare *target-type-addr, <span class="Constant">3</span>/file <span id="L180" class="LineNr">180 </span> <span class="PreProc">break-if-!=</span> <span id="L181" class="LineNr">181 </span> <span class="muComment"># read a line from the file and save in target-val</span> <span id="L182" class="LineNr">182 </span> <span class="muComment"># read target-val as a filename and save the handle in target-val</span> -<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> file-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data -<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> file/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *file-ah +<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> file-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data +<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> file/eax: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *file-ah <span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> s: (stream byte <span class="Constant">0x100</span>) <span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> s-addr/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address s <span id="L187" class="LineNr">187 </span> <a href='../122read-line.subx.html#L9'>read-line-buffered</a> file, s-addr -<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data +<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> target/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data <span id="L189" class="LineNr">189 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> s-addr, target <span id="L190" class="LineNr">190 </span> <span class="muComment"># save result into target-val</span> -<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L192" class="LineNr">192 </span> copy-to *type-addr, <span class="Constant">1</span>/string -<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> target-file-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data +<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> target-file-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data <span id="L194" class="LineNr">194 </span> clear-object target-file-ah <span id="L195" class="LineNr">195 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L196" class="LineNr">196 </span> <span class="Delimiter">}</span> <span id="L197" class="LineNr">197 </span> <span class="Delimiter">{</span> -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> slurp?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"slurp"</span> +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> slurp?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"slurp"</span> <span id="L199" class="LineNr">199 </span> compare slurp?, <span class="Constant">0</span> <span id="L200" class="LineNr">200 </span> <span class="PreProc">break-if-=</span> <span id="L201" class="LineNr">201 </span> <span class="muComment"># pop target-val from out</span> @@ -269,34 +268,34 @@ if ('onhashchange' in window) { <span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, <a href='../203stack.subx.html#L338'>top</a> <span id="L204" class="LineNr">204 </span> compare *top-addr, <span class="Constant">0</span> <span id="L205" class="LineNr">205 </span> <span class="PreProc">break-if-<=</span> -<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L209" class="LineNr">209 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> target-val/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset <span id="L212" class="LineNr">212 </span> <span class="muComment"># check target-val is a file</span> -<span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> target-type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> target-type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L214" class="LineNr">214 </span> compare *target-type-addr, <span class="Constant">3</span>/file <span id="L215" class="LineNr">215 </span> <span class="PreProc">break-if-!=</span> <span id="L216" class="LineNr">216 </span> <span class="muComment"># slurp all contents from file and save in target-val</span> <span id="L217" class="LineNr">217 </span> <span class="muComment"># read target-val as a filename and save the handle in target-val</span> -<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> file-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data -<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> file/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *file-ah +<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> file-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data +<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> file/eax: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *file-ah <span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> s: (stream byte <span class="Constant">0x100</span>) <span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> s-addr/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address s <span id="L222" class="LineNr">222 </span> <a href='../132slurp.subx.html#L8'>slurp</a> file, s-addr -<span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data +<span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> target/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data <span id="L224" class="LineNr">224 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> s-addr, target <span id="L225" class="LineNr">225 </span> <span class="muComment"># save result into target-val</span> -<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L227" class="LineNr">227 </span> copy-to *type-addr, <span class="Constant">1</span>/string -<span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> target-file-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data +<span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> target-file-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data <span id="L229" class="LineNr">229 </span> clear-object target-file-ah <span id="L230" class="LineNr">230 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L231" class="LineNr">231 </span> <span class="Delimiter">}</span> <span id="L232" class="LineNr">232 </span> <span class="Delimiter">{</span> -<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> lines?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"lines"</span> +<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> lines?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"lines"</span> <span id="L234" class="LineNr">234 </span> compare lines?, <span class="Constant">0</span> <span id="L235" class="LineNr">235 </span> <span class="PreProc">break-if-=</span> <span id="L236" class="LineNr">236 </span> <span class="muComment"># pop target-val from out</span> @@ -304,26 +303,26 @@ if ('onhashchange' in window) { <span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, <a href='../203stack.subx.html#L338'>top</a> <span id="L239" class="LineNr">239 </span> compare *top-addr, <span class="Constant">0</span> <span id="L240" class="LineNr">240 </span> <span class="PreProc">break-if-<=</span> -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L244" class="LineNr">244 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> target-val/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset <span id="L247" class="LineNr">247 </span> <span class="muComment"># check target-val is a file</span> -<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> target-type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> target-type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L249" class="LineNr">249 </span> compare *target-type-addr, <span class="Constant">3</span>/file <span id="L250" class="LineNr">250 </span> <span class="PreProc">break-if-!=</span> <span id="L251" class="LineNr">251 </span> <span class="muComment"># read all lines from file and save as an array of strings in target-val</span> <span id="L252" class="LineNr">252 </span> <span class="muComment"># read target-val as a filename and save the handle in target-val</span> -<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> file-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data -<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> file/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *file-ah +<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> file-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data +<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> file/eax: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *file-ah <span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> s: (stream byte <span class="Constant">0x100</span>) <span id="L256" class="LineNr">256 </span> <span class="PreProc">var</span> s-addr/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address s <span id="L257" class="LineNr">257 </span> <a href='../132slurp.subx.html#L8'>slurp</a> file, s-addr -<span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data +<span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data <span id="L259" class="LineNr">259 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> s-addr, tmp-ah -<span id="L260" class="LineNr">260 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *tmp-ah +<span id="L260" class="LineNr">260 </span> <span class="PreProc">var</span> tmp/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *tmp-ah <span id="L261" class="LineNr">261 </span><span class="CommentedCode">#? enable-screen-type-mode</span> <span id="L262" class="LineNr">262 </span><span class="CommentedCode">#? print-string 0, tmp</span> <span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> h: (handle array (handle array byte)) @@ -331,22 +330,22 @@ if ('onhashchange' in window) { <span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> ah/<span class="muRegEdx">edx</span>: (addr handle array (handle array byte)) <span class="Special"><-</span> address h <span id="L266" class="LineNr">266 </span> <a href='../411string.mu.html#L88'>split-string</a> tmp, <span class="Constant">0xa</span>, ah <span id="L267" class="LineNr">267 </span> <span class="Delimiter">}</span> -<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, array-data +<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> target/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, array-data <span id="L269" class="LineNr">269 </span> <a href='value-stack.mu.html#L125'>save-lines</a> h, target <span id="L270" class="LineNr">270 </span> <span class="muComment"># save result into target-val</span> -<span id="L271" class="LineNr">271 </span> <span class="PreProc">var</span> type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L271" class="LineNr">271 </span> <span class="PreProc">var</span> type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L272" class="LineNr">272 </span> copy-to *type-addr, <span class="Constant">2</span>/array -<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> target-file-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data +<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> target-file-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, file-data <span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> empty-file: (handle buffered-file) <span id="L275" class="LineNr">275 </span> <a href='../120allocate.subx.html#L497'>copy-handle</a> empty-file, target-file-ah -<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> target-text-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data +<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> target-text-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, text-data <span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> empty-text: (handle array byte) <span id="L278" class="LineNr">278 </span> <a href='../120allocate.subx.html#L497'>copy-handle</a> empty-text, target-text-ah <span id="L279" class="LineNr">279 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L280" class="LineNr">280 </span> <span class="Delimiter">}</span> <span id="L281" class="LineNr">281 </span> <span class="muComment">## screens</span> <span id="L282" class="LineNr">282 </span> <span class="Delimiter">{</span> -<span id="L283" class="LineNr">283 </span> <span class="PreProc">var</span> fake-screen?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"fake-screen"</span> +<span id="L283" class="LineNr">283 </span> <span class="PreProc">var</span> fake-screen?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"fake-screen"</span> <span id="L284" class="LineNr">284 </span> compare fake-screen?, <span class="Constant">0</span> <span id="L285" class="LineNr">285 </span> <span class="PreProc">break-if-=</span> <span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> out2/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy out @@ -360,25 +359,25 @@ if ('onhashchange' in window) { <span id="L294" class="LineNr">294 </span> <span class="PreProc">var</span> ncols/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert ncols-f <span id="L295" class="LineNr">295 </span> <span class="muComment"># define a new screen with those dimensions</span> <span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> screen-h: (handle <a href='../405screen.mu.html#L9'>screen</a>) -<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-h +<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-h <span id="L298" class="LineNr">298 </span> <a href='../120allocate.subx.html#L66'>allocate</a> screen-ah -<span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> screen-h +<span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> screen-h <span id="L300" class="LineNr">300 </span> <a href='../405screen.mu.html#L30'>initialize-screen</a> <a href='../405screen.mu.html#L9'>screen</a>, nrows, ncols <span id="L301" class="LineNr">301 </span> <span class="muComment"># push screen to stack</span> -<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L303" class="LineNr">303 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L303" class="LineNr">303 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L305" class="LineNr">305 </span> increment *top-addr <span id="L306" class="LineNr">306 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L307" class="LineNr">307 </span> <span class="PreProc">var</span> target-val/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset -<span id="L308" class="LineNr">308 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L308" class="LineNr">308 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L309" class="LineNr">309 </span> copy-to *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen -<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data +<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> dest/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data <span id="L311" class="LineNr">311 </span> <a href='../120allocate.subx.html#L497'>copy-handle</a> screen-h, dest <span id="L312" class="LineNr">312 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L313" class="LineNr">313 </span> <span class="Delimiter">}</span> <span id="L314" class="LineNr">314 </span> <span class="Delimiter">{</span> -<span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> print?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"print"</span> +<span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"print"</span> <span id="L316" class="LineNr">316 </span> compare print?, <span class="Constant">0</span> <span id="L317" class="LineNr">317 </span> <span class="PreProc">break-if-=</span> <span id="L318" class="LineNr">318 </span> <span class="PreProc">var</span> out2/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy out @@ -390,32 +389,32 @@ if ('onhashchange' in window) { <span id="L324" class="LineNr">324 </span> compare *top-addr, <span class="Constant">0</span> <span id="L325" class="LineNr">325 </span> <span class="PreProc">break-if-<=</span> <span id="L326" class="LineNr">326 </span> decrement *top-addr -<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L328" class="LineNr">328 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L328" class="LineNr">328 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L329" class="LineNr">329 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _data -<span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: int <span class="Special"><-</span> copy *top-addr <span id="L331" class="LineNr">331 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L332" class="LineNr">332 </span> <span class="PreProc">var</span> s/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset <span id="L333" class="LineNr">333 </span> <span class="muComment"># select target screen from top of out (but don't pop it)</span> <span id="L334" class="LineNr">334 </span> compare *top-addr, <span class="Constant">0</span> <span id="L335" class="LineNr">335 </span> <span class="PreProc">break-if-<=</span> -<span id="L336" class="LineNr">336 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L336" class="LineNr">336 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: int <span class="Special"><-</span> copy *top-addr <span id="L337" class="LineNr">337 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L338" class="LineNr">338 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L339" class="LineNr">339 </span> <span class="PreProc">var</span> target-val/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset -<span id="L340" class="LineNr">340 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L340" class="LineNr">340 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L341" class="LineNr">341 </span> compare *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen <span id="L342" class="LineNr">342 </span> <span class="PreProc">break-if-!=</span> <span id="L343" class="LineNr">343 </span> <span class="muComment"># print string to target screen</span> -<span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data -<span id="L345" class="LineNr">345 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah +<span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data +<span id="L345" class="LineNr">345 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah <span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> r/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, cursor-row <span id="L347" class="LineNr">347 </span> <span class="PreProc">var</span> c/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, cursor-col <span id="L348" class="LineNr">348 </span> <a href='value.mu.html#L1'>render-value-at</a> dest, *r, *c, s, <span class="Constant">0</span> <span id="L349" class="LineNr">349 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L350" class="LineNr">350 </span> <span class="Delimiter">}</span> <span id="L351" class="LineNr">351 </span> <span class="Delimiter">{</span> -<span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> move?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"move"</span> +<span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> move?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"move"</span> <span id="L353" class="LineNr">353 </span> compare move?, <span class="Constant">0</span> <span id="L354" class="LineNr">354 </span> <span class="PreProc">break-if-=</span> <span id="L355" class="LineNr">355 </span> <span class="PreProc">var</span> out2/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy out @@ -428,23 +427,23 @@ if ('onhashchange' in window) { <span id="L362" class="LineNr">362 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, <a href='../203stack.subx.html#L338'>top</a> <span id="L363" class="LineNr">363 </span> compare *top-addr, <span class="Constant">0</span> <span id="L364" class="LineNr">364 </span> <span class="PreProc">break-if-<=</span> -<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L367" class="LineNr">367 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _data -<span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: int <span class="Special"><-</span> copy *top-addr <span id="L369" class="LineNr">369 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement -<span id="L370" class="LineNr">370 </span> <span class="PreProc">var</span> target-offset/<span class="muRegEax">eax</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> +<span id="L370" class="LineNr">370 </span> <span class="PreProc">var</span> target-offset/eax: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> target-val/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, target-offset -<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L373" class="LineNr">373 </span> compare *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen <span id="L374" class="LineNr">374 </span> <span class="PreProc">break-if-!=</span> -<span id="L375" class="LineNr">375 </span> <span class="PreProc">var</span> target-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data -<span id="L376" class="LineNr">376 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah +<span id="L375" class="LineNr">375 </span> <span class="PreProc">var</span> target-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data +<span id="L376" class="LineNr">376 </span> <span class="PreProc">var</span> target/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah <span id="L377" class="LineNr">377 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> target, r, c <span id="L378" class="LineNr">378 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L379" class="LineNr">379 </span> <span class="Delimiter">}</span> <span id="L380" class="LineNr">380 </span> <span class="Delimiter">{</span> -<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> up?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"up"</span> +<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> up?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"up"</span> <span id="L382" class="LineNr">382 </span> compare up?, <span class="Constant">0</span> <span id="L383" class="LineNr">383 </span> <span class="PreProc">break-if-=</span> <span id="L384" class="LineNr">384 </span> <span class="PreProc">var</span> out2/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy out @@ -457,22 +456,22 @@ if ('onhashchange' in window) { <span id="L391" class="LineNr">391 </span> <span class="muComment"># select screen from top of out (but don't pop it)</span> <span id="L392" class="LineNr">392 </span> compare *top-addr, <span class="Constant">0</span> <span id="L393" class="LineNr">393 </span> <span class="PreProc">break-if-<=</span> -<span id="L394" class="LineNr">394 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L395" class="LineNr">395 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L394" class="LineNr">394 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L395" class="LineNr">395 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L396" class="LineNr">396 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _data -<span id="L397" class="LineNr">397 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L397" class="LineNr">397 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: int <span class="Special"><-</span> copy *top-addr <span id="L398" class="LineNr">398 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement -<span id="L399" class="LineNr">399 </span> <span class="PreProc">var</span> target-offset/<span class="muRegEax">eax</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> +<span id="L399" class="LineNr">399 </span> <span class="PreProc">var</span> target-offset/eax: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L400" class="LineNr">400 </span> <span class="PreProc">var</span> target-val/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, target-offset -<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L402" class="LineNr">402 </span> compare *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen <span id="L403" class="LineNr">403 </span> <span class="PreProc">break-if-!=</span> -<span id="L404" class="LineNr">404 </span> <span class="PreProc">var</span> target-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data -<span id="L405" class="LineNr">405 </span> <span class="PreProc">var</span> _target/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah +<span id="L404" class="LineNr">404 </span> <span class="PreProc">var</span> target-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data +<span id="L405" class="LineNr">405 </span> <span class="PreProc">var</span> _target/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah <span id="L406" class="LineNr">406 </span> <span class="PreProc">var</span> target/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _target <span id="L407" class="LineNr">407 </span> <span class="PreProc">var</span> r/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-row -<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-col -<span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> col/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *c +<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> c/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-col +<span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> col/eax: int <span class="Special"><-</span> copy *c <span id="L410" class="LineNr">410 </span> <span class="Delimiter">{</span> <span id="L411" class="LineNr">411 </span> compare d, <span class="Constant">0</span> <span id="L412" class="LineNr">412 </span> <span class="PreProc">break-if-<=</span> @@ -487,7 +486,7 @@ if ('onhashchange' in window) { <span id="L421" class="LineNr">421 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L422" class="LineNr">422 </span> <span class="Delimiter">}</span> <span id="L423" class="LineNr">423 </span> <span class="Delimiter">{</span> -<span id="L424" class="LineNr">424 </span> <span class="PreProc">var</span> down?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"down"</span> +<span id="L424" class="LineNr">424 </span> <span class="PreProc">var</span> down?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"down"</span> <span id="L425" class="LineNr">425 </span> compare down?, <span class="Constant">0</span> <span id="L426" class="LineNr">426 </span> <span class="PreProc">break-if-=</span> <span id="L427" class="LineNr">427 </span> <span class="PreProc">var</span> out2/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy out @@ -500,24 +499,24 @@ if ('onhashchange' in window) { <span id="L434" class="LineNr">434 </span> <span class="muComment"># select screen from top of out (but don't pop it)</span> <span id="L435" class="LineNr">435 </span> compare *top-addr, <span class="Constant">0</span> <span id="L436" class="LineNr">436 </span> <span class="PreProc">break-if-<=</span> -<span id="L437" class="LineNr">437 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L438" class="LineNr">438 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L437" class="LineNr">437 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L438" class="LineNr">438 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _data -<span id="L440" class="LineNr">440 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L440" class="LineNr">440 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: int <span class="Special"><-</span> copy *top-addr <span id="L441" class="LineNr">441 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement -<span id="L442" class="LineNr">442 </span> <span class="PreProc">var</span> target-offset/<span class="muRegEax">eax</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> +<span id="L442" class="LineNr">442 </span> <span class="PreProc">var</span> target-offset/eax: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L443" class="LineNr">443 </span> <span class="PreProc">var</span> target-val/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, target-offset -<span id="L444" class="LineNr">444 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L444" class="LineNr">444 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L445" class="LineNr">445 </span> compare *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen <span id="L446" class="LineNr">446 </span> <span class="PreProc">break-if-!=</span> -<span id="L447" class="LineNr">447 </span> <span class="PreProc">var</span> target-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data -<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> _target/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah +<span id="L447" class="LineNr">447 </span> <span class="PreProc">var</span> target-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data +<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> _target/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah <span id="L449" class="LineNr">449 </span> <span class="PreProc">var</span> target/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _target <span id="L450" class="LineNr">450 </span> <span class="PreProc">var</span> bound-a/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, num-rows <span id="L451" class="LineNr">451 </span> <span class="PreProc">var</span> bound/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *bound-a <span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> r/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-row -<span id="L453" class="LineNr">453 </span> <span class="PreProc">var</span> c/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-col -<span id="L454" class="LineNr">454 </span> <span class="PreProc">var</span> col/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *c +<span id="L453" class="LineNr">453 </span> <span class="PreProc">var</span> c/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-col +<span id="L454" class="LineNr">454 </span> <span class="PreProc">var</span> col/eax: int <span class="Special"><-</span> copy *c <span id="L455" class="LineNr">455 </span> <span class="Delimiter">{</span> <span id="L456" class="LineNr">456 </span> compare d, <span class="Constant">0</span> <span id="L457" class="LineNr">457 </span> <span class="PreProc">break-if-<=</span> @@ -532,7 +531,7 @@ if ('onhashchange' in window) { <span id="L466" class="LineNr">466 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L467" class="LineNr">467 </span> <span class="Delimiter">}</span> <span id="L468" class="LineNr">468 </span> <span class="Delimiter">{</span> -<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> left?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"left"</span> +<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> left?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"left"</span> <span id="L470" class="LineNr">470 </span> compare left?, <span class="Constant">0</span> <span id="L471" class="LineNr">471 </span> <span class="PreProc">break-if-=</span> <span id="L472" class="LineNr">472 </span> <span class="PreProc">var</span> out2/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy out @@ -545,22 +544,22 @@ if ('onhashchange' in window) { <span id="L479" class="LineNr">479 </span> <span class="muComment"># select screen from top of out (but don't pop it)</span> <span id="L480" class="LineNr">480 </span> compare *top-addr, <span class="Constant">0</span> <span id="L481" class="LineNr">481 </span> <span class="PreProc">break-if-<=</span> -<span id="L482" class="LineNr">482 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L482" class="LineNr">482 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L484" class="LineNr">484 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _data -<span id="L485" class="LineNr">485 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L485" class="LineNr">485 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: int <span class="Special"><-</span> copy *top-addr <span id="L486" class="LineNr">486 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement -<span id="L487" class="LineNr">487 </span> <span class="PreProc">var</span> target-offset/<span class="muRegEax">eax</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> +<span id="L487" class="LineNr">487 </span> <span class="PreProc">var</span> target-offset/eax: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L488" class="LineNr">488 </span> <span class="PreProc">var</span> target-val/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, target-offset -<span id="L489" class="LineNr">489 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L489" class="LineNr">489 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L490" class="LineNr">490 </span> compare *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen <span id="L491" class="LineNr">491 </span> <span class="PreProc">break-if-!=</span> -<span id="L492" class="LineNr">492 </span> <span class="PreProc">var</span> target-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data -<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> _target/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah +<span id="L492" class="LineNr">492 </span> <span class="PreProc">var</span> target-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data +<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> _target/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah <span id="L494" class="LineNr">494 </span> <span class="PreProc">var</span> target/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _target <span id="L495" class="LineNr">495 </span> <span class="PreProc">var</span> c/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-col -<span id="L496" class="LineNr">496 </span> <span class="PreProc">var</span> r/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-row -<span id="L497" class="LineNr">497 </span> <span class="PreProc">var</span> row/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *r +<span id="L496" class="LineNr">496 </span> <span class="PreProc">var</span> r/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-row +<span id="L497" class="LineNr">497 </span> <span class="PreProc">var</span> row/eax: int <span class="Special"><-</span> copy *r <span id="L498" class="LineNr">498 </span> <span class="Delimiter">{</span> <span id="L499" class="LineNr">499 </span> compare d, <span class="Constant">0</span> <span id="L500" class="LineNr">500 </span> <span class="PreProc">break-if-<=</span> @@ -576,7 +575,7 @@ if ('onhashchange' in window) { <span id="L510" class="LineNr">510 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L511" class="LineNr">511 </span> <span class="Delimiter">}</span> <span id="L512" class="LineNr">512 </span> <span class="Delimiter">{</span> -<span id="L513" class="LineNr">513 </span> <span class="PreProc">var</span> right?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"right"</span> +<span id="L513" class="LineNr">513 </span> <span class="PreProc">var</span> right?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"right"</span> <span id="L514" class="LineNr">514 </span> compare right?, <span class="Constant">0</span> <span id="L515" class="LineNr">515 </span> <span class="PreProc">break-if-=</span> <span id="L516" class="LineNr">516 </span> <span class="PreProc">var</span> out2/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy out @@ -589,24 +588,24 @@ if ('onhashchange' in window) { <span id="L523" class="LineNr">523 </span> <span class="muComment"># select screen from top of out (but don't pop it)</span> <span id="L524" class="LineNr">524 </span> compare *top-addr, <span class="Constant">0</span> <span id="L525" class="LineNr">525 </span> <span class="PreProc">break-if-<=</span> -<span id="L526" class="LineNr">526 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L527" class="LineNr">527 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L526" class="LineNr">526 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L527" class="LineNr">527 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L528" class="LineNr">528 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _data -<span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: int <span class="Special"><-</span> copy *top-addr <span id="L530" class="LineNr">530 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement -<span id="L531" class="LineNr">531 </span> <span class="PreProc">var</span> target-offset/<span class="muRegEax">eax</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> +<span id="L531" class="LineNr">531 </span> <span class="PreProc">var</span> target-offset/eax: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L532" class="LineNr">532 </span> <span class="PreProc">var</span> target-val/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, target-offset -<span id="L533" class="LineNr">533 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> +<span id="L533" class="LineNr">533 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, <span class="PreProc">type</span> <span id="L534" class="LineNr">534 </span> compare *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen <span id="L535" class="LineNr">535 </span> <span class="PreProc">break-if-!=</span> -<span id="L536" class="LineNr">536 </span> <span class="PreProc">var</span> target-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data -<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> _target/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah +<span id="L536" class="LineNr">536 </span> <span class="PreProc">var</span> target-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-val, screen-data +<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> _target/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target-ah <span id="L538" class="LineNr">538 </span> <span class="PreProc">var</span> target/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _target <span id="L539" class="LineNr">539 </span> <span class="PreProc">var</span> bound-a/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, num-rows <span id="L540" class="LineNr">540 </span> <span class="PreProc">var</span> bound/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *bound-a <span id="L541" class="LineNr">541 </span> <span class="PreProc">var</span> c/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-col -<span id="L542" class="LineNr">542 </span> <span class="PreProc">var</span> r/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-row -<span id="L543" class="LineNr">543 </span> <span class="PreProc">var</span> row/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *r +<span id="L542" class="LineNr">542 </span> <span class="PreProc">var</span> r/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-row +<span id="L543" class="LineNr">543 </span> <span class="PreProc">var</span> row/eax: int <span class="Special"><-</span> copy *r <span id="L544" class="LineNr">544 </span> <span class="Delimiter">{</span> <span id="L545" class="LineNr">545 </span> compare d, <span class="Constant">0</span> <span id="L546" class="LineNr">546 </span> <span class="PreProc">break-if-<=</span> @@ -622,7 +621,7 @@ if ('onhashchange' in window) { <span id="L556" class="LineNr">556 </span> <span class="Delimiter">}</span> <span id="L557" class="LineNr">557 </span> <span class="muComment">## HACKS: we're trying to avoid turning this into Forth</span> <span id="L558" class="LineNr">558 </span> <span class="Delimiter">{</span> -<span id="L559" class="LineNr">559 </span> <span class="PreProc">var</span> dup?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"dup"</span> +<span id="L559" class="LineNr">559 </span> <span class="PreProc">var</span> dup?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"dup"</span> <span id="L560" class="LineNr">560 </span> compare dup?, <span class="Constant">0</span> <span id="L561" class="LineNr">561 </span> <span class="PreProc">break-if-=</span> <span id="L562" class="LineNr">562 </span> <span class="muComment"># read src-val from out</span> @@ -630,8 +629,8 @@ if ('onhashchange' in window) { <span id="L564" class="LineNr">564 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, <a href='../203stack.subx.html#L338'>top</a> <span id="L565" class="LineNr">565 </span> compare *top-addr, <span class="Constant">0</span> <span id="L566" class="LineNr">566 </span> <span class="PreProc">break-if-<=</span> -<span id="L567" class="LineNr">567 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L568" class="LineNr">568 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L567" class="LineNr">567 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L568" class="LineNr">568 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L569" class="LineNr">569 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L570" class="LineNr">570 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L571" class="LineNr">571 </span> <span class="PreProc">var</span> offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> @@ -647,7 +646,7 @@ if ('onhashchange' in window) { <span id="L581" class="LineNr">581 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L582" class="LineNr">582 </span> <span class="Delimiter">}</span> <span id="L583" class="LineNr">583 </span> <span class="Delimiter">{</span> -<span id="L584" class="LineNr">584 </span> <span class="PreProc">var</span> swap?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"swap"</span> +<span id="L584" class="LineNr">584 </span> <span class="PreProc">var</span> swap?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-stream, <span class="Constant">"swap"</span> <span id="L585" class="LineNr">585 </span> compare swap?, <span class="Constant">0</span> <span id="L586" class="LineNr">586 </span> <span class="PreProc">break-if-=</span> <span id="L587" class="LineNr">587 </span> <span class="muComment"># read top-val from out</span> @@ -655,8 +654,8 @@ if ('onhashchange' in window) { <span id="L589" class="LineNr">589 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, <a href='../203stack.subx.html#L338'>top</a> <span id="L590" class="LineNr">590 </span> compare *top-addr, <span class="Constant">0</span> <span id="L591" class="LineNr">591 </span> <span class="PreProc">break-if-<=</span> -<span id="L592" class="LineNr">592 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L592" class="LineNr">592 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L594" class="LineNr">594 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L595" class="LineNr">595 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L596" class="LineNr">596 </span> <span class="PreProc">var</span> offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> @@ -667,7 +666,7 @@ if ('onhashchange' in window) { <span id="L601" class="LineNr">601 </span> <span class="PreProc">var</span> pen-top-val/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, offset <span id="L602" class="LineNr">602 </span> <span class="muComment"># swap</span> <span id="L603" class="LineNr">603 </span> <span class="PreProc">var</span> tmp: <a href='data.mu.html#L49'>value</a> -<span id="L604" class="LineNr">604 </span> <span class="PreProc">var</span> tmp-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> address tmp +<span id="L604" class="LineNr">604 </span> <span class="PreProc">var</span> tmp-a/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> address tmp <span id="L605" class="LineNr">605 </span> copy-object top-val, tmp-a <span id="L606" class="LineNr">606 </span> copy-object pen-top-val, top-val <span id="L607" class="LineNr">607 </span> copy-object tmp-a, pen-top-val @@ -675,10 +674,10 @@ if ('onhashchange' in window) { <span id="L609" class="LineNr">609 </span> <span class="Delimiter">}</span> <span id="L610" class="LineNr">610 </span> <span class="muComment">### if curr-stream defines a binding, save top of stack to bindings</span> <span id="L611" class="LineNr">611 </span> <span class="Delimiter">{</span> -<span id="L612" class="LineNr">612 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> curr-stream +<span id="L612" class="LineNr">612 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> curr-stream <span id="L613" class="LineNr">613 </span> compare done?, <span class="Constant">0</span>/false <span id="L614" class="LineNr">614 </span> <span class="PreProc">break-if-!=</span> -<span id="L615" class="LineNr">615 </span> <span class="PreProc">var</span> new-byte/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> curr-stream +<span id="L615" class="LineNr">615 </span> <span class="PreProc">var</span> new-byte/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L273'>read-byte</a> curr-stream <span id="L616" class="LineNr">616 </span> compare new-byte, <span class="Constant">0x3d</span>/= <span id="L617" class="LineNr">617 </span> <span class="PreProc">break-if-!=</span> <span id="L618" class="LineNr">618 </span> <span class="muComment"># pop target-val from out</span> @@ -686,8 +685,8 @@ if ('onhashchange' in window) { <span id="L620" class="LineNr">620 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, <a href='../203stack.subx.html#L338'>top</a> <span id="L621" class="LineNr">621 </span> compare *top-addr, <span class="Constant">0</span> <span id="L622" class="LineNr">622 </span> <span class="PreProc">break-if-<=</span> -<span id="L623" class="LineNr">623 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data -<span id="L624" class="LineNr">624 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L623" class="LineNr">623 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out2, data +<span id="L624" class="LineNr">624 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L625" class="LineNr">625 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L626" class="LineNr">626 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L627" class="LineNr">627 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> @@ -703,9 +702,9 @@ if ('onhashchange' in window) { <span id="L637" class="LineNr">637 </span> <span class="muComment">### if curr-stream is a known function name, call it appropriately</span> <span id="L638" class="LineNr">638 </span> <span class="Delimiter">{</span> <span id="L639" class="LineNr">639 </span> <span class="PreProc">var</span> callee-h: (handle <a href='data.mu.html#L21'>function</a>) -<span id="L640" class="LineNr">640 </span> <span class="PreProc">var</span> callee-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> address callee-h +<span id="L640" class="LineNr">640 </span> <span class="PreProc">var</span> callee-ah/eax: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> address callee-h <span id="L641" class="LineNr">641 </span> <a href='rpn.mu.html#L774'>find-function</a> functions, curr-stream, callee-ah -<span id="L642" class="LineNr">642 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1846'>callee</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-ah +<span id="L642" class="LineNr">642 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1846'>callee</a>/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *callee-ah <span id="L643" class="LineNr">643 </span> compare <a href='environment.mu.html#L1846'>callee</a>, <span class="Constant">0</span> <span id="L644" class="LineNr">644 </span> <span class="PreProc">break-if-=</span> <span id="L645" class="LineNr">645 </span> <a href='rpn.mu.html#L795'>perform-call</a> <a href='environment.mu.html#L1846'>callee</a>, out, functions @@ -718,11 +717,11 @@ if ('onhashchange' in window) { <span id="L652" class="LineNr">652 </span> <span class="PreProc">var</span> tmp: (handle array byte) <span id="L653" class="LineNr">653 </span> <span class="PreProc">var</span> curr-string-ah/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> address tmp <span id="L654" class="LineNr">654 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> curr-stream, curr-string-ah <span class="muComment"># unfortunate leak</span> -<span id="L655" class="LineNr">655 </span> <span class="PreProc">var</span> curr-string/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-string-ah +<span id="L655" class="LineNr">655 </span> <span class="PreProc">var</span> curr-string/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-string-ah <span id="L656" class="LineNr">656 </span> <span class="PreProc">var</span> val-storage: (handle <a href='data.mu.html#L49'>value</a>) <span id="L657" class="LineNr">657 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> address val-storage <span id="L658" class="LineNr">658 </span> <a href='table.mu.html#L108'>lookup-binding</a> bindings, curr-string, val-ah -<span id="L659" class="LineNr">659 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L659" class="LineNr">659 </span> <span class="PreProc">var</span> val/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L660" class="LineNr">660 </span> compare val, <span class="Constant">0</span> <span id="L661" class="LineNr">661 </span> <span class="PreProc">break-if-=</span> <span id="L662" class="LineNr">662 </span> <a href='value-stack.mu.html#L76'>push-value-stack</a> out, val @@ -730,48 +729,48 @@ if ('onhashchange' in window) { <span id="L664" class="LineNr">664 </span> <span class="Delimiter">}</span> <span id="L665" class="LineNr">665 </span> <span class="muComment">### if the word starts with a quote and ends with a quote, turn it into a string</span> <span id="L666" class="LineNr">666 </span> <span class="Delimiter">{</span> -<span id="L667" class="LineNr">667 </span> <span class="PreProc">var</span> start/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../309stream.subx.html#L160'>stream-first</a> curr-stream +<span id="L667" class="LineNr">667 </span> <span class="PreProc">var</span> start/eax: byte <span class="Special"><-</span> <a href='../309stream.subx.html#L160'>stream-first</a> curr-stream <span id="L668" class="LineNr">668 </span> compare start, <span class="Constant">0x22</span>/double-quote <span id="L669" class="LineNr">669 </span> <span class="PreProc">break-if-!=</span> -<span id="L670" class="LineNr">670 </span> <span class="PreProc">var</span> end/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../309stream.subx.html#L187'>stream-final</a> curr-stream +<span id="L670" class="LineNr">670 </span> <span class="PreProc">var</span> end/eax: byte <span class="Special"><-</span> <a href='../309stream.subx.html#L187'>stream-final</a> curr-stream <span id="L671" class="LineNr">671 </span> compare end, <span class="Constant">0x22</span>/double-quote <span id="L672" class="LineNr">672 </span> <span class="PreProc">break-if-!=</span> <span id="L673" class="LineNr">673 </span> <span class="PreProc">var</span> h: (handle array byte) -<span id="L674" class="LineNr">674 </span> <span class="PreProc">var</span> s/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address h +<span id="L674" class="LineNr">674 </span> <span class="PreProc">var</span> s/eax: (addr handle array byte) <span class="Special"><-</span> address h <span id="L675" class="LineNr">675 </span> <a href='../310copy-bytes.subx.html#L120'>unquote-stream-to-array</a> curr-stream, s <span class="muComment"># leak</span> <span id="L676" class="LineNr">676 </span> <a href='value-stack.mu.html#L39'>push-string-to-value-stack</a> out, *s <span id="L677" class="LineNr">677 </span> <span class="PreProc">break</span> $evaluate:process-word <span id="L678" class="LineNr">678 </span> <span class="Delimiter">}</span> <span id="L679" class="LineNr">679 </span> <span class="muComment">### if the word starts with a '[' and ends with a ']', turn it into an array</span> <span id="L680" class="LineNr">680 </span> <span class="Delimiter">{</span> -<span id="L681" class="LineNr">681 </span> <span class="PreProc">var</span> start/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../309stream.subx.html#L160'>stream-first</a> curr-stream +<span id="L681" class="LineNr">681 </span> <span class="PreProc">var</span> start/eax: byte <span class="Special"><-</span> <a href='../309stream.subx.html#L160'>stream-first</a> curr-stream <span id="L682" class="LineNr">682 </span> compare start, <span class="Constant">0x5b</span>/[ <span id="L683" class="LineNr">683 </span> <span class="PreProc">break-if-!=</span> -<span id="L684" class="LineNr">684 </span> <span class="PreProc">var</span> end/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../309stream.subx.html#L187'>stream-final</a> curr-stream +<span id="L684" class="LineNr">684 </span> <span class="PreProc">var</span> end/eax: byte <span class="Special"><-</span> <a href='../309stream.subx.html#L187'>stream-final</a> curr-stream <span id="L685" class="LineNr">685 </span> compare end, <span class="Constant">0x5d</span>/] <span id="L686" class="LineNr">686 </span> <span class="PreProc">break-if-!=</span> <span id="L687" class="LineNr">687 </span> <span class="muComment"># wastefully create a new input string to strip quotes</span> <span id="L688" class="LineNr">688 </span> <span class="PreProc">var</span> h: (handle array <a href='data.mu.html#L49'>value</a>) -<span id="L689" class="LineNr">689 </span> <span class="PreProc">var</span> input-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address h +<span id="L689" class="LineNr">689 </span> <span class="PreProc">var</span> input-ah/eax: (addr handle array byte) <span class="Special"><-</span> address h <span id="L690" class="LineNr">690 </span> <a href='../310copy-bytes.subx.html#L120'>unquote-stream-to-array</a> curr-stream, input-ah <span class="muComment"># leak</span> <span id="L691" class="LineNr">691 </span> <span class="muComment"># wastefully parse input into int-array</span> <span id="L692" class="LineNr">692 </span> <span class="muComment"># TODO: support parsing arrays of other types</span> -<span id="L693" class="LineNr">693 </span> <span class="PreProc">var</span> input/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *input-ah +<span id="L693" class="LineNr">693 </span> <span class="PreProc">var</span> input/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *input-ah <span id="L694" class="LineNr">694 </span> <span class="PreProc">var</span> h2: (handle array int) <span id="L695" class="LineNr">695 </span> <span class="PreProc">var</span> int-array-ah/<span class="muRegEsi">esi</span>: (addr handle array int) <span class="Special"><-</span> address h2 <span id="L696" class="LineNr">696 </span> <a href='../311decimal-int.subx.html#L623'>parse-array-of-decimal-ints</a> input, int-array-ah <span class="muComment"># leak</span> -<span id="L697" class="LineNr">697 </span> <span class="PreProc">var</span> _int-array/<span class="muRegEax">eax</span>: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *int-array-ah +<span id="L697" class="LineNr">697 </span> <span class="PreProc">var</span> _int-array/eax: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *int-array-ah <span id="L698" class="LineNr">698 </span> <span class="PreProc">var</span> int-array/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _int-array <span id="L699" class="LineNr">699 </span> <span class="PreProc">var</span> len/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> length int-array <span id="L700" class="LineNr">700 </span> <span class="muComment"># push value-array of same size as int-array</span> <span id="L701" class="LineNr">701 </span> <span class="PreProc">var</span> h3: (handle array <a href='data.mu.html#L49'>value</a>) -<span id="L702" class="LineNr">702 </span> <span class="PreProc">var</span> value-array-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> address h3 +<span id="L702" class="LineNr">702 </span> <span class="PreProc">var</span> value-array-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> address h3 <span id="L703" class="LineNr">703 </span> populate value-array-ah, len <span id="L704" class="LineNr">704 </span> <a href='value-stack.mu.html#L60'>push-array-to-value-stack</a> out, *value-array-ah <span id="L705" class="LineNr">705 </span> <span class="muComment"># copy int-array into value-array</span> -<span id="L706" class="LineNr">706 </span> <span class="PreProc">var</span> _value-array/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *value-array-ah +<span id="L706" class="LineNr">706 </span> <span class="PreProc">var</span> _value-array/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *value-array-ah <span id="L707" class="LineNr">707 </span> <span class="PreProc">var</span> value-array/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _value-array -<span id="L708" class="LineNr">708 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L708" class="LineNr">708 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L709" class="LineNr">709 </span> <span class="Delimiter">{</span> <span id="L710" class="LineNr">710 </span> compare i, len <span id="L711" class="LineNr">711 </span> <span class="PreProc">break-if->=</span> @@ -789,7 +788,7 @@ if ('onhashchange' in window) { <span id="L723" class="LineNr">723 </span> <span class="Delimiter">}</span> <span id="L724" class="LineNr">724 </span> <span class="muComment">### otherwise assume it's a literal number and push it</span> <span id="L725" class="LineNr">725 </span> <span class="Delimiter">{</span> -<span id="L726" class="LineNr">726 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> curr-stream +<span id="L726" class="LineNr">726 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> curr-stream <span id="L727" class="LineNr">727 </span> <span class="PreProc">var</span> n-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert n <span id="L728" class="LineNr">728 </span> <a href='value-stack.mu.html#L22'>push-number-to-value-stack</a> out, n-f <span id="L729" class="LineNr">729 </span> <span class="Delimiter">}</span> @@ -804,9 +803,9 @@ if ('onhashchange' in window) { <span id="L738" class="LineNr">738 </span> <span class="PreProc">loop</span> <span id="L739" class="LineNr">739 </span> <span class="Delimiter">}</span> <span id="L740" class="LineNr">740 </span> <span class="muComment"># process next line if necessary</span> -<span id="L741" class="LineNr">741 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy scratch -<span id="L742" class="LineNr">742 </span> <span class="PreProc">var</span> next-line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, next -<span id="L743" class="LineNr">743 </span> <span class="PreProc">var</span> next-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah +<span id="L741" class="LineNr">741 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> copy scratch +<span id="L742" class="LineNr">742 </span> <span class="PreProc">var</span> next-line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='data.mu.html#L34'>line</a>, next +<span id="L743" class="LineNr">743 </span> <span class="PreProc">var</span> next-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah <span id="L744" class="LineNr">744 </span> compare next-line, <span class="Constant">0</span> <span id="L745" class="LineNr">745 </span> <span class="PreProc">break-if-=</span> <span id="L746" class="LineNr">746 </span> <a href='rpn.mu.html#L1'>evaluate</a> functions, bindings, next-line, end, out @@ -815,13 +814,13 @@ if ('onhashchange' in window) { <span id="L749" class="LineNr">749 </span><span class="PreProc">fn</span> <span class="muTest"><a href='rpn.mu.html#L749'>test-evaluate</a></span> <span class="Delimiter">{</span> <span id="L750" class="LineNr">750 </span> <span class="PreProc">var</span> line-storage: <a href='data.mu.html#L34'>line</a> <span id="L751" class="LineNr">751 </span> <span class="PreProc">var</span> <a href='data.mu.html#L34'>line</a>/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> address line-storage -<span id="L752" class="LineNr">752 </span> <span class="PreProc">var</span> first-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> line-storage, data +<span id="L752" class="LineNr">752 </span> <span class="PreProc">var</span> first-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> line-storage, data <span id="L753" class="LineNr">753 </span> <a href='word.mu.html#L19'>allocate-word-with</a> first-word-ah, <span class="Constant">"3"</span> <span id="L754" class="LineNr">754 </span> <a href='word.mu.html#L29'>append-word-with</a> *first-word-ah, <span class="Constant">"=a"</span> -<span id="L755" class="LineNr">755 </span> <span class="PreProc">var</span> next-line-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> line-storage, next +<span id="L755" class="LineNr">755 </span> <span class="PreProc">var</span> next-line-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> line-storage, next <span id="L756" class="LineNr">756 </span> <a href='../120allocate.subx.html#L66'>allocate</a> next-line-ah -<span id="L757" class="LineNr">757 </span> <span class="PreProc">var</span> next-line/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah -<span id="L758" class="LineNr">758 </span> <span class="PreProc">var</span> first-word-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> next-line, data +<span id="L757" class="LineNr">757 </span> <span class="PreProc">var</span> next-line/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-line-ah +<span id="L758" class="LineNr">758 </span> <span class="PreProc">var</span> first-word-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> next-line, data <span id="L759" class="LineNr">759 </span> <a href='word.mu.html#L19'>allocate-word-with</a> first-word-ah, <span class="Constant">"a"</span> <span id="L760" class="LineNr">760 </span> <span class="PreProc">var</span> functions-storage: (handle <a href='data.mu.html#L21'>function</a>) <span id="L761" class="LineNr">761 </span> <span class="PreProc">var</span> functions/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> address functions-storage @@ -833,20 +832,20 @@ if ('onhashchange' in window) { <span id="L767" class="LineNr">767 </span> <a href='value-stack.mu.html#L8'>initialize-value-stack</a> stack, <span class="Constant">0x10</span> <span id="L768" class="LineNr">768 </span> <a href='rpn.mu.html#L1'>evaluate</a> functions, <a href='data.mu.html#L59'>table</a>, <a href='data.mu.html#L34'>line</a>, <span class="Constant">0</span>, stack <span id="L769" class="LineNr">769 </span> <span class="PreProc">var</span> x-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='value-stack.mu.html#L88'>pop-number-from-value-stack</a> stack -<span id="L770" class="LineNr">770 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert x-f +<span id="L770" class="LineNr">770 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> convert x-f <span id="L771" class="LineNr">771 </span> <a href='../102test.subx.html#L23'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - test-evaluate"</span> <span id="L772" class="LineNr">772 </span><span class="Delimiter">}</span> <span id="L773" class="LineNr">773 </span> <span id="L774" class="LineNr">774 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L774'>find-function</a></span> first: (addr handle <a href='data.mu.html#L21'>function</a>), name: (addr stream byte), out: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Delimiter">{</span> <span id="L775" class="LineNr">775 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy first <span id="L776" class="LineNr">776 </span> $find-function:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L777" class="LineNr">777 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr +<span id="L777" class="LineNr">777 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr <span id="L778" class="LineNr">778 </span> <span class="PreProc">var</span> f/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _f <span id="L779" class="LineNr">779 </span> compare f, <span class="Constant">0</span> <span id="L780" class="LineNr">780 </span> <span class="PreProc">break-if-=</span> -<span id="L781" class="LineNr">781 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name -<span id="L782" class="LineNr">782 </span> <span class="PreProc">var</span> curr-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-name-ah -<span id="L783" class="LineNr">783 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> name, curr-name +<span id="L781" class="LineNr">781 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> f, name +<span id="L782" class="LineNr">782 </span> <span class="PreProc">var</span> curr-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-name-ah +<span id="L783" class="LineNr">783 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> name, curr-name <span id="L784" class="LineNr">784 </span> compare done?, <span class="Constant">0</span>/false <span id="L785" class="LineNr">785 </span> <span class="Delimiter">{</span> <span id="L786" class="LineNr">786 </span> <span class="PreProc">break-if-=</span> @@ -866,8 +865,8 @@ if ('onhashchange' in window) { <span id="L800" class="LineNr">800 </span> <a href='table.mu.html#L1'>initialize-table</a> <a href='data.mu.html#L59'>table</a>, <span class="Constant">0x10</span> <span id="L801" class="LineNr">801 </span> <a href='rpn.mu.html#L828'>bind-args</a> <a href='environment.mu.html#L1846'>callee</a>, caller-stack, <a href='data.mu.html#L59'>table</a> <span id="L802" class="LineNr">802 </span> <span class="muComment"># obtain body</span> -<span id="L803" class="LineNr">803 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1846'>callee</a>, body -<span id="L804" class="LineNr">804 </span> <span class="PreProc">var</span> body/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah +<span id="L803" class="LineNr">803 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1846'>callee</a>, body +<span id="L804" class="LineNr">804 </span> <span class="PreProc">var</span> body/eax: (addr <a href='data.mu.html#L34'>line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *body-ah <span id="L805" class="LineNr">805 </span> <span class="muComment"># perform call</span> <span id="L806" class="LineNr">806 </span> <span class="PreProc">var</span> stack-storage: <a href='value-stack.mu.html#L3'>value-stack</a> <span id="L807" class="LineNr">807 </span> <span class="PreProc">var</span> stack/<span class="muRegEdi">edi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> address stack-storage @@ -879,8 +878,8 @@ if ('onhashchange' in window) { <span id="L813" class="LineNr">813 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> stack, <a href='../203stack.subx.html#L338'>top</a> <span id="L814" class="LineNr">814 </span> compare *top-addr, <span class="Constant">0</span> <span id="L815" class="LineNr">815 </span> <span class="PreProc">break-if-<=</span> -<span id="L816" class="LineNr">816 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> stack, data -<span id="L817" class="LineNr">817 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L816" class="LineNr">816 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> stack, data +<span id="L817" class="LineNr">817 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L818" class="LineNr">818 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L819" class="LineNr">819 </span> <a href='../203stack.subx.html#L338'>top</a> <span class="Special"><-</span> decrement <span id="L820" class="LineNr">820 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> @@ -893,8 +892,8 @@ if ('onhashchange' in window) { <span id="L827" class="LineNr">827 </span><span class="muComment"># implies: function args are stored in reverse order</span> <span id="L828" class="LineNr">828 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L828'>bind-args</a></span> _callee: (addr <a href='data.mu.html#L21'>function</a>), _caller-stack: (addr <a href='value-stack.mu.html#L3'>value-stack</a>), <a href='data.mu.html#L59'>table</a>: (addr <a href='data.mu.html#L59'>table</a>) <span class="Delimiter">{</span> <span id="L829" class="LineNr">829 </span> <span class="PreProc">var</span> <a href='environment.mu.html#L1846'>callee</a>/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L21'>function</a>) <span class="Special"><-</span> copy _callee -<span id="L830" class="LineNr">830 </span> <span class="PreProc">var</span> curr-arg-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1846'>callee</a>, args -<span id="L831" class="LineNr">831 </span> <span class="PreProc">var</span> curr-arg/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-arg-ah +<span id="L830" class="LineNr">830 </span> <span class="PreProc">var</span> curr-arg-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='environment.mu.html#L1846'>callee</a>, args +<span id="L831" class="LineNr">831 </span> <span class="PreProc">var</span> curr-arg/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-arg-ah <span id="L832" class="LineNr">832 </span> <span class="muComment">#</span> <span id="L833" class="LineNr">833 </span> <span class="PreProc">var</span> curr-key-storage: (handle array byte) <span id="L834" class="LineNr">834 </span> <span class="PreProc">var</span> curr-key/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> address curr-key-storage @@ -910,8 +909,8 @@ if ('onhashchange' in window) { <span id="L844" class="LineNr">844 </span> compare *top-addr, <span class="Constant">0</span> <span id="L845" class="LineNr">845 </span> <span class="PreProc">break-if-<=</span> <span id="L846" class="LineNr">846 </span> decrement *top-addr -<span id="L847" class="LineNr">847 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> caller-stack, data -<span id="L848" class="LineNr">848 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L847" class="LineNr">847 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> caller-stack, data +<span id="L848" class="LineNr">848 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L849" class="LineNr">849 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L850" class="LineNr">850 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEbx">ebx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L851" class="LineNr">851 </span> <span class="PreProc">var</span> target-val/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset @@ -928,28 +927,28 @@ if ('onhashchange' in window) { <span id="L862" class="LineNr">862 </span><span class="muComment"># Copy of 'simplify' that just tracks the maximum stack depth needed</span> <span id="L863" class="LineNr">863 </span><span class="muComment"># Doesn't actually need to simulate the stack, since every word has a predictable effect.</span> <span id="L864" class="LineNr">864 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L864'>max-stack-depth</a></span> first-word: (addr <a href='data.mu.html#L42'>word</a>), <a href='word.mu.html#L114'>final-word</a>: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEdi">edi</span>: int <span class="Delimiter">{</span> -<span id="L865" class="LineNr">865 </span> <span class="PreProc">var</span> curr-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy first-word +<span id="L865" class="LineNr">865 </span> <span class="PreProc">var</span> curr-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy first-word <span id="L866" class="LineNr">866 </span> <span class="PreProc">var</span> curr-depth/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L867" class="LineNr">867 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L868" class="LineNr">868 </span> $max-stack-depth:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L869" class="LineNr">869 </span> $max-stack-depth:process-word: <span class="Delimiter">{</span> <span id="L870" class="LineNr">870 </span> <span class="muComment"># handle operators</span> <span id="L871" class="LineNr">871 </span> <span class="Delimiter">{</span> -<span id="L872" class="LineNr">872 </span> <span class="PreProc">var</span> add?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L98'>word-equal?</a> curr-word, <span class="Constant">"+"</span> +<span id="L872" class="LineNr">872 </span> <span class="PreProc">var</span> add?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L98'>word-equal?</a> curr-word, <span class="Constant">"+"</span> <span id="L873" class="LineNr">873 </span> compare add?, <span class="Constant">0</span> <span id="L874" class="LineNr">874 </span> <span class="PreProc">break-if-=</span> <span id="L875" class="LineNr">875 </span> curr-depth <span class="Special"><-</span> decrement <span id="L876" class="LineNr">876 </span> <span class="PreProc">break</span> $max-stack-depth:process-word <span id="L877" class="LineNr">877 </span> <span class="Delimiter">}</span> <span id="L878" class="LineNr">878 </span> <span class="Delimiter">{</span> -<span id="L879" class="LineNr">879 </span> <span class="PreProc">var</span> sub?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L98'>word-equal?</a> curr-word, <span class="Constant">"-"</span> +<span id="L879" class="LineNr">879 </span> <span class="PreProc">var</span> sub?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L98'>word-equal?</a> curr-word, <span class="Constant">"-"</span> <span id="L880" class="LineNr">880 </span> compare sub?, <span class="Constant">0</span> <span id="L881" class="LineNr">881 </span> <span class="PreProc">break-if-=</span> <span id="L882" class="LineNr">882 </span> curr-depth <span class="Special"><-</span> decrement <span id="L883" class="LineNr">883 </span> <span class="PreProc">break</span> $max-stack-depth:process-word <span id="L884" class="LineNr">884 </span> <span class="Delimiter">}</span> <span id="L885" class="LineNr">885 </span> <span class="Delimiter">{</span> -<span id="L886" class="LineNr">886 </span> <span class="PreProc">var</span> mul?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L98'>word-equal?</a> curr-word, <span class="Constant">"*"</span> +<span id="L886" class="LineNr">886 </span> <span class="PreProc">var</span> mul?/eax: boolean <span class="Special"><-</span> <a href='word.mu.html#L98'>word-equal?</a> curr-word, <span class="Constant">"*"</span> <span id="L887" class="LineNr">887 </span> compare mul?, <span class="Constant">0</span> <span id="L888" class="LineNr">888 </span> <span class="PreProc">break-if-=</span> <span id="L889" class="LineNr">889 </span> curr-depth <span class="Special"><-</span> decrement diff --git a/html/linux/tile/surface.mu.html b/html/linux/tile/surface.mu.html index 53b6ca10..ed886ff4 100644 --- a/html/linux/tile/surface.mu.html +++ b/html/linux/tile/surface.mu.html @@ -16,19 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -88,7 +87,7 @@ if ('onhashchange' in window) { <span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L23" class="LineNr"> 23 </span> <span class="muComment"># fill in nrows, ncols</span> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> nrows/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='surface.mu.html#L258'>num-lines</a> in -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, nrows +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> dest/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, nrows <span id="L26" class="LineNr"> 26 </span> copy-to *dest, nrows <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> ncols/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='surface.mu.html#L276'>first-line-length</a> in <span class="muComment"># assume all lines are the same length</span> <span id="L28" class="LineNr"> 28 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, ncols @@ -97,16 +96,16 @@ if ('onhashchange' in window) { <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy nrows <span id="L32" class="LineNr"> 32 </span> len <span class="Special"><-</span> multiply ncols <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr handle array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out, data +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> data/eax: (addr handle array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> out, data <span id="L35" class="LineNr"> 35 </span> populate data, len -<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> data-addr/<span class="muRegEax">eax</span>: (addr array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> data-addr/eax: (addr array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data <span id="L37" class="LineNr"> 37 </span> <a href='surface.mu.html#L294'>fill-in</a> data-addr, in <span id="L38" class="LineNr"> 38 </span> <span class="muComment"># fill in screen-nrows, screen-ncols</span> <span id="L39" class="LineNr"> 39 </span> <span class="Delimiter">{</span> -<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> _screen-addr/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> _screen-addr/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEdi">edi</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _screen-addr -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> nrows/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> nrows/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> ncols/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L45" class="LineNr"> 45 </span> nrows, ncols <span class="Special"><-</span> <a href='../405screen.mu.html#L60'>screen-size</a> screen-addr <span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, screen-nrows @@ -119,7 +118,7 @@ if ('onhashchange' in window) { <span id="L53" class="LineNr"> 53 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L53'>pin-surface-at</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), r: int, c: int <span class="Delimiter">{</span> <span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-row -<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy r +<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy r <span id="L57" class="LineNr"> 57 </span> copy-to *dest, tmp <span id="L58" class="LineNr"> 58 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-col <span id="L59" class="LineNr"> 59 </span> tmp <span class="Special"><-</span> copy c @@ -129,7 +128,7 @@ if ('onhashchange' in window) { <span id="L63" class="LineNr"> 63 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L63'>pin-surface-to</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), sr: int, sc: int <span class="Delimiter">{</span> <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-screen-row -<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy sr +<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy sr <span id="L67" class="LineNr"> 67 </span> copy-to *dest, tmp <span id="L68" class="LineNr"> 68 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-screen-col <span id="L69" class="LineNr"> 69 </span> tmp <span class="Special"><-</span> copy sc @@ -140,8 +139,8 @@ if ('onhashchange' in window) { <span id="L74" class="LineNr"> 74 </span><span class="CommentedCode">#? print-string-to-real-screen "render-surface\n"</span> <span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L76" class="LineNr"> 76 </span> <span class="muComment"># clear screen</span> -<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L79" class="LineNr"> 79 </span> <a href='../405screen.mu.html#L78'>clear-screen</a> <a href='../405screen.mu.html#L9'>screen</a> <span id="L80" class="LineNr"> 80 </span> <span class="muComment">#</span> <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> nrows/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, screen-nrows @@ -150,7 +149,7 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">{</span> <span id="L85" class="LineNr"> 85 </span> compare screen-row, *nrows <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">break-if-></span> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> screen-col/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> screen-col/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">{</span> <span id="L89" class="LineNr"> 89 </span> compare screen-col, *ncols <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">break-if-></span> @@ -170,16 +169,16 @@ if ('onhashchange' in window) { <span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> row/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='surface.mu.html#L197'>screen-row-to-surface</a> self, screen-row <span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='surface.mu.html#L227'>screen-col-to-surface</a> self, screen-col <span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> _data-addr/<span class="muRegEax">eax</span>: (addr array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> _data-addr/eax: (addr array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> data-addr/<span class="muRegEdi">edi</span>: (addr array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> copy _data-addr -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> idx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='surface.mu.html#L167'>surface-screen-cell-index</a> self, row, col +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> idx/eax: int <span class="Special"><-</span> <a href='surface.mu.html#L167'>surface-screen-cell-index</a> self, row, col <span id="L110" class="LineNr">110 </span> <span class="muComment"># if out of bounds, print ' '</span> <span id="L111" class="LineNr">111 </span> compare idx, <span class="Constant">0</span> <span id="L112" class="LineNr">112 </span> <span class="Delimiter">{</span> <span id="L113" class="LineNr">113 </span> <span class="PreProc">break-if->=</span> <span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> space/<span class="muRegEcx">ecx</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x20</span> <span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L117" class="LineNr">117 </span> <a href='../405screen.mu.html#L214'>print-grapheme</a> <a href='../405screen.mu.html#L9'>screen</a>, space <span id="L118" class="LineNr">118 </span> <span class="PreProc">return</span> <span id="L119" class="LineNr">119 </span> <span class="Delimiter">}</span> @@ -187,7 +186,7 @@ if ('onhashchange' in window) { <span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset data-addr, idx <span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> index data-addr, offset <span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L125" class="LineNr">125 </span> <a href='surface.mu.html#L129'>print-screen-cell</a> <a href='../405screen.mu.html#L9'>screen</a>, src <span id="L126" class="LineNr">126 </span><span class="Delimiter">}</span> <span id="L127" class="LineNr">127 </span> @@ -195,10 +194,10 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr">129 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L129'>print-screen-cell</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _cell: (addr <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Delimiter">{</span> <span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> cell/<span class="muRegEsi">esi</span>: (addr <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> copy _cell <span id="L131" class="LineNr">131 </span> <a href='../405screen.mu.html#L506'>reset-formatting</a> <a href='../405screen.mu.html#L9'>screen</a> -<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> fg/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cell, color +<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> fg/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cell, color <span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> bg/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cell, background-color <span id="L134" class="LineNr">134 </span> <a href='../405screen.mu.html#L523'>start-color</a> <a href='../405screen.mu.html#L9'>screen</a>, *fg, *bg -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cell, bold? +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> tmp/eax: (addr boolean) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cell, bold? <span id="L136" class="LineNr">136 </span> <span class="Delimiter">{</span> <span id="L137" class="LineNr">137 </span> compare *tmp, <span class="Constant">0</span> <span id="L138" class="LineNr">138 </span> <span class="PreProc">break-if-=</span> @@ -222,7 +221,7 @@ if ('onhashchange' in window) { <span id="L156" class="LineNr">156 </span> <span class="PreProc">break-if-=</span> <span id="L157" class="LineNr">157 </span> <a href='../405screen.mu.html#L583'>start-blinking</a> <a href='../405screen.mu.html#L9'>screen</a> <span id="L158" class="LineNr">158 </span> <span class="Delimiter">}</span> -<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cell, data +<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> g/eax: (addr grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cell, data <span id="L160" class="LineNr">160 </span> <a href='../405screen.mu.html#L214'>print-grapheme</a> <a href='../405screen.mu.html#L9'>screen</a>, *g <span id="L161" class="LineNr">161 </span><span class="CommentedCode">#? var g2/eax: grapheme <- copy *g</span> <span id="L162" class="LineNr">162 </span><span class="CommentedCode">#? var g3/eax: int <- copy g2</span> @@ -230,13 +229,13 @@ if ('onhashchange' in window) { <span id="L164" class="LineNr">164 </span><span class="CommentedCode">#? print-string-to-real-screen "\n"</span> <span id="L165" class="LineNr">165 </span><span class="Delimiter">}</span> <span id="L166" class="LineNr">166 </span> -<span id="L167" class="LineNr">167 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L167'>surface-screen-cell-index</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), row: int, col: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L167" class="LineNr">167 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L167'>surface-screen-cell-index</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), row: int, col: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L169" class="LineNr">169 </span><span class="CommentedCode">#? print-int32-hex-to-real-screen row</span> <span id="L170" class="LineNr">170 </span><span class="CommentedCode">#? print-string-to-real-screen ", "</span> <span id="L171" class="LineNr">171 </span><span class="CommentedCode">#? print-int32-hex-to-real-screen col</span> <span id="L172" class="LineNr">172 </span><span class="CommentedCode">#? print-string-to-real-screen "\n"</span> -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> <span id="L174" class="LineNr">174 </span> <span class="Delimiter">{</span> <span id="L175" class="LineNr">175 </span> compare row, <span class="Constant">1</span> <span id="L176" class="LineNr">176 </span> <span class="PreProc">break-if-<</span> @@ -263,15 +262,15 @@ if ('onhashchange' in window) { <span id="L197" class="LineNr">197 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L197'>screen-row-to-surface</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), screen-row: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy screen-row -<span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-row +<span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-row <span id="L201" class="LineNr">201 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add *tmp <span id="L202" class="LineNr">202 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-screen-row <span id="L203" class="LineNr">203 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> subtract *tmp <span id="L204" class="LineNr">204 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L205" class="LineNr">205 </span><span class="Delimiter">}</span> <span id="L206" class="LineNr">206 </span> -<span id="L207" class="LineNr">207 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L207'>max</a></span> _a: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _a +<span id="L207" class="LineNr">207 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L207'>max</a></span> _a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy _a <span id="L209" class="LineNr">209 </span> compare a, b <span id="L210" class="LineNr">210 </span> <span class="Delimiter">{</span> <span id="L211" class="LineNr">211 </span> <span class="PreProc">break-if-></span> @@ -280,8 +279,8 @@ if ('onhashchange' in window) { <span id="L214" class="LineNr">214 </span> <span class="PreProc">return</span> a <span id="L215" class="LineNr">215 </span><span class="Delimiter">}</span> <span id="L216" class="LineNr">216 </span> -<span id="L217" class="LineNr">217 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L217'>min</a></span> _a: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _a +<span id="L217" class="LineNr">217 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L217'>min</a></span> _a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy _a <span id="L219" class="LineNr">219 </span> compare a, b <span id="L220" class="LineNr">220 </span> <span class="Delimiter">{</span> <span id="L221" class="LineNr">221 </span> <span class="PreProc">break-if-></span> @@ -293,7 +292,7 @@ if ('onhashchange' in window) { <span id="L227" class="LineNr">227 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L227'>screen-col-to-surface</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), screen-col: int<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> <span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy screen-col -<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-col +<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-col <span id="L231" class="LineNr">231 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add *tmp <span id="L232" class="LineNr">232 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-screen-col <span id="L233" class="LineNr">233 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> subtract *tmp @@ -303,7 +302,7 @@ if ('onhashchange' in window) { <span id="L237" class="LineNr">237 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L237'>surface-row-to-screen</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), row: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy row -<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-screen-row +<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-screen-row <span id="L241" class="LineNr">241 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add *tmp <span id="L242" class="LineNr">242 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-row <span id="L243" class="LineNr">243 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> subtract *tmp @@ -313,7 +312,7 @@ if ('onhashchange' in window) { <span id="L247" class="LineNr">247 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L247'>surface-col-to-screen</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), col: int<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> <span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy col -<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-screen-col +<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-screen-col <span id="L251" class="LineNr">251 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add *tmp <span id="L252" class="LineNr">252 </span> tmp <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, pin-col <span id="L253" class="LineNr">253 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> subtract *tmp @@ -327,10 +326,10 @@ if ('onhashchange' in window) { <span id="L261" class="LineNr">261 </span> <a href='../108write.subx.html#L24'>write</a> s-addr, in <span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L263" class="LineNr">263 </span> <span class="Delimiter">{</span> -<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> s-addr +<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> s-addr <span id="L265" class="LineNr">265 </span> compare done?, <span class="Constant">0</span>/false <span id="L266" class="LineNr">266 </span> <span class="PreProc">break-if-!=</span> -<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s-addr +<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s-addr <span id="L268" class="LineNr">268 </span> compare g, <span class="Constant">0xa</span>/newline <span id="L269" class="LineNr">269 </span> <span class="PreProc">loop-if-!=</span> <span id="L270" class="LineNr">270 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> increment @@ -345,10 +344,10 @@ if ('onhashchange' in window) { <span id="L279" class="LineNr">279 </span> <a href='../108write.subx.html#L24'>write</a> s-addr, in <span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L281" class="LineNr">281 </span> <span class="Delimiter">{</span> -<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> s-addr +<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> s-addr <span id="L283" class="LineNr">283 </span> compare done?, <span class="Constant">0</span>/false <span id="L284" class="LineNr">284 </span> <span class="PreProc">break-if-!=</span> -<span id="L285" class="LineNr">285 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s-addr +<span id="L285" class="LineNr">285 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s-addr <span id="L286" class="LineNr">286 </span> compare g, <span class="Constant">0xa</span>/newline <span id="L287" class="LineNr">287 </span> <span class="PreProc">break-if-=</span> <span id="L288" class="LineNr">288 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> increment @@ -364,10 +363,10 @@ if ('onhashchange' in window) { <span id="L298" class="LineNr">298 </span> <a href='../108write.subx.html#L24'>write</a> s-addr, in <span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L300" class="LineNr">300 </span> <span class="Delimiter">{</span> -<span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> s-addr +<span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> s-addr <span id="L302" class="LineNr">302 </span> compare done?, <span class="Constant">0</span>/false <span id="L303" class="LineNr">303 </span> <span class="PreProc">break-if-!=</span> -<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s-addr +<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> s-addr <span id="L305" class="LineNr">305 </span> compare g, <span class="Constant">0xa</span>/newline <span id="L306" class="LineNr">306 </span> <span class="PreProc">loop-if-=</span> <span id="L307" class="LineNr">307 </span> <span class="PreProc">var</span> offset/<span class="muRegEdx">edx</span>: (offset <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> compute-offset out, idx @@ -389,8 +388,8 @@ if ('onhashchange' in window) { <span id="L323" class="LineNr">323 </span> <a href='surface.mu.html#L53'>pin-surface-at</a> s-addr, <span class="Constant">1</span>, <span class="Constant">1</span> <span class="muComment"># surface row and column</span> <span id="L324" class="LineNr">324 </span> <a href='surface.mu.html#L63'>pin-surface-to</a> s-addr, <span class="Constant">1</span>, <span class="Constant">1</span> <span class="muComment"># screen row and column</span> <span id="L325" class="LineNr">325 </span> <a href='surface.mu.html#L73'>render-surface</a> s-addr -<span id="L326" class="LineNr">326 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L326" class="LineNr">326 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> screen-addr/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L328" class="LineNr">328 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">1</span>, <span class="Constant">"abcd"</span>, <span class="Constant">"F - test-surface-pin-at-origin"</span> <span id="L329" class="LineNr">329 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">2</span>, <span class="Constant">"ghij"</span>, <span class="Constant">"F - test-surface-pin-at-origin"</span> <span id="L330" class="LineNr">330 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">3</span>, <span class="Constant">"mnop"</span>, <span class="Constant">"F - test-surface-pin-at-origin"</span> @@ -406,8 +405,8 @@ if ('onhashchange' in window) { <span id="L340" class="LineNr">340 </span> <a href='surface.mu.html#L53'>pin-surface-at</a> s-addr, <span class="Constant">1</span>, <span class="Constant">1</span> <span class="muComment"># surface row and column</span> <span id="L341" class="LineNr">341 </span> <a href='surface.mu.html#L63'>pin-surface-to</a> s-addr, <span class="Constant">2</span>, <span class="Constant">1</span> <span class="muComment"># screen row and column</span> <span id="L342" class="LineNr">342 </span> <a href='surface.mu.html#L73'>render-surface</a> s-addr -<span id="L343" class="LineNr">343 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L343" class="LineNr">343 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> screen-addr/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L345" class="LineNr">345 </span> <span class="muComment"># surface edge reached (should seldom happen in the app)</span> <span id="L346" class="LineNr">346 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">1</span>, <span class="Constant">" "</span>, <span class="Constant">"F - test-surface-pin-2"</span> <span id="L347" class="LineNr">347 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">2</span>, <span class="Constant">"abcd"</span>, <span class="Constant">"F - test-surface-pin-2"</span> @@ -424,8 +423,8 @@ if ('onhashchange' in window) { <span id="L358" class="LineNr">358 </span> <a href='surface.mu.html#L53'>pin-surface-at</a> s-addr, <span class="Constant">2</span>, <span class="Constant">1</span> <span class="muComment"># surface row and column</span> <span id="L359" class="LineNr">359 </span> <a href='surface.mu.html#L63'>pin-surface-to</a> s-addr, <span class="Constant">1</span>, <span class="Constant">1</span> <span class="muComment"># screen row and column</span> <span id="L360" class="LineNr">360 </span> <a href='surface.mu.html#L73'>render-surface</a> s-addr -<span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L362" class="LineNr">362 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L362" class="LineNr">362 </span> <span class="PreProc">var</span> screen-addr/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L363" class="LineNr">363 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">1</span>, <span class="Constant">"ghij"</span>, <span class="Constant">"F - test-surface-pin-3"</span> <span id="L364" class="LineNr">364 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">2</span>, <span class="Constant">"mnop"</span>, <span class="Constant">"F - test-surface-pin-3"</span> <span id="L365" class="LineNr">365 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">3</span>, <span class="Constant">"stuv"</span>, <span class="Constant">"F - test-surface-pin-3"</span> @@ -441,8 +440,8 @@ if ('onhashchange' in window) { <span id="L375" class="LineNr">375 </span> <a href='surface.mu.html#L53'>pin-surface-at</a> s-addr, <span class="Constant">1</span>, <span class="Constant">1</span> <span class="muComment"># surface row and column</span> <span id="L376" class="LineNr">376 </span> <a href='surface.mu.html#L63'>pin-surface-to</a> s-addr, <span class="Constant">1</span>, <span class="Constant">2</span> <span class="muComment"># screen row and column</span> <span id="L377" class="LineNr">377 </span> <a href='surface.mu.html#L73'>render-surface</a> s-addr -<span id="L378" class="LineNr">378 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L379" class="LineNr">379 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L378" class="LineNr">378 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L379" class="LineNr">379 </span> <span class="PreProc">var</span> screen-addr/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L380" class="LineNr">380 </span> <span class="muComment"># surface edge reached (should seldom happen in the app)</span> <span id="L381" class="LineNr">381 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">1</span>, <span class="Constant">" abc"</span>, <span class="Constant">"F - test-surface-pin-4"</span> <span id="L382" class="LineNr">382 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">2</span>, <span class="Constant">" ghi"</span>, <span class="Constant">"F - test-surface-pin-4"</span> @@ -459,8 +458,8 @@ if ('onhashchange' in window) { <span id="L393" class="LineNr">393 </span> <a href='surface.mu.html#L53'>pin-surface-at</a> s-addr, <span class="Constant">1</span>, <span class="Constant">2</span> <span class="muComment"># surface row and column</span> <span id="L394" class="LineNr">394 </span> <a href='surface.mu.html#L63'>pin-surface-to</a> s-addr, <span class="Constant">1</span>, <span class="Constant">1</span> <span class="muComment"># screen row and column</span> <span id="L395" class="LineNr">395 </span> <a href='surface.mu.html#L73'>render-surface</a> s-addr -<span id="L396" class="LineNr">396 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> -<span id="L397" class="LineNr">397 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L396" class="LineNr">396 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> s-addr, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L397" class="LineNr">397 </span> <span class="PreProc">var</span> screen-addr/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L398" class="LineNr">398 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">1</span>, <span class="Constant">"bcde"</span>, <span class="Constant">"F - test-surface-pin-5"</span> <span id="L399" class="LineNr">399 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">2</span>, <span class="Constant">"hijk"</span>, <span class="Constant">"F - test-surface-pin-5"</span> <span id="L400" class="LineNr">400 </span> <a href='../405screen.mu.html#L627'>check-screen-row</a> screen-addr, <span class="Constant">3</span>, <span class="Constant">"nopq"</span>, <span class="Constant">"F - test-surface-pin-5"</span> @@ -469,9 +468,9 @@ if ('onhashchange' in window) { <span id="L403" class="LineNr">403 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='surface.mu.html#L403'>initialize-surface-with-fake-screen</a></span> _self: (addr <a href='surface.mu.html#L7'>surface</a>), nrows: int, ncols: int, in: (addr array byte) <span class="Delimiter">{</span> <span id="L404" class="LineNr">404 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='surface.mu.html#L7'>surface</a>) <span class="Special"><-</span> copy _self <span id="L405" class="LineNr">405 </span> <span class="muComment"># fill in screen</span> -<span id="L406" class="LineNr">406 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> +<span id="L406" class="LineNr">406 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../405screen.mu.html#L9'>screen</a> <span id="L407" class="LineNr">407 </span> <a href='../120allocate.subx.html#L66'>allocate</a> screen-ah -<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> screen-addr/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L409" class="LineNr">409 </span> <a href='../405screen.mu.html#L30'>initialize-screen</a> screen-addr, nrows, ncols <span id="L410" class="LineNr">410 </span> <span class="muComment"># fill in everything else</span> <span id="L411" class="LineNr">411 </span> <a href='surface.mu.html#L21'>initialize-surface-with</a> self, in diff --git a/html/linux/tile/table.mu.html b/html/linux/tile/table.mu.html index f25c562a..6d035787 100644 --- a/html/linux/tile/table.mu.html +++ b/html/linux/tile/table.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.CommentedCode { color: #8a8a8a; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.Special { color: #ff6060; } --> </style> @@ -65,23 +64,23 @@ if ('onhashchange' in window) { <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L1'>initialize-table</a></span> _self: (addr <a href='data.mu.html#L59'>table</a>), n: int <span class="Delimiter">{</span> <span id="L2" class="LineNr"> 2 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> copy _self -<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data +<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data <span id="L4" class="LineNr"> 4 </span> populate data-ah, n <span id="L5" class="LineNr"> 5 </span><span class="Delimiter">}</span> <span id="L6" class="LineNr"> 6 </span> <span id="L7" class="LineNr"> 7 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L7'>deep-copy-table</a></span> _src: (addr <a href='data.mu.html#L59'>table</a>), _dest: (addr <a href='data.mu.html#L59'>table</a>) <span class="Delimiter">{</span> <span id="L8" class="LineNr"> 8 </span><span class="CommentedCode">#? print-string 0, "deep-copy-table\n"</span> -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> copy _src -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> src-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, data -<span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> _src-data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-data-ah +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> src/eax: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> copy _src +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> src-data-ah/eax: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, data +<span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> _src-data/eax: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-data-ah <span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> src-data/<span class="muRegEsi">esi</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy _src-data <span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> n/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length src-data -<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> copy _dest +<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> copy _dest <span id="L15" class="LineNr"> 15 </span> <a href='table.mu.html#L1'>initialize-table</a> dest, n -<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> dest-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, data -<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> _dest-data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-data-ah +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> dest-data-ah/eax: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, data +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> _dest-data/eax: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-data-ah <span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> dest-data/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy _dest-data -<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">{</span> <span id="L21" class="LineNr"> 21 </span> compare i, n <span id="L22" class="LineNr"> 22 </span> <span class="PreProc">break-if->=</span> @@ -91,19 +90,19 @@ if ('onhashchange' in window) { <span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> src-bind/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> index src-data, offset <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> dest-bind/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> index dest-data, offset <span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> src-key-ah/<span class="muRegEbx">ebx</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-bind, key -<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> src-key/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-key-ah +<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> src-key/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-key-ah <span id="L30" class="LineNr"> 30 </span> compare src-key, <span class="Constant">0</span> <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">break-if-=</span> <span id="L32" class="LineNr"> 32 </span> <span class="muComment"># copy key</span> -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> dest-key-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-bind, key +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> dest-key-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-bind, key <span id="L34" class="LineNr"> 34 </span> copy-object src-key-ah, dest-key-ah <span id="L35" class="LineNr"> 35 </span> <span class="muComment"># deep copy value</span> -<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> src-val-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-bind, <a href='data.mu.html#L49'>value</a> -<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> _src-val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-val-ah +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> src-val-ah/eax: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-bind, <a href='data.mu.html#L49'>value</a> +<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> _src-val/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-val-ah <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> src-val/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _src-val -<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> dest-val-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-bind, <a href='data.mu.html#L49'>value</a> +<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> dest-val-ah/eax: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-bind, <a href='data.mu.html#L49'>value</a> <span id="L40" class="LineNr"> 40 </span> <a href='../120allocate.subx.html#L66'>allocate</a> dest-val-ah -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> dest-val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-val-ah +<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> dest-val/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-val-ah <span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? print-string 0, "deep copy value {\n"</span> <span id="L43" class="LineNr"> 43 </span> <a href='value.mu.html#L338'>deep-copy-value</a> src-val, dest-val <span id="L44" class="LineNr"> 44 </span><span class="CommentedCode">#? print-string 0, "}\n"</span> @@ -117,19 +116,19 @@ if ('onhashchange' in window) { <span id="L52" class="LineNr"> 52 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L52'>bind-in-table</a></span> _self: (addr <a href='data.mu.html#L59'>table</a>), key: (addr handle array byte), val: (addr <a href='data.mu.html#L49'>value</a>) <span class="Delimiter">{</span> <span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> copy _self <span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEsi">esi</span>: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy _data -<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> next-empty-slot-index/<span class="muRegEax">eax</span>: (offset <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='table.mu.html#L63'>next-empty-slot</a> data, key -<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> index data, next-empty-slot-index +<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> next-empty-slot-index/eax: (offset <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='table.mu.html#L63'>next-empty-slot</a> data, key +<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> index data, next-empty-slot-index <span id="L59" class="LineNr"> 59 </span> <a href='table.mu.html#L98'>make-binding</a> dest, key, val <span id="L60" class="LineNr"> 60 </span><span class="Delimiter">}</span> <span id="L61" class="LineNr"> 61 </span> <span id="L62" class="LineNr"> 62 </span><span class="muComment"># manual test: full array of binds</span> -<span id="L63" class="LineNr"> 63 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L63'>next-empty-slot</a></span> _data: (addr array <a href='data.mu.html#L64'>bind</a>), key: (addr handle array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: (offset <a href='data.mu.html#L64'>bind</a>) <span class="Delimiter">{</span> +<span id="L63" class="LineNr"> 63 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L63'>next-empty-slot</a></span> _data: (addr array <a href='data.mu.html#L64'>bind</a>), key: (addr handle array byte)<span class="PreProc"> -> </span>_/eax: (offset <a href='data.mu.html#L64'>bind</a>) <span class="Delimiter">{</span> <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy _data <span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length data <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> i/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: (offset <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: (offset <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L68" class="LineNr"> 68 </span> $next-empty-slot:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L69" class="LineNr"> 69 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> compute-offset data, i <span id="L70" class="LineNr"> 70 </span> compare i, len @@ -137,7 +136,7 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr"> 72 </span> <span class="Delimiter">{</span> <span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> target/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> index data, <a href='data.mu.html#L82'>result</a> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> target2/<span class="muRegEsi">esi</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, key -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> target3/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target2 +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> target3/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target2 <span id="L76" class="LineNr"> 76 </span> compare target3, <span class="Constant">0</span> <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">break-if-=</span> $next-empty-slot:<span class="PreProc">loop</span> <span id="L78" class="LineNr"> 78 </span> <span class="muComment"># TODO: how to indicate that key already exists? we don't want to permit rebinding</span> @@ -150,30 +149,30 @@ if ('onhashchange' in window) { <span id="L85" class="LineNr"> 85 </span> <span id="L86" class="LineNr"> 86 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L86'>make-number-binding</a></span> _self: (addr <a href='data.mu.html#L64'>bind</a>), key: (addr handle array byte), _val: float <span class="Delimiter">{</span> <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy _self -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, key +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> dest/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, key <span id="L89" class="LineNr"> 89 </span> copy-object key, dest -<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> dest2/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='data.mu.html#L49'>value</a> +<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> dest2/eax: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='data.mu.html#L49'>value</a> <span id="L91" class="LineNr"> 91 </span> <a href='../120allocate.subx.html#L66'>allocate</a> dest2 -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> dest3/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest2 -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> dest4/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest3, number-data +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> dest3/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest2 +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> dest4/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest3, number-data <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> val/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy _val <span id="L95" class="LineNr"> 95 </span> copy-to *dest4, val <span id="L96" class="LineNr"> 96 </span><span class="Delimiter">}</span> <span id="L97" class="LineNr"> 97 </span> <span id="L98" class="LineNr"> 98 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L98'>make-binding</a></span> _self: (addr <a href='data.mu.html#L64'>bind</a>), key: (addr handle array byte), val: (addr <a href='data.mu.html#L49'>value</a>) <span class="Delimiter">{</span> <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy _self -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, key +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> dest/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, key <span id="L101" class="LineNr">101 </span> copy-object key, dest -<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> dest2/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='data.mu.html#L49'>value</a> +<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> dest2/eax: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='data.mu.html#L49'>value</a> <span id="L103" class="LineNr">103 </span> <a href='../120allocate.subx.html#L66'>allocate</a> dest2 -<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> dest3/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest2 +<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> dest3/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest2 <span id="L105" class="LineNr">105 </span> copy-object val, dest3 <span id="L106" class="LineNr">106 </span><span class="Delimiter">}</span> <span id="L107" class="LineNr">107 </span> <span id="L108" class="LineNr">108 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L108'>lookup-binding</a></span> _self: (addr <a href='data.mu.html#L59'>table</a>), key: (addr array byte), out: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Delimiter">{</span> <span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> copy _self <span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEsi">esi</span>: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy _data <span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> len/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length data <span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> @@ -184,14 +183,14 @@ if ('onhashchange' in window) { <span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> compute-offset data, i <span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> target-bind/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> index data, offset <span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> target2/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-bind, key -<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> target3/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target2 +<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> target3/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *target2 <span id="L123" class="LineNr">123 </span> compare target3, <span class="Constant">0</span> <span id="L124" class="LineNr">124 </span> <span class="PreProc">break-if-=</span> $lookup-binding:<span class="PreProc">loop</span> -<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> target3, key +<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> target3, key <span id="L126" class="LineNr">126 </span> compare match?, <span class="Constant">0</span>/false <span id="L127" class="LineNr">127 </span> <span class="PreProc">break-if-=</span> <span id="L128" class="LineNr">128 </span> <span class="muComment"># found</span> -<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> target/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-bind, <a href='data.mu.html#L49'>value</a> +<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> target/eax: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-bind, <a href='data.mu.html#L49'>value</a> <span id="L130" class="LineNr">130 </span> copy-object target, out <span id="L131" class="LineNr">131 </span> <span class="PreProc">break</span> $lookup-binding:<span class="PreProc">loop</span> <span id="L132" class="LineNr">132 </span> <span class="Delimiter">}</span> @@ -203,7 +202,7 @@ if ('onhashchange' in window) { <span id="L138" class="LineNr">138 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='table.mu.html#L138'>dump-table</a></span> _self: (addr <a href='data.mu.html#L59'>table</a>) <span class="Delimiter">{</span> <span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L59'>table</a>) <span class="Special"><-</span> copy _self <span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEsi">esi</span>: (addr handle array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr array <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> copy _data <span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> len/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length data <span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> @@ -213,14 +212,14 @@ if ('onhashchange' in window) { <span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> compute-offset data, i <span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> target-bind/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L64'>bind</a>) <span class="Special"><-</span> index data, offset <span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> key-ah/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-bind, key -<span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *key-ah +<span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> key/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *key-ah <span id="L152" class="LineNr">152 </span> compare key, <span class="Constant">0</span> <span id="L153" class="LineNr">153 </span> <span class="PreProc">break-if-=</span> <span id="L154" class="LineNr">154 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, key <span id="L155" class="LineNr">155 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">": "</span> -<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-bind, <a href='data.mu.html#L49'>value</a> -<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah -<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, <span class="PreProc">type</span> +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target-bind, <a href='data.mu.html#L49'>value</a> +<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> val/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, <span class="PreProc">type</span> <span id="L159" class="LineNr">159 </span> <a href='../405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>, *<span class="PreProc">type</span> <span id="L160" class="LineNr">160 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> <span id="L161" class="LineNr">161 </span> i <span class="Special"><-</span> increment diff --git a/html/linux/tile/value-stack.mu.html b/html/linux/tile/value-stack.mu.html index d359cd35..b8bd621a 100644 --- a/html/linux/tile/value-stack.mu.html +++ b/html/linux/tile/value-stack.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -74,13 +73,13 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy _self <span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data <span id="L11" class="LineNr"> 11 </span> populate d, n -<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L13" class="LineNr"> 13 </span> copy-to *top, <span class="Constant">0</span> <span id="L14" class="LineNr"> 14 </span><span class="Delimiter">}</span> <span id="L15" class="LineNr"> 15 </span> <span id="L16" class="LineNr"> 16 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value-stack.mu.html#L16'>clear-value-stack</a></span> _self: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Delimiter">{</span> <span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy _self -<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L19" class="LineNr"> 19 </span> copy-to *top, <span class="Constant">0</span> <span id="L20" class="LineNr"> 20 </span><span class="Delimiter">}</span> <span id="L21" class="LineNr"> 21 </span> @@ -88,16 +87,16 @@ if ('onhashchange' in window) { <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy _self <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset -<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> dest-addr2/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, number-data +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> dest-addr2/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, number-data <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> val/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy _val <span id="L32" class="LineNr"> 32 </span><span class="CommentedCode">#? print-float-decimal-approximate 0, val, 3</span> <span id="L33" class="LineNr"> 33 </span> copy-to *dest-addr2, val <span id="L34" class="LineNr"> 34 </span> increment *top-addr -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, <span class="PreProc">type</span> +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> type-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, <span class="PreProc">type</span> <span id="L36" class="LineNr"> 36 </span> copy-to *type-addr, <span class="Constant">0</span>/number <span id="L37" class="LineNr"> 37 </span><span class="Delimiter">}</span> <span id="L38" class="LineNr"> 38 </span> @@ -105,13 +104,13 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy _self <span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset -<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> dest-addr2/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, text-data +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> dest-addr2/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, text-data <span id="L48" class="LineNr"> 48 </span> <a href='../120allocate.subx.html#L497'>copy-handle</a> val, dest-addr2 -<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> dest-addr3/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, <span class="PreProc">type</span> +<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> dest-addr3/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, <span class="PreProc">type</span> <span id="L50" class="LineNr"> 50 </span><span class="CommentedCode">#? print-string 0, "setting type to 1: "</span> <span id="L51" class="LineNr"> 51 </span><span class="CommentedCode">#? {</span> <span id="L52" class="LineNr"> 52 </span><span class="CommentedCode">#? var foo/eax: int <- copy dest-addr3</span> @@ -126,14 +125,14 @@ if ('onhashchange' in window) { <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy _self <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> dest-addr2/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, array-data +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> dest-addr2/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, array-data <span id="L69" class="LineNr"> 69 </span> <a href='../120allocate.subx.html#L497'>copy-handle</a> val, dest-addr2 <span id="L70" class="LineNr"> 70 </span> <span class="muComment"># update type</span> -<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> dest-addr3/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, <span class="PreProc">type</span> +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> dest-addr3/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-addr, <span class="PreProc">type</span> <span id="L72" class="LineNr"> 72 </span> copy-to *dest-addr3, <span class="Constant">2</span>/array <span id="L73" class="LineNr"> 73 </span> increment *top-addr <span id="L74" class="LineNr"> 74 </span><span class="Delimiter">}</span> @@ -142,7 +141,7 @@ if ('onhashchange' in window) { <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy _self <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset @@ -156,23 +155,23 @@ if ('onhashchange' in window) { <span id="L91" class="LineNr"> 91 </span> <span class="Delimiter">{</span> <span id="L92" class="LineNr"> 92 </span> compare *top-addr, <span class="Constant">0</span> <span id="L93" class="LineNr"> 93 </span> <span class="PreProc">break-if-></span> -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> minus-one/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> minus-one/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> minus-one-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert minus-one <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">return</span> minus-one-f <span id="L97" class="LineNr"> 97 </span> <span class="Delimiter">}</span> <span id="L98" class="LineNr"> 98 </span> decrement *top-addr <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset data, <a href='../203stack.subx.html#L338'>top</a> -<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset -<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> result-addr2/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> result-addr, number-data +<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> result-addr/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index data, dest-offset +<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> result-addr2/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> result-addr, number-data <span id="L105" class="LineNr">105 </span> <span class="PreProc">return</span> *result-addr2 <span id="L106" class="LineNr">106 </span><span class="Delimiter">}</span> <span id="L107" class="LineNr">107 </span> -<span id="L108" class="LineNr">108 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value-stack.mu.html#L108'>value-stack-empty?</a></span> _self: (addr <a href='value-stack.mu.html#L3'>value-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L108" class="LineNr">108 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value-stack.mu.html#L108'>value-stack-empty?</a></span> _self: (addr <a href='value-stack.mu.html#L3'>value-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy _self -<span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L111" class="LineNr">111 </span> compare *top, <span class="Constant">0</span> <span id="L112" class="LineNr">112 </span> <span class="Delimiter">{</span> <span id="L113" class="LineNr">113 </span> <span class="PreProc">break-if-!=</span> @@ -181,19 +180,19 @@ if ('onhashchange' in window) { <span id="L116" class="LineNr">116 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L117" class="LineNr">117 </span><span class="Delimiter">}</span> <span id="L118" class="LineNr">118 </span> -<span id="L119" class="LineNr">119 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value-stack.mu.html#L119'>value-stack-length</a></span> _self: (addr <a href='value-stack.mu.html#L3'>value-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L119" class="LineNr">119 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value-stack.mu.html#L119'>value-stack-length</a></span> _self: (addr <a href='value-stack.mu.html#L3'>value-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='value-stack.mu.html#L3'>value-stack</a>) <span class="Special"><-</span> copy _self -<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L122" class="LineNr">122 </span> <span class="PreProc">return</span> *top-addr <span id="L123" class="LineNr">123 </span><span class="Delimiter">}</span> <span id="L124" class="LineNr">124 </span> <span id="L125" class="LineNr">125 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value-stack.mu.html#L125'>save-lines</a></span> in-h: (handle array (handle array byte)), _out-ah: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Delimiter">{</span> -<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> _in/<span class="muRegEax">eax</span>: (addr array (handle array byte)) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> in-h +<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> _in/eax: (addr array (handle array byte)) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> in-h <span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr array (handle array byte)) <span class="Special"><-</span> copy _in <span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length in <span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _out-ah <span id="L130" class="LineNr">130 </span> populate out-ah, len -<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out-ah +<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> out/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out-ah <span id="L132" class="LineNr">132 </span> <span class="muComment"># copy in into out</span> <span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L134" class="LineNr">134 </span> <span class="Delimiter">{</span> @@ -204,7 +203,7 @@ if ('onhashchange' in window) { <span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> index in, i <span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> dest-offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset out, i <span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> dest-val/<span class="muRegEdx">edx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index out, dest-offset -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-val, text-data +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> dest/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-val, text-data <span id="L143" class="LineNr">143 </span> copy-object src, dest <span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-val, <span class="PreProc">type</span> <span id="L145" class="LineNr">145 </span> copy-to *<span class="PreProc">type</span>, <span class="Constant">1</span>/string diff --git a/html/linux/tile/value.mu.html b/html/linux/tile/value.mu.html index 96e9efd7..e9b65c35 100644 --- a/html/linux/tile/value.mu.html +++ b/html/linux/tile/value.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muComment { color: #005faf; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } +.muFunction { color: #af5f00; text-decoration: underline; } .CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } -.Constant { color: #008787; } .Special { color: #ff6060; } -.PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } -.muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -71,15 +70,15 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span> compare *val-type, <span class="Constant">1</span>/string <span id="L7" class="LineNr"> 7 </span> <span class="Delimiter">{</span> <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">break-if-!=</span> -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, text-data -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> val-string/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, text-data +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> val-string/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L11" class="LineNr"> 11 </span> compare val-string, <span class="Constant">0</span> <span id="L12" class="LineNr"> 12 </span> <span class="PreProc">break-if-=</span> <span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> orig-len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length val-string <span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> truncated: (handle array byte) <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> truncated-ah/<span class="muRegEsi">esi</span>: (addr handle array byte) <span class="Special"><-</span> address truncated <span id="L16" class="LineNr"> 16 </span> <a href='../411string.mu.html#L2'>substring</a> val-string, <span class="Constant">0</span>, <span class="Constant">0xc</span>, truncated-ah -<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> truncated-string/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *truncated-ah +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> truncated-string/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *truncated-ah <span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> len/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length truncated-string <span id="L19" class="LineNr"> 19 </span> <a href='../405screen.mu.html#L523'>start-color</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0xf2</span>, <span class="Constant">7</span> <span id="L20" class="LineNr"> 20 </span> <a href='../405screen.mu.html#L435'>print-code-point</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0x275d</span>/open-quote @@ -96,16 +95,16 @@ if ('onhashchange' in window) { <span id="L31" class="LineNr"> 31 </span> compare *val-type, <span class="Constant">2</span>/array <span id="L32" class="LineNr"> 32 </span> <span class="Delimiter">{</span> <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">break-if-!=</span> -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, array-data -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> val-array/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, array-data +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> val-array/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L36" class="LineNr"> 36 </span> <a href='value.mu.html#L98'>render-array-at</a> <a href='../405screen.mu.html#L9'>screen</a>, row, col, val-array <span id="L37" class="LineNr"> 37 </span> <span class="PreProc">return</span> <span id="L38" class="LineNr"> 38 </span> <span class="Delimiter">}</span> <span id="L39" class="LineNr"> 39 </span> compare *val-type, <span class="Constant">3</span>/file <span id="L40" class="LineNr"> 40 </span> <span class="Delimiter">{</span> <span id="L41" class="LineNr"> 41 </span> <span class="PreProc">break-if-!=</span> -<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, file-data -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> val-file/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, file-data +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> val-file/eax: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L44" class="LineNr"> 44 </span> <a href='../405screen.mu.html#L523'>start-color</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0</span>, <span class="Constant">7</span> <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># TODO</span> <span id="L46" class="LineNr"> 46 </span> <a href='../405screen.mu.html#L169'>print-string</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">" FILE "</span> @@ -115,14 +114,14 @@ if ('onhashchange' in window) { <span id="L50" class="LineNr"> 50 </span> <span class="Delimiter">{</span> <span id="L51" class="LineNr"> 51 </span> <span class="PreProc">break-if-!=</span> <span id="L52" class="LineNr"> 52 </span><span class="CommentedCode">#? print-string 0, "render-screen"</span> -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, screen-data -<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> val-screen/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, screen-data +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> val-screen/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *val-ah <span id="L55" class="LineNr"> 55 </span> <a href='value.mu.html#L128'>render-screen</a> <a href='../405screen.mu.html#L9'>screen</a>, row, col, val-screen <span id="L56" class="LineNr"> 56 </span><span class="CommentedCode">#? print-string 0, "}\n"</span> <span id="L57" class="LineNr"> 57 </span> <span class="PreProc">return</span> <span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">}</span> <span id="L59" class="LineNr"> 59 </span> <span class="muComment"># render ints by default for now</span> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> val-num/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, number-data +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> val-num/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> val, number-data <span id="L61" class="LineNr"> 61 </span> <a href='value.mu.html#L66'>render-number</a> <a href='../405screen.mu.html#L9'>screen</a>, *val-num, top-level? <span id="L62" class="LineNr"> 62 </span><span class="Delimiter">}</span> <span id="L63" class="LineNr"> 63 </span> @@ -136,8 +135,8 @@ if ('onhashchange' in window) { <span id="L71" class="LineNr"> 71 </span> <a href='../412print-float-decimal.mu.html#L151'>print-float-decimal-approximate</a> <a href='../405screen.mu.html#L9'>screen</a>, val, <span class="Constant">3</span> <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">return</span> <span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">}</span> -<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> val-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert val -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> bg/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='value.mu.html#L159'>hash-color</a> val-int +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> val-int/eax: int <span class="Special"><-</span> convert val +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> bg/eax: int <span class="Special"><-</span> <a href='value.mu.html#L159'>hash-color</a> val-int <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> fg/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">7</span> <span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">{</span> <span id="L78" class="LineNr"> 78 </span> compare bg, <span class="Constant">2</span> @@ -167,7 +166,7 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> increment col <span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> a/<span class="muRegEsi">esi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _a <span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> <a href='surface.mu.html#L207'>max</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length a -<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L106" class="LineNr">106 </span> <span class="Delimiter">{</span> <span id="L107" class="LineNr">107 </span> compare i, <a href='surface.mu.html#L207'>max</a> <span id="L108" class="LineNr">108 </span> <span class="PreProc">break-if->=</span> @@ -180,7 +179,7 @@ if ('onhashchange' in window) { <span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index a, off <span id="L116" class="LineNr">116 </span> <a href='value.mu.html#L1'>render-value-at</a> <a href='../405screen.mu.html#L9'>screen</a>, row, col, x, <span class="Constant">0</span> <span id="L117" class="LineNr">117 </span> <span class="Delimiter">{</span> -<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> w/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='value.mu.html#L218'>value-width</a> x, <span class="Constant">0</span> +<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> w/eax: int <span class="Special"><-</span> <a href='value.mu.html#L218'>value-width</a> x, <span class="Constant">0</span> <span id="L119" class="LineNr">119 </span> add-to col, w <span id="L120" class="LineNr">120 </span> increment col <span id="L121" class="LineNr">121 </span> <span class="Delimiter">}</span> @@ -221,8 +220,8 @@ if ('onhashchange' in window) { <span id="L156" class="LineNr">156 </span> <a href='value.mu.html#L205'>print-lower-border</a> <a href='../405screen.mu.html#L9'>screen</a>, *ncols-a <span id="L157" class="LineNr">157 </span><span class="Delimiter">}</span> <span id="L158" class="LineNr">158 </span> -<span id="L159" class="LineNr">159 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L159'>hash-color</a></span> val: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> quotient/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L159" class="LineNr">159 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L159'>hash-color</a></span> val: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> quotient/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> remainder/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L162" class="LineNr">162 </span> quotient, remainder <span class="Special"><-</span> <a href='../314divide.subx.html#L3'>integer-divide</a> val, <span class="Constant">7</span> <span class="muComment"># assumes that 7 is always the background color</span> <span id="L163" class="LineNr">163 </span> <span class="PreProc">return</span> remainder @@ -235,16 +234,16 @@ if ('onhashchange' in window) { <span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _col <span id="L171" class="LineNr">171 </span> <span class="muComment"># if cursor is at screen-cell, add some fancy</span> <span id="L172" class="LineNr">172 </span> <span class="Delimiter">{</span> -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> cursor-row/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-row +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> cursor-row/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-row <span id="L174" class="LineNr">174 </span> compare *cursor-row, row <span id="L175" class="LineNr">175 </span> <span class="PreProc">break-if-!=</span> -<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> cursor-col/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-col +<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> cursor-col/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> target, cursor-col <span id="L177" class="LineNr">177 </span> compare *cursor-col, col <span id="L178" class="LineNr">178 </span> <span class="PreProc">break-if-!=</span> <span id="L179" class="LineNr">179 </span> <a href='../405screen.mu.html#L583'>start-blinking</a> <a href='../405screen.mu.html#L9'>screen</a> <span id="L180" class="LineNr">180 </span> <a href='../405screen.mu.html#L523'>start-color</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0</span>, <span class="Constant">1</span> <span id="L181" class="LineNr">181 </span> <span class="Delimiter">}</span> -<span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../405screen.mu.html#L308'>screen-grapheme-at</a> target, row, col +<span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../405screen.mu.html#L308'>screen-grapheme-at</a> target, row, col <span id="L183" class="LineNr">183 </span> <span class="Delimiter">{</span> <span id="L184" class="LineNr">184 </span> compare g, <span class="Constant">0</span> <span id="L185" class="LineNr">185 </span> <span class="PreProc">break-if-!=</span> @@ -256,7 +255,7 @@ if ('onhashchange' in window) { <span id="L191" class="LineNr">191 </span> <span id="L192" class="LineNr">192 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L192'>print-upper-border</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), width: int <span class="Delimiter">{</span> <span id="L193" class="LineNr">193 </span> <a href='../405screen.mu.html#L435'>print-code-point</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0x250c</span>/top-left-corner -<span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L195" class="LineNr">195 </span> <span class="Delimiter">{</span> <span id="L196" class="LineNr">196 </span> compare i, width <span id="L197" class="LineNr">197 </span> <span class="PreProc">break-if->=</span> @@ -269,7 +268,7 @@ if ('onhashchange' in window) { <span id="L204" class="LineNr">204 </span> <span id="L205" class="LineNr">205 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L205'>print-lower-border</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), width: int <span class="Delimiter">{</span> <span id="L206" class="LineNr">206 </span> <a href='../405screen.mu.html#L435'>print-code-point</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0x2514</span>/bottom-left-corner -<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L208" class="LineNr">208 </span> <span class="Delimiter">{</span> <span id="L209" class="LineNr">209 </span> compare i, width <span id="L210" class="LineNr">210 </span> <span class="PreProc">break-if->=</span> @@ -280,24 +279,24 @@ if ('onhashchange' in window) { <span id="L215" class="LineNr">215 </span> <a href='../405screen.mu.html#L435'>print-code-point</a> <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0x2518</span>/bottom-right-corner <span id="L216" class="LineNr">216 </span><span class="Delimiter">}</span> <span id="L217" class="LineNr">217 </span> -<span id="L218" class="LineNr">218 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L218'>value-width</a></span> _v: (addr <a href='data.mu.html#L49'>value</a>), top-level: boolean<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L218" class="LineNr">218 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L218'>value-width</a></span> _v: (addr <a href='data.mu.html#L49'>value</a>), top-level: boolean<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _v -<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, <span class="PreProc">type</span> +<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, <span class="PreProc">type</span> <span id="L221" class="LineNr">221 </span> <span class="Delimiter">{</span> <span id="L222" class="LineNr">222 </span> compare *<span class="PreProc">type</span>, <span class="Constant">0</span>/int <span id="L223" class="LineNr">223 </span> <span class="PreProc">break-if-!=</span> <span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> v-num/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, number-data -<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../412print-float-decimal.mu.html#L510'>float-size</a> *v-num, <span class="Constant">3</span> +<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> <a href='../412print-float-decimal.mu.html#L510'>float-size</a> *v-num, <span class="Constant">3</span> <span id="L226" class="LineNr">226 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L227" class="LineNr">227 </span> <span class="Delimiter">}</span> <span id="L228" class="LineNr">228 </span> <span class="Delimiter">{</span> <span id="L229" class="LineNr">229 </span> compare *<span class="PreProc">type</span>, <span class="Constant">1</span>/string <span id="L230" class="LineNr">230 </span> <span class="PreProc">break-if-!=</span> -<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> s-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, text-data -<span id="L232" class="LineNr">232 </span> <span class="PreProc">var</span> s/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *s-ah +<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> s-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, text-data +<span id="L232" class="LineNr">232 </span> <span class="PreProc">var</span> s/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *s-ah <span id="L233" class="LineNr">233 </span> compare s, <span class="Constant">0</span> <span id="L234" class="LineNr">234 </span> <span class="PreProc">break-if-=</span> -<span id="L235" class="LineNr">235 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> length s +<span id="L235" class="LineNr">235 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> length s <span id="L236" class="LineNr">236 </span> compare <a href='data.mu.html#L82'>result</a>, <span class="Constant">0xd</span>/max-string-size <span id="L237" class="LineNr">237 </span> <span class="Delimiter">{</span> <span id="L238" class="LineNr">238 </span> <span class="PreProc">break-if-<=</span> @@ -316,18 +315,18 @@ if ('onhashchange' in window) { <span id="L251" class="LineNr">251 </span> <span class="Delimiter">{</span> <span id="L252" class="LineNr">252 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/array <span id="L253" class="LineNr">253 </span> <span class="PreProc">break-if-!=</span> -<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> a-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, array-data -<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *a-ah +<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> a-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, array-data +<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> a/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *a-ah <span id="L256" class="LineNr">256 </span> compare a, <span class="Constant">0</span> <span id="L257" class="LineNr">257 </span> <span class="PreProc">break-if-=</span> -<span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='value.mu.html#L287'>array-width</a> a +<span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> <a href='value.mu.html#L287'>array-width</a> a <span id="L259" class="LineNr">259 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L260" class="LineNr">260 </span> <span class="Delimiter">}</span> <span id="L261" class="LineNr">261 </span> <span class="Delimiter">{</span> <span id="L262" class="LineNr">262 </span> compare *<span class="PreProc">type</span>, <span class="Constant">3</span>/file <span id="L263" class="LineNr">263 </span> <span class="PreProc">break-if-!=</span> -<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> f-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, file-data -<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *f-ah +<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> f-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, file-data +<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> f/eax: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *f-ah <span id="L266" class="LineNr">266 </span> compare f, <span class="Constant">0</span> <span id="L267" class="LineNr">267 </span> <span class="PreProc">break-if-=</span> <span id="L268" class="LineNr">268 </span> <span class="muComment"># TODO: visualizing file handles</span> @@ -336,12 +335,12 @@ if ('onhashchange' in window) { <span id="L271" class="LineNr">271 </span> <span class="Delimiter">{</span> <span id="L272" class="LineNr">272 </span> compare *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen <span id="L273" class="LineNr">273 </span> <span class="PreProc">break-if-!=</span> -<span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, screen-data -<span id="L275" class="LineNr">275 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, screen-data +<span id="L275" class="LineNr">275 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L276" class="LineNr">276 </span> compare <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0</span> <span id="L277" class="LineNr">277 </span> <span class="PreProc">break-if-=</span> <span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> ncols/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='../405screen.mu.html#L9'>screen</a>, num-cols -<span id="L279" class="LineNr">279 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *ncols +<span id="L279" class="LineNr">279 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> copy *ncols <span id="L280" class="LineNr">280 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add <span class="Constant">2</span> <span class="muComment"># left/right margins</span> <span id="L281" class="LineNr">281 </span> <span class="PreProc">return</span> *ncols <span id="L282" class="LineNr">282 </span> <span class="Delimiter">}</span> @@ -349,10 +348,10 @@ if ('onhashchange' in window) { <span id="L284" class="LineNr">284 </span><span class="Delimiter">}</span> <span id="L285" class="LineNr">285 </span> <span id="L286" class="LineNr">286 </span><span class="muComment"># keep sync'd with render-array-at</span> -<span id="L287" class="LineNr">287 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L287'>array-width</a></span> _a: (addr array <a href='data.mu.html#L49'>value</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L287" class="LineNr">287 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L287'>array-width</a></span> _a: (addr array <a href='data.mu.html#L49'>value</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L288" class="LineNr">288 </span> <span class="PreProc">var</span> a/<span class="muRegEsi">esi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _a <span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> <a href='surface.mu.html#L207'>max</a>/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length a -<span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L292" class="LineNr">292 </span> <span class="Delimiter">{</span> <span id="L293" class="LineNr">293 </span> compare i, <a href='surface.mu.html#L207'>max</a> @@ -365,7 +364,7 @@ if ('onhashchange' in window) { <span id="L300" class="LineNr">300 </span> <span class="PreProc">var</span> off/<span class="muRegEcx">ecx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset a, i <span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index a, off <span id="L302" class="LineNr">302 </span> <span class="Delimiter">{</span> -<span id="L303" class="LineNr">303 </span> <span class="PreProc">var</span> w/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='value.mu.html#L218'>value-width</a> x, <span class="Constant">0</span> +<span id="L303" class="LineNr">303 </span> <span class="PreProc">var</span> w/eax: int <span class="Special"><-</span> <a href='value.mu.html#L218'>value-width</a> x, <span class="Constant">0</span> <span id="L304" class="LineNr">304 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add w <span id="L305" class="LineNr">305 </span> <span class="Delimiter">}</span> <span id="L306" class="LineNr">306 </span> i <span class="Special"><-</span> increment @@ -376,9 +375,9 @@ if ('onhashchange' in window) { <span id="L311" class="LineNr">311 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L312" class="LineNr">312 </span><span class="Delimiter">}</span> <span id="L313" class="LineNr">313 </span> -<span id="L314" class="LineNr">314 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L314'>value-height</a></span> _v: (addr <a href='data.mu.html#L49'>value</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L314" class="LineNr">314 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='value.mu.html#L314'>value-height</a></span> _v: (addr <a href='data.mu.html#L49'>value</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _v -<span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, <span class="PreProc">type</span> +<span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, <span class="PreProc">type</span> <span id="L317" class="LineNr">317 </span> <span class="Delimiter">{</span> <span id="L318" class="LineNr">318 </span> compare *<span class="PreProc">type</span>, <span class="Constant">3</span>/file <span id="L319" class="LineNr">319 </span> <span class="PreProc">break-if-!=</span> @@ -388,12 +387,12 @@ if ('onhashchange' in window) { <span id="L323" class="LineNr">323 </span> <span class="Delimiter">{</span> <span id="L324" class="LineNr">324 </span> compare *<span class="PreProc">type</span>, <span class="Constant">4</span>/screen <span id="L325" class="LineNr">325 </span> <span class="PreProc">break-if-!=</span> -<span id="L326" class="LineNr">326 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, screen-data -<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah +<span id="L326" class="LineNr">326 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> v, screen-data +<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> <a href='../405screen.mu.html#L9'>screen</a>/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *screen-ah <span id="L328" class="LineNr">328 </span> compare <a href='../405screen.mu.html#L9'>screen</a>, <span class="Constant">0</span> <span id="L329" class="LineNr">329 </span> <span class="PreProc">break-if-=</span> <span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> nrows/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> <a href='../405screen.mu.html#L9'>screen</a>, num-rows -<span id="L331" class="LineNr">331 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *nrows +<span id="L331" class="LineNr">331 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> copy *nrows <span id="L332" class="LineNr">332 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add <span class="Constant">2</span> <span class="muComment"># top and bottom border</span> <span id="L333" class="LineNr">333 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L334" class="LineNr">334 </span> <span class="Delimiter">}</span> @@ -411,7 +410,7 @@ if ('onhashchange' in window) { <span id="L346" class="LineNr">346 </span> <span class="Delimiter">{</span> <span id="L347" class="LineNr">347 </span> <span class="PreProc">break-if-!=</span> <span id="L348" class="LineNr">348 </span><span class="CommentedCode">#? print-string 0, "int value\n"</span> -<span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> src-n/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, number-data +<span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> src-n/eax: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, number-data <span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> dest-n/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, number-data <span id="L351" class="LineNr">351 </span> copy-object src-n, dest-n <span id="L352" class="LineNr">352 </span> <span class="PreProc">return</span> @@ -420,8 +419,8 @@ if ('onhashchange' in window) { <span id="L355" class="LineNr">355 </span> <span class="Delimiter">{</span> <span id="L356" class="LineNr">356 </span> <span class="PreProc">break-if-!=</span> <span id="L357" class="LineNr">357 </span><span class="CommentedCode">#? print-string 0, "string value\n"</span> -<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, text-data -<span id="L359" class="LineNr">359 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, text-data +<span id="L359" class="LineNr">359 </span> <span class="PreProc">var</span> src/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L360" class="LineNr">360 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, text-data <span id="L361" class="LineNr">361 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> src, dest-ah <span id="L362" class="LineNr">362 </span> <span class="PreProc">return</span> @@ -430,21 +429,21 @@ if ('onhashchange' in window) { <span id="L365" class="LineNr">365 </span> <span class="Delimiter">{</span> <span id="L366" class="LineNr">366 </span> <span class="PreProc">break-if-!=</span> <span id="L367" class="LineNr">367 </span><span class="CommentedCode">#? print-string 0, "array value\n"</span> -<span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, array-data -<span id="L369" class="LineNr">369 </span> <span class="PreProc">var</span> _src/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, array-data +<span id="L369" class="LineNr">369 </span> <span class="PreProc">var</span> _src/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L370" class="LineNr">370 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _src <span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> n/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length src <span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEdx">edx</span>: (addr handle array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, array-data <span id="L373" class="LineNr">373 </span> populate dest-ah, n -<span id="L374" class="LineNr">374 </span> <span class="PreProc">var</span> _dest/<span class="muRegEax">eax</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah +<span id="L374" class="LineNr">374 </span> <span class="PreProc">var</span> _dest/eax: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah <span id="L375" class="LineNr">375 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr array <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> copy _dest -<span id="L376" class="LineNr">376 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L376" class="LineNr">376 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L377" class="LineNr">377 </span> <span class="Delimiter">{</span> <span id="L378" class="LineNr">378 </span> compare i, n <span id="L379" class="LineNr">379 </span> <span class="PreProc">break-if->=</span> <span id="L380" class="LineNr">380 </span> <span class="Delimiter">{</span> <span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> offset/<span class="muRegEdx">edx</span>: (offset <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> compute-offset src, i -<span id="L382" class="LineNr">382 </span> <span class="PreProc">var</span> src-element/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index src, offset +<span id="L382" class="LineNr">382 </span> <span class="PreProc">var</span> src-element/eax: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index src, offset <span id="L383" class="LineNr">383 </span> <span class="PreProc">var</span> dest-element/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L49'>value</a>) <span class="Special"><-</span> index dest, offset <span id="L384" class="LineNr">384 </span> <a href='value.mu.html#L338'>deep-copy-value</a> src-element, dest-element <span id="L385" class="LineNr">385 </span> <span class="Delimiter">}</span> @@ -458,13 +457,13 @@ if ('onhashchange' in window) { <span id="L393" class="LineNr">393 </span> <span class="Delimiter">{</span> <span id="L394" class="LineNr">394 </span> <span class="PreProc">break-if-!=</span> <span id="L395" class="LineNr">395 </span><span class="CommentedCode">#? print-string 0, "file value\n"</span> -<span id="L396" class="LineNr">396 </span> <span class="PreProc">var</span> src-filename-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, filename -<span id="L397" class="LineNr">397 </span> <span class="PreProc">var</span> _src-filename/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-filename-ah +<span id="L396" class="LineNr">396 </span> <span class="PreProc">var</span> src-filename-ah/eax: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, filename +<span id="L397" class="LineNr">397 </span> <span class="PreProc">var</span> _src-filename/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-filename-ah <span id="L398" class="LineNr">398 </span> <span class="PreProc">var</span> src-filename/<span class="muRegEcx">ecx</span>: (addr array byte) <span class="Special"><-</span> copy _src-filename <span id="L399" class="LineNr">399 </span> <span class="PreProc">var</span> dest-filename-ah/<span class="muRegEbx">ebx</span>: (addr handle array byte) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, filename <span id="L400" class="LineNr">400 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> src-filename, dest-filename-ah -<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> src-file-ah/<span class="muRegEax">eax</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, file-data -<span id="L402" class="LineNr">402 </span> <span class="PreProc">var</span> src-file/<span class="muRegEax">eax</span>: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-file-ah +<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> src-file-ah/eax: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, file-data +<span id="L402" class="LineNr">402 </span> <span class="PreProc">var</span> src-file/eax: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-file-ah <span id="L403" class="LineNr">403 </span> <span class="PreProc">var</span> dest-file-ah/<span class="muRegEdx">edx</span>: (addr handle buffered-file) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, file-data <span id="L404" class="LineNr">404 </span> <a href='../312copy.subx.html#L17'>copy-file</a> src-file, dest-file-ah, src-filename <span id="L405" class="LineNr">405 </span> <span class="PreProc">return</span> @@ -473,16 +472,16 @@ if ('onhashchange' in window) { <span id="L408" class="LineNr">408 </span> <span class="Delimiter">{</span> <span id="L409" class="LineNr">409 </span> <span class="PreProc">break-if-!=</span> <span id="L410" class="LineNr">410 </span><span class="CommentedCode">#? print-string 0, "screen value\n"</span> -<span id="L411" class="LineNr">411 </span> <span class="PreProc">var</span> src-screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, screen-data -<span id="L412" class="LineNr">412 </span> <span class="PreProc">var</span> _src-screen/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-screen-ah +<span id="L411" class="LineNr">411 </span> <span class="PreProc">var</span> src-screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, screen-data +<span id="L412" class="LineNr">412 </span> <span class="PreProc">var</span> _src-screen/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-screen-ah <span id="L413" class="LineNr">413 </span> <span class="PreProc">var</span> src-screen/<span class="muRegEcx">ecx</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> copy _src-screen -<span id="L414" class="LineNr">414 </span> <span class="PreProc">var</span> dest-screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, screen-data +<span id="L414" class="LineNr">414 </span> <span class="PreProc">var</span> dest-screen-ah/eax: (addr handle <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest, screen-data <span id="L415" class="LineNr">415 </span> <a href='../120allocate.subx.html#L66'>allocate</a> dest-screen-ah -<span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> dest-screen/<span class="muRegEax">eax</span>: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-screen-ah +<span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> dest-screen/eax: (addr <a href='../405screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-screen-ah <span id="L417" class="LineNr">417 </span> copy-object src-screen, dest-screen <span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> dest-screen-data-ah/<span class="muRegEbx">ebx</span>: (addr handle array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-screen, data -<span id="L419" class="LineNr">419 </span> <span class="PreProc">var</span> src-screen-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-screen, data -<span id="L420" class="LineNr">420 </span> <span class="PreProc">var</span> src-screen-data/<span class="muRegEax">eax</span>: (addr array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-screen-data-ah +<span id="L419" class="LineNr">419 </span> <span class="PreProc">var</span> src-screen-data-ah/eax: (addr handle array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-screen, data +<span id="L420" class="LineNr">420 </span> <span class="PreProc">var</span> src-screen-data/eax: (addr array <a href='../405screen.mu.html#L20'>screen-cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-screen-data-ah <span id="L421" class="LineNr">421 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> src-screen-data, dest-screen-data-ah <span id="L422" class="LineNr">422 </span> <span class="PreProc">return</span> <span id="L423" class="LineNr">423 </span> <span class="Delimiter">}</span> diff --git a/html/linux/tile/word.mu.html b/html/linux/tile/word.mu.html index 1daca13d..b86a4a5d 100644 --- a/html/linux/tile/word.mu.html +++ b/html/linux/tile/word.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .LineNr { } -.Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.Delimiter { color: #c000c0; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.Special { color: #ff6060; } --> </style> @@ -65,9 +64,9 @@ if ('onhashchange' in window) { <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L1'>initialize-word</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L2" class="LineNr"> 2 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data <span id="L4" class="LineNr"> 4 </span> <a href='../120allocate.subx.html#L66'>allocate</a> data-ah -<span id="L5" class="LineNr"> 5 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L5" class="LineNr"> 5 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L6" class="LineNr"> 6 </span> <a href='gap-buffer.mu.html#L6'>initialize-gap-buffer</a> data <span id="L7" class="LineNr"> 7 </span><span class="Delimiter">}</span> <span id="L8" class="LineNr"> 8 </span> @@ -75,16 +74,16 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr"> 10 </span> <span id="L11" class="LineNr"> 11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L11'>initialize-word-with</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>), s: (addr array byte) <span class="Delimiter">{</span> <span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data <span id="L14" class="LineNr"> 14 </span> <a href='../120allocate.subx.html#L66'>allocate</a> data-ah -<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L16" class="LineNr"> 16 </span> <a href='gap-buffer.mu.html#L15'>initialize-gap-buffer-with</a> data, s <span id="L17" class="LineNr"> 17 </span><span class="Delimiter">}</span> <span id="L18" class="LineNr"> 18 </span> <span id="L19" class="LineNr"> 19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L19'>allocate-word-with</a></span> _out: (addr handle <a href='data.mu.html#L42'>word</a>), s: (addr array byte) <span class="Delimiter">{</span> -<span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _out +<span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _out <span id="L21" class="LineNr"> 21 </span> <a href='../120allocate.subx.html#L66'>allocate</a> out -<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *out <span id="L23" class="LineNr"> 23 </span> <a href='word.mu.html#L11'>initialize-word-with</a> out-addr, s <span id="L24" class="LineNr"> 24 </span><span class="Delimiter">}</span> <span id="L25" class="LineNr"> 25 </span> @@ -92,43 +91,43 @@ if ('onhashchange' in window) { <span id="L27" class="LineNr"> 27 </span><span class="muComment"># TODO: handle existing next</span> <span id="L28" class="LineNr"> 28 </span><span class="muComment"># one implication of handles: append must take a handle</span> <span id="L29" class="LineNr"> 29 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L29'>append-word-with</a></span> self-h: (handle <a href='data.mu.html#L42'>word</a>), s: (addr array byte) <span class="Delimiter">{</span> -<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> self-h -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, next +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> self/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> self-h +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> next-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, next <span id="L32" class="LineNr"> 32 </span> <a href='word.mu.html#L19'>allocate-word-with</a> next-ah, s -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> next/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> prev-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> next, prev +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> next/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> prev-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> next, prev <span id="L35" class="LineNr"> 35 </span> <a href='../120allocate.subx.html#L497'>copy-handle</a> self-h, prev-ah <span id="L36" class="LineNr"> 36 </span><span class="Delimiter">}</span> <span id="L37" class="LineNr"> 37 </span> <span id="L38" class="LineNr"> 38 </span><span class="muComment"># just for tests for now</span> <span id="L39" class="LineNr"> 39 </span><span class="muComment"># TODO: handle existing prev</span> <span id="L40" class="LineNr"> 40 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L40'>prepend-word-with</a></span> self-h: (handle <a href='data.mu.html#L42'>word</a>), s: (addr array byte) <span class="Delimiter">{</span> -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> self-h -<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> prev-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, prev +<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> self/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> self-h +<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> prev-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, prev <span id="L43" class="LineNr"> 43 </span> <a href='word.mu.html#L19'>allocate-word-with</a> prev-ah, s -<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> prev/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-ah -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> prev, next +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> prev/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *prev-ah +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> next-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> prev, next <span id="L46" class="LineNr"> 46 </span> <a href='../120allocate.subx.html#L497'>copy-handle</a> self-h, next-ah <span id="L47" class="LineNr"> 47 </span><span class="Delimiter">}</span> <span id="L48" class="LineNr"> 48 </span> <span id="L49" class="LineNr"> 49 </span><span class="muComment">## real primitives</span> <span id="L50" class="LineNr"> 50 </span> <span id="L51" class="LineNr"> 51 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L51'>move-word-contents</a></span> _src-ah: (addr handle <a href='data.mu.html#L42'>word</a>), _dest-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> -<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> _dest/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah +<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> _dest/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah <span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest -<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-ah -<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> _src/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-ah +<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> _src/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src <span id="L58" class="LineNr"> 58 </span> <a href='word.mu.html#L185'>cursor-to-start</a> src -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> src-data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, scalar-data -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> src-data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-data-ah +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> src-data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, scalar-data +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> src-data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-data-ah <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> src-stack/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-data, right <span id="L62" class="LineNr"> 62 </span> <span class="Delimiter">{</span> -<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L20'>grapheme-stack-empty?</a> src-stack +<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L20'>grapheme-stack-empty?</a> src-stack <span id="L64" class="LineNr"> 64 </span> compare done?, <span class="Constant">0</span>/false <span id="L65" class="LineNr"> 65 </span> <span class="PreProc">break-if-!=</span> -<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> src-stack +<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L43'>pop-grapheme-stack</a> src-stack <span id="L67" class="LineNr"> 67 </span><span class="CommentedCode">#? print-grapheme 0, g</span> <span id="L68" class="LineNr"> 68 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L69" class="LineNr"> 69 </span> <a href='word.mu.html#L148'>add-grapheme-to-word</a> dest, g @@ -137,19 +136,19 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr"> 72 </span><span class="Delimiter">}</span> <span id="L73" class="LineNr"> 73 </span> <span id="L74" class="LineNr"> 74 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L74'>copy-word-contents-before-cursor</a></span> _src-ah: (addr handle <a href='data.mu.html#L42'>word</a>), _dest-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah -<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> _dest/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah +<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> _dest/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest -<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-ah -<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah -<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> src-data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, scalar-data -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> src-data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-data-ah +<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-ah +<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> src/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> src-data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src, scalar-data +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> src-data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-data-ah <span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> src-stack/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L1'>grapheme-stack</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-data, left -<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> src-stack-data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-stack, data -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> _src-stack-data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-stack-data-ah +<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> src-stack-data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-stack, data +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> _src-stack-data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-stack-data-ah <span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> src-stack-data/<span class="muRegEdx">edx</span>: (addr array grapheme) <span class="Special"><-</span> copy _src-stack-data <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-stack, <a href='../203stack.subx.html#L338'>top</a> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">{</span> <span id="L89" class="LineNr"> 89 </span> compare i, *top-addr <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">break-if->=</span> @@ -160,19 +159,19 @@ if ('onhashchange' in window) { <span id="L95" class="LineNr"> 95 </span> <span class="Delimiter">}</span> <span id="L96" class="LineNr"> 96 </span><span class="Delimiter">}</span> <span id="L97" class="LineNr"> 97 </span> -<span id="L98" class="LineNr"> 98 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L98'>word-equal?</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>), s: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L98" class="LineNr"> 98 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L98'>word-equal?</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a> data, s +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L236'>gap-buffer-equal?</a> data, s <span id="L103" class="LineNr">103 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L104" class="LineNr">104 </span><span class="Delimiter">}</span> <span id="L105" class="LineNr">105 </span> -<span id="L106" class="LineNr">106 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L106'>word-length</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L106" class="LineNr">106 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L106'>word-length</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L91'>gap-buffer-length</a> data +<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L91'>gap-buffer-length</a> data <span id="L111" class="LineNr">111 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L112" class="LineNr">112 </span><span class="Delimiter">}</span> <span id="L113" class="LineNr">113 </span> @@ -180,7 +179,7 @@ if ('onhashchange' in window) { <span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> curr-h: (handle <a href='data.mu.html#L42'>word</a>) <span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> address curr-h <span id="L117" class="LineNr">117 </span> copy-object _in, curr-ah -<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> next/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L120" class="LineNr">120 </span> <span class="Delimiter">{</span> <span id="L121" class="LineNr">121 </span> curr <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah @@ -194,122 +193,122 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr">129 </span> copy-object curr-ah, out <span class="muComment"># modify 'out' right at the end, just in case it's same as 'in'</span> <span id="L130" class="LineNr">130 </span><span class="Delimiter">}</span> <span id="L131" class="LineNr">131 </span> -<span id="L132" class="LineNr">132 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L132'>first-grapheme</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L132" class="LineNr">132 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L132'>first-grapheme</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L177'>first-grapheme-in-gap-buffer</a> data +<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L177'>first-grapheme-in-gap-buffer</a> data <span id="L137" class="LineNr">137 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L138" class="LineNr">138 </span><span class="Delimiter">}</span> <span id="L139" class="LineNr">139 </span> -<span id="L140" class="LineNr">140 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L140'>grapheme-before-cursor</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L140" class="LineNr">140 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L140'>grapheme-before-cursor</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L207'>grapheme-before-cursor-in-gap-buffer</a> data +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L207'>grapheme-before-cursor-in-gap-buffer</a> data <span id="L145" class="LineNr">145 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L146" class="LineNr">146 </span><span class="Delimiter">}</span> <span id="L147" class="LineNr">147 </span> <span id="L148" class="LineNr">148 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L148'>add-grapheme-to-word</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>), c: grapheme <span class="Delimiter">{</span> <span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L152" class="LineNr">152 </span> <a href='gap-buffer.mu.html#L103'>add-grapheme-at-gap</a> data, c <span id="L153" class="LineNr">153 </span><span class="Delimiter">}</span> <span id="L154" class="LineNr">154 </span> -<span id="L155" class="LineNr">155 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L155'>cursor-at-start?</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L155" class="LineNr">155 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L155'>cursor-at-start?</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L125'>gap-at-start?</a> data +<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L125'>gap-at-start?</a> data <span id="L160" class="LineNr">160 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L161" class="LineNr">161 </span><span class="Delimiter">}</span> <span id="L162" class="LineNr">162 </span> -<span id="L163" class="LineNr">163 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L163'>cursor-at-end?</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L163" class="LineNr">163 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L163'>cursor-at-end?</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L164" class="LineNr">164 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L132'>gap-at-end?</a> data +<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L132'>gap-at-end?</a> data <span id="L168" class="LineNr">168 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L169" class="LineNr">169 </span><span class="Delimiter">}</span> <span id="L170" class="LineNr">170 </span> <span id="L171" class="LineNr">171 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L171'>cursor-left</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> data +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L153'>gap-left</a> data <span id="L176" class="LineNr">176 </span><span class="Delimiter">}</span> <span id="L177" class="LineNr">177 </span> <span id="L178" class="LineNr">178 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L178'>cursor-right</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L139'>gap-right</a> data +<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L139'>gap-right</a> data <span id="L183" class="LineNr">183 </span><span class="Delimiter">}</span> <span id="L184" class="LineNr">184 </span> <span id="L185" class="LineNr">185 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L185'>cursor-to-start</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L187" class="LineNr">187 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L187" class="LineNr">187 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L189" class="LineNr">189 </span> <a href='gap-buffer.mu.html#L109'>gap-to-start</a> data <span id="L190" class="LineNr">190 </span><span class="Delimiter">}</span> <span id="L191" class="LineNr">191 </span> <span id="L192" class="LineNr">192 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L192'>cursor-to-end</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L196" class="LineNr">196 </span> <a href='gap-buffer.mu.html#L117'>gap-to-end</a> data <span id="L197" class="LineNr">197 </span><span class="Delimiter">}</span> <span id="L198" class="LineNr">198 </span> -<span id="L199" class="LineNr">199 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L199'>cursor-index</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L199" class="LineNr">199 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L199'>cursor-index</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L201" class="LineNr">201 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L169'>gap-index</a> data +<span id="L201" class="LineNr">201 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L169'>gap-index</a> data <span id="L204" class="LineNr">204 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L205" class="LineNr">205 </span><span class="Delimiter">}</span> <span id="L206" class="LineNr">206 </span> <span id="L207" class="LineNr">207 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L207'>delete-before-cursor</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L211" class="LineNr">211 </span> <a href='gap-buffer.mu.html#L223'>delete-before-gap</a> data <span id="L212" class="LineNr">212 </span><span class="Delimiter">}</span> <span id="L213" class="LineNr">213 </span> -<span id="L214" class="LineNr">214 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L214'>pop-after-cursor</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L214" class="LineNr">214 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L214'>pop-after-cursor</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L216" class="LineNr">216 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L229'>pop-after-gap</a> data +<span id="L216" class="LineNr">216 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L229'>pop-after-gap</a> data <span id="L219" class="LineNr">219 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L220" class="LineNr">220 </span><span class="Delimiter">}</span> <span id="L221" class="LineNr">221 </span> <span id="L222" class="LineNr">222 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L222'>delete-next</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self <span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, next -<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> next/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah +<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> next/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah <span id="L226" class="LineNr">226 </span> compare next, <span class="Constant">0</span> <span id="L227" class="LineNr">227 </span> <span class="PreProc">break-if-=</span> <span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> next-next-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> next, next <span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> self-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> next, prev <span id="L230" class="LineNr">230 </span> copy-object next-next-ah, next-ah -<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> new-next/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-next-ah +<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> new-next/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-next-ah <span id="L232" class="LineNr">232 </span> compare new-next, <span class="Constant">0</span> <span id="L233" class="LineNr">233 </span> <span class="PreProc">break-if-=</span> -<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-next, prev +<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> dest/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> new-next, prev <span id="L235" class="LineNr">235 </span> copy-object self-ah, dest <span id="L236" class="LineNr">236 </span><span class="Delimiter">}</span> <span id="L237" class="LineNr">237 </span> <span id="L238" class="LineNr">238 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L238'>print-word</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _self: (addr <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L242" class="LineNr">242 </span> <a href='gap-buffer.mu.html#L83'>render-gap-buffer</a> <a href='../405screen.mu.html#L9'>screen</a>, data <span id="L243" class="LineNr">243 </span><span class="Delimiter">}</span> <span id="L244" class="LineNr">244 </span> <span id="L245" class="LineNr">245 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L245'>print-words-in-reverse</a></span> <a href='../405screen.mu.html#L9'>screen</a>: (addr <a href='../405screen.mu.html#L9'>screen</a>), _words-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> -<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> words-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _words-ah -<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> words-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *words-ah +<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> words-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _words-ah +<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> words-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *words-ah <span id="L248" class="LineNr">248 </span> compare words-a, <span class="Constant">0</span> <span id="L249" class="LineNr">249 </span> <span class="PreProc">break-if-=</span> <span id="L250" class="LineNr">250 </span> <span class="muComment"># recurse</span> @@ -324,8 +323,8 @@ if ('onhashchange' in window) { <span id="L259" class="LineNr">259 </span><span class="muComment"># existing chain of words. There are two pointers to patch, and you'll forget</span> <span id="L260" class="LineNr">260 </span><span class="muComment"># to do the other one.</span> <span id="L261" class="LineNr">261 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L261'>copy-words</a></span> _src-ah: (addr handle <a href='data.mu.html#L42'>word</a>), _dest-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> -<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-ah -<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> src-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-ah +<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> src-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L264" class="LineNr">264 </span> compare src-a, <span class="Constant">0</span> <span id="L265" class="LineNr">265 </span> <span class="PreProc">break-if-=</span> <span id="L266" class="LineNr">266 </span> <span class="muComment"># copy</span> @@ -340,8 +339,8 @@ if ('onhashchange' in window) { <span id="L275" class="LineNr">275 </span><span class="Delimiter">}</span> <span id="L276" class="LineNr">276 </span> <span id="L277" class="LineNr">277 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L277'>copy-words-in-reverse</a></span> _src-ah: (addr handle <a href='data.mu.html#L42'>word</a>), _dest-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> -<span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-ah -<span id="L279" class="LineNr">279 </span> <span class="PreProc">var</span> _src-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah +<span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-ah +<span id="L279" class="LineNr">279 </span> <span class="PreProc">var</span> _src-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src-ah <span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> src-a/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-a <span id="L281" class="LineNr">281 </span> compare src-a, <span class="Constant">0</span> <span id="L282" class="LineNr">282 </span> <span class="PreProc">break-if-=</span> @@ -356,7 +355,7 @@ if ('onhashchange' in window) { <span id="L291" class="LineNr">291 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L291'>copy-word-at-end</a></span> src: (addr <a href='data.mu.html#L42'>word</a>), _dest-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L292" class="LineNr">292 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah <span id="L293" class="LineNr">293 </span> <span class="muComment"># if dest is null, copy and return</span> -<span id="L294" class="LineNr">294 </span> <span class="PreProc">var</span> dest-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah +<span id="L294" class="LineNr">294 </span> <span class="PreProc">var</span> dest-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah <span id="L295" class="LineNr">295 </span> compare dest-a, <span class="Constant">0</span> <span id="L296" class="LineNr">296 </span> <span class="Delimiter">{</span> <span id="L297" class="LineNr">297 </span> <span class="PreProc">break-if-!=</span> @@ -370,9 +369,9 @@ if ('onhashchange' in window) { <span id="L305" class="LineNr">305 </span> <span class="muComment"># append it at the end</span> <span id="L306" class="LineNr">306 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy dest-ah <span id="L307" class="LineNr">307 </span> <span class="Delimiter">{</span> -<span id="L308" class="LineNr">308 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span class="muComment"># curr-a guaranteed not to be null</span> +<span id="L308" class="LineNr">308 </span> <span class="PreProc">var</span> curr-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span class="muComment"># curr-a guaranteed not to be null</span> <span id="L309" class="LineNr">309 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr-a, next -<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> next-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah +<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> next-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah <span id="L311" class="LineNr">311 </span> compare next-a, <span class="Constant">0</span> <span id="L312" class="LineNr">312 </span> <span class="PreProc">break-if-=</span> <span id="L313" class="LineNr">313 </span> curr-ah <span class="Special"><-</span> copy next-ah @@ -384,7 +383,7 @@ if ('onhashchange' in window) { <span id="L319" class="LineNr">319 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L319'>append-word-at-end-with</a></span> _dest-ah: (addr handle <a href='data.mu.html#L42'>word</a>), s: (addr array byte) <span class="Delimiter">{</span> <span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah <span id="L321" class="LineNr">321 </span> <span class="muComment"># if dest is null, copy and return</span> -<span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> dest-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah +<span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> dest-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah <span id="L323" class="LineNr">323 </span> compare dest-a, <span class="Constant">0</span> <span id="L324" class="LineNr">324 </span> <span class="Delimiter">{</span> <span id="L325" class="LineNr">325 </span> <span class="PreProc">break-if-!=</span> @@ -394,9 +393,9 @@ if ('onhashchange' in window) { <span id="L329" class="LineNr">329 </span> <span class="muComment"># otherwise append at end</span> <span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy dest-ah <span id="L331" class="LineNr">331 </span> <span class="Delimiter">{</span> -<span id="L332" class="LineNr">332 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span class="muComment"># curr-a guaranteed not to be null</span> +<span id="L332" class="LineNr">332 </span> <span class="PreProc">var</span> curr-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span class="muComment"># curr-a guaranteed not to be null</span> <span id="L333" class="LineNr">333 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr-a, next -<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> next-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah +<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> next-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah <span id="L335" class="LineNr">335 </span> compare next-a, <span class="Constant">0</span> <span id="L336" class="LineNr">336 </span> <span class="PreProc">break-if-=</span> <span id="L337" class="LineNr">337 </span> curr-ah <span class="Special"><-</span> copy next-ah @@ -406,21 +405,21 @@ if ('onhashchange' in window) { <span id="L341" class="LineNr">341 </span><span class="Delimiter">}</span> <span id="L342" class="LineNr">342 </span> <span id="L343" class="LineNr">343 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L343'>copy-word</a></span> _src-a: (addr <a href='data.mu.html#L42'>word</a>), _dest-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> -<span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah +<span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-ah <span id="L345" class="LineNr">345 </span> <a href='../120allocate.subx.html#L66'>allocate</a> dest-ah -<span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> _dest-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah -<span id="L347" class="LineNr">347 </span> <span class="PreProc">var</span> dest-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-a +<span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> _dest-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *dest-ah +<span id="L347" class="LineNr">347 </span> <span class="PreProc">var</span> dest-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _dest-a <span id="L348" class="LineNr">348 </span> <a href='word.mu.html#L1'>initialize-word</a> dest-a <span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> dest-a, scalar-data -<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> src-a/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-a -<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-a, scalar-data +<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> src-a/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _src-a +<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> src/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> src-a, scalar-data <span id="L352" class="LineNr">352 </span> <a href='gap-buffer.mu.html#L314'>copy-gap-buffer</a> src, dest <span id="L353" class="LineNr">353 </span><span class="Delimiter">}</span> <span id="L354" class="LineNr">354 </span> <span id="L355" class="LineNr">355 </span><span class="muComment"># one implication of handles: append must take a handle</span> <span id="L356" class="LineNr">356 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L356'>append-word</a></span> _self-ah: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L357" class="LineNr">357 </span> <span class="PreProc">var</span> saved-self-storage: (handle <a href='data.mu.html#L42'>word</a>) -<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> saved-self/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> address saved-self-storage +<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> saved-self/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> address saved-self-storage <span id="L359" class="LineNr">359 </span> copy-object _self-ah, saved-self <span id="L360" class="LineNr">360 </span><span class="CommentedCode">#? {</span> <span id="L361" class="LineNr">361 </span><span class="CommentedCode">#? print-string 0, "self-ah is "</span> @@ -429,7 +428,7 @@ if ('onhashchange' in window) { <span id="L364" class="LineNr">364 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L365" class="LineNr">365 </span><span class="CommentedCode">#? }</span> <span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> self-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self-ah -<span id="L367" class="LineNr">367 </span> <span class="PreProc">var</span> _self/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *self-ah +<span id="L367" class="LineNr">367 </span> <span class="PreProc">var</span> _self/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *self-ah <span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> self/<span class="muRegEbx">ebx</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self <span id="L369" class="LineNr">369 </span><span class="CommentedCode">#? {</span> <span id="L370" class="LineNr">370 </span><span class="CommentedCode">#? print-string 0, "0: self is "</span> @@ -443,7 +442,7 @@ if ('onhashchange' in window) { <span id="L378" class="LineNr">378 </span> <span class="PreProc">var</span> new: (handle <a href='data.mu.html#L42'>word</a>) <span id="L379" class="LineNr">379 </span> <span class="PreProc">var</span> new-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> address new <span id="L380" class="LineNr">380 </span> <a href='../120allocate.subx.html#L66'>allocate</a> new-ah -<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> new-addr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> new +<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> new-addr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> new <span id="L382" class="LineNr">382 </span> <a href='word.mu.html#L1'>initialize-word</a> new-addr <span id="L383" class="LineNr">383 </span><span class="CommentedCode">#? {</span> <span id="L384" class="LineNr">384 </span><span class="CommentedCode">#? print-string 0, "new is "</span> @@ -463,7 +462,7 @@ if ('onhashchange' in window) { <span id="L398" class="LineNr">398 </span> copy-object src, dest <span id="L399" class="LineNr">399 </span> <span class="muComment"># new->next->prev = new</span> <span id="L400" class="LineNr">400 </span> <span class="Delimiter">{</span> -<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> next-addr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src +<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> next-addr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *src <span id="L402" class="LineNr">402 </span> compare next-addr, <span class="Constant">0</span> <span id="L403" class="LineNr">403 </span> <span class="PreProc">break-if-=</span> <span id="L404" class="LineNr">404 </span><span class="CommentedCode">#? {</span> @@ -514,7 +513,7 @@ if ('onhashchange' in window) { <span id="L449" class="LineNr">449 </span><span class="CommentedCode">#? print-int32-hex 0, foo</span> <span id="L450" class="LineNr">450 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L451" class="LineNr">451 </span><span class="CommentedCode">#? }</span> -<span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> saved-self-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> address saved-self-storage +<span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> saved-self-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> address saved-self-storage <span id="L453" class="LineNr">453 </span> copy-object saved-self-ah, dest <span id="L454" class="LineNr">454 </span> <span class="muComment"># self->next = new</span> <span id="L455" class="LineNr">455 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, next @@ -523,12 +522,12 @@ if ('onhashchange' in window) { <span id="L458" class="LineNr">458 </span> <span id="L459" class="LineNr">459 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L459'>chain-words</a></span> _self-ah: (addr handle <a href='data.mu.html#L42'>word</a>), _next: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Delimiter">{</span> <span id="L460" class="LineNr">460 </span> <span class="PreProc">var</span> self-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self-ah -<span id="L461" class="LineNr">461 </span> <span class="PreProc">var</span> _self/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *self-ah +<span id="L461" class="LineNr">461 </span> <span class="PreProc">var</span> _self/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *self-ah <span id="L462" class="LineNr">462 </span> <span class="PreProc">var</span> self/<span class="muRegEcx">ecx</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self <span id="L463" class="LineNr">463 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, next <span id="L464" class="LineNr">464 </span> <span class="PreProc">var</span> next-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _next <span id="L465" class="LineNr">465 </span> copy-object next-ah, dest -<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> next/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah +<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> next/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *next-ah <span id="L467" class="LineNr">467 </span> compare next, <span class="Constant">0</span> <span id="L468" class="LineNr">468 </span> <span class="PreProc">break-if-=</span> <span id="L469" class="LineNr">469 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> next, prev @@ -537,36 +536,36 @@ if ('onhashchange' in window) { <span id="L472" class="LineNr">472 </span> <span id="L473" class="LineNr">473 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L473'>emit-word</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>), out: (addr stream byte) <span class="Delimiter">{</span> <span id="L474" class="LineNr">474 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L475" class="LineNr">475 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L476" class="LineNr">476 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L475" class="LineNr">475 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L476" class="LineNr">476 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L477" class="LineNr">477 </span> <a href='gap-buffer.mu.html#L37'>emit-gap-buffer</a> data, out <span id="L478" class="LineNr">478 </span><span class="Delimiter">}</span> <span id="L479" class="LineNr">479 </span> <span id="L480" class="LineNr">480 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L480'>word-to-string</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>), out: (addr handle array byte) <span class="Delimiter">{</span> <span id="L481" class="LineNr">481 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L482" class="LineNr">482 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L482" class="LineNr">482 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah <span id="L484" class="LineNr">484 </span> <a href='gap-buffer.mu.html#L30'>gap-buffer-to-string</a> data, out <span id="L485" class="LineNr">485 </span><span class="Delimiter">}</span> <span id="L486" class="LineNr">486 </span> -<span id="L487" class="LineNr">487 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L487'>word-is-decimal-integer?</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L488" class="LineNr">488 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self -<span id="L489" class="LineNr">489 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data -<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L491" class="LineNr">491 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L332'>gap-buffer-is-decimal-integer?</a> data +<span id="L487" class="LineNr">487 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L487'>word-is-decimal-integer?</a></span> _self: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L488" class="LineNr">488 </span> <span class="PreProc">var</span> self/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _self +<span id="L489" class="LineNr">489 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, scalar-data +<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L1'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L491" class="LineNr">491 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L332'>gap-buffer-is-decimal-integer?</a> data <span id="L492" class="LineNr">492 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L493" class="LineNr">493 </span><span class="Delimiter">}</span> <span id="L494" class="LineNr">494 </span> <span id="L495" class="LineNr">495 </span><span class="muComment"># ABSOLUTELY GHASTLY</span> <span id="L496" class="LineNr">496 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L496'>word-exists?</a></span> _haystack-ah: (addr handle <a href='data.mu.html#L42'>word</a>), _needle: (addr <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: boolean <span class="Delimiter">{</span> <span id="L497" class="LineNr">497 </span> <span class="PreProc">var</span> needle-name-storage: (handle array byte) -<span id="L498" class="LineNr">498 </span> <span class="PreProc">var</span> needle-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> address needle-name-storage +<span id="L498" class="LineNr">498 </span> <span class="PreProc">var</span> needle-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> address needle-name-storage <span id="L499" class="LineNr">499 </span> <a href='word.mu.html#L480'>word-to-string</a> _needle, needle-name-ah <span class="muComment"># profligate leak</span> -<span id="L500" class="LineNr">500 </span> <span class="PreProc">var</span> _needle-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *needle-name-ah +<span id="L500" class="LineNr">500 </span> <span class="PreProc">var</span> _needle-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *needle-name-ah <span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> needle-name/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _needle-name <span id="L502" class="LineNr">502 </span> <span class="muComment"># base case</span> <span id="L503" class="LineNr">503 </span> <span class="PreProc">var</span> haystack-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy _haystack-ah -<span id="L504" class="LineNr">504 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *haystack-ah +<span id="L504" class="LineNr">504 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *haystack-ah <span id="L505" class="LineNr">505 </span> compare curr, <span class="Constant">0</span> <span id="L506" class="LineNr">506 </span> <span class="Delimiter">{</span> <span id="L507" class="LineNr">507 </span> <span class="PreProc">break-if-!=</span> @@ -576,29 +575,29 @@ if ('onhashchange' in window) { <span id="L511" class="LineNr">511 </span> <span class="PreProc">var</span> curr-name-storage: (handle array byte) <span id="L512" class="LineNr">512 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address curr-name-storage <span id="L513" class="LineNr">513 </span> <a href='word.mu.html#L480'>word-to-string</a> curr, curr-name-ah <span class="muComment"># profligate leak</span> -<span id="L514" class="LineNr">514 </span> <span class="PreProc">var</span> curr-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-name-ah -<span id="L515" class="LineNr">515 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> needle-name, curr-name +<span id="L514" class="LineNr">514 </span> <span class="PreProc">var</span> curr-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-name-ah +<span id="L515" class="LineNr">515 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> needle-name, curr-name <span id="L516" class="LineNr">516 </span> compare found?, <span class="Constant">0</span> <span id="L517" class="LineNr">517 </span> <span class="Delimiter">{</span> <span id="L518" class="LineNr">518 </span> <span class="PreProc">break-if-=</span> <span id="L519" class="LineNr">519 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L520" class="LineNr">520 </span> <span class="Delimiter">}</span> <span id="L521" class="LineNr">521 </span> <span class="muComment"># recurse</span> -<span id="L522" class="LineNr">522 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *haystack-ah -<span id="L523" class="LineNr">523 </span> <span class="PreProc">var</span> next-haystack-ah/<span class="muRegEax">eax</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, next +<span id="L522" class="LineNr">522 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *haystack-ah +<span id="L523" class="LineNr">523 </span> <span class="PreProc">var</span> next-haystack-ah/eax: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> curr, next <span id="L524" class="LineNr">524 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEbx">ebx</span>: boolean <span class="Special"><-</span> <a href='word.mu.html#L496'>word-exists?</a> next-haystack-ah, _needle <span id="L525" class="LineNr">525 </span> <span class="PreProc">return</span> <a href='data.mu.html#L82'>result</a> <span id="L526" class="LineNr">526 </span><span class="Delimiter">}</span> <span id="L527" class="LineNr">527 </span> -<span id="L528" class="LineNr">528 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L528'>word-list-length</a></span> words: (addr handle <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L528" class="LineNr">528 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='word.mu.html#L528'>word-list-length</a></span> words: (addr handle <a href='data.mu.html#L42'>word</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy words <span id="L530" class="LineNr">530 </span> <span class="PreProc">var</span> <a href='data.mu.html#L82'>result</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L531" class="LineNr">531 </span> <span class="Delimiter">{</span> -<span id="L532" class="LineNr">532 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah +<span id="L532" class="LineNr">532 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *curr-ah <span id="L533" class="LineNr">533 </span> compare curr, <span class="Constant">0</span> <span id="L534" class="LineNr">534 </span> <span class="PreProc">break-if-=</span> <span id="L535" class="LineNr">535 </span> <span class="Delimiter">{</span> -<span id="L536" class="LineNr">536 </span> <span class="PreProc">var</span> word-len/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='word.mu.html#L106'>word-length</a> curr +<span id="L536" class="LineNr">536 </span> <span class="PreProc">var</span> word-len/eax: int <span class="Special"><-</span> <a href='word.mu.html#L106'>word-length</a> curr <span id="L537" class="LineNr">537 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add word-len <span id="L538" class="LineNr">538 </span> <a href='data.mu.html#L82'>result</a> <span class="Special"><-</span> add <span class="Constant">1</span>/inter-word-margin <span id="L539" class="LineNr">539 </span> <span class="Delimiter">}</span> @@ -615,22 +614,22 @@ if ('onhashchange' in window) { <span id="L550" class="LineNr">550 </span> <a href='../108write.subx.html#L24'>write</a> in-stream-a, in <span id="L551" class="LineNr">551 </span> <span class="PreProc">var</span> cursor-word-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> copy out-ah <span id="L552" class="LineNr">552 </span> $parse-words:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-stream-a +<span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-stream-a <span id="L554" class="LineNr">554 </span> compare done?, <span class="Constant">0</span>/false <span id="L555" class="LineNr">555 </span> <span class="PreProc">break-if-!=</span> -<span id="L556" class="LineNr">556 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> in-stream-a +<span id="L556" class="LineNr">556 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L158'>read-grapheme</a> in-stream-a <span id="L557" class="LineNr">557 </span> <span class="PreProc">var</span> g/<span class="muRegEcx">ecx</span>: grapheme <span class="Special"><-</span> copy _g <span id="L558" class="LineNr">558 </span> <span class="muComment"># if not space, insert</span> <span id="L559" class="LineNr">559 </span> compare g, <span class="Constant">0x20</span>/space <span id="L560" class="LineNr">560 </span> <span class="Delimiter">{</span> <span id="L561" class="LineNr">561 </span> <span class="PreProc">break-if-=</span> -<span id="L562" class="LineNr">562 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L562" class="LineNr">562 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L563" class="LineNr">563 </span> <a href='word.mu.html#L148'>add-grapheme-to-word</a> cursor-word, g <span id="L564" class="LineNr">564 </span> <span class="PreProc">loop</span> $parse-words:<span class="PreProc">loop</span> <span id="L565" class="LineNr">565 </span> <span class="Delimiter">}</span> <span id="L566" class="LineNr">566 </span> <span class="muComment"># otherwise insert word after and move cursor to it</span> <span id="L567" class="LineNr">567 </span> <a href='word.mu.html#L356'>append-word</a> cursor-word-ah -<span id="L568" class="LineNr">568 </span> <span class="PreProc">var</span> cursor-word/<span class="muRegEax">eax</span>: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah +<span id="L568" class="LineNr">568 </span> <span class="PreProc">var</span> cursor-word/eax: (addr <a href='data.mu.html#L42'>word</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *cursor-word-ah <span id="L569" class="LineNr">569 </span> <a href='word.mu.html#L185'>cursor-to-start</a> cursor-word <span class="muComment"># reset cursor in each function</span> <span id="L570" class="LineNr">570 </span> cursor-word-ah <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> cursor-word, next <span id="L571" class="LineNr">571 </span> <span class="PreProc">loop</span> diff --git a/html/linux/tui.mu.html b/html/linux/tui.mu.html index a2224de8..f5486146 100644 --- a/html/linux/tui.mu.html +++ b/html/linux/tui.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; } --> </style> @@ -66,7 +65,7 @@ if ('onhashchange' in window) { <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./a.elf</span> <span id="L6" class="LineNr"> 6 </span> <span id="L7" class="LineNr"> 7 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tui.mu.html#L7'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> nrows/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> nrows/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> ncols/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L10" class="LineNr">10 </span> nrows, ncols <span class="Special"><-</span> <a href='405screen.mu.html#L60'>screen-size</a> <span class="Constant">0</span> <span id="L11" class="LineNr">11 </span> <a href='304screen.subx.html#L6'>enable-screen-grid-mode</a> @@ -84,11 +83,11 @@ if ('onhashchange' in window) { <span id="L23" class="LineNr">23 </span> <span id="L24" class="LineNr">24 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"press a key to see its code: "</span> <span id="L25" class="LineNr">25 </span> <a href='305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a> -<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> +<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> x/eax: grapheme <span class="Special"><-</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> <span id="L27" class="LineNr">27 </span> <a href='305keyboard.subx.html#L72'>enable-keyboard-type-mode</a> <span id="L28" class="LineNr">28 </span> <a href='304screen.subx.html#L24'>enable-screen-type-mode</a> <span id="L29" class="LineNr">29 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"You pressed "</span> -<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> x-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x +<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> x-int/eax: int <span class="Special"><-</span> copy x <span id="L31" class="LineNr">31 </span> <a href='405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>/screen, x-int <span id="L32" class="LineNr">32 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> <span id="L33" class="LineNr">33 </span> <span class="PreProc">return</span> <span class="Constant">0</span> diff --git a/html/mandelbrot-fixed.mu.html b/html/mandelbrot-fixed.mu.html index 316a071f..8810395f 100644 --- a/html/mandelbrot-fixed.mu.html +++ b/html/mandelbrot-fixed.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -85,11 +84,11 @@ if ('onhashchange' in window) { <span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">{</span> <span id="L21" class="LineNr"> 21 </span> <a href='mandelbrot-fixed.mu.html#L127'>mandelbrot</a> <a href='500fake-screen.mu.html#L14'>screen</a> scene-cx-f, scene-cy-f, scene-width-f <span id="L22" class="LineNr"> 22 </span> <span class="muComment"># move at an angle slowly towards the edge</span> -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> adj-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> scene-width-f, <span class="Constant">0x12</span>/<span class="Constant">0</span>.<span class="Constant">07</span> +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> adj-f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> scene-width-f, <span class="Constant">0x12</span>/<span class="Constant">0</span>.<span class="Constant">07</span> <span id="L24" class="LineNr"> 24 </span> subtract-from scene-cx-f, adj-f <span id="L25" class="LineNr"> 25 </span> add-to scene-cy-f, adj-f <span id="L26" class="LineNr"> 26 </span> <span class="muComment"># slowly shrink the scene width to zoom in</span> -<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> tmp-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> scene-width-f, <span class="Constant">0x80</span>/<span class="Constant">0</span>.<span class="Constant">5</span> +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> tmp-f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> scene-width-f, <span class="Constant">0x80</span>/<span class="Constant">0</span>.<span class="Constant">5</span> <span id="L28" class="LineNr"> 28 </span> copy-to scene-width-f, tmp-f <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">loop</span> <span id="L30" class="LineNr"> 30 </span> <span class="Delimiter">}</span> @@ -98,8 +97,8 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr"> 33 </span><span class="muComment"># Since they still look like int types, we'll append a '-f' suffix to variable</span> <span id="L34" class="LineNr"> 34 </span><span class="muComment"># names to designate fixed-point numbers.</span> <span id="L35" class="LineNr"> 35 </span> -<span id="L36" class="LineNr"> 36 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a></span> in: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> result-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy in +<span id="L36" class="LineNr"> 36 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a></span> in: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> result-f/eax: int <span class="Special"><-</span> copy in <span id="L38" class="LineNr"> 38 </span> result-f <span class="Special"><-</span> shift-left <span class="Constant">8</span>/fixed-precision <span id="L39" class="LineNr"> 39 </span> <span class="Delimiter">{</span> <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">break-if-not-overflow</span> @@ -108,8 +107,8 @@ if ('onhashchange' in window) { <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">return</span> result-f <span id="L44" class="LineNr"> 44 </span><span class="Delimiter">}</span> <span id="L45" class="LineNr"> 45 </span> -<span id="L46" class="LineNr"> 46 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a></span> in-f: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy in-f +<span id="L46" class="LineNr"> 46 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a></span> in-f: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy in-f <span id="L48" class="LineNr"> 48 </span> result <span class="Special"><-</span> shift-right-signed <span class="Constant">8</span>/fixed-precision <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">return</span> result <span id="L50" class="LineNr"> 50 </span><span class="Delimiter">}</span> @@ -117,53 +116,53 @@ if ('onhashchange' in window) { <span id="L52" class="LineNr"> 52 </span><span class="muComment"># The process of throwing bits away always adjusts a number towards -infinity.</span> <span id="L53" class="LineNr"> 53 </span><span class="PreProc">fn</span> <span class="muTest"><a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a></span> <span class="Delimiter">{</span> <span id="L54" class="LineNr"> 54 </span> <span class="muComment"># 0</span> -<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">0</span> -<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">0</span> +<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L57" class="LineNr"> 57 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 0"</span> <span id="L58" class="LineNr"> 58 </span> <span class="muComment"># 1</span> -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">1</span> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">1</span> +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L61" class="LineNr"> 61 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1"</span> <span id="L62" class="LineNr"> 62 </span> <span class="muComment"># -1</span> -<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-1</span> -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-1</span> +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L65" class="LineNr"> 65 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1"</span> <span id="L66" class="LineNr"> 66 </span> <span class="muComment"># 0.5 = 1/2</span> -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">1</span> +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">1</span> <span id="L68" class="LineNr"> 68 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">1</span> -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L70" class="LineNr"> 70 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 0.5"</span> <span id="L71" class="LineNr"> 71 </span> <span class="muComment"># -0.5 = -1/2</span> -<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-1</span> +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-1</span> <span id="L73" class="LineNr"> 73 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">1</span> -<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L75" class="LineNr"> 75 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -0.5"</span> <span id="L76" class="LineNr"> 76 </span> <span class="muComment"># 1.5 = 3/2</span> -<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">3</span> +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">3</span> <span id="L78" class="LineNr"> 78 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">1</span> -<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L80" class="LineNr"> 80 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1.5"</span> <span id="L81" class="LineNr"> 81 </span> <span class="muComment"># -1.5 = -3/2</span> -<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-3</span> +<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-3</span> <span id="L83" class="LineNr"> 83 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">1</span> -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L85" class="LineNr"> 85 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-2</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1.5"</span> <span id="L86" class="LineNr"> 86 </span> <span class="muComment"># 1.25 = 5/4</span> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">5</span> +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">5</span> <span id="L88" class="LineNr"> 88 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">2</span> -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L90" class="LineNr"> 90 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1.25"</span> <span id="L91" class="LineNr"> 91 </span> <span class="muComment"># -1.25 = -5/4</span> -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-5</span> +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-5</span> <span id="L93" class="LineNr"> 93 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">2</span> -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f <span id="L95" class="LineNr"> 95 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-2</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1.25"</span> <span id="L96" class="LineNr"> 96 </span><span class="Delimiter">}</span> <span id="L97" class="LineNr"> 97 </span> <span id="L98" class="LineNr"> 98 </span><span class="muComment"># special routines for multiplying and dividing fixed-point numbers</span> <span id="L99" class="LineNr"> 99 </span> -<span id="L100" class="LineNr">100 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a></span> a-f: int, b-f: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy a-f +<span id="L100" class="LineNr">100 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a></span> a-f: int, b-f: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy a-f <span id="L102" class="LineNr">102 </span> result <span class="Special"><-</span> multiply b-f <span id="L103" class="LineNr">103 </span> <span class="Delimiter">{</span> <span id="L104" class="LineNr">104 </span> <span class="PreProc">break-if-not-overflow</span> @@ -173,8 +172,8 @@ if ('onhashchange' in window) { <span id="L108" class="LineNr">108 </span> <span class="PreProc">return</span> result <span id="L109" class="LineNr">109 </span><span class="Delimiter">}</span> <span id="L110" class="LineNr">110 </span> -<span id="L111" class="LineNr">111 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L111'>divide-fixed</a></span> a-f: int, b-f: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> result-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy a-f +<span id="L111" class="LineNr">111 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L111'>divide-fixed</a></span> a-f: int, b-f: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> result-f/eax: int <span class="Special"><-</span> copy a-f <span id="L113" class="LineNr">113 </span> result-f <span class="Special"><-</span> shift-left <span class="Constant">8</span>/fixed-precision <span id="L114" class="LineNr">114 </span> <span class="Delimiter">{</span> <span id="L115" class="LineNr">115 </span> <span class="PreProc">break-if-not-overflow</span> @@ -190,7 +189,7 @@ if ('onhashchange' in window) { <span id="L125" class="LineNr">125 </span><span class="muComment"># adding and subtracting two fixed-point numbers can use existing instructions.</span> <span id="L126" class="LineNr">126 </span> <span id="L127" class="LineNr">127 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L127'>mandelbrot</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), scene-cx-f: int, scene-cy-f: int, scene-width-f: int <span class="Delimiter">{</span> -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> b/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L130" class="LineNr">130 </span> a, b <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> width/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy a @@ -202,7 +201,7 @@ if ('onhashchange' in window) { <span id="L137" class="LineNr">137 </span> compare y, height <span id="L138" class="LineNr">138 </span> <span class="PreProc">break-if->=</span> <span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> imaginary-f/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L237'>viewport-to-imaginary-f</a> y, width, height, scene-cy-f, scene-width-f -<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L141" class="LineNr">141 </span> <span class="Delimiter">{</span> <span id="L142" class="LineNr">142 </span> compare x, width <span id="L143" class="LineNr">143 </span> <span class="PreProc">break-if->=</span> @@ -211,7 +210,7 @@ if ('onhashchange' in window) { <span id="L146" class="LineNr">146 </span> iterations <span class="Special"><-</span> shift-right <span class="Constant">3</span> <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> color/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L148" class="LineNr">148 </span> <span class="Delimiter">{</span> -<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L150" class="LineNr">150 </span> dummy, color <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> iterations, <span class="Constant">0x18</span>/<span class="Constant">24</span>/size-of-cycle-0 <span id="L151" class="LineNr">151 </span> color <span class="Special"><-</span> add <span class="Constant">0x20</span>/cycle-0 <span id="L152" class="LineNr">152 </span> <span class="Delimiter">}</span> @@ -229,7 +228,7 @@ if ('onhashchange' in window) { <span id="L164" class="LineNr">164 </span> <span class="PreProc">var</span> y-f/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> iterations/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L166" class="LineNr">166 </span> <span class="Delimiter">{</span> -<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L182'>mandelbrot-done?</a> x-f, y-f +<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L182'>mandelbrot-done?</a> x-f, y-f <span id="L168" class="LineNr">168 </span> compare done?, <span class="Constant">0</span>/false <span id="L169" class="LineNr">169 </span> <span class="PreProc">break-if-!=</span> <span id="L170" class="LineNr">170 </span> compare iterations, max @@ -244,9 +243,9 @@ if ('onhashchange' in window) { <span id="L179" class="LineNr">179 </span> <span class="PreProc">return</span> iterations <span id="L180" class="LineNr">180 </span><span class="Delimiter">}</span> <span id="L181" class="LineNr">181 </span> -<span id="L182" class="LineNr">182 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L182'>mandelbrot-done?</a></span> x-f: int, y-f: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L182" class="LineNr">182 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L182'>mandelbrot-done?</a></span> x-f: int, y-f: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L183" class="LineNr">183 </span> <span class="muComment"># x*x + y*y > 4</span> -<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> tmp-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> x-f, x-f +<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> tmp-f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> x-f, x-f <span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> result-f/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy tmp-f <span id="L186" class="LineNr">186 </span> tmp-f <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> y-f, y-f <span id="L187" class="LineNr">187 </span> result-f <span class="Special"><-</span> add tmp-f @@ -260,7 +259,7 @@ if ('onhashchange' in window) { <span id="L195" class="LineNr">195 </span> <span id="L196" class="LineNr">196 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L196'>mandelbrot-x</a></span> x-f: int, y-f: int, real-f: int<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> <span id="L197" class="LineNr">197 </span> <span class="muComment"># x*x - y*y + real</span> -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> tmp-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> x-f, x-f +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> tmp-f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> x-f, x-f <span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> result-f/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy tmp-f <span id="L200" class="LineNr">200 </span> tmp-f <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> y-f, y-f <span id="L201" class="LineNr">201 </span> result-f <span class="Special"><-</span> subtract tmp-f @@ -270,7 +269,7 @@ if ('onhashchange' in window) { <span id="L205" class="LineNr">205 </span> <span id="L206" class="LineNr">206 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L206'>mandelbrot-y</a></span> x-f: int, y-f: int, imaginary-f: int<span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> <span id="L207" class="LineNr">207 </span> <span class="muComment"># 2*x*y + imaginary</span> -<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> result-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x-f +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> result-f/eax: int <span class="Special"><-</span> copy x-f <span id="L209" class="LineNr">209 </span> result-f <span class="Special"><-</span> shift-left <span class="Constant">1</span>/log2 <span id="L210" class="LineNr">210 </span> result-f <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> result-f, y-f <span id="L211" class="LineNr">211 </span> result-f <span class="Special"><-</span> add imaginary-f @@ -287,7 +286,7 @@ if ('onhashchange' in window) { <span id="L222" class="LineNr">222 </span> <span class="muComment"># Therefore:</span> <span id="L223" class="LineNr">223 </span> <span class="muComment"># x in the viewport goes to (scene-cx - scene-width/2) + x*scene-width/width</span> <span id="L224" class="LineNr">224 </span> <span class="muComment"># At most two numbers being multiplied before a divide, so no risk of overflow.</span> -<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> result-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> x +<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> result-f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> x <span id="L226" class="LineNr">226 </span> result-f <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> result-f, scene-width-f <span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> width-f/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy width <span id="L228" class="LineNr">228 </span> width-f <span class="Special"><-</span> shift-left <span class="Constant">8</span>/fixed-precision @@ -306,7 +305,7 @@ if ('onhashchange' in window) { <span id="L241" class="LineNr">241 </span> <span class="muComment"># y in the viewport goes to (scene-cy - scene-width/2*height/width) + y*scene-width/width</span> <span id="L242" class="LineNr">242 </span> <span class="muComment"># scene-cy - scene-width/width * (height/2 + y)</span> <span id="L243" class="LineNr">243 </span> <span class="muComment"># At most two numbers being multiplied before a divide, so no risk of overflow.</span> -<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> result-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> y +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> result-f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> y <span id="L245" class="LineNr">245 </span> result-f <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> result-f, scene-width-f <span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> width-f/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy width <span id="L247" class="LineNr">247 </span> width-f <span class="Special"><-</span> shift-left <span class="Constant">8</span>/fixed-precision @@ -314,7 +313,7 @@ if ('onhashchange' in window) { <span id="L249" class="LineNr">249 </span> result-f <span class="Special"><-</span> add scene-cy-f <span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> second-term-f/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L251" class="LineNr">251 </span> <span class="Delimiter">{</span> -<span id="L252" class="LineNr">252 </span> <span class="PreProc">var</span> _second-term-f/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy scene-width-f +<span id="L252" class="LineNr">252 </span> <span class="PreProc">var</span> _second-term-f/eax: int <span class="Special"><-</span> copy scene-width-f <span id="L253" class="LineNr">253 </span> _second-term-f <span class="Special"><-</span> shift-right <span class="Constant">1</span> <span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> height-f/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy height <span id="L255" class="LineNr">255 </span> height-f <span class="Special"><-</span> shift-left <span class="Constant">8</span>/fixed-precision diff --git a/html/mandelbrot-silhouette.mu.html b/html/mandelbrot-silhouette.mu.html index de6f5b21..ca476867 100644 --- a/html/mandelbrot-silhouette.mu.html +++ b/html/mandelbrot-silhouette.mu.html @@ -14,18 +14,17 @@ 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; } -.muRegEsi { color: #87d787; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEdx { color: #878700; } +.muComment { color: #005faf; } --> </style> @@ -78,7 +77,7 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr"> 15 </span><span class="Delimiter">}</span> <span id="L16" class="LineNr"> 16 </span> <span id="L17" class="LineNr"> 17 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L17'>mandelbrot</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> -<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> b/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L20" class="LineNr"> 20 </span> a, b <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> width/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy a @@ -95,7 +94,7 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr"> 32 </span> compare x, width <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">break-if->=</span> <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> real/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='mandelbrot-silhouette.mu.html#L119'>viewport-to-real</a> x, width -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> iterations/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot-silhouette.mu.html#L54'>mandelbrot-iterations-for-point</a> real, imaginary, <span class="Constant">0x400</span>/max +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> iterations/eax: int <span class="Special"><-</span> <a href='mandelbrot-silhouette.mu.html#L54'>mandelbrot-iterations-for-point</a> real, imaginary, <span class="Constant">0x400</span>/max <span id="L36" class="LineNr"> 36 </span> compare iterations, <span class="Constant">0x400</span>/max <span id="L37" class="LineNr"> 37 </span> <span class="Delimiter">{</span> <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if->=</span> @@ -114,13 +113,13 @@ if ('onhashchange' in window) { <span id="L51" class="LineNr"> 51 </span> <span class="Delimiter">}</span> <span id="L52" class="LineNr"> 52 </span><span class="Delimiter">}</span> <span id="L53" class="LineNr"> 53 </span> -<span id="L54" class="LineNr"> 54 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L54'>mandelbrot-iterations-for-point</a></span> real: float, imaginary: float, max: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L54" class="LineNr"> 54 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L54'>mandelbrot-iterations-for-point</a></span> real: float, imaginary: float, max: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> zero: float <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> x/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy zero <span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> y/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy zero <span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> iterations/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L59" class="LineNr"> 59 </span> <span class="Delimiter">{</span> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='mandelbrot-silhouette.mu.html#L75'>mandelbrot-done?</a> x, y +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='mandelbrot-silhouette.mu.html#L75'>mandelbrot-done?</a> x, y <span id="L61" class="LineNr"> 61 </span> compare done?, <span class="Constant">0</span>/false <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">break-if-!=</span> <span id="L63" class="LineNr"> 63 </span> compare iterations, max @@ -135,7 +134,7 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">return</span> iterations <span id="L73" class="LineNr"> 73 </span><span class="Delimiter">}</span> <span id="L74" class="LineNr"> 74 </span> -<span id="L75" class="LineNr"> 75 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L75'>mandelbrot-done?</a></span> x: float, y: float<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L75" class="LineNr"> 75 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L75'>mandelbrot-done?</a></span> x: float, y: float<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L76" class="LineNr"> 76 </span> <span class="muComment"># x*x + y*y > 4</span> <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> x2/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy x <span id="L78" class="LineNr"> 78 </span> x2 <span class="Special"><-</span> multiply x @@ -143,7 +142,7 @@ if ('onhashchange' in window) { <span id="L80" class="LineNr"> 80 </span> y2 <span class="Special"><-</span> multiply y <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> sum/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy x2 <span id="L82" class="LineNr"> 82 </span> sum <span class="Special"><-</span> add y2 -<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> four/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">4</span> +<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> four/eax: int <span class="Special"><-</span> copy <span class="Constant">4</span> <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> four-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert four <span id="L85" class="LineNr"> 85 </span> compare sum, four-f <span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">{</span> @@ -167,7 +166,7 @@ if ('onhashchange' in window) { <span id="L104" class="LineNr">104 </span> <span id="L105" class="LineNr">105 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L105'>mandelbrot-y</a></span> x: float, y: float, imaginary: float<span class="PreProc"> -> </span>_/<span class="Constant">xmm3</span>: float <span class="Delimiter">{</span> <span id="L106" class="LineNr">106 </span> <span class="muComment"># 2*x*y + imaginary</span> -<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> two/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> two/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert two <span id="L109" class="LineNr">109 </span> result <span class="Special"><-</span> multiply x <span id="L110" class="LineNr">110 </span> result <span class="Special"><-</span> multiply y @@ -183,12 +182,12 @@ if ('onhashchange' in window) { <span id="L120" class="LineNr">120 </span> <span class="muComment"># (x - width/2)*4/width</span> <span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert x <span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> width-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert width -<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> two/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> two/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert two <span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> half-width-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> reciprocal two-f <span id="L126" class="LineNr">126 </span> half-width-f <span class="Special"><-</span> multiply width-f <span id="L127" class="LineNr">127 </span> result <span class="Special"><-</span> subtract half-width-f -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> four/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">4</span> +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> four/eax: int <span class="Special"><-</span> copy <span class="Constant">4</span> <span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> four-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert four <span id="L130" class="LineNr">130 </span> result <span class="Special"><-</span> multiply four-f <span id="L131" class="LineNr">131 </span> result <span class="Special"><-</span> divide width-f @@ -200,11 +199,11 @@ if ('onhashchange' in window) { <span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert y <span id="L138" class="LineNr">138 </span> <span class="PreProc">var</span> height-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert height <span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> half-height-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy height-f -<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> two/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> two/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert two <span id="L142" class="LineNr">142 </span> half-height-f <span class="Special"><-</span> divide two-f <span id="L143" class="LineNr">143 </span> result <span class="Special"><-</span> subtract half-height-f -<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> four/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">4</span> +<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> four/eax: int <span class="Special"><-</span> copy <span class="Constant">4</span> <span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> four-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert four <span id="L146" class="LineNr">146 </span> result <span class="Special"><-</span> multiply four-f <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> width-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert width diff --git a/html/mandelbrot.mu.html b/html/mandelbrot.mu.html index 14324ce4..013dcab9 100644 --- a/html/mandelbrot.mu.html +++ b/html/mandelbrot.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEsi { color: #87d787; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEdx { color: #878700; } +.muComment { color: #005faf; } --> </style> @@ -82,11 +81,11 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr"> 18 </span> <span class="muComment"># Initially the viewport shows a section of the scene 4 units wide.</span> <span id="L19" class="LineNr"> 19 </span> <span class="muComment"># scene-width-scale = 0.5</span> <span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> scene-width-scale: float -<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> address scene-width-scale +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> address scene-width-scale <span id="L22" class="LineNr"> 22 </span> <a href='408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">1</span>, <span class="Constant">2</span> <span id="L23" class="LineNr"> 23 </span> <span class="muComment"># scene-width = 4</span> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> four: float -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> address four +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> address four <span id="L26" class="LineNr"> 26 </span> <a href='408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">4</span>, <span class="Constant">1</span> <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> scene-width/<span class="Constant">xmm3</span>: float <span class="Special"><-</span> copy four <span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">{</span> @@ -103,7 +102,7 @@ if ('onhashchange' in window) { <span id="L39" class="LineNr"> 39 </span><span class="Delimiter">}</span> <span id="L40" class="LineNr"> 40 </span> <span id="L41" class="LineNr"> 41 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L41'>mandelbrot</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), scene-cx: float, scene-cy: float, scene-width: float <span class="Delimiter">{</span> -<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> b/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L44" class="LineNr"> 44 </span> a, b <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> width/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy a @@ -120,7 +119,7 @@ if ('onhashchange' in window) { <span id="L56" class="LineNr"> 56 </span> compare x, width <span id="L57" class="LineNr"> 57 </span> <span class="PreProc">break-if->=</span> <span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> real/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='mandelbrot.mu.html#L138'>viewport-to-real</a> x, width, scene-cx, scene-width -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> iterations/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='mandelbrot.mu.html#L73'>mandelbrot-iterations-for-point</a> real, imaginary, <span class="Constant">0x400</span>/max +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> iterations/eax: int <span class="Special"><-</span> <a href='mandelbrot.mu.html#L73'>mandelbrot-iterations-for-point</a> real, imaginary, <span class="Constant">0x400</span>/max <span id="L60" class="LineNr"> 60 </span> iterations <span class="Special"><-</span> shift-right <span class="Constant">3</span> <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> color/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L62" class="LineNr"> 62 </span> iterations, color <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> iterations, <span class="Constant">0x18</span>/<span class="Constant">24</span>/size-of-cycle-0 @@ -134,13 +133,13 @@ if ('onhashchange' in window) { <span id="L70" class="LineNr"> 70 </span> <span class="Delimiter">}</span> <span id="L71" class="LineNr"> 71 </span><span class="Delimiter">}</span> <span id="L72" class="LineNr"> 72 </span> -<span id="L73" class="LineNr"> 73 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L73'>mandelbrot-iterations-for-point</a></span> real: float, imaginary: float, max: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L73" class="LineNr"> 73 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L73'>mandelbrot-iterations-for-point</a></span> real: float, imaginary: float, max: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> zero: float <span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> x/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy zero <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> y/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy zero <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> iterations/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L78" class="LineNr"> 78 </span> <span class="Delimiter">{</span> -<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='mandelbrot.mu.html#L94'>mandelbrot-done?</a> x, y +<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='mandelbrot.mu.html#L94'>mandelbrot-done?</a> x, y <span id="L80" class="LineNr"> 80 </span> compare done?, <span class="Constant">0</span>/false <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">break-if-!=</span> <span id="L82" class="LineNr"> 82 </span> compare iterations, max @@ -155,7 +154,7 @@ if ('onhashchange' in window) { <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">return</span> iterations <span id="L92" class="LineNr"> 92 </span><span class="Delimiter">}</span> <span id="L93" class="LineNr"> 93 </span> -<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L94'>mandelbrot-done?</a></span> x: float, y: float<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L94'>mandelbrot-done?</a></span> x: float, y: float<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L95" class="LineNr"> 95 </span> <span class="muComment"># x*x + y*y > 4</span> <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> x2/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy x <span id="L97" class="LineNr"> 97 </span> x2 <span class="Special"><-</span> multiply x @@ -163,7 +162,7 @@ if ('onhashchange' in window) { <span id="L99" class="LineNr"> 99 </span> y2 <span class="Special"><-</span> multiply y <span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> sum/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy x2 <span id="L101" class="LineNr">101 </span> sum <span class="Special"><-</span> add y2 -<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> four/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">4</span> +<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> four/eax: int <span class="Special"><-</span> copy <span class="Constant">4</span> <span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> four-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert four <span id="L104" class="LineNr">104 </span> compare sum, four-f <span id="L105" class="LineNr">105 </span> <span class="Delimiter">{</span> @@ -187,7 +186,7 @@ if ('onhashchange' in window) { <span id="L123" class="LineNr">123 </span> <span id="L124" class="LineNr">124 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L124'>mandelbrot-y</a></span> x: float, y: float, imaginary: float<span class="PreProc"> -> </span>_/<span class="Constant">xmm3</span>: float <span class="Delimiter">{</span> <span id="L125" class="LineNr">125 </span> <span class="muComment"># 2*x*y + imaginary</span> -<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> two/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> two/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert two <span id="L128" class="LineNr">128 </span> result <span class="Special"><-</span> multiply x <span id="L129" class="LineNr">129 </span> result <span class="Special"><-</span> multiply y @@ -210,7 +209,7 @@ if ('onhashchange' in window) { <span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> width-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert width <span id="L147" class="LineNr">147 </span> result <span class="Special"><-</span> divide width-f <span id="L148" class="LineNr">148 </span> result <span class="Special"><-</span> add scene-cx -<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> two/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> two/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert two <span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> half-scene-width/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy scene-width <span id="L152" class="LineNr">152 </span> half-scene-width <span class="Special"><-</span> divide two-f @@ -230,7 +229,7 @@ if ('onhashchange' in window) { <span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> width-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert width <span id="L167" class="LineNr">167 </span> result <span class="Special"><-</span> divide width-f <span id="L168" class="LineNr">168 </span> result <span class="Special"><-</span> add scene-cy -<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> two/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> two/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> <span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert two <span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> second-term/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy scene-width <span id="L172" class="LineNr">172 </span> second-term <span class="Special"><-</span> divide two-f diff --git a/html/rpn.mu.html b/html/rpn.mu.html index ec9b78b6..d2cf842c 100644 --- a/html/rpn.mu.html +++ b/html/rpn.mu.html @@ -14,18 +14,17 @@ 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; } -.muRegEcx { color: #af875f; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEdx { color: #878700; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muRegEdi { color: #87ffd7; } +.muComment { color: #005faf; } --> </style> @@ -86,19 +85,19 @@ if ('onhashchange' in window) { <span id="L23" class="LineNr"> 23 </span> <span class="muComment"># read-eval-print loop</span> <span id="L24" class="LineNr"> 24 </span> <span class="Delimiter">{</span> <span id="L25" class="LineNr"> 25 </span> <span class="muComment"># print prompt</span> -<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"> "</span>, <span class="Constant">0</span>/x, <span class="Constant">0x80</span>/xmax, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg +<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"> "</span>, <span class="Constant">0</span>/x, <span class="Constant">0x80</span>/xmax, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg <span id="L27" class="LineNr"> 27 </span> <span class="muComment"># read line from keyboard</span> <span id="L28" class="LineNr"> 28 </span> <a href='106stream.subx.html#L20'>clear-stream</a> in <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">{</span> <span id="L30" class="LineNr"> 30 </span> <a href='500fake-screen.mu.html#L237'>draw-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, space -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L32" class="LineNr"> 32 </span> compare key, <span class="Constant">0xa</span>/newline <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">break-if-=</span> <span id="L34" class="LineNr"> 34 </span> compare key, <span class="Constant">0</span> <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">loop-if-=</span> -<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> key2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy key +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> key2/eax: int <span class="Special"><-</span> copy key <span id="L37" class="LineNr"> 37 </span> <a href='115write-byte.subx.html#L12'>append-byte</a> in, key2 -<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy key2 +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy key2 <span id="L39" class="LineNr"> 39 </span> <a href='501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg <span id="L40" class="LineNr"> 40 </span> <a href='501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> <span id="L41" class="LineNr"> 41 </span> <span class="PreProc">loop</span> @@ -106,7 +105,7 @@ if ('onhashchange' in window) { <span id="L43" class="LineNr"> 43 </span> <span class="muComment"># clear cursor</span> <span id="L44" class="LineNr"> 44 </span> <a href='501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, space, <span class="Constant">3</span>/fg/never-used, <span class="Constant">0</span>/bg <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># parse and eval</span> -<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L62'>simplify</a> in +<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> out/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L62'>simplify</a> in <span id="L47" class="LineNr"> 47 </span> <span class="muComment"># print</span> <span id="L48" class="LineNr"> 48 </span> y <span class="Special"><-</span> increment <span id="L49" class="LineNr"> 49 </span> out, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L340'>draw-int32-decimal-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, out, <span class="Constant">0</span>/xmin, y, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x30</span>/ymax, <span class="Constant">0</span>/x, y, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg @@ -122,7 +121,7 @@ if ('onhashchange' in window) { <span id="L59" class="LineNr"> 59 </span> top: int <span id="L60" class="LineNr"> 60 </span><span class="Delimiter">}</span> <span id="L61" class="LineNr"> 61 </span> -<span id="L62" class="LineNr"> 62 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L62'>simplify</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L62" class="LineNr"> 62 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L62'>simplify</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> word-storage: slice <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> word/<span class="muRegEcx">ecx</span>: (addr slice) <span class="Special"><-</span> address word-storage <span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> stack-storage: <a href='rpn.mu.html#L57'>int-stack</a> @@ -130,49 +129,49 @@ if ('onhashchange' in window) { <span id="L67" class="LineNr"> 67 </span> <a href='rpn.mu.html#L116'>initialize-int-stack</a> stack, <span class="Constant">0x10</span> <span id="L68" class="LineNr"> 68 </span> $simplify:word-loop: <span class="Delimiter">{</span> <span id="L69" class="LineNr"> 69 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, word -<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L9'>slice-empty?</a> word +<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L9'>slice-empty?</a> word <span id="L71" class="LineNr"> 71 </span> compare done?, <span class="Constant">0</span> <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">break-if-!=</span> <span id="L73" class="LineNr"> 73 </span> <span class="muComment"># if word is an operator, perform it</span> <span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">{</span> -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> is-add?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"+"</span> +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> is-add?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"+"</span> <span id="L76" class="LineNr"> 76 </span> compare is-add?, <span class="Constant">0</span> <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">break-if-=</span> -<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> _b/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack +<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack <span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _b -<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack <span id="L81" class="LineNr"> 81 </span> a <span class="Special"><-</span> add b <span id="L82" class="LineNr"> 82 </span> <a href='rpn.mu.html#L124'>push-int-stack</a> stack, a <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">}</span> <span id="L85" class="LineNr"> 85 </span> <span class="Delimiter">{</span> -<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> is-sub?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"-"</span> +<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> is-sub?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"-"</span> <span id="L87" class="LineNr"> 87 </span> compare is-sub?, <span class="Constant">0</span> <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">break-if-=</span> -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> _b/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _b -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack <span id="L92" class="LineNr"> 92 </span> a <span class="Special"><-</span> subtract b <span id="L93" class="LineNr"> 93 </span> <a href='rpn.mu.html#L124'>push-int-stack</a> stack, a <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L95" class="LineNr"> 95 </span> <span class="Delimiter">}</span> <span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">{</span> -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> is-mul?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"*"</span> +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> is-mul?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"*"</span> <span id="L98" class="LineNr"> 98 </span> compare is-mul?, <span class="Constant">0</span> <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">break-if-=</span> -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> _b/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack <span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _b -<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> a/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack +<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack <span id="L103" class="LineNr">103 </span> a <span class="Special"><-</span> multiply b <span id="L104" class="LineNr">104 </span> <a href='rpn.mu.html#L124'>push-int-stack</a> stack, a <span id="L105" class="LineNr">105 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L106" class="LineNr">106 </span> <span class="Delimiter">}</span> <span id="L107" class="LineNr">107 </span> <span class="muComment"># otherwise it's an int</span> -<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> n/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> word +<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> word <span id="L109" class="LineNr">109 </span> <a href='rpn.mu.html#L124'>push-int-stack</a> stack, n <span id="L110" class="LineNr">110 </span> <span class="PreProc">loop</span> <span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> -<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack +<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack <span id="L113" class="LineNr">113 </span> <span class="PreProc">return</span> result <span id="L114" class="LineNr">114 </span><span class="Delimiter">}</span> <span id="L115" class="LineNr">115 </span> @@ -180,7 +179,7 @@ if ('onhashchange' in window) { <span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L57'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array int) <span class="Special"><-</span> get self, data <span id="L119" class="LineNr">119 </span> populate d, n -<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> top/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top +<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L121" class="LineNr">121 </span> copy-to *top, <span class="Constant">0</span> <span id="L122" class="LineNr">122 </span><span class="Delimiter">}</span> <span id="L123" class="LineNr">123 </span> @@ -188,15 +187,15 @@ if ('onhashchange' in window) { <span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L57'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> get self, data -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> top/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> index data, top -<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _val +<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy _val <span id="L132" class="LineNr">132 </span> copy-to *dest-addr, val <span id="L133" class="LineNr">133 </span> add-to *top-addr, <span class="Constant">1</span> <span id="L134" class="LineNr">134 </span><span class="Delimiter">}</span> <span id="L135" class="LineNr">135 </span> -<span id="L136" class="LineNr">136 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L136'>pop-int-stack</a></span> _self: (addr <a href='rpn.mu.html#L57'>int-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L136" class="LineNr">136 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L136'>pop-int-stack</a></span> _self: (addr <a href='rpn.mu.html#L57'>int-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L57'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L138" class="LineNr">138 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L139" class="LineNr">139 </span> <span class="Delimiter">{</span> @@ -206,10 +205,10 @@ if ('onhashchange' in window) { <span id="L143" class="LineNr">143 </span> <span class="Delimiter">}</span> <span id="L144" class="LineNr">144 </span> subtract-from *top-addr, <span class="Constant">1</span> <span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> get self, data -<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> top/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr -<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index data, top -<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *result-addr +<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> result-addr/eax: (addr int) <span class="Special"><-</span> index data, top +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy *result-addr <span id="L150" class="LineNr">150 </span> <span class="PreProc">return</span> val <span id="L151" class="LineNr">151 </span><span class="Delimiter">}</span> </pre> diff --git a/html/shell/cell.mu.html b/html/shell/cell.mu.html index c58efa7d..e1d417c7 100644 --- a/html/shell/cell.mu.html +++ b/html/shell/cell.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; } -.muRegEsi { color: #87d787; } -.muComment { color: #005faf; } +.PreProc { color: #c000c0; } +.Special { color: #ff6060; } .LineNr { } +.muRegEsi { color: #005faf; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEcx { color: #af875f; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -80,20 +79,20 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr"> 19 </span><span class="Delimiter">}</span> <span id="L20" class="LineNr"> 20 </span> <span id="L21" class="LineNr"> 21 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L21'>allocate-symbol</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L23" class="LineNr"> 23 </span> <a href='../120allocate.subx.html#L43'>allocate</a> out -<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get out-addr, <span class="PreProc">type</span> <span id="L26" class="LineNr"> 26 </span> copy-to *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol -<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get out-addr, text-data +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get out-addr, text-data <span id="L28" class="LineNr"> 28 </span> populate-stream dest-ah, <span class="Constant">0x40</span>/max-symbol-size <span id="L29" class="LineNr"> 29 </span><span class="Delimiter">}</span> <span id="L30" class="LineNr"> 30 </span> <span id="L31" class="LineNr"> 31 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L31'>initialize-symbol</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), val: (addr array byte) <span class="Delimiter">{</span> -<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get out-addr, text-data -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah +<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get out-addr, text-data +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> dest/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah <span id="L36" class="LineNr"> 36 </span> <a href='../108write.subx.html#L11'>write</a> dest, val <span id="L37" class="LineNr"> 37 </span><span class="Delimiter">}</span> <span id="L38" class="LineNr"> 38 </span> @@ -102,42 +101,42 @@ if ('onhashchange' in window) { <span id="L41" class="LineNr"> 41 </span> <a href='cell.mu.html#L31'>initialize-symbol</a> out, val <span id="L42" class="LineNr"> 42 </span><span class="Delimiter">}</span> <span id="L43" class="LineNr"> 43 </span> -<span id="L44" class="LineNr"> 44 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L44'>symbol-equal?</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), name: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L44" class="LineNr"> 44 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L44'>symbol-equal?</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), name: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> in-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> +<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> in-type/eax: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> <span id="L47" class="LineNr"> 47 </span> compare *in-type, <span class="Constant">2</span>/symbol <span id="L48" class="LineNr"> 48 </span> <span class="Delimiter">{</span> <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">break-if-=</span> <span id="L50" class="LineNr"> 50 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L51" class="LineNr"> 51 </span> <span class="Delimiter">}</span> -<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get in, text-data -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah -<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, name +<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get in, text-data +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, name <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">return</span> result <span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span> <span id="L57" class="LineNr"> 57 </span> <span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L58'>allocate-stream</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L60" class="LineNr"> 60 </span> <a href='../120allocate.subx.html#L43'>allocate</a> out -<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get out-addr, <span class="PreProc">type</span> <span id="L63" class="LineNr"> 63 </span> copy-to *<span class="PreProc">type</span>, <span class="Constant">3</span>/stream -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get out-addr, text-data +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get out-addr, text-data <span id="L65" class="LineNr"> 65 </span> populate-stream dest-ah, <span class="Constant">0x40</span>/max-stream-size <span id="L66" class="LineNr"> 66 </span><span class="Delimiter">}</span> <span id="L67" class="LineNr"> 67 </span> <span id="L68" class="LineNr"> 68 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L68'>allocate-number</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L70" class="LineNr"> 70 </span> <a href='../120allocate.subx.html#L43'>allocate</a> out -<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get out-addr, <span class="PreProc">type</span> <span id="L73" class="LineNr"> 73 </span> copy-to *<span class="PreProc">type</span>, <span class="Constant">1</span>/number <span id="L74" class="LineNr"> 74 </span><span class="Delimiter">}</span> <span id="L75" class="LineNr"> 75 </span> <span id="L76" class="LineNr"> 76 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L76'>initialize-integer</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), n: int <span class="Delimiter">{</span> -<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out -<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out -<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get out-addr, number-data +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> dest-addr/eax: (addr float) <span class="Special"><-</span> get out-addr, number-data <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> src/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert n <span id="L81" class="LineNr"> 81 </span> copy-to *dest-addr, src <span id="L82" class="LineNr"> 82 </span><span class="Delimiter">}</span> @@ -148,9 +147,9 @@ if ('onhashchange' in window) { <span id="L87" class="LineNr"> 87 </span><span class="Delimiter">}</span> <span id="L88" class="LineNr"> 88 </span> <span id="L89" class="LineNr"> 89 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L89'>initialize-float</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), n: float <span class="Delimiter">{</span> -<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get out-addr, number-data +<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> dest-ah/eax: (addr float) <span class="Special"><-</span> get out-addr, number-data <span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> src/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy n <span id="L94" class="LineNr"> 94 </span> copy-to *dest-ah, src <span id="L95" class="LineNr"> 95 </span><span class="Delimiter">}</span> @@ -166,8 +165,8 @@ if ('onhashchange' in window) { <span id="L105" class="LineNr">105 </span><span class="Delimiter">}</span> <span id="L106" class="LineNr">106 </span> <span id="L107" class="LineNr">107 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L107'>initialize-pair</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), left: (handle <a href='cell.mu.html#L1'>cell</a>), right: (handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, left <span id="L111" class="LineNr">111 </span> <a href='../120allocate.subx.html#L479'>copy-handle</a> left, dest-ah <span id="L112" class="LineNr">112 </span> dest-ah <span class="Special"><-</span> get out-addr, right @@ -184,17 +183,17 @@ if ('onhashchange' in window) { <span id="L123" class="LineNr">123 </span><span class="Delimiter">}</span> <span id="L124" class="LineNr">124 </span> <span id="L125" class="LineNr">125 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L125'>allocate-primitive-function</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L127" class="LineNr">127 </span> <a href='../120allocate.subx.html#L43'>allocate</a> out -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get out-addr, <span class="PreProc">type</span> <span id="L130" class="LineNr">130 </span> copy-to *<span class="PreProc">type</span>, <span class="Constant">4</span>/primitive-function <span id="L131" class="LineNr">131 </span><span class="Delimiter">}</span> <span id="L132" class="LineNr">132 </span> <span id="L133" class="LineNr">133 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L133'>initialize-primitive-function</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), n: int <span class="Delimiter">{</span> -<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out -<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get out-addr, index-data +<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> dest-addr/eax: (addr int) <span class="Special"><-</span> get out-addr, index-data <span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy n <span id="L138" class="LineNr">138 </span> copy-to *dest-addr, src <span id="L139" class="LineNr">139 </span><span class="Delimiter">}</span> @@ -205,64 +204,64 @@ if ('onhashchange' in window) { <span id="L144" class="LineNr">144 </span><span class="Delimiter">}</span> <span id="L145" class="LineNr">145 </span> <span id="L146" class="LineNr">146 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L146'>allocate-screen</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L148" class="LineNr">148 </span> <a href='../120allocate.subx.html#L43'>allocate</a> out -<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get out-addr, <span class="PreProc">type</span> <span id="L151" class="LineNr">151 </span> copy-to *<span class="PreProc">type</span>, <span class="Constant">5</span>/screen <span id="L152" class="LineNr">152 </span><span class="Delimiter">}</span> <span id="L153" class="LineNr">153 </span> <span id="L154" class="LineNr">154 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L154'>new-fake-screen</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), width: int, height: int, pixel-graphics?: boolean <span class="Delimiter">{</span> -<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L156" class="LineNr">156 </span> <a href='cell.mu.html#L146'>allocate-screen</a> out -<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out -<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get out-addr, screen-data +<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get out-addr, screen-data <span id="L159" class="LineNr">159 </span> <a href='../120allocate.subx.html#L43'>allocate</a> dest-ah -<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah +<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> dest-addr/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah <span id="L161" class="LineNr">161 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> dest-addr, width, height, pixel-graphics? <span id="L162" class="LineNr">162 </span><span class="Delimiter">}</span> <span id="L163" class="LineNr">163 </span> <span id="L164" class="LineNr">164 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L164'>clear-screen-var</a></span> _self-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> self-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _self-ah -<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *self-ah +<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> self-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _self-ah +<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> self/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *self-ah <span id="L167" class="LineNr">167 </span> compare self, <span class="Constant">0</span> <span id="L168" class="LineNr">168 </span> <span class="Delimiter">{</span> <span id="L169" class="LineNr">169 </span> <span class="PreProc">break-if-!=</span> <span id="L170" class="LineNr">170 </span> <span class="PreProc">return</span> <span id="L171" class="LineNr">171 </span> <span class="Delimiter">}</span> -<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get self, screen-data -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get self, screen-data +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L174" class="LineNr">174 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L175" class="LineNr">175 </span><span class="Delimiter">}</span> <span id="L176" class="LineNr">176 </span> <span id="L177" class="LineNr">177 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L177'>allocate-keyboard</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L179" class="LineNr">179 </span> <a href='../120allocate.subx.html#L43'>allocate</a> out -<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get out-addr, <span class="PreProc">type</span> <span id="L182" class="LineNr">182 </span> copy-to *<span class="PreProc">type</span>, <span class="Constant">6</span>/keyboard <span id="L183" class="LineNr">183 </span><span class="Delimiter">}</span> <span id="L184" class="LineNr">184 </span> <span id="L185" class="LineNr">185 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L185'>new-fake-keyboard</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), capacity: int <span class="Delimiter">{</span> -<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L187" class="LineNr">187 </span> <a href='cell.mu.html#L177'>allocate-keyboard</a> out -<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out -<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get out-addr, keyboard-data +<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get out-addr, keyboard-data <span id="L190" class="LineNr">190 </span> <a href='../120allocate.subx.html#L43'>allocate</a> dest-ah -<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah +<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> dest-addr/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah <span id="L192" class="LineNr">192 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> dest-addr, capacity <span id="L193" class="LineNr">193 </span><span class="Delimiter">}</span> <span id="L194" class="LineNr">194 </span> <span id="L195" class="LineNr">195 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L195'>rewind-keyboard-var</a></span> _self-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> self-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _self-ah -<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *self-ah +<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> self-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _self-ah +<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> self/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *self-ah <span id="L198" class="LineNr">198 </span> compare self, <span class="Constant">0</span> <span id="L199" class="LineNr">199 </span> <span class="Delimiter">{</span> <span id="L200" class="LineNr">200 </span> <span class="PreProc">break-if-!=</span> <span id="L201" class="LineNr">201 </span> <span class="PreProc">return</span> <span id="L202" class="LineNr">202 </span> <span class="Delimiter">}</span> -<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> keyboard-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, keyboard-data -<span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> keyboard/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah +<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, keyboard-data +<span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> keyboard/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah <span id="L205" class="LineNr">205 </span> <a href='gap-buffer.mu.html#L1015'>rewind-gap-buffer</a> keyboard <span id="L206" class="LineNr">206 </span><span class="Delimiter">}</span> </pre> diff --git a/html/shell/environment.mu.html b/html/shell/environment.mu.html index a3761b41..023748ca 100644 --- a/html/shell/environment.mu.html +++ b/html/shell/environment.mu.html @@ -17,18 +17,17 @@ a { color:inherit; } .LineNr { } .Delimiter { color: #c000c0; } .CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .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; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -156,10 +155,10 @@ if ('onhashchange' in window) { <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> input-stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address input-stream-storage <span id="L91" class="LineNr"> 91 </span> <a href='../108write.subx.html#L11'>write</a> input-stream, keys <span id="L92" class="LineNr"> 92 </span> <span class="Delimiter">{</span> -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> input-stream +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> input-stream <span id="L94" class="LineNr"> 94 </span> compare done?, <span class="Constant">0</span>/false <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">break-if-!=</span> -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> input-stream +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> key/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> input-stream <span id="L97" class="LineNr"> 97 </span> <a href='environment.mu.html#L148'>edit-environment</a> self, key, <span class="Constant">0</span>/no-disk <span id="L98" class="LineNr"> 98 </span> <a href='environment.mu.html#L115'>render-environment</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">loop</span> @@ -168,13 +167,13 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr"> 102 </span> <span id="L103" class="LineNr"> 103 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L103'>initialize-environment</a></span> _self: (addr <a href='environment.mu.html#L8'>environment</a>), fake-screen-width: int, fake-screen-height: int <span class="Delimiter">{</span> <span id="L104" class="LineNr"> 104 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L8'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L105" class="LineNr"> 105 </span> <span class="PreProc">var</span> globals/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> get self, globals +<span id="L105" class="LineNr"> 105 </span> <span class="PreProc">var</span> globals/eax: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> get self, globals <span id="L106" class="LineNr"> 106 </span> <a href='global.mu.html#L14'>initialize-globals</a> globals -<span id="L107" class="LineNr"> 107 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEax">eax</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L107" class="LineNr"> 107 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a> <span id="L108" class="LineNr"> 108 </span> <a href='sandbox.mu.html#L12'>initialize-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, fake-screen-width, fake-screen-height -<span id="L109" class="LineNr"> 109 </span> <span class="PreProc">var</span> partial-global-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name +<span id="L109" class="LineNr"> 109 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name <span id="L110" class="LineNr"> 110 </span> <a href='../120allocate.subx.html#L43'>allocate</a> partial-global-name-ah -<span id="L111" class="LineNr"> 111 </span> <span class="PreProc">var</span> partial-global-name/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah +<span id="L111" class="LineNr"> 111 </span> <span class="PreProc">var</span> partial-global-name/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah <span id="L112" class="LineNr"> 112 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> partial-global-name, <span class="Constant">0x40</span>/global-name-capacity <span id="L113" class="LineNr"> 113 </span><span class="Delimiter">}</span> <span id="L114" class="LineNr"> 114 </span> @@ -183,8 +182,8 @@ if ('onhashchange' in window) { <span id="L117" class="LineNr"> 117 </span> <span class="muComment"># sandbox layout: 1 padding, 41 code, 1 padding = 43</span> <span id="L118" class="LineNr"> 118 </span> <span class="muComment"># total = 128 chars</span> <span id="L119" class="LineNr"> 119 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L8'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L120" class="LineNr"> 120 </span> <span class="PreProc">var</span> cursor-in-globals-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? -<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> cursor-in-globals?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy *cursor-in-globals-a +<span id="L120" class="LineNr"> 120 </span> <span class="PreProc">var</span> cursor-in-globals-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? +<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> cursor-in-globals?/eax: boolean <span class="Special"><-</span> copy *cursor-in-globals-a <span id="L122" class="LineNr"> 122 </span> <span class="PreProc">var</span> globals/<span class="muRegEcx">ecx</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> get self, globals <span id="L123" class="LineNr"> 123 </span> <a href='global.mu.html#L117'>render-globals</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, globals, cursor-in-globals? <span id="L124" class="LineNr"> 124 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEdx">edx</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a> @@ -193,7 +192,7 @@ if ('onhashchange' in window) { <span id="L127" class="LineNr"> 127 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x55</span>/sandbox-left-margin, <span class="Constant">0</span>/sandbox-top-margin, <span class="Constant">0x80</span>/screen-width, <span class="Constant">0x2f</span>/screen-height-without-menu, cursor-in-sandbox? <span id="L128" class="LineNr"> 128 </span> <span class="muComment"># modal if necessary</span> <span id="L129" class="LineNr"> 129 </span> <span class="Delimiter">{</span> -<span id="L130" class="LineNr"> 130 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L130" class="LineNr"> 130 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L131" class="LineNr"> 131 </span> compare *cursor-in-go-modal-a, <span class="Constant">0</span>/false <span id="L132" class="LineNr"> 132 </span> <span class="PreProc">break-if-=</span> <span id="L133" class="LineNr"> 133 </span> <a href='environment.mu.html#L811'>render-go-modal</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self @@ -202,7 +201,7 @@ if ('onhashchange' in window) { <span id="L136" class="LineNr"> 136 </span> <span class="Delimiter">}</span> <span id="L137" class="LineNr"> 137 </span> <span class="muComment"># render menu</span> <span id="L138" class="LineNr"> 138 </span> <span class="Delimiter">{</span> -<span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> cursor-in-globals?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? +<span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> cursor-in-globals?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? <span id="L140" class="LineNr"> 140 </span> compare *cursor-in-globals?, <span class="Constant">0</span>/false <span id="L141" class="LineNr"> 141 </span> <span class="PreProc">break-if-=</span> <span id="L142" class="LineNr"> 142 </span> <a href='global.mu.html#L202'>render-globals-menu</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, globals @@ -220,7 +219,7 @@ if ('onhashchange' in window) { <span id="L154" class="LineNr"> 154 </span> <span class="Delimiter">{</span> <span id="L155" class="LineNr"> 155 </span> compare key, <span class="Constant">0x12</span>/ctrl-r <span id="L156" class="LineNr"> 156 </span> <span class="PreProc">break-if-!=</span> -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> tmp/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L159" class="LineNr"> 159 </span> tmp <span class="Special"><-</span> address <a href='cell.mu.html#L121'>nil</a> <span id="L160" class="LineNr"> 160 </span> <a href='cell.mu.html#L102'>allocate-pair</a> tmp @@ -258,7 +257,7 @@ if ('onhashchange' in window) { <span id="L192" class="LineNr"> 192 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp, out-ah, <a href='cell.mu.html#L121'>nil</a>, globals, trace, <span class="Constant">0</span>/no-fake-screen, <span class="Constant">0</span>/no-fake-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L193" class="LineNr"> 193 </span> <span class="muComment"># wait for a keypress</span> <span id="L194" class="LineNr"> 194 </span> <span class="Delimiter">{</span> -<span id="L195" class="LineNr"> 195 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/keyboard +<span id="L195" class="LineNr"> 195 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/keyboard <span id="L196" class="LineNr"> 196 </span> compare tmp, <span class="Constant">0</span> <span id="L197" class="LineNr"> 197 </span> <span class="PreProc">loop-if-=</span> <span id="L198" class="LineNr"> 198 </span> <span class="Delimiter">}</span> @@ -271,7 +270,7 @@ if ('onhashchange' in window) { <span id="L205" class="LineNr"> 205 </span> <span class="PreProc">break-if-!=</span> <span id="L206" class="LineNr"> 206 </span> <span class="Delimiter">{</span> <span id="L207" class="LineNr"> 207 </span> <span class="muComment"># cursor in go modal? do nothing</span> -<span id="L208" class="LineNr"> 208 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L208" class="LineNr"> 208 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L209" class="LineNr"> 209 </span> compare *cursor-in-go-modal-a, <span class="Constant">0</span>/false <span id="L210" class="LineNr"> 210 </span> <span class="PreProc">break-if-!=</span> <span id="L211" class="LineNr"> 211 </span> <span class="Delimiter">{</span> @@ -288,7 +287,7 @@ if ('onhashchange' in window) { <span id="L222" class="LineNr"> 222 </span> <span class="Delimiter">}</span> <span id="L223" class="LineNr"> 223 </span> <span class="muComment"># dispatch to go modal if necessary</span> <span id="L224" class="LineNr"> 224 </span> <span class="Delimiter">{</span> -<span id="L225" class="LineNr"> 225 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L225" class="LineNr"> 225 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L226" class="LineNr"> 226 </span> compare *cursor-in-go-modal-a, <span class="Constant">0</span>/false <span id="L227" class="LineNr"> 227 </span> <span class="PreProc">break-if-=</span> <span id="L228" class="LineNr"> 228 </span> <span class="muComment"># nested events for modal dialog</span> @@ -302,9 +301,9 @@ if ('onhashchange' in window) { <span id="L236" class="LineNr"> 236 </span> <span class="Delimiter">{</span> <span id="L237" class="LineNr"> 237 </span> compare key, <span class="Constant">0x1b</span>/escape <span id="L238" class="LineNr"> 238 </span> <span class="PreProc">break-if-!=</span> -<span id="L239" class="LineNr"> 239 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L239" class="LineNr"> 239 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L240" class="LineNr"> 240 </span> copy-to *cursor-in-go-modal-a, <span class="Constant">0</span>/false -<span id="L241" class="LineNr"> 241 </span> <span class="PreProc">var</span> go-modal-error-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error +<span id="L241" class="LineNr"> 241 </span> <span class="PreProc">var</span> go-modal-error-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error <span id="L242" class="LineNr"> 242 </span> clear-object go-modal-error-ah <span id="L243" class="LineNr"> 243 </span> <span class="PreProc">return</span> <span id="L244" class="LineNr"> 244 </span> <span class="Delimiter">}</span> @@ -313,19 +312,19 @@ if ('onhashchange' in window) { <span id="L247" class="LineNr"> 247 </span> compare key, <span class="Constant">0xa</span>/newline <span id="L248" class="LineNr"> 248 </span> <span class="PreProc">break-if-!=</span> <span id="L249" class="LineNr"> 249 </span> <span class="muComment"># if no global name typed in, switch to sandbox</span> -<span id="L250" class="LineNr"> 250 </span> <span class="PreProc">var</span> partial-global-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name -<span id="L251" class="LineNr"> 251 </span> <span class="PreProc">var</span> partial-global-name/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah +<span id="L250" class="LineNr"> 250 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name +<span id="L251" class="LineNr"> 251 </span> <span class="PreProc">var</span> partial-global-name/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah <span id="L252" class="LineNr"> 252 </span> <span class="Delimiter">{</span> -<span id="L253" class="LineNr"> 253 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L27'>gap-buffer-empty?</a> partial-global-name +<span id="L253" class="LineNr"> 253 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L27'>gap-buffer-empty?</a> partial-global-name <span id="L254" class="LineNr"> 254 </span> compare empty?, <span class="Constant">0</span>/false <span id="L255" class="LineNr"> 255 </span> <span class="PreProc">break-if-=</span> -<span id="L256" class="LineNr"> 256 </span> <span class="PreProc">var</span> cursor-in-globals-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? +<span id="L256" class="LineNr"> 256 </span> <span class="PreProc">var</span> cursor-in-globals-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? <span id="L257" class="LineNr"> 257 </span> copy-to *cursor-in-globals-a, <span class="Constant">0</span>/false <span id="L258" class="LineNr"> 258 </span> <span class="muComment"># reset error state</span> -<span id="L259" class="LineNr"> 259 </span> <span class="PreProc">var</span> go-modal-error-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error +<span id="L259" class="LineNr"> 259 </span> <span class="PreProc">var</span> go-modal-error-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error <span id="L260" class="LineNr"> 260 </span> clear-object go-modal-error-ah <span id="L261" class="LineNr"> 261 </span> <span class="muComment"># done with go modal</span> -<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L263" class="LineNr"> 263 </span> copy-to *cursor-in-go-modal-a, <span class="Constant">0</span>/false <span id="L264" class="LineNr"> 264 </span> <span class="PreProc">return</span> <span id="L265" class="LineNr"> 265 </span> <span class="Delimiter">}</span> @@ -339,18 +338,18 @@ if ('onhashchange' in window) { <span id="L273" class="LineNr"> 273 </span> <span class="Delimiter">{</span> <span id="L274" class="LineNr"> 274 </span> compare index, <span class="Constant">0</span> <span id="L275" class="LineNr"> 275 </span> <span class="PreProc">break-if->=</span> -<span id="L276" class="LineNr"> 276 </span> <span class="PreProc">var</span> go-modal-error-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error +<span id="L276" class="LineNr"> 276 </span> <span class="PreProc">var</span> go-modal-error-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error <span id="L277" class="LineNr"> 277 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> <span class="Constant">"no such global"</span>, go-modal-error-ah <span id="L278" class="LineNr"> 278 </span> <span class="PreProc">return</span> <span id="L279" class="LineNr"> 279 </span> <span class="Delimiter">}</span> <span id="L280" class="LineNr"> 280 </span> <span class="muComment"># otherwise clear modal state</span> <span id="L281" class="LineNr"> 281 </span> <a href='gap-buffer.mu.html#L19'>clear-gap-buffer</a> partial-global-name -<span id="L282" class="LineNr"> 282 </span> <span class="PreProc">var</span> go-modal-error-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error +<span id="L282" class="LineNr"> 282 </span> <span class="PreProc">var</span> go-modal-error-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error <span id="L283" class="LineNr"> 283 </span> clear-object go-modal-error-ah -<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L285" class="LineNr"> 285 </span> copy-to *cursor-in-go-modal-a, <span class="Constant">0</span>/false <span id="L286" class="LineNr"> 286 </span> <span class="muComment"># switch focus to global at index</span> -<span id="L287" class="LineNr"> 287 </span> <span class="PreProc">var</span> globals-cursor-index/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get globals, cursor-index +<span id="L287" class="LineNr"> 287 </span> <span class="PreProc">var</span> globals-cursor-index/eax: (addr int) <span class="Special"><-</span> get globals, cursor-index <span id="L288" class="LineNr"> 288 </span> copy-to *globals-cursor-index, index <span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> cursor-in-globals-a/<span class="muRegEcx">ecx</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? <span id="L290" class="LineNr"> 290 </span> copy-to *cursor-in-globals-a, <span class="Constant">1</span>/true @@ -361,13 +360,13 @@ if ('onhashchange' in window) { <span id="L295" class="LineNr"> 295 </span> compare key, <span class="Constant">0xd</span>/ctrl-m <span id="L296" class="LineNr"> 296 </span> <span class="PreProc">break-if-!=</span> <span id="L297" class="LineNr"> 297 </span> <span class="muComment"># if no global name typed in, set error and return</span> -<span id="L298" class="LineNr"> 298 </span> <span class="PreProc">var</span> partial-global-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name -<span id="L299" class="LineNr"> 299 </span> <span class="PreProc">var</span> partial-global-name/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah +<span id="L298" class="LineNr"> 298 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name +<span id="L299" class="LineNr"> 299 </span> <span class="PreProc">var</span> partial-global-name/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah <span id="L300" class="LineNr"> 300 </span> <span class="Delimiter">{</span> -<span id="L301" class="LineNr"> 301 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L27'>gap-buffer-empty?</a> partial-global-name +<span id="L301" class="LineNr"> 301 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L27'>gap-buffer-empty?</a> partial-global-name <span id="L302" class="LineNr"> 302 </span> compare empty?, <span class="Constant">0</span>/false <span id="L303" class="LineNr"> 303 </span> <span class="PreProc">break-if-=</span> -<span id="L304" class="LineNr"> 304 </span> <span class="PreProc">var</span> go-modal-error-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error +<span id="L304" class="LineNr"> 304 </span> <span class="PreProc">var</span> go-modal-error-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error <span id="L305" class="LineNr"> 305 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> <span class="Constant">"create what?"</span>, go-modal-error-ah <span id="L306" class="LineNr"> 306 </span> <span class="PreProc">return</span> <span id="L307" class="LineNr"> 307 </span> <span class="Delimiter">}</span> @@ -381,29 +380,29 @@ if ('onhashchange' in window) { <span id="L315" class="LineNr"> 315 </span> <span class="Delimiter">{</span> <span id="L316" class="LineNr"> 316 </span> compare index, <span class="Constant">0</span> <span id="L317" class="LineNr"> 317 </span> <span class="PreProc">break-if-<</span> -<span id="L318" class="LineNr"> 318 </span> <span class="PreProc">var</span> go-modal-error-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error +<span id="L318" class="LineNr"> 318 </span> <span class="PreProc">var</span> go-modal-error-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error <span id="L319" class="LineNr"> 319 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> <span class="Constant">"already exists"</span>, go-modal-error-ah <span id="L320" class="LineNr"> 320 </span> <span class="PreProc">return</span> <span id="L321" class="LineNr"> 321 </span> <span class="Delimiter">}</span> <span id="L322" class="LineNr"> 322 </span> <span class="muComment"># otherwise clear modal state</span> <span id="L323" class="LineNr"> 323 </span> <a href='gap-buffer.mu.html#L19'>clear-gap-buffer</a> partial-global-name -<span id="L324" class="LineNr"> 324 </span> <span class="PreProc">var</span> go-modal-error-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error +<span id="L324" class="LineNr"> 324 </span> <span class="PreProc">var</span> go-modal-error-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error <span id="L325" class="LineNr"> 325 </span> clear-object go-modal-error-ah -<span id="L326" class="LineNr"> 326 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L326" class="LineNr"> 326 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L327" class="LineNr"> 327 </span> copy-to *cursor-in-go-modal-a, <span class="Constant">0</span>/false <span id="L328" class="LineNr"> 328 </span> <span class="muComment"># create new global</span> <span id="L329" class="LineNr"> 329 </span> <a href='global.mu.html#L250'>create-empty-global</a> globals, name, <span class="Constant">0x2000</span>/default-gap-buffer-size=8KB -<span id="L330" class="LineNr"> 330 </span> <span class="PreProc">var</span> globals-final-index/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get globals, final-index +<span id="L330" class="LineNr"> 330 </span> <span class="PreProc">var</span> globals-final-index/eax: (addr int) <span class="Special"><-</span> get globals, final-index <span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> new-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *globals-final-index -<span id="L332" class="LineNr"> 332 </span> <span class="PreProc">var</span> globals-cursor-index/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get globals, cursor-index +<span id="L332" class="LineNr"> 332 </span> <span class="PreProc">var</span> globals-cursor-index/eax: (addr int) <span class="Special"><-</span> get globals, cursor-index <span id="L333" class="LineNr"> 333 </span> copy-to *globals-cursor-index, new-index <span id="L334" class="LineNr"> 334 </span> <span class="PreProc">var</span> cursor-in-globals-a/<span class="muRegEcx">ecx</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? <span id="L335" class="LineNr"> 335 </span> copy-to *cursor-in-globals-a, <span class="Constant">1</span>/true <span id="L336" class="LineNr"> 336 </span> <span class="PreProc">return</span> <span id="L337" class="LineNr"> 337 </span> <span class="Delimiter">}</span> <span id="L338" class="LineNr"> 338 </span> <span class="muComment"># otherwise process like a regular gap-buffer</span> -<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> partial-global-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name -<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> partial-global-name/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah +<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name +<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> partial-global-name/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah <span id="L341" class="LineNr"> 341 </span> <a href='gap-buffer.mu.html#L1204'>edit-gap-buffer</a> partial-global-name, key <span id="L342" class="LineNr"> 342 </span> <span class="PreProc">return</span> <span id="L343" class="LineNr"> 343 </span> <span class="Delimiter">}</span> @@ -415,18 +414,18 @@ if ('onhashchange' in window) { <span id="L349" class="LineNr"> 349 </span> <span class="PreProc">var</span> current-word-storage: (stream byte <span class="Constant">0x40</span>) <span id="L350" class="LineNr"> 350 </span> <span class="PreProc">var</span> current-word/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address current-word-storage <span id="L351" class="LineNr"> 351 </span> <a href='environment.mu.html#L901'>word-at-cursor</a> self, current-word -<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> partial-global-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name -<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> partial-global-name/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah +<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name +<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> partial-global-name/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah <span id="L354" class="LineNr"> 354 </span> <a href='gap-buffer.mu.html#L19'>clear-gap-buffer</a> partial-global-name <span id="L355" class="LineNr"> 355 </span> <a href='gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a> partial-global-name, current-word <span id="L356" class="LineNr"> 356 </span> <span class="muComment"># enable the modal</span> -<span id="L357" class="LineNr"> 357 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L357" class="LineNr"> 357 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L358" class="LineNr"> 358 </span> copy-to *cursor-in-go-modal-a, <span class="Constant">1</span>/true <span id="L359" class="LineNr"> 359 </span> <span class="PreProc">return</span> <span id="L360" class="LineNr"> 360 </span> <span class="Delimiter">}</span> <span id="L361" class="LineNr"> 361 </span> <span class="muComment"># dispatch the key to either sandbox or globals</span> <span id="L362" class="LineNr"> 362 </span> <span class="Delimiter">{</span> -<span id="L363" class="LineNr"> 363 </span> <span class="PreProc">var</span> cursor-in-globals-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? +<span id="L363" class="LineNr"> 363 </span> <span class="PreProc">var</span> cursor-in-globals-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-globals? <span id="L364" class="LineNr"> 364 </span> compare *cursor-in-globals-a, <span class="Constant">0</span>/false <span id="L365" class="LineNr"> 365 </span> <span class="PreProc">break-if-=</span> <span id="L366" class="LineNr"> 366 </span> <a href='global.mu.html#L229'>edit-globals</a> globals, key @@ -436,26 +435,26 @@ if ('onhashchange' in window) { <span id="L370" class="LineNr"> 370 </span><span class="Delimiter">}</span> <span id="L371" class="LineNr"> 371 </span> <span id="L372" class="LineNr"> 372 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L372'>read-and-evaluate-and-save-gap-buffer-to-globals</a></span> _in-ah: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), result-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), definitions-created: (addr stream int), trace: (addr trace), inner-screen-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), inner-keyboard-var: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> in-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _in-ah -<span id="L374" class="LineNr"> 374 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah +<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> in-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _in-ah +<span id="L374" class="LineNr"> 374 </span> <span class="PreProc">var</span> in/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah <span id="L375" class="LineNr"> 375 </span> <span class="PreProc">var</span> read-result-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L376" class="LineNr"> 376 </span> <span class="PreProc">var</span> read-result-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address read-result-h <span id="L377" class="LineNr"> 377 </span> <a href='read.mu.html#L1'>read-cell</a> in, read-result-ah, trace -<span id="L378" class="LineNr"> 378 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L378" class="LineNr"> 378 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L379" class="LineNr"> 379 </span> <span class="Delimiter">{</span> <span id="L380" class="LineNr"> 380 </span> compare error?, <span class="Constant">0</span>/false <span id="L381" class="LineNr"> 381 </span> <span class="PreProc">break-if-=</span> <span id="L382" class="LineNr"> 382 </span> <span class="PreProc">return</span> <span id="L383" class="LineNr"> 383 </span> <span class="Delimiter">}</span> <span id="L384" class="LineNr"> 384 </span> <a href='macroexpand.mu.html#L1'>macroexpand</a> read-result-ah, globals, trace -<span id="L385" class="LineNr"> 385 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L385" class="LineNr"> 385 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L386" class="LineNr"> 386 </span> <span class="Delimiter">{</span> <span id="L387" class="LineNr"> 387 </span> compare error?, <span class="Constant">0</span>/false <span id="L388" class="LineNr"> 388 </span> <span class="PreProc">break-if-=</span> <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">return</span> <span id="L390" class="LineNr"> 390 </span> <span class="Delimiter">}</span> <span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> nil-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h +<span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> nil-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h <span id="L393" class="LineNr"> 393 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah <span id="L394" class="LineNr"> 394 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0 0</span> <span id="L395" class="LineNr"> 395 </span><span class="CommentedCode">#? turn-on-debug-print</span> @@ -464,7 +463,7 @@ if ('onhashchange' in window) { <span id="L398" class="LineNr"> 398 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"^"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L399" class="LineNr"> 399 </span> <a href='evaluate.mu.html#L11'>evaluate</a> read-result-ah, result-ah, *nil-ah, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L400" class="LineNr"> 400 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"$"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L401" class="LineNr"> 401 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L401" class="LineNr"> 401 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L402" class="LineNr"> 402 </span> <span class="Delimiter">{</span> <span id="L403" class="LineNr"> 403 </span> compare error?, <span class="Constant">0</span>/false <span id="L404" class="LineNr"> 404 </span> <span class="PreProc">break-if-=</span> @@ -876,7 +875,7 @@ if ('onhashchange' in window) { <span id="L810" class="LineNr"> 810 </span> <span id="L811" class="LineNr"> 811 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L811'>render-go-modal</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='environment.mu.html#L8'>environment</a>) <span class="Delimiter">{</span> <span id="L812" class="LineNr"> 812 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L8'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L813" class="LineNr"> 813 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L813" class="LineNr"> 813 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L814" class="LineNr"> 814 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L815" class="LineNr"> 815 </span> width, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L816" class="LineNr"> 816 </span> <span class="muComment"># xmin = max(0, width/2 - 0x20)</span> @@ -916,27 +915,27 @@ if ('onhashchange' in window) { <span id="L850" class="LineNr"> 850 </span> add-to xmin, <span class="Constant">4</span> <span id="L851" class="LineNr"> 851 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, ymin <span id="L852" class="LineNr"> 852 </span> <a href='../501draw-text.mu.html#L133'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"go to <a href='global.mu.html#L7'>global</a> (or leave blank to go to REPL)"</span>, xmax, <span class="Constant">8</span>/fg=dark-grey, <span class="Constant">0xf</span>/bg=modal -<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> partial-global-name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name -<span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> _partial-global-name/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah +<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, partial-global-name +<span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> _partial-global-name/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *partial-global-name-ah <span id="L855" class="LineNr"> 855 </span> <span class="PreProc">var</span> partial-global-name/<span class="muRegEdx">edx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _partial-global-name <span id="L856" class="LineNr"> 856 </span> subtract-from xmin, <span class="Constant">4</span> <span id="L857" class="LineNr"> 857 </span> increment ymin <span id="L858" class="LineNr"> 858 </span> <span class="Delimiter">{</span> -<span id="L859" class="LineNr"> 859 </span> <span class="PreProc">var</span> go-modal-error-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error -<span id="L860" class="LineNr"> 860 </span> <span class="PreProc">var</span> go-modal-error/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *go-modal-error-ah +<span id="L859" class="LineNr"> 859 </span> <span class="PreProc">var</span> go-modal-error-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, go-modal-error +<span id="L860" class="LineNr"> 860 </span> <span class="PreProc">var</span> go-modal-error/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *go-modal-error-ah <span id="L861" class="LineNr"> 861 </span> compare go-modal-error, <span class="Constant">0</span> <span id="L862" class="LineNr"> 862 </span> <span class="PreProc">break-if-=</span> -<span id="L863" class="LineNr"> 863 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, go-modal-error, xmin, xmax, ymin, <span class="Constant">4</span>/fg=<span class="Special"><a href='trace.mu.html#L197'>error</a></span>, <span class="Constant">0xf</span>/bg=modal +<span id="L863" class="LineNr"> 863 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, go-modal-error, xmin, xmax, ymin, <span class="Constant">4</span>/fg=<span class="Special"><a href='trace.mu.html#L197'>error</a></span>, <span class="Constant">0xf</span>/bg=modal <span id="L864" class="LineNr"> 864 </span> <span class="Delimiter">}</span> <span id="L865" class="LineNr"> 865 </span> increment ymin -<span id="L866" class="LineNr"> 866 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L866" class="LineNr"> 866 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L867" class="LineNr"> 867 </span> <span class="PreProc">var</span> dummy2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L868" class="LineNr"> 868 </span> dummy, dummy2 <span class="Special"><-</span> <a href='gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, partial-global-name, xmin, ymin, xmax, ymax, <span class="Constant">1</span>/always-render-cursor, <span class="Constant">0</span>/fg=black, <span class="Constant">0xf</span>/bg=modal <span id="L869" class="LineNr"> 869 </span><span class="Delimiter">}</span> <span id="L870" class="LineNr"> 870 </span> <span id="L871" class="LineNr"> 871 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L871'>render-go-modal-menu</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='environment.mu.html#L8'>environment</a>) <span class="Delimiter">{</span> <span id="L872" class="LineNr"> 872 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L8'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L873" class="LineNr"> 873 </span> <span class="PreProc">var</span> _width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L873" class="LineNr"> 873 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L874" class="LineNr"> 874 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L875" class="LineNr"> 875 </span> _width, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L876" class="LineNr"> 876 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _width @@ -966,7 +965,7 @@ if ('onhashchange' in window) { <span id="L900" class="LineNr"> 900 </span> <span id="L901" class="LineNr"> 901 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L901'>word-at-cursor</a></span> _self: (addr <a href='environment.mu.html#L8'>environment</a>), out: (addr stream byte) <span class="Delimiter">{</span> <span id="L902" class="LineNr"> 902 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L8'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L903" class="LineNr"> 903 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? +<span id="L903" class="LineNr"> 903 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-go-modal? <span id="L904" class="LineNr"> 904 </span> compare *cursor-in-go-modal-a, <span class="Constant">0</span>/false <span id="L905" class="LineNr"> 905 </span> <span class="Delimiter">{</span> <span id="L906" class="LineNr"> 906 </span> <span class="PreProc">break-if-=</span> @@ -978,22 +977,22 @@ if ('onhashchange' in window) { <span id="L912" class="LineNr"> 912 </span> <span class="Delimiter">{</span> <span id="L913" class="LineNr"> 913 </span> <span class="PreProc">break-if-=</span> <span id="L914" class="LineNr"> 914 </span> <span class="muComment"># cursor in some global editor</span> -<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">var</span> globals/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> get self, globals +<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">var</span> globals/eax: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> get self, globals <span id="L916" class="LineNr"> 916 </span> <span class="PreProc">var</span> cursor-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get globals, cursor-index <span id="L917" class="LineNr"> 917 </span> <span class="PreProc">var</span> cursor-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-index-addr -<span id="L918" class="LineNr"> 918 </span> <span class="PreProc">var</span> globals-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L919" class="LineNr"> 919 </span> <span class="PreProc">var</span> globals-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *globals-data-ah +<span id="L918" class="LineNr"> 918 </span> <span class="PreProc">var</span> globals-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L919" class="LineNr"> 919 </span> <span class="PreProc">var</span> globals-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *globals-data-ah <span id="L920" class="LineNr"> 920 </span> <span class="PreProc">var</span> cursor-offset/<span class="muRegEcx">ecx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset globals-data, cursor-index -<span id="L921" class="LineNr"> 921 </span> <span class="PreProc">var</span> curr-global/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index globals-data, cursor-offset -<span id="L922" class="LineNr"> 922 </span> <span class="PreProc">var</span> curr-global-data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr-global, input -<span id="L923" class="LineNr"> 923 </span> <span class="PreProc">var</span> curr-global-data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-global-data-ah +<span id="L921" class="LineNr"> 921 </span> <span class="PreProc">var</span> curr-global/eax: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index globals-data, cursor-offset +<span id="L922" class="LineNr"> 922 </span> <span class="PreProc">var</span> curr-global-data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr-global, input +<span id="L923" class="LineNr"> 923 </span> <span class="PreProc">var</span> curr-global-data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-global-data-ah <span id="L924" class="LineNr"> 924 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> curr-global-data, out <span id="L925" class="LineNr"> 925 </span> <span class="PreProc">return</span> <span id="L926" class="LineNr"> 926 </span> <span class="Delimiter">}</span> <span id="L927" class="LineNr"> 927 </span> <span class="muComment"># cursor in sandbox</span> <span id="L928" class="LineNr"> 928 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEcx">ecx</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L929" class="LineNr"> 929 </span> <span class="PreProc">var</span> sandbox-data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L930" class="LineNr"> 930 </span> <span class="PreProc">var</span> sandbox-data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sandbox-data-ah +<span id="L929" class="LineNr"> 929 </span> <span class="PreProc">var</span> sandbox-data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data +<span id="L930" class="LineNr"> 930 </span> <span class="PreProc">var</span> sandbox-data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sandbox-data-ah <span id="L931" class="LineNr"> 931 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> sandbox-data, out <span id="L932" class="LineNr"> 932 </span><span class="Delimiter">}</span> <span id="L933" class="LineNr"> 933 </span> @@ -1010,9 +1009,9 @@ if ('onhashchange' in window) { <span id="L944" class="LineNr"> 944 </span> <span class="muComment"># stream -> gap-buffer (HACK: we temporarily cannibalize the sandbox's gap-buffer)</span> <span id="L945" class="LineNr"> 945 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"parsing"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L946" class="LineNr"> 946 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen -<span id="L947" class="LineNr"> 947 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEax">eax</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L947" class="LineNr"> 947 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data +<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L950" class="LineNr"> 950 </span> <a href='gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a> data, s <span id="L951" class="LineNr"> 951 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">" into gap buffer"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L952" class="LineNr"> 952 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen @@ -1029,48 +1028,48 @@ if ('onhashchange' in window) { <span id="L963" class="LineNr"> 963 </span> <a href='gap-buffer.mu.html#L19'>clear-gap-buffer</a> data <span id="L964" class="LineNr"> 964 </span> <span class="muComment">#</span> <span id="L965" class="LineNr"> 965 </span> <span class="Delimiter">{</span> -<span id="L966" class="LineNr"> 966 </span> <span class="PreProc">var</span> initial-root-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *initial-root +<span id="L966" class="LineNr"> 966 </span> <span class="PreProc">var</span> initial-root-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *initial-root <span id="L967" class="LineNr"> 967 </span> compare initial-root-addr, <span class="Constant">0</span> <span id="L968" class="LineNr"> 968 </span> <span class="PreProc">break-if-!=</span> <span id="L969" class="LineNr"> 969 </span> <span class="PreProc">return</span> <span id="L970" class="LineNr"> 970 </span> <span class="Delimiter">}</span> <span id="L971" class="LineNr"> 971 </span> <span class="muComment"># load globals from assoc(initial-root, 'globals)</span> <span id="L972" class="LineNr"> 972 </span> <span class="PreProc">var</span> globals-literal-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L973" class="LineNr"> 973 </span> <span class="PreProc">var</span> globals-literal-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address globals-literal-storage +<span id="L973" class="LineNr"> 973 </span> <span class="PreProc">var</span> globals-literal-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address globals-literal-storage <span id="L974" class="LineNr"> 974 </span> <a href='cell.mu.html#L39'>new-symbol</a> globals-literal-ah, <span class="Constant">"globals"</span> -<span id="L975" class="LineNr"> 975 </span> <span class="PreProc">var</span> globals-literal/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *globals-literal-ah +<span id="L975" class="LineNr"> 975 </span> <span class="PreProc">var</span> globals-literal/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *globals-literal-ah <span id="L976" class="LineNr"> 976 </span> <span class="PreProc">var</span> globals-cell-storage: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L977" class="LineNr"> 977 </span> <span class="PreProc">var</span> globals-cell-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address globals-cell-storage <span id="L978" class="LineNr"> 978 </span> <a href='trace.mu.html#L80'>clear-trace</a> trace <span id="L979" class="LineNr"> 979 </span> <a href='evaluate.mu.html#L868'>lookup-symbol</a> globals-literal, globals-cell-ah, *initial-root, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard -<span id="L980" class="LineNr"> 980 </span> <span class="PreProc">var</span> globals-cell/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *globals-cell-ah +<span id="L980" class="LineNr"> 980 </span> <span class="PreProc">var</span> globals-cell/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *globals-cell-ah <span id="L981" class="LineNr"> 981 </span> <span class="Delimiter">{</span> <span id="L982" class="LineNr"> 982 </span> compare globals-cell, <span class="Constant">0</span> <span id="L983" class="LineNr"> 983 </span> <span class="PreProc">break-if-=</span> -<span id="L984" class="LineNr"> 984 </span> <span class="PreProc">var</span> globals/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> get self, globals +<span id="L984" class="LineNr"> 984 </span> <span class="PreProc">var</span> globals/eax: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> get self, globals <span id="L985" class="LineNr"> 985 </span> <a href='global.mu.html#L27'>load-globals</a> globals-cell-ah, globals <span id="L986" class="LineNr"> 986 </span> <span class="Delimiter">}</span> <span id="L987" class="LineNr"> 987 </span> <span class="muComment"># sandbox = assoc(initial-root, 'sandbox)</span> <span id="L988" class="LineNr"> 988 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"loading sandbox"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L989" class="LineNr"> 989 </span> <span class="PreProc">var</span> sandbox-literal-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> sandbox-literal-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sandbox-literal-storage +<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> sandbox-literal-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sandbox-literal-storage <span id="L991" class="LineNr"> 991 </span> <a href='cell.mu.html#L39'>new-symbol</a> sandbox-literal-ah, <span class="Constant">"sandbox"</span> -<span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> sandbox-literal/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sandbox-literal-ah +<span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> sandbox-literal/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sandbox-literal-ah <span id="L993" class="LineNr"> 993 </span> <span class="PreProc">var</span> sandbox-cell-storage: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L994" class="LineNr"> 994 </span> <span class="PreProc">var</span> sandbox-cell-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sandbox-cell-storage <span id="L995" class="LineNr"> 995 </span> <a href='trace.mu.html#L80'>clear-trace</a> trace <span id="L996" class="LineNr"> 996 </span> <a href='evaluate.mu.html#L868'>lookup-symbol</a> sandbox-literal, sandbox-cell-ah, *initial-root, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard -<span id="L997" class="LineNr"> 997 </span> <span class="PreProc">var</span> sandbox-cell/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sandbox-cell-ah +<span id="L997" class="LineNr"> 997 </span> <span class="PreProc">var</span> sandbox-cell/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sandbox-cell-ah <span id="L998" class="LineNr"> 998 </span> <span class="Delimiter">{</span> <span id="L999" class="LineNr"> 999 </span> compare sandbox-cell, <span class="Constant">0</span> <span id="L1000" class="LineNr">1000 </span> <span class="PreProc">break-if-=</span> -<span id="L1001" class="LineNr">1001 </span> <span class="PreProc">var</span> sandbox-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get sandbox-cell, text-data -<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> _sandbox-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sandbox-data-ah +<span id="L1001" class="LineNr">1001 </span> <span class="PreProc">var</span> sandbox-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get sandbox-cell, text-data +<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> _sandbox-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sandbox-data-ah <span id="L1003" class="LineNr">1003 </span> <span class="PreProc">var</span> sandbox-data/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _sandbox-data <span id="L1004" class="LineNr">1004 </span> <span class="muComment"># stream -> gap-buffer</span> -<span id="L1005" class="LineNr">1005 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEax">eax</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L1006" class="LineNr">1006 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L1007" class="LineNr">1007 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L1005" class="LineNr">1005 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L1006" class="LineNr">1006 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data +<span id="L1007" class="LineNr">1007 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L1008" class="LineNr">1008 </span> <a href='gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a> data, sandbox-data <span id="L1009" class="LineNr">1009 </span> <span class="Delimiter">}</span> <span id="L1010" class="LineNr">1010 </span><span class="Delimiter">}</span> diff --git a/html/shell/evaluate.mu.html b/html/shell/evaluate.mu.html index 1ad7707b..0e2df180 100644 --- a/html/shell/evaluate.mu.html +++ b/html/shell/evaluate.mu.html @@ -14,22 +14,21 @@ 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; } -.Folded { color: #080808; background-color: #949494; } .LineNr { } .Delimiter { color: #c000c0; } .CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Folded { color: #080808; background-color: #949494; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -79,7 +78,7 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr"> 12 </span> <span class="muComment"># stack overflow? # disable when enabling Really-debug-print</span> <span id="L13" class="LineNr"> 13 </span> <a href='../315stack-debug.subx.html#L5'>check-stack</a> <span id="L14" class="LineNr"> 14 </span> <span class="Delimiter">{</span> -<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> <a href='../104test.subx.html#L29'>running-tests?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../104test.subx.html#L29'>running-tests?</a> +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> <a href='../104test.subx.html#L29'>running-tests?</a>/eax: boolean <span class="Special"><-</span> <a href='../104test.subx.html#L29'>running-tests?</a> <span id="L16" class="LineNr"> 16 </span> compare <a href='../104test.subx.html#L29'>running-tests?</a>, <span class="Constant">0</span>/false <span id="L17" class="LineNr"> 17 </span> <span class="PreProc">break-if-!=</span> <span id="L18" class="LineNr"> 18 </span> <a href='../315stack-debug.subx.html#L26'>show-stack-state</a> @@ -89,31 +88,31 @@ if ('onhashchange' in window) { <span id="L22" class="LineNr"> 22 </span> <span class="Delimiter">{</span> <span id="L23" class="LineNr"> 23 </span> compare inner-screen-var, <span class="Constant">0</span> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">break-if-=</span> -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> call-number/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> copy call-number +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> call-number/eax: (addr int) <span class="Special"><-</span> copy call-number <span id="L26" class="LineNr"> 26 </span> compare call-number, <span class="Constant">0</span> <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">break-if-=</span> <span id="L28" class="LineNr"> 28 </span> increment *call-number -<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *call-number +<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy *call-number <span id="L30" class="LineNr"> 30 </span> tmp <span class="Special"><-</span> and <span class="Constant">0xf</span>/responsiveness=<span class="Constant">16</span> <span class="muComment"># every 16 calls to evaluate</span> <span id="L31" class="LineNr"> 31 </span> compare tmp, <span class="Constant">0</span> <span id="L32" class="LineNr"> 32 </span> <span class="PreProc">break-if-!=</span> -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> inner-screen-var/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy inner-screen-var -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> inner-screen-var-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *inner-screen-var +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> inner-screen-var/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy inner-screen-var +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> inner-screen-var-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *inner-screen-var <span id="L35" class="LineNr"> 35 </span> compare inner-screen-var-addr, <span class="Constant">0</span> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">break-if-=</span> -<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> screen-obj-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get inner-screen-var-addr, screen-data -<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> screen-obj/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-ah +<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> screen-obj-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get inner-screen-var-addr, screen-data +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> screen-obj/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-ah <span id="L39" class="LineNr"> 39 </span> compare screen-obj, <span class="Constant">0</span> <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">break-if-=</span> <span id="L41" class="LineNr"> 41 </span> <a href='sandbox.mu.html#L257'>render-screen</a> <span class="Constant">0</span>/screen, screen-obj, <span class="Constant">0x58</span>/xmin, <span class="Constant">2</span>/ymin -<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/keyboard +<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/keyboard <span id="L43" class="LineNr"> 43 </span> compare key, <span class="Constant">0</span> <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">break-if-=</span> <span id="L45" class="LineNr"> 45 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"key pressed; interrupting..."</span> <span id="L46" class="LineNr"> 46 </span> <span class="Delimiter">}</span> <span id="L47" class="LineNr"> 47 </span> <span class="muComment"># errors? skip</span> <span id="L48" class="LineNr"> 48 </span> <span class="Delimiter">{</span> -<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L50" class="LineNr"> 50 </span> compare error?, <span class="Constant">0</span>/false <span id="L51" class="LineNr"> 51 </span> <span class="PreProc">break-if-=</span> <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">return</span> @@ -127,9 +126,9 @@ if ('onhashchange' in window) { <span id="L60" class="LineNr"> 60 </span><span class="CommentedCode">#? }</span> <span id="L61" class="Folded"> 61 </span><span class="Folded">+-- 19 lines: # trace "evaluate " in " in environment " env -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L80" class="LineNr"> 80 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah <span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">{</span> -<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in +<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in <span id="L84" class="LineNr"> 84 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L85" class="LineNr"> 85 </span> <span class="PreProc">break-if-=</span> <span id="L86" class="LineNr"> 86 </span> <span class="muComment"># nil is a literal</span> @@ -189,8 +188,8 @@ if ('onhashchange' in window) { <span id="L140" class="LineNr"> 140 </span> <span class="PreProc">var</span> expr/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L141" class="LineNr"> 141 </span> <span class="PreProc">var</span> in/<span class="muRegEdx">edx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L142" class="LineNr"> 142 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left -<span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L144" class="LineNr"> 144 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first +<span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L144" class="LineNr"> 144 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first <span id="L145" class="LineNr"> 145 </span> compare <a href='evaluate.mu.html#L1429'>litfn?</a>, <span class="Constant">0</span>/false <span id="L146" class="LineNr"> 146 </span> <span class="PreProc">break-if-=</span> <span id="L147" class="LineNr"> 147 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"literal function"</span> @@ -203,8 +202,8 @@ if ('onhashchange' in window) { <span id="L154" class="LineNr"> 154 </span> <span class="PreProc">var</span> expr/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L155" class="LineNr"> 155 </span> <span class="PreProc">var</span> in/<span class="muRegEdx">edx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L156" class="LineNr"> 156 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1443'>litmac?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> first +<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1443'>litmac?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> first <span id="L159" class="LineNr"> 159 </span> compare <a href='evaluate.mu.html#L1443'>litmac?</a>, <span class="Constant">0</span>/false <span id="L160" class="LineNr"> 160 </span> <span class="PreProc">break-if-=</span> <span id="L161" class="LineNr"> 161 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"literal macro"</span> @@ -217,18 +216,18 @@ if ('onhashchange' in window) { <span id="L168" class="LineNr"> 168 </span> <span class="PreProc">var</span> expr/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L169" class="LineNr"> 169 </span> <span class="PreProc">var</span> in/<span class="muRegEdx">edx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L170" class="LineNr"> 170 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left -<span id="L171" class="LineNr"> 171 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L172" class="LineNr"> 172 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1415'>fn?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1415'>fn?</a> first +<span id="L171" class="LineNr"> 171 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L172" class="LineNr"> 172 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1415'>fn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1415'>fn?</a> first <span id="L173" class="LineNr"> 173 </span> compare <a href='evaluate.mu.html#L1415'>fn?</a>, <span class="Constant">0</span>/false <span id="L174" class="LineNr"> 174 </span> <span class="PreProc">break-if-=</span> <span id="L175" class="LineNr"> 175 </span> <span class="muComment"># turn (fn ...) into (litfn env ...)</span> <span id="L176" class="LineNr"> 176 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"anonymous function"</span> -<span id="L177" class="LineNr"> 177 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L177" class="LineNr"> 177 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right <span id="L178" class="LineNr"> 178 </span> <span class="PreProc">var</span> tmp: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L179" class="LineNr"> 179 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp <span id="L180" class="LineNr"> 180 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, env-h, *rest-ah <span id="L181" class="LineNr"> 181 </span> <span class="PreProc">var</span> litfn: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L182" class="LineNr"> 182 </span> <span class="PreProc">var</span> litfn-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address litfn +<span id="L182" class="LineNr"> 182 </span> <span class="PreProc">var</span> litfn-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address litfn <span id="L183" class="LineNr"> 183 </span> <a href='cell.mu.html#L39'>new-symbol</a> litfn-ah, <span class="Constant">"litfn"</span> <span id="L184" class="LineNr"> 184 </span> <a href='cell.mu.html#L116'>new-pair</a> _out-ah, *litfn-ah, *tmp-ah <span id="L185" class="LineNr"> 185 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -241,8 +240,8 @@ if ('onhashchange' in window) { <span id="L192" class="LineNr"> 192 </span> <span class="muComment"># if its first elem is not "'", break</span> <span id="L193" class="LineNr"> 193 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L194" class="LineNr"> 194 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L195" class="LineNr"> 195 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L196" class="LineNr"> 196 </span> <span class="PreProc">var</span> quote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"'"</span> +<span id="L195" class="LineNr"> 195 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L196" class="LineNr"> 196 </span> <span class="PreProc">var</span> quote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"'"</span> <span id="L197" class="LineNr"> 197 </span> compare quote?, <span class="Constant">0</span>/false <span id="L198" class="LineNr"> 198 </span> <span class="PreProc">break-if-=</span> <span id="L199" class="LineNr"> 199 </span> <span class="muComment">#</span> @@ -257,8 +256,8 @@ if ('onhashchange' in window) { <span id="L208" class="LineNr"> 208 </span> <span class="muComment"># if its first elem is not "'", break</span> <span id="L209" class="LineNr"> 209 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L210" class="LineNr"> 210 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L211" class="LineNr"> 211 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L212" class="LineNr"> 212 </span> <span class="PreProc">var</span> backquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"`"</span> +<span id="L211" class="LineNr"> 211 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L212" class="LineNr"> 212 </span> <span class="PreProc">var</span> backquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"`"</span> <span id="L213" class="LineNr"> 213 </span> compare backquote?, <span class="Constant">0</span>/false <span id="L214" class="LineNr"> 214 </span> <span class="PreProc">break-if-=</span> <span id="L215" class="LineNr"> 215 </span> <span class="muComment">#</span> @@ -274,8 +273,8 @@ if ('onhashchange' in window) { <span id="L225" class="LineNr"> 225 </span> <span class="muComment"># if its first elem is not "apply", break</span> <span id="L226" class="LineNr"> 226 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L227" class="LineNr"> 227 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L228" class="LineNr"> 228 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L229" class="LineNr"> 229 </span> <span class="PreProc">var</span> apply?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"apply"</span> +<span id="L228" class="LineNr"> 228 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L229" class="LineNr"> 229 </span> <span class="PreProc">var</span> apply?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"apply"</span> <span id="L230" class="LineNr"> 230 </span> compare apply?, <span class="Constant">0</span>/false <span id="L231" class="LineNr"> 231 </span> <span class="PreProc">break-if-=</span> <span id="L232" class="LineNr"> 232 </span> <span class="muComment">#</span> @@ -283,14 +282,14 @@ if ('onhashchange' in window) { <span id="L234" class="LineNr"> 234 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating first arg"</span> <span id="L235" class="LineNr"> 235 </span> <span class="PreProc">var</span> first-arg-value-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L236" class="LineNr"> 236 </span> <span class="PreProc">var</span> first-arg-value-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address first-arg-value-h -<span id="L237" class="LineNr"> 237 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L237" class="LineNr"> 237 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L238" class="LineNr"> 238 </span> <span class="PreProc">var</span> first-arg-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L239" class="LineNr"> 239 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"A2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L240" class="LineNr"> 240 </span> <a href='evaluate.mu.html#L11'>evaluate</a> first-arg-ah, first-arg-value-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L241" class="LineNr"> 241 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"Y2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L242" class="LineNr"> 242 </span> <span class="muComment"># errors? skip</span> <span id="L243" class="LineNr"> 243 </span> <span class="Delimiter">{</span> -<span id="L244" class="LineNr"> 244 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L244" class="LineNr"> 244 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L245" class="LineNr"> 245 </span> compare error?, <span class="Constant">0</span>/false <span id="L246" class="LineNr"> 246 </span> <span class="PreProc">break-if-=</span> <span id="L247" class="LineNr"> 247 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -298,10 +297,10 @@ if ('onhashchange' in window) { <span id="L249" class="LineNr"> 249 </span> <span class="Delimiter">}</span> <span id="L250" class="LineNr"> 250 </span> <span class="muComment">#</span> <span id="L251" class="LineNr"> 251 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating second arg"</span> -<span id="L252" class="LineNr"> 252 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L252" class="LineNr"> 252 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L253" class="LineNr"> 253 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L254" class="LineNr"> 254 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L255" class="LineNr"> 255 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L255" class="LineNr"> 255 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L256" class="LineNr"> 256 </span> <span class="PreProc">var</span> second-arg-value-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L257" class="LineNr"> 257 </span> <span class="PreProc">var</span> second-arg-value-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address second-arg-value-h <span id="L258" class="LineNr"> 258 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"T2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg @@ -319,18 +318,18 @@ if ('onhashchange' in window) { <span id="L270" class="LineNr"> 270 </span> <span class="muComment"># if its first elem is not "define", break</span> <span id="L271" class="LineNr"> 271 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L273" class="LineNr"> 273 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L274" class="LineNr"> 274 </span> <span class="PreProc">var</span> define?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"define"</span> +<span id="L273" class="LineNr"> 273 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L274" class="LineNr"> 274 </span> <span class="PreProc">var</span> define?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"define"</span> <span id="L275" class="LineNr"> 275 </span> compare define?, <span class="Constant">0</span>/false <span id="L276" class="LineNr"> 276 </span> <span class="PreProc">break-if-=</span> <span id="L277" class="LineNr"> 277 </span> <span class="muComment">#</span> <span id="L278" class="LineNr"> 278 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"define"</span> <span id="L279" class="LineNr"> 279 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating second arg"</span> -<span id="L280" class="LineNr"> 280 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L280" class="LineNr"> 280 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L281" class="LineNr"> 281 </span> <span class="PreProc">var</span> first-arg-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L282" class="LineNr"> 282 </span> <span class="Delimiter">{</span> -<span id="L283" class="LineNr"> 283 </span> <span class="PreProc">var</span> first-arg/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-ah -<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> first-arg-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get first-arg, <span class="PreProc">type</span> +<span id="L283" class="LineNr"> 283 </span> <span class="PreProc">var</span> first-arg/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-ah +<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> first-arg-type/eax: (addr int) <span class="Special"><-</span> get first-arg, <span class="PreProc">type</span> <span id="L285" class="LineNr"> 285 </span> compare *first-arg-type, <span class="Constant">2</span>/symbol <span id="L286" class="LineNr"> 286 </span> <span class="PreProc">break-if-=</span> <span id="L287" class="LineNr"> 287 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg to define must be a symbol"</span> @@ -345,21 +344,21 @@ if ('onhashchange' in window) { <span id="L296" class="LineNr"> 296 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"Q"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L297" class="LineNr"> 297 </span> <span class="muComment"># errors? skip</span> <span id="L298" class="LineNr"> 298 </span> <span class="Delimiter">{</span> -<span id="L299" class="LineNr"> 299 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L299" class="LineNr"> 299 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L300" class="LineNr"> 300 </span> compare error?, <span class="Constant">0</span>/false <span id="L301" class="LineNr"> 301 </span> <span class="PreProc">break-if-=</span> <span id="L302" class="LineNr"> 302 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L303" class="LineNr"> 303 </span> <span class="PreProc">return</span> <span id="L304" class="LineNr"> 304 </span> <span class="Delimiter">}</span> <span id="L305" class="LineNr"> 305 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"saving <a href='global.mu.html#L7'>global</a> binding"</span> -<span id="L306" class="LineNr"> 306 </span> <span class="PreProc">var</span> first-arg/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-ah -<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> first-arg-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get first-arg, text-data -<span id="L308" class="LineNr"> 308 </span> <span class="PreProc">var</span> first-arg-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-data-ah +<span id="L306" class="LineNr"> 306 </span> <span class="PreProc">var</span> first-arg/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-ah +<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> first-arg-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first-arg, text-data +<span id="L308" class="LineNr"> 308 </span> <span class="PreProc">var</span> first-arg-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-data-ah <span id="L309" class="LineNr"> 309 </span> <span class="PreProc">var</span> tmp-string: (handle array byte) <span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> address tmp-string <span id="L311" class="LineNr"> 311 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> first-arg-data <span id="L312" class="LineNr"> 312 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> first-arg-data, tmp-ah -<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> first-arg-data-string/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> first-arg-data-string/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L314" class="LineNr"> 314 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah <span id="L315" class="LineNr"> 315 </span> <span class="PreProc">var</span> defined-index: int <span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> defined-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> address defined-index @@ -378,18 +377,18 @@ if ('onhashchange' in window) { <span id="L329" class="LineNr"> 329 </span> <span class="muComment"># if its first elem is not "set", break</span> <span id="L330" class="LineNr"> 330 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L332" class="LineNr"> 332 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L333" class="LineNr"> 333 </span> <span class="PreProc">var</span> set?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"set"</span> +<span id="L332" class="LineNr"> 332 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L333" class="LineNr"> 333 </span> <span class="PreProc">var</span> set?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"set"</span> <span id="L334" class="LineNr"> 334 </span> compare set?, <span class="Constant">0</span>/false <span id="L335" class="LineNr"> 335 </span> <span class="PreProc">break-if-=</span> <span id="L336" class="LineNr"> 336 </span> <span class="muComment">#</span> <span id="L337" class="LineNr"> 337 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"set"</span> <span id="L338" class="LineNr"> 338 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating second arg"</span> -<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> first-arg-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L341" class="LineNr"> 341 </span> <span class="Delimiter">{</span> -<span id="L342" class="LineNr"> 342 </span> <span class="PreProc">var</span> first-arg/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-ah -<span id="L343" class="LineNr"> 343 </span> <span class="PreProc">var</span> first-arg-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get first-arg, <span class="PreProc">type</span> +<span id="L342" class="LineNr"> 342 </span> <span class="PreProc">var</span> first-arg/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-ah +<span id="L343" class="LineNr"> 343 </span> <span class="PreProc">var</span> first-arg-type/eax: (addr int) <span class="Special"><-</span> get first-arg, <span class="PreProc">type</span> <span id="L344" class="LineNr"> 344 </span> compare *first-arg-type, <span class="Constant">2</span>/symbol <span id="L345" class="LineNr"> 345 </span> <span class="PreProc">break-if-=</span> <span id="L346" class="LineNr"> 346 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg to set must be a symbol"</span> @@ -404,16 +403,16 @@ if ('onhashchange' in window) { <span id="L355" class="LineNr"> 355 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"Q"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L356" class="LineNr"> 356 </span> <span class="muComment"># errors? skip</span> <span id="L357" class="LineNr"> 357 </span> <span class="Delimiter">{</span> -<span id="L358" class="LineNr"> 358 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L358" class="LineNr"> 358 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L359" class="LineNr"> 359 </span> compare error?, <span class="Constant">0</span>/false <span id="L360" class="LineNr"> 360 </span> <span class="PreProc">break-if-=</span> <span id="L361" class="LineNr"> 361 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L362" class="LineNr"> 362 </span> <span class="PreProc">return</span> <span id="L363" class="LineNr"> 363 </span> <span class="Delimiter">}</span> <span id="L364" class="LineNr"> 364 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"mutating binding"</span> -<span id="L365" class="LineNr"> 365 </span> <span class="PreProc">var</span> first-arg/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-ah -<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> first-arg-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get first-arg, text-data -<span id="L367" class="LineNr"> 367 </span> <span class="PreProc">var</span> first-arg-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-data-ah +<span id="L365" class="LineNr"> 365 </span> <span class="PreProc">var</span> first-arg/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-ah +<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> first-arg-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first-arg, text-data +<span id="L367" class="LineNr"> 367 </span> <span class="PreProc">var</span> first-arg-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-arg-data-ah <span id="L368" class="LineNr"> 368 </span> <a href='evaluate.mu.html#L1074'>mutate-binding</a> first-arg-data, _out-ah, env-h, globals, trace <span id="L369" class="LineNr"> 369 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L370" class="LineNr"> 370 </span> <span class="PreProc">return</span> @@ -423,30 +422,30 @@ if ('onhashchange' in window) { <span id="L374" class="LineNr"> 374 </span> <span class="muComment"># if its first elem is not "and", break</span> <span id="L375" class="LineNr"> 375 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L376" class="LineNr"> 376 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L377" class="LineNr"> 377 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L378" class="LineNr"> 378 </span> <span class="PreProc">var</span> and?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"and"</span> +<span id="L377" class="LineNr"> 377 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L378" class="LineNr"> 378 </span> <span class="PreProc">var</span> and?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"and"</span> <span id="L379" class="LineNr"> 379 </span> compare and?, <span class="Constant">0</span>/false <span id="L380" class="LineNr"> 380 </span> <span class="PreProc">break-if-=</span> <span id="L381" class="LineNr"> 381 </span> <span class="muComment">#</span> <span id="L382" class="LineNr"> 382 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"and"</span> <span id="L383" class="LineNr"> 383 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating first arg"</span> -<span id="L384" class="LineNr"> 384 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L384" class="LineNr"> 384 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L385" class="LineNr"> 385 </span> <span class="PreProc">var</span> first-arg-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L386" class="LineNr"> 386 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"R2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L387" class="LineNr"> 387 </span> <a href='evaluate.mu.html#L11'>evaluate</a> first-arg-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L388" class="LineNr"> 388 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"S2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L389" class="LineNr"> 389 </span> <span class="muComment"># errors? skip</span> <span id="L390" class="LineNr"> 390 </span> <span class="Delimiter">{</span> -<span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L392" class="LineNr"> 392 </span> compare error?, <span class="Constant">0</span>/false <span id="L393" class="LineNr"> 393 </span> <span class="PreProc">break-if-=</span> <span id="L394" class="LineNr"> 394 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L395" class="LineNr"> 395 </span> <span class="PreProc">return</span> <span id="L396" class="LineNr"> 396 </span> <span class="Delimiter">}</span> <span id="L397" class="LineNr"> 397 </span> <span class="muComment"># if first arg is nil, short-circuit</span> -<span id="L398" class="LineNr"> 398 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah -<span id="L399" class="LineNr"> 399 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah -<span id="L400" class="LineNr"> 400 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out +<span id="L398" class="LineNr"> 398 </span> <span class="PreProc">var</span> out-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah +<span id="L399" class="LineNr"> 399 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L400" class="LineNr"> 400 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out <span id="L401" class="LineNr"> 401 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L402" class="LineNr"> 402 </span> <span class="Delimiter">{</span> <span id="L403" class="LineNr"> 403 </span> <span class="PreProc">break-if-=</span> @@ -455,10 +454,10 @@ if ('onhashchange' in window) { <span id="L406" class="LineNr"> 406 </span> <span class="Delimiter">}</span> <span id="L407" class="LineNr"> 407 </span> <span class="muComment">#</span> <span id="L408" class="LineNr"> 408 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating second arg"</span> -<span id="L409" class="LineNr"> 409 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L409" class="LineNr"> 409 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L410" class="LineNr"> 410 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L411" class="LineNr"> 411 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L413" class="LineNr"> 413 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"T2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L414" class="LineNr"> 414 </span> <a href='evaluate.mu.html#L11'>evaluate</a> second-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L415" class="LineNr"> 415 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"U2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg @@ -470,30 +469,30 @@ if ('onhashchange' in window) { <span id="L421" class="LineNr"> 421 </span> <span class="muComment"># if its first elem is not "or", break</span> <span id="L422" class="LineNr"> 422 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L423" class="LineNr"> 423 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L424" class="LineNr"> 424 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L425" class="LineNr"> 425 </span> <span class="PreProc">var</span> or?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"or"</span> +<span id="L424" class="LineNr"> 424 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L425" class="LineNr"> 425 </span> <span class="PreProc">var</span> or?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"or"</span> <span id="L426" class="LineNr"> 426 </span> compare or?, <span class="Constant">0</span>/false <span id="L427" class="LineNr"> 427 </span> <span class="PreProc">break-if-=</span> <span id="L428" class="LineNr"> 428 </span> <span class="muComment">#</span> <span id="L429" class="LineNr"> 429 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"or"</span> <span id="L430" class="LineNr"> 430 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating first arg"</span> -<span id="L431" class="LineNr"> 431 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L431" class="LineNr"> 431 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L432" class="LineNr"> 432 </span> <span class="PreProc">var</span> first-arg-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L433" class="LineNr"> 433 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"R2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L434" class="LineNr"> 434 </span> <a href='evaluate.mu.html#L11'>evaluate</a> first-arg-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L435" class="LineNr"> 435 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"S2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L436" class="LineNr"> 436 </span> <span class="muComment"># errors? skip</span> <span id="L437" class="LineNr"> 437 </span> <span class="Delimiter">{</span> -<span id="L438" class="LineNr"> 438 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L438" class="LineNr"> 438 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L439" class="LineNr"> 439 </span> compare error?, <span class="Constant">0</span>/false <span id="L440" class="LineNr"> 440 </span> <span class="PreProc">break-if-=</span> <span id="L441" class="LineNr"> 441 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L442" class="LineNr"> 442 </span> <span class="PreProc">return</span> <span id="L443" class="LineNr"> 443 </span> <span class="Delimiter">}</span> <span id="L444" class="LineNr"> 444 </span> <span class="muComment"># if first arg is not nil, short-circuit</span> -<span id="L445" class="LineNr"> 445 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah -<span id="L446" class="LineNr"> 446 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah -<span id="L447" class="LineNr"> 447 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out +<span id="L445" class="LineNr"> 445 </span> <span class="PreProc">var</span> out-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah +<span id="L446" class="LineNr"> 446 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L447" class="LineNr"> 447 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out <span id="L448" class="LineNr"> 448 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L449" class="LineNr"> 449 </span> <span class="Delimiter">{</span> <span id="L450" class="LineNr"> 450 </span> <span class="PreProc">break-if-!=</span> @@ -502,16 +501,16 @@ if ('onhashchange' in window) { <span id="L453" class="LineNr"> 453 </span> <span class="Delimiter">}</span> <span id="L454" class="LineNr"> 454 </span> <span class="muComment">#</span> <span id="L455" class="LineNr"> 455 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating second arg"</span> -<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L457" class="LineNr"> 457 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L458" class="LineNr"> 458 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L459" class="LineNr"> 459 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L459" class="LineNr"> 459 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L460" class="LineNr"> 460 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"T2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L461" class="LineNr"> 461 </span> <a href='evaluate.mu.html#L11'>evaluate</a> second-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L462" class="LineNr"> 462 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"U2"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L463" class="LineNr"> 463 </span> <span class="muComment"># errors? skip</span> <span id="L464" class="LineNr"> 464 </span> <span class="Delimiter">{</span> -<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L466" class="LineNr"> 466 </span> compare error?, <span class="Constant">0</span>/false <span id="L467" class="LineNr"> 467 </span> <span class="PreProc">break-if-=</span> <span id="L468" class="LineNr"> 468 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -526,14 +525,14 @@ if ('onhashchange' in window) { <span id="L477" class="LineNr"> 477 </span> <span class="muComment"># if its first elem is not "if", break</span> <span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L479" class="LineNr"> 479 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L480" class="LineNr"> 480 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L481" class="LineNr"> 481 </span> <span class="PreProc">var</span> if?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"if"</span> +<span id="L480" class="LineNr"> 480 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L481" class="LineNr"> 481 </span> <span class="PreProc">var</span> if?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"if"</span> <span id="L482" class="LineNr"> 482 </span> compare if?, <span class="Constant">0</span>/false <span id="L483" class="LineNr"> 483 </span> <span class="PreProc">break-if-=</span> <span id="L484" class="LineNr"> 484 </span> <span class="muComment">#</span> <span id="L485" class="LineNr"> 485 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"if"</span> <span id="L486" class="LineNr"> 486 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"evaluating first arg"</span> -<span id="L487" class="LineNr"> 487 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L487" class="LineNr"> 487 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L488" class="LineNr"> 488 </span> <span class="PreProc">var</span> first-arg-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> guard-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L490" class="LineNr"> 490 </span> <span class="PreProc">var</span> guard-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address guard-h @@ -542,7 +541,7 @@ if ('onhashchange' in window) { <span id="L493" class="LineNr"> 493 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"S"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L494" class="LineNr"> 494 </span> <span class="muComment"># errors? skip</span> <span id="L495" class="LineNr"> 495 </span> <span class="Delimiter">{</span> -<span id="L496" class="LineNr"> 496 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L496" class="LineNr"> 496 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L497" class="LineNr"> 497 </span> compare error?, <span class="Constant">0</span>/false <span id="L498" class="LineNr"> 498 </span> <span class="PreProc">break-if-=</span> <span id="L499" class="LineNr"> 499 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -551,13 +550,13 @@ if ('onhashchange' in window) { <span id="L502" class="LineNr"> 502 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L503" class="LineNr"> 503 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L504" class="LineNr"> 504 </span> <span class="PreProc">var</span> branch-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L505" class="LineNr"> 505 </span> <span class="PreProc">var</span> guard-a/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *guard-ah -<span id="L506" class="LineNr"> 506 </span> <span class="PreProc">var</span> skip-to-third-arg?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> guard-a +<span id="L505" class="LineNr"> 505 </span> <span class="PreProc">var</span> guard-a/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *guard-ah +<span id="L506" class="LineNr"> 506 </span> <span class="PreProc">var</span> skip-to-third-arg?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> guard-a <span id="L507" class="LineNr"> 507 </span> compare skip-to-third-arg?, <span class="Constant">0</span>/false <span id="L508" class="LineNr"> 508 </span> <span class="Delimiter">{</span> <span id="L509" class="LineNr"> 509 </span> <span class="PreProc">break-if-=</span> <span id="L510" class="LineNr"> 510 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"skipping to third arg"</span> -<span id="L511" class="LineNr"> 511 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L511" class="LineNr"> 511 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L512" class="LineNr"> 512 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L513" class="LineNr"> 513 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L514" class="LineNr"> 514 </span> branch-ah <span class="Special"><-</span> get rest, left @@ -574,25 +573,25 @@ if ('onhashchange' in window) { <span id="L525" class="LineNr"> 525 </span> <span class="muComment"># if its first elem is not "while", break</span> <span id="L526" class="LineNr"> 526 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L527" class="LineNr"> 527 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L529" class="LineNr"> 529 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L530" class="LineNr"> 530 </span> compare *first-type, <span class="Constant">2</span>/symbol <span id="L531" class="LineNr"> 531 </span> <span class="PreProc">break-if-!=</span> -<span id="L532" class="LineNr"> 532 </span> <span class="PreProc">var</span> sym-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get first, text-data -<span id="L533" class="LineNr"> 533 </span> <span class="PreProc">var</span> sym-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-data-ah -<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> while?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> sym-data, <span class="Constant">"while"</span> +<span id="L532" class="LineNr"> 532 </span> <span class="PreProc">var</span> sym-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first, text-data +<span id="L533" class="LineNr"> 533 </span> <span class="PreProc">var</span> sym-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-data-ah +<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> while?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> sym-data, <span class="Constant">"while"</span> <span id="L535" class="LineNr"> 535 </span> compare while?, <span class="Constant">0</span>/false <span id="L536" class="LineNr"> 536 </span> <span class="PreProc">break-if-=</span> <span id="L537" class="LineNr"> 537 </span> <span class="muComment">#</span> <span id="L538" class="LineNr"> 538 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"while"</span> -<span id="L539" class="LineNr"> 539 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L539" class="LineNr"> 539 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L540" class="LineNr"> 540 </span> <span class="PreProc">var</span> first-arg-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L541" class="LineNr"> 541 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L542" class="LineNr"> 542 </span> <span class="PreProc">var</span> guard-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> guard-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address guard-h <span id="L544" class="LineNr"> 544 </span> $evaluate:while:loop-execution: <span class="Delimiter">{</span> <span id="L545" class="LineNr"> 545 </span> <span class="Delimiter">{</span> -<span id="L546" class="LineNr"> 546 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L546" class="LineNr"> 546 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L547" class="LineNr"> 547 </span> compare error?, <span class="Constant">0</span>/false <span id="L548" class="LineNr"> 548 </span> <span class="PreProc">break-if-!=</span> $evaluate:while:loop-execution <span id="L549" class="LineNr"> 549 </span> <span class="Delimiter">}</span> @@ -602,20 +601,20 @@ if ('onhashchange' in window) { <span id="L553" class="LineNr"> 553 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"W"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L554" class="LineNr"> 554 </span> <span class="muComment"># errors? skip</span> <span id="L555" class="LineNr"> 555 </span> <span class="Delimiter">{</span> -<span id="L556" class="LineNr"> 556 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L556" class="LineNr"> 556 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L557" class="LineNr"> 557 </span> compare error?, <span class="Constant">0</span>/false <span id="L558" class="LineNr"> 558 </span> <span class="PreProc">break-if-=</span> <span id="L559" class="LineNr"> 559 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L560" class="LineNr"> 560 </span> <span class="PreProc">return</span> <span id="L561" class="LineNr"> 561 </span> <span class="Delimiter">}</span> -<span id="L562" class="LineNr"> 562 </span> <span class="PreProc">var</span> guard-a/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *guard-ah -<span id="L563" class="LineNr"> 563 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> guard-a +<span id="L562" class="LineNr"> 562 </span> <span class="PreProc">var</span> guard-a/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *guard-ah +<span id="L563" class="LineNr"> 563 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> guard-a <span id="L564" class="LineNr"> 564 </span> compare done?, <span class="Constant">0</span>/false <span id="L565" class="LineNr"> 565 </span> <span class="PreProc">break-if-!=</span> <span id="L566" class="LineNr"> 566 </span> <a href='evaluate.mu.html#L729'>evaluate-exprs</a> rest-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L567" class="LineNr"> 567 </span> <span class="muComment"># errors? skip</span> <span id="L568" class="LineNr"> 568 </span> <span class="Delimiter">{</span> -<span id="L569" class="LineNr"> 569 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L569" class="LineNr"> 569 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L570" class="LineNr"> 570 </span> compare error?, <span class="Constant">0</span>/false <span id="L571" class="LineNr"> 571 </span> <span class="PreProc">break-if-=</span> <span id="L572" class="LineNr"> 572 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -635,11 +634,11 @@ if ('onhashchange' in window) { <span id="L600" class="LineNr"> 600 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L601" class="LineNr"> 601 </span> $evaluate-list:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L602" class="LineNr"> 602 </span> <a href='cell.mu.html#L102'>allocate-pair</a> curr-out-ah -<span id="L603" class="LineNr"> 603 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> curr +<span id="L603" class="LineNr"> 603 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> curr <span id="L604" class="LineNr"> 604 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L605" class="LineNr"> 605 </span> <span class="PreProc">break-if-!=</span> <span id="L606" class="LineNr"> 606 </span> <span class="muComment"># eval left</span> -<span id="L607" class="LineNr"> 607 </span> <span class="PreProc">var</span> curr-out/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-out-ah +<span id="L607" class="LineNr"> 607 </span> <span class="PreProc">var</span> curr-out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-out-ah <span id="L608" class="LineNr"> 608 </span> <span class="PreProc">var</span> left-out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr-out, left <span id="L609" class="LineNr"> 609 </span> <span class="PreProc">var</span> left-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, left <span id="L610" class="LineNr"> 610 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"A"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg @@ -647,7 +646,7 @@ if ('onhashchange' in window) { <span id="L612" class="LineNr"> 612 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"B"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L613" class="LineNr"> 613 </span> <span class="muComment"># errors? skip</span> <span id="L614" class="LineNr"> 614 </span> <span class="Delimiter">{</span> -<span id="L615" class="LineNr"> 615 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L615" class="LineNr"> 615 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L616" class="LineNr"> 616 </span> compare error?, <span class="Constant">0</span>/false <span id="L617" class="LineNr"> 617 </span> <span class="PreProc">break-if-=</span> <span id="L618" class="LineNr"> 618 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -656,13 +655,13 @@ if ('onhashchange' in window) { <span id="L621" class="LineNr"> 621 </span> <span class="Delimiter">}</span> <span id="L622" class="LineNr"> 622 </span> <span class="muComment">#</span> <span id="L623" class="LineNr"> 623 </span> curr-out-ah <span class="Special"><-</span> get curr-out, right -<span id="L624" class="LineNr"> 624 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, right -<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L624" class="LineNr"> 624 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, right +<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L626" class="LineNr"> 626 </span> curr <span class="Special"><-</span> copy right <span id="L627" class="LineNr"> 627 </span> <span class="PreProc">loop</span> <span id="L628" class="LineNr"> 628 </span> <span class="Delimiter">}</span> <span id="L629" class="LineNr"> 629 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L630" class="LineNr"> 630 </span> <span class="PreProc">var</span> evaluated-list/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *evaluated-list-ah +<span id="L630" class="LineNr"> 630 </span> <span class="PreProc">var</span> evaluated-list/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *evaluated-list-ah <span id="L631" class="LineNr"> 631 </span> <span class="PreProc">var</span> function-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get evaluated-list, left <span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get evaluated-list, right <span id="L633" class="LineNr"> 633 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"C"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg @@ -674,12 +673,12 @@ if ('onhashchange' in window) { <span id="L653" class="LineNr"> 653 </span><span class="Delimiter">}</span> <span id="L654" class="LineNr"> 654 </span> <span id="L655" class="LineNr"> 655 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L655'>apply</a></span> _f-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace), inner-screen-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), inner-keyboard-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), definitions-created: (addr stream int), call-number: (addr int) <span class="Delimiter">{</span> -<span id="L656" class="LineNr"> 656 </span> <span class="PreProc">var</span> f-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _f-ah -<span id="L657" class="LineNr"> 657 </span> <span class="PreProc">var</span> _f/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *f-ah +<span id="L656" class="LineNr"> 656 </span> <span class="PreProc">var</span> f-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _f-ah +<span id="L657" class="LineNr"> 657 </span> <span class="PreProc">var</span> _f/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *f-ah <span id="L658" class="LineNr"> 658 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _f <span id="L659" class="LineNr"> 659 </span> <span class="muComment"># call primitive functions</span> <span id="L660" class="LineNr"> 660 </span> <span class="Delimiter">{</span> -<span id="L661" class="LineNr"> 661 </span> <span class="PreProc">var</span> f-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get f, <span class="PreProc">type</span> +<span id="L661" class="LineNr"> 661 </span> <span class="PreProc">var</span> f-type/eax: (addr int) <span class="Special"><-</span> get f, <span class="PreProc">type</span> <span id="L662" class="LineNr"> 662 </span> compare *f-type, <span class="Constant">4</span>/primitive-function <span id="L663" class="LineNr"> 663 </span> <span class="PreProc">break-if-!=</span> <span id="L664" class="LineNr"> 664 </span> <a href='primitives.mu.html#L153'>apply-primitive</a> f, args-ah, out, globals, trace @@ -692,18 +691,18 @@ if ('onhashchange' in window) { <span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> f-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get f, <span class="PreProc">type</span> <span id="L690" class="LineNr"> 690 </span> compare *f-type, <span class="Constant">0</span>/pair <span id="L691" class="LineNr"> 691 </span> <span class="PreProc">break-if-!=</span> -<span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get f, left -<span id="L693" class="LineNr"> 693 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first +<span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get f, left +<span id="L693" class="LineNr"> 693 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first <span id="L695" class="LineNr"> 695 </span> compare <a href='evaluate.mu.html#L1429'>litfn?</a>, <span class="Constant">0</span>/false <span id="L696" class="LineNr"> 696 </span> <span class="PreProc">break-if-=</span> <span id="L697" class="LineNr"> 697 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get f, right -<span id="L698" class="LineNr"> 698 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L698" class="LineNr"> 698 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L699" class="LineNr"> 699 </span> <span class="PreProc">var</span> callee-env-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L700" class="LineNr"> 700 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L701" class="LineNr"> 701 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L702" class="LineNr"> 702 </span> <span class="PreProc">var</span> params-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L703" class="LineNr"> 703 </span> <span class="PreProc">var</span> body-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L703" class="LineNr"> 703 </span> <span class="PreProc">var</span> body-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right <span id="L704" class="LineNr"> 704 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"D"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L705" class="LineNr"> 705 </span> <a href='evaluate.mu.html#L713'>apply-function</a> params-ah, args-ah, body-ah, out, *callee-env-ah, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L706" class="LineNr"> 706 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"Y"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg @@ -720,7 +719,7 @@ if ('onhashchange' in window) { <span id="L717" class="LineNr"> 717 </span> <a href='evaluate.mu.html#L772'>push-bindings</a> params-ah, args-ah, env-h, new-env-ah, trace <span id="L718" class="LineNr"> 718 </span> <span class="muComment"># errors? skip</span> <span id="L719" class="LineNr"> 719 </span> <span class="Delimiter">{</span> -<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L721" class="LineNr"> 721 </span> compare error?, <span class="Constant">0</span>/false <span id="L722" class="LineNr"> 722 </span> <span class="PreProc">break-if-=</span> <span id="L723" class="LineNr"> 723 </span> <span class="PreProc">return</span> @@ -733,22 +732,22 @@ if ('onhashchange' in window) { <span id="L730" class="LineNr"> 730 </span> <span class="muComment"># eval all exprs, writing result to `out` each time</span> <span id="L731" class="LineNr"> 731 </span> <span class="PreProc">var</span> exprs-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _exprs-ah <span id="L732" class="LineNr"> 732 </span> $evaluate-exprs:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L733" class="LineNr"> 733 </span> <span class="PreProc">var</span> exprs/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *exprs-ah +<span id="L733" class="LineNr"> 733 </span> <span class="PreProc">var</span> exprs/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *exprs-ah <span id="L734" class="LineNr"> 734 </span> <span class="muComment"># stop when exprs is nil</span> <span id="L735" class="LineNr"> 735 </span> <span class="Delimiter">{</span> -<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> exprs-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> exprs +<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> exprs-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> exprs <span id="L737" class="LineNr"> 737 </span> compare exprs-nil?, <span class="Constant">0</span>/false <span id="L738" class="LineNr"> 738 </span> <span class="PreProc">break-if-!=</span> $evaluate-exprs:<span class="PreProc">loop</span> <span id="L739" class="LineNr"> 739 </span> <span class="Delimiter">}</span> <span id="L740" class="LineNr"> 740 </span> <span class="muComment"># evaluate each expression, writing result to `out`</span> <span id="L741" class="LineNr"> 741 </span> <span class="Delimiter">{</span> -<span id="L742" class="LineNr"> 742 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get exprs, left +<span id="L742" class="LineNr"> 742 </span> <span class="PreProc">var</span> curr-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get exprs, left <span id="L743" class="LineNr"> 743 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"E"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L744" class="LineNr"> 744 </span> <a href='evaluate.mu.html#L11'>evaluate</a> curr-ah, out, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L745" class="LineNr"> 745 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"X"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L746" class="LineNr"> 746 </span> <span class="muComment"># errors? skip</span> <span id="L747" class="LineNr"> 747 </span> <span class="Delimiter">{</span> -<span id="L748" class="LineNr"> 748 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L748" class="LineNr"> 748 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L749" class="LineNr"> 749 </span> compare error?, <span class="Constant">0</span>/false <span id="L750" class="LineNr"> 750 </span> <span class="PreProc">break-if-=</span> <span id="L751" class="LineNr"> 751 </span> <span class="PreProc">return</span> @@ -775,10 +774,10 @@ if ('onhashchange' in window) { <span id="L772" class="LineNr"> 772 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L772'>push-bindings</a></span> _params-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), old-env-h: (handle <a href='cell.mu.html#L1'>cell</a>), env-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L773" class="LineNr"> 773 </span> <span class="PreProc">var</span> params-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _params-ah <span id="L774" class="LineNr"> 774 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L775" class="LineNr"> 775 </span> <span class="PreProc">var</span> _params/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *params-ah +<span id="L775" class="LineNr"> 775 </span> <span class="PreProc">var</span> _params/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *params-ah <span id="L776" class="LineNr"> 776 </span> <span class="PreProc">var</span> params/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _params <span id="L777" class="LineNr"> 777 </span> <span class="Delimiter">{</span> -<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> params-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> params +<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> params-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> params <span id="L779" class="LineNr"> 779 </span> compare params-nil?, <span class="Constant">0</span>/false <span id="L780" class="LineNr"> 780 </span> <span class="PreProc">break-if-=</span> <span id="L781" class="LineNr"> 781 </span> <span class="muComment"># nil is a literal</span> @@ -789,14 +788,14 @@ if ('onhashchange' in window) { <span id="L786" class="LineNr"> 786 </span> <span class="muComment"># Params can only be symbols or pairs. Args can be anything.</span> <span id="L787" class="Folded"> 787 </span><span class="Folded">+-- 22 lines: # trace "pushing bindings from " params " to " args -----------------------------------------------------------------------------------------------------------------------</span> <span id="L809" class="LineNr"> 809 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L810" class="LineNr"> 810 </span> <span class="PreProc">var</span> params-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get params, <span class="PreProc">type</span> +<span id="L810" class="LineNr"> 810 </span> <span class="PreProc">var</span> params-type/eax: (addr int) <span class="Special"><-</span> get params, <span class="PreProc">type</span> <span id="L811" class="LineNr"> 811 </span> compare *params-type, <span class="Constant">2</span>/symbol <span id="L812" class="LineNr"> 812 </span> <span class="Delimiter">{</span> <span id="L813" class="LineNr"> 813 </span> <span class="PreProc">break-if-!=</span> <span id="L814" class="LineNr"> 814 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"symbol; binding to all remaining args"</span> <span id="L815" class="LineNr"> 815 </span> <span class="muComment"># create a new binding</span> <span id="L816" class="LineNr"> 816 </span> <span class="PreProc">var</span> new-binding-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L817" class="LineNr"> 817 </span> <span class="PreProc">var</span> new-binding-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address new-binding-storage +<span id="L817" class="LineNr"> 817 </span> <span class="PreProc">var</span> new-binding-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address new-binding-storage <span id="L818" class="LineNr"> 818 </span> <a href='cell.mu.html#L116'>new-pair</a> new-binding-ah, *params-ah, *args-ah <span id="L819" class="LineNr"> 819 </span> <span class="muComment"># push it to env</span> <span id="L820" class="LineNr"> 820 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, *new-binding-ah, old-env-h @@ -810,17 +809,17 @@ if ('onhashchange' in window) { <span id="L828" class="LineNr"> 828 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L829" class="LineNr"> 829 </span> <span class="PreProc">return</span> <span id="L830" class="LineNr"> 830 </span> <span class="Delimiter">}</span> -<span id="L831" class="LineNr"> 831 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L831" class="LineNr"> 831 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L832" class="LineNr"> 832 </span> <span class="PreProc">var</span> args/<span class="muRegEdi">edi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L833" class="LineNr"> 833 </span> <span class="muComment"># params is now a pair, so args must be also</span> <span id="L834" class="LineNr"> 834 </span> <span class="Delimiter">{</span> -<span id="L835" class="LineNr"> 835 </span> <span class="PreProc">var</span> args-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L835" class="LineNr"> 835 </span> <span class="PreProc">var</span> args-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L836" class="LineNr"> 836 </span> compare args-nil?, <span class="Constant">0</span>/false <span id="L837" class="LineNr"> 837 </span> <span class="PreProc">break-if-=</span> <span id="L838" class="LineNr"> 838 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"not enough args to bind"</span> <span id="L839" class="LineNr"> 839 </span> <span class="PreProc">return</span> <span id="L840" class="LineNr"> 840 </span> <span class="Delimiter">}</span> -<span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> args-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> <span id="L842" class="LineNr"> 842 </span> compare *args-type, <span class="Constant">0</span>/pair <span id="L843" class="LineNr"> 843 </span> <span class="Delimiter">{</span> <span id="L844" class="LineNr"> 844 </span> <span class="PreProc">break-if-=</span> @@ -830,18 +829,18 @@ if ('onhashchange' in window) { <span id="L848" class="LineNr"> 848 </span> <span class="Delimiter">}</span> <span id="L849" class="LineNr"> 849 </span> <span class="PreProc">var</span> intermediate-env-storage: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L850" class="LineNr"> 850 </span> <span class="PreProc">var</span> intermediate-env-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address intermediate-env-storage -<span id="L851" class="LineNr"> 851 </span> <span class="PreProc">var</span> first-param-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get params, left +<span id="L851" class="LineNr"> 851 </span> <span class="PreProc">var</span> first-param-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get params, left <span id="L852" class="LineNr"> 852 </span> <span class="PreProc">var</span> first-arg-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L853" class="LineNr"> 853 </span> <a href='evaluate.mu.html#L772'>push-bindings</a> first-param-ah, first-arg-ah, old-env-h, intermediate-env-ah, trace <span id="L854" class="LineNr"> 854 </span> <span class="muComment"># errors? skip</span> <span id="L855" class="LineNr"> 855 </span> <span class="Delimiter">{</span> -<span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L857" class="LineNr"> 857 </span> compare error?, <span class="Constant">0</span>/false <span id="L858" class="LineNr"> 858 </span> <span class="PreProc">break-if-=</span> <span id="L859" class="LineNr"> 859 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L860" class="LineNr"> 860 </span> <span class="PreProc">return</span> <span id="L861" class="LineNr"> 861 </span> <span class="Delimiter">}</span> -<span id="L862" class="LineNr"> 862 </span> <span class="PreProc">var</span> remaining-params-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get params, right +<span id="L862" class="LineNr"> 862 </span> <span class="PreProc">var</span> remaining-params-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get params, right <span id="L863" class="LineNr"> 863 </span> <span class="PreProc">var</span> remaining-args-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right <span id="L864" class="LineNr"> 864 </span> <a href='evaluate.mu.html#L772'>push-bindings</a> remaining-params-ah, remaining-args-ah, *intermediate-env-ah, env-ah, trace <span id="L865" class="LineNr"> 865 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -850,19 +849,19 @@ if ('onhashchange' in window) { <span id="L868" class="LineNr"> 868 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L868'>lookup-symbol</a></span> sym: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), env-h: (handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace), inner-screen-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), inner-keyboard-var: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> <span id="L869" class="LineNr"> 869 </span> <span class="muComment"># trace sym</span> <span id="L870" class="LineNr"> 870 </span> <span class="Delimiter">{</span> -<span id="L871" class="LineNr"> 871 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L871" class="LineNr"> 871 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L872" class="LineNr"> 872 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L873" class="LineNr"> 873 </span> <span class="PreProc">break-if-=</span> <span id="L874" class="LineNr"> 874 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x800</span>) <span class="muComment"># pessimistically sized just for the large alist loaded from disk in `main`</span> <span id="L875" class="LineNr"> 875 </span> <span class="PreProc">var</span> stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L876" class="LineNr"> 876 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"look up "</span> -<span id="L877" class="LineNr"> 877 </span> <span class="PreProc">var</span> sym2/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy sym -<span id="L878" class="LineNr"> 878 </span> <span class="PreProc">var</span> sym-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get sym2, text-data -<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">var</span> sym-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-data-ah +<span id="L877" class="LineNr"> 877 </span> <span class="PreProc">var</span> sym2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy sym +<span id="L878" class="LineNr"> 878 </span> <span class="PreProc">var</span> sym-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get sym2, text-data +<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">var</span> sym-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-data-ah <span id="L880" class="LineNr"> 880 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> sym-data <span id="L881" class="LineNr"> 881 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> stream, sym-data <span id="L882" class="LineNr"> 882 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">" in "</span> -<span id="L883" class="LineNr"> 883 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h +<span id="L883" class="LineNr"> 883 </span> <span class="PreProc">var</span> env-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h <span id="L884" class="LineNr"> 884 </span> <span class="PreProc">var</span> nested-trace-storage: trace <span id="L885" class="LineNr"> 885 </span> <span class="PreProc">var</span> nested-trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address nested-trace-storage <span id="L886" class="LineNr"> 886 </span> <a href='trace.mu.html#L61'>initialize-trace</a> nested-trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible @@ -870,7 +869,7 @@ if ('onhashchange' in window) { <span id="L888" class="LineNr"> 888 </span> trace trace, <span class="Constant">"eval"</span>, stream <span id="L889" class="LineNr"> 889 </span> <span class="Delimiter">}</span> <span id="L890" class="LineNr"> 890 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L891" class="LineNr"> 891 </span> <span class="PreProc">var</span> _env/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> env-h +<span id="L891" class="LineNr"> 891 </span> <span class="PreProc">var</span> _env/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> env-h <span id="L892" class="LineNr"> 892 </span> <span class="PreProc">var</span> env/<span class="muRegEbx">ebx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _env <span id="L893" class="LineNr"> 893 </span> <span class="muComment"># if env is not a list, error</span> <span id="L894" class="LineNr"> 894 </span> <span class="Delimiter">{</span> @@ -883,7 +882,7 @@ if ('onhashchange' in window) { <span id="L901" class="LineNr"> 901 </span> <span class="Delimiter">}</span> <span id="L902" class="LineNr"> 902 </span> <span class="muComment"># if env is nil, look up in globals</span> <span id="L903" class="LineNr"> 903 </span> <span class="Delimiter">{</span> -<span id="L904" class="LineNr"> 904 </span> <span class="PreProc">var</span> env-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> env +<span id="L904" class="LineNr"> 904 </span> <span class="PreProc">var</span> env-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> env <span id="L905" class="LineNr"> 905 </span> compare env-nil?, <span class="Constant">0</span>/false <span id="L906" class="LineNr"> 906 </span> <span class="PreProc">break-if-=</span> <span id="L907" class="LineNr"> 907 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"b"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg @@ -896,13 +895,13 @@ if ('onhashchange' in window) { <span id="L932" class="LineNr"> 932 </span> <span class="Delimiter">}</span> <span id="L933" class="LineNr"> 933 </span> <span class="muComment"># check car</span> <span id="L934" class="LineNr"> 934 </span> <span class="PreProc">var</span> env-head-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> env-head-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-head-storage +<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> env-head-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-head-storage <span id="L936" class="LineNr"> 936 </span> <a href='evaluate.mu.html#L1189'>car</a> env, env-head-ah, trace -<span id="L937" class="LineNr"> 937 </span> <span class="PreProc">var</span> _env-head/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *env-head-ah +<span id="L937" class="LineNr"> 937 </span> <span class="PreProc">var</span> _env-head/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *env-head-ah <span id="L938" class="LineNr"> 938 </span> <span class="PreProc">var</span> env-head/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _env-head <span id="L939" class="LineNr"> 939 </span> <span class="muComment"># if car is not a list, abort</span> <span id="L940" class="LineNr"> 940 </span> <span class="Delimiter">{</span> -<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">var</span> env-head-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get env-head, <span class="PreProc">type</span> +<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">var</span> env-head-type/eax: (addr int) <span class="Special"><-</span> get env-head, <span class="PreProc">type</span> <span id="L942" class="LineNr"> 942 </span> compare *env-head-type, <span class="Constant">0</span>/pair <span id="L943" class="LineNr"> 943 </span> <span class="PreProc">break-if-=</span> <span id="L944" class="LineNr"> 944 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"environment is not a list of (key . value) pairs"</span> @@ -911,12 +910,12 @@ if ('onhashchange' in window) { <span id="L947" class="LineNr"> 947 </span> <span class="Delimiter">}</span> <span id="L948" class="LineNr"> 948 </span> <span class="muComment"># check key</span> <span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> curr-key-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> curr-key-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address curr-key-storage +<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> curr-key-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address curr-key-storage <span id="L951" class="LineNr"> 951 </span> <a href='evaluate.mu.html#L1189'>car</a> env-head, curr-key-ah, trace -<span id="L952" class="LineNr"> 952 </span> <span class="PreProc">var</span> curr-key/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-key-ah +<span id="L952" class="LineNr"> 952 </span> <span class="PreProc">var</span> curr-key/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-key-ah <span id="L953" class="LineNr"> 953 </span> <span class="muComment"># if key is not a symbol, abort</span> <span id="L954" class="LineNr"> 954 </span> <span class="Delimiter">{</span> -<span id="L955" class="LineNr"> 955 </span> <span class="PreProc">var</span> curr-key-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-key, <span class="PreProc">type</span> +<span id="L955" class="LineNr"> 955 </span> <span class="PreProc">var</span> curr-key-type/eax: (addr int) <span class="Special"><-</span> get curr-key, <span class="PreProc">type</span> <span id="L956" class="LineNr"> 956 </span> compare *curr-key-type, <span class="Constant">2</span>/symbol <span id="L957" class="LineNr"> 957 </span> <span class="PreProc">break-if-=</span> <span id="L958" class="LineNr"> 958 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"environment contains a binding for a non-symbol"</span> @@ -924,7 +923,7 @@ if ('onhashchange' in window) { <span id="L960" class="LineNr"> 960 </span> <span class="PreProc">return</span> <span id="L961" class="LineNr"> 961 </span> <span class="Delimiter">}</span> <span id="L962" class="LineNr"> 962 </span> <span class="muComment"># if key matches sym, return val</span> -<span id="L963" class="LineNr"> 963 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> curr-key, sym, trace +<span id="L963" class="LineNr"> 963 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> curr-key, sym, trace <span id="L964" class="LineNr"> 964 </span> compare match?, <span class="Constant">0</span>/false <span id="L965" class="LineNr"> 965 </span> <span class="Delimiter">{</span> <span id="L966" class="LineNr"> 966 </span> <span class="PreProc">break-if-=</span> @@ -935,7 +934,7 @@ if ('onhashchange' in window) { <span id="L989" class="LineNr"> 989 </span> <span class="Delimiter">}</span> <span id="L990" class="LineNr"> 990 </span> <span class="muComment"># otherwise recurse</span> <span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> env-tail-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> env-tail-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-tail-storage +<span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> env-tail-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-tail-storage <span id="L993" class="LineNr"> 993 </span> <a href='evaluate.mu.html#L1217'>cdr</a> env, env-tail-ah, trace <span id="L994" class="LineNr"> 994 </span> <a href='evaluate.mu.html#L868'>lookup-symbol</a> sym, out, *env-tail-ah, globals, trace, inner-screen-var, inner-keyboard-var <span id="L995" class="LineNr"> 995 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -962,16 +961,16 @@ if ('onhashchange' in window) { <span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage <span id="L1036" class="LineNr">1036 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"a"</span> -<span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1038" class="LineNr">1038 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L1039" class="LineNr">1039 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L1040" class="LineNr">1040 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1041" class="LineNr">1041 </span> <a href='evaluate.mu.html#L868'>lookup-symbol</a> in, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard -<span id="L1042" class="LineNr">1042 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1042" class="LineNr">1042 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1043" class="LineNr">1043 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1044" class="LineNr">1044 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1017'>test-lookup-symbol-in-env</a>/0"</span> -<span id="L1045" class="LineNr">1045 </span> <span class="PreProc">var</span> result-value-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get result, number-data -<span id="L1046" class="LineNr">1046 </span> <span class="PreProc">var</span> result-value/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert *result-value-addr +<span id="L1045" class="LineNr">1045 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data +<span id="L1046" class="LineNr">1046 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr <span id="L1047" class="LineNr">1047 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1017'>test-lookup-symbol-in-env</a>/1"</span> <span id="L1048" class="LineNr">1048 </span><span class="Delimiter">}</span> <span id="L1049" class="LineNr">1049 </span> @@ -987,22 +986,22 @@ if ('onhashchange' in window) { <span id="L1059" class="LineNr">1059 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L1060" class="LineNr">1060 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage <span id="L1061" class="LineNr">1061 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"+"</span> -<span id="L1062" class="LineNr">1062 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1062" class="LineNr">1062 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1063" class="LineNr">1063 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L1064" class="LineNr">1064 </span> <span class="PreProc">var</span> trace/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L1065" class="LineNr">1065 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1066" class="LineNr">1066 </span> <a href='evaluate.mu.html#L868'>lookup-symbol</a> in, tmp-ah, *nil-ah, globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard -<span id="L1067" class="LineNr">1067 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1067" class="LineNr">1067 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1068" class="LineNr">1068 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1069" class="LineNr">1069 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">4</span>/primitive-function, <span class="Constant">"F - <a href='evaluate.mu.html#L1050'>test-lookup-symbol-in-globals</a>/0"</span> -<span id="L1070" class="LineNr">1070 </span> <span class="PreProc">var</span> result-value/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get result, index-data +<span id="L1070" class="LineNr">1070 </span> <span class="PreProc">var</span> result-value/eax: (addr int) <span class="Special"><-</span> get result, index-data <span id="L1071" class="LineNr">1071 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-value, <span class="Constant">1</span>/add, <span class="Constant">"F - <a href='evaluate.mu.html#L1050'>test-lookup-symbol-in-globals</a>/1"</span> <span id="L1072" class="LineNr">1072 </span><span class="Delimiter">}</span> <span id="L1073" class="LineNr">1073 </span> <span id="L1074" class="LineNr">1074 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1074'>mutate-binding</a></span> name: (addr stream byte), val: (addr handle <a href='cell.mu.html#L1'>cell</a>), env-h: (handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1075" class="LineNr">1075 </span> <span class="muComment"># trace name</span> <span id="L1076" class="LineNr">1076 </span> <span class="Delimiter">{</span> -<span id="L1077" class="LineNr">1077 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L1077" class="LineNr">1077 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L1078" class="LineNr">1078 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L1079" class="LineNr">1079 </span> <span class="PreProc">break-if-=</span> <span id="L1080" class="LineNr">1080 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x800</span>) <span class="muComment"># pessimistically sized just for the large alist loaded from disk in `main`</span> @@ -1016,13 +1015,13 @@ if ('onhashchange' in window) { <span id="L1088" class="LineNr">1088 </span> <a href='trace.mu.html#L61'>initialize-trace</a> nested-trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1089" class="LineNr">1089 </span> <a href='print.mu.html#L7'>print-cell</a> val, stream, nested-trace <span id="L1090" class="LineNr">1090 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">" in "</span> -<span id="L1091" class="LineNr">1091 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h +<span id="L1091" class="LineNr">1091 </span> <span class="PreProc">var</span> env-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h <span id="L1092" class="LineNr">1092 </span> <a href='trace.mu.html#L80'>clear-trace</a> nested-trace <span id="L1093" class="LineNr">1093 </span> <a href='print.mu.html#L7'>print-cell</a> env-ah, stream, nested-trace <span id="L1094" class="LineNr">1094 </span> trace trace, <span class="Constant">"eval"</span>, stream <span id="L1095" class="LineNr">1095 </span> <span class="Delimiter">}</span> <span id="L1096" class="LineNr">1096 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L1097" class="LineNr">1097 </span> <span class="PreProc">var</span> _env/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> env-h +<span id="L1097" class="LineNr">1097 </span> <span class="PreProc">var</span> _env/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> env-h <span id="L1098" class="LineNr">1098 </span> <span class="PreProc">var</span> env/<span class="muRegEbx">ebx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _env <span id="L1099" class="LineNr">1099 </span> <span class="muComment"># if env is not a list, abort</span> <span id="L1100" class="LineNr">1100 </span> <span class="Delimiter">{</span> @@ -1035,7 +1034,7 @@ if ('onhashchange' in window) { <span id="L1107" class="LineNr">1107 </span> <span class="Delimiter">}</span> <span id="L1108" class="LineNr">1108 </span> <span class="muComment"># if env is nil, look in globals</span> <span id="L1109" class="LineNr">1109 </span> <span class="Delimiter">{</span> -<span id="L1110" class="LineNr">1110 </span> <span class="PreProc">var</span> env-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> env +<span id="L1110" class="LineNr">1110 </span> <span class="PreProc">var</span> env-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> env <span id="L1111" class="LineNr">1111 </span> compare env-nil?, <span class="Constant">0</span>/false <span id="L1112" class="LineNr">1112 </span> <span class="PreProc">break-if-=</span> <span id="L1113" class="LineNr">1113 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"b"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg @@ -1048,13 +1047,13 @@ if ('onhashchange' in window) { <span id="L1138" class="LineNr">1138 </span> <span class="Delimiter">}</span> <span id="L1139" class="LineNr">1139 </span> <span class="muComment"># check car</span> <span id="L1140" class="LineNr">1140 </span> <span class="PreProc">var</span> env-head-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1141" class="LineNr">1141 </span> <span class="PreProc">var</span> env-head-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-head-storage +<span id="L1141" class="LineNr">1141 </span> <span class="PreProc">var</span> env-head-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-head-storage <span id="L1142" class="LineNr">1142 </span> <a href='evaluate.mu.html#L1189'>car</a> env, env-head-ah, trace -<span id="L1143" class="LineNr">1143 </span> <span class="PreProc">var</span> _env-head/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *env-head-ah +<span id="L1143" class="LineNr">1143 </span> <span class="PreProc">var</span> _env-head/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *env-head-ah <span id="L1144" class="LineNr">1144 </span> <span class="PreProc">var</span> env-head/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _env-head <span id="L1145" class="LineNr">1145 </span> <span class="muComment"># if car is not a list, abort</span> <span id="L1146" class="LineNr">1146 </span> <span class="Delimiter">{</span> -<span id="L1147" class="LineNr">1147 </span> <span class="PreProc">var</span> env-head-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get env-head, <span class="PreProc">type</span> +<span id="L1147" class="LineNr">1147 </span> <span class="PreProc">var</span> env-head-type/eax: (addr int) <span class="Special"><-</span> get env-head, <span class="PreProc">type</span> <span id="L1148" class="LineNr">1148 </span> compare *env-head-type, <span class="Constant">0</span>/pair <span id="L1149" class="LineNr">1149 </span> <span class="PreProc">break-if-=</span> <span id="L1150" class="LineNr">1150 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"environment is not a list of (key . value) pairs"</span> @@ -1063,12 +1062,12 @@ if ('onhashchange' in window) { <span id="L1153" class="LineNr">1153 </span> <span class="Delimiter">}</span> <span id="L1154" class="LineNr">1154 </span> <span class="muComment"># check key</span> <span id="L1155" class="LineNr">1155 </span> <span class="PreProc">var</span> curr-key-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1156" class="LineNr">1156 </span> <span class="PreProc">var</span> curr-key-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address curr-key-storage +<span id="L1156" class="LineNr">1156 </span> <span class="PreProc">var</span> curr-key-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address curr-key-storage <span id="L1157" class="LineNr">1157 </span> <a href='evaluate.mu.html#L1189'>car</a> env-head, curr-key-ah, trace -<span id="L1158" class="LineNr">1158 </span> <span class="PreProc">var</span> curr-key/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-key-ah +<span id="L1158" class="LineNr">1158 </span> <span class="PreProc">var</span> curr-key/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-key-ah <span id="L1159" class="LineNr">1159 </span> <span class="muComment"># if key is not a symbol, abort</span> <span id="L1160" class="LineNr">1160 </span> <span class="Delimiter">{</span> -<span id="L1161" class="LineNr">1161 </span> <span class="PreProc">var</span> curr-key-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-key, <span class="PreProc">type</span> +<span id="L1161" class="LineNr">1161 </span> <span class="PreProc">var</span> curr-key-type/eax: (addr int) <span class="Special"><-</span> get curr-key, <span class="PreProc">type</span> <span id="L1162" class="LineNr">1162 </span> compare *curr-key-type, <span class="Constant">2</span>/symbol <span id="L1163" class="LineNr">1163 </span> <span class="PreProc">break-if-=</span> <span id="L1164" class="LineNr">1164 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"environment contains a binding for a non-symbol"</span> @@ -1076,13 +1075,13 @@ if ('onhashchange' in window) { <span id="L1166" class="LineNr">1166 </span> <span class="PreProc">return</span> <span id="L1167" class="LineNr">1167 </span> <span class="Delimiter">}</span> <span id="L1168" class="LineNr">1168 </span> <span class="muComment"># if key matches name, return val</span> -<span id="L1169" class="LineNr">1169 </span> <span class="PreProc">var</span> curr-key-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-key, text-data -<span id="L1170" class="LineNr">1170 </span> <span class="PreProc">var</span> curr-key-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-key-data-ah -<span id="L1171" class="LineNr">1171 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L211'>streams-data-equal?</a> curr-key-data, name +<span id="L1169" class="LineNr">1169 </span> <span class="PreProc">var</span> curr-key-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-key, text-data +<span id="L1170" class="LineNr">1170 </span> <span class="PreProc">var</span> curr-key-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-key-data-ah +<span id="L1171" class="LineNr">1171 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L211'>streams-data-equal?</a> curr-key-data, name <span id="L1172" class="LineNr">1172 </span> compare match?, <span class="Constant">0</span>/false <span id="L1173" class="LineNr">1173 </span> <span class="Delimiter">{</span> <span id="L1174" class="LineNr">1174 </span> <span class="PreProc">break-if-=</span> -<span id="L1175" class="LineNr">1175 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get env-head, right +<span id="L1175" class="LineNr">1175 </span> <span class="PreProc">var</span> dest/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get env-head, right <span id="L1176" class="LineNr">1176 </span> copy-object val, dest <span id="L1177" class="LineNr">1177 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> done"</span> <span id="L1178" class="LineNr">1178 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -1090,7 +1089,7 @@ if ('onhashchange' in window) { <span id="L1180" class="LineNr">1180 </span> <span class="Delimiter">}</span> <span id="L1181" class="LineNr">1181 </span> <span class="muComment"># otherwise recurse</span> <span id="L1182" class="LineNr">1182 </span> <span class="PreProc">var</span> env-tail-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1183" class="LineNr">1183 </span> <span class="PreProc">var</span> env-tail-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-tail-storage +<span id="L1183" class="LineNr">1183 </span> <span class="PreProc">var</span> env-tail-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-tail-storage <span id="L1184" class="LineNr">1184 </span> <a href='evaluate.mu.html#L1217'>cdr</a> env, env-tail-ah, trace <span id="L1185" class="LineNr">1185 </span> <a href='evaluate.mu.html#L1074'>mutate-binding</a> name, val, *env-tail-ah, globals, trace <span id="L1186" class="LineNr">1186 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -1099,7 +1098,7 @@ if ('onhashchange' in window) { <span id="L1189" class="LineNr">1189 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1189'>car</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1190" class="LineNr">1190 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"car"</span> <span id="L1191" class="LineNr">1191 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L1192" class="LineNr">1192 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in +<span id="L1192" class="LineNr">1192 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in <span id="L1193" class="LineNr">1193 </span> <span class="muComment"># if in is not a list, abort</span> <span id="L1194" class="LineNr">1194 </span> <span class="Delimiter">{</span> <span id="L1195" class="LineNr">1195 </span> <span class="PreProc">var</span> in-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> @@ -1111,14 +1110,14 @@ if ('onhashchange' in window) { <span id="L1201" class="LineNr">1201 </span> <span class="Delimiter">}</span> <span id="L1202" class="LineNr">1202 </span> <span class="muComment"># if in is nil, abort</span> <span id="L1203" class="LineNr">1203 </span> <span class="Delimiter">{</span> -<span id="L1204" class="LineNr">1204 </span> <span class="PreProc">var</span> in-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in +<span id="L1204" class="LineNr">1204 </span> <span class="PreProc">var</span> in-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in <span id="L1205" class="LineNr">1205 </span> compare in-nil?, <span class="Constant">0</span>/false <span id="L1206" class="LineNr">1206 </span> <span class="PreProc">break-if-=</span> <span id="L1207" class="LineNr">1207 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"car on nil"</span> <span id="L1208" class="LineNr">1208 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L1209" class="LineNr">1209 </span> <span class="PreProc">return</span> <span id="L1210" class="LineNr">1210 </span> <span class="Delimiter">}</span> -<span id="L1211" class="LineNr">1211 </span> <span class="PreProc">var</span> in-left/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left +<span id="L1211" class="LineNr">1211 </span> <span class="PreProc">var</span> in-left/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L1212" class="LineNr">1212 </span> copy-object in-left, out <span id="L1213" class="LineNr">1213 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L1214" class="LineNr">1214 </span> <span class="PreProc">return</span> @@ -1127,7 +1126,7 @@ if ('onhashchange' in window) { <span id="L1217" class="LineNr">1217 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1217'>cdr</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1218" class="LineNr">1218 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"cdr"</span> <span id="L1219" class="LineNr">1219 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L1220" class="LineNr">1220 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in +<span id="L1220" class="LineNr">1220 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in <span id="L1221" class="LineNr">1221 </span> <span class="muComment"># if in is not a list, abort</span> <span id="L1222" class="LineNr">1222 </span> <span class="Delimiter">{</span> <span id="L1223" class="LineNr">1223 </span> <span class="PreProc">var</span> in-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> @@ -1139,26 +1138,26 @@ if ('onhashchange' in window) { <span id="L1229" class="LineNr">1229 </span> <span class="Delimiter">}</span> <span id="L1230" class="LineNr">1230 </span> <span class="muComment"># if in is nil, abort</span> <span id="L1231" class="LineNr">1231 </span> <span class="Delimiter">{</span> -<span id="L1232" class="LineNr">1232 </span> <span class="PreProc">var</span> in-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in +<span id="L1232" class="LineNr">1232 </span> <span class="PreProc">var</span> in-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in <span id="L1233" class="LineNr">1233 </span> compare in-nil?, <span class="Constant">0</span>/false <span id="L1234" class="LineNr">1234 </span> <span class="PreProc">break-if-=</span> <span id="L1235" class="LineNr">1235 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"car on nil"</span> <span id="L1236" class="LineNr">1236 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L1237" class="LineNr">1237 </span> <span class="PreProc">return</span> <span id="L1238" class="LineNr">1238 </span> <span class="Delimiter">}</span> -<span id="L1239" class="LineNr">1239 </span> <span class="PreProc">var</span> in-right/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L1239" class="LineNr">1239 </span> <span class="PreProc">var</span> in-right/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right <span id="L1240" class="LineNr">1240 </span> copy-object in-right, out <span id="L1241" class="LineNr">1241 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L1242" class="LineNr">1242 </span> <span class="PreProc">return</span> <span id="L1243" class="LineNr">1243 </span><span class="Delimiter">}</span> <span id="L1244" class="LineNr">1244 </span> -<span id="L1245" class="LineNr">1245 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1245'>cell-isomorphic?</a></span> _a: (addr <a href='cell.mu.html#L1'>cell</a>), _b: (addr <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L1245" class="LineNr">1245 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1245'>cell-isomorphic?</a></span> _a: (addr <a href='cell.mu.html#L1'>cell</a>), _b: (addr <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1246" class="LineNr">1246 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"cell-isomorphic?"</span> <span id="L1247" class="LineNr">1247 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L1248" class="LineNr">1248 </span> <span class="PreProc">var</span> a/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _a <span id="L1249" class="LineNr">1249 </span> <span class="PreProc">var</span> b/<span class="muRegEdi">edi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _b <span id="L1250" class="LineNr">1250 </span> <span class="muComment"># if types don't match, return false</span> -<span id="L1251" class="LineNr">1251 </span> <span class="PreProc">var</span> a-type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get a, <span class="PreProc">type</span> +<span id="L1251" class="LineNr">1251 </span> <span class="PreProc">var</span> a-type-addr/eax: (addr int) <span class="Special"><-</span> get a, <span class="PreProc">type</span> <span id="L1252" class="LineNr">1252 </span> <span class="PreProc">var</span> b-type-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get b, <span class="PreProc">type</span> <span id="L1253" class="LineNr">1253 </span> <span class="PreProc">var</span> b-type/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *b-type-addr <span id="L1254" class="LineNr">1254 </span> compare b-type, *a-type-addr @@ -1173,7 +1172,7 @@ if ('onhashchange' in window) { <span id="L1263" class="LineNr">1263 </span> compare b-type, <span class="Constant">1</span>/number <span id="L1264" class="LineNr">1264 </span> <span class="Delimiter">{</span> <span id="L1265" class="LineNr">1265 </span> <span class="PreProc">break-if-!=</span> -<span id="L1266" class="LineNr">1266 </span> <span class="PreProc">var</span> a-val-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get a, number-data +<span id="L1266" class="LineNr">1266 </span> <span class="PreProc">var</span> a-val-addr/eax: (addr float) <span class="Special"><-</span> get a, number-data <span id="L1267" class="LineNr">1267 </span> <span class="PreProc">var</span> b-val-addr/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get b, number-data <span id="L1268" class="LineNr">1268 </span> <span class="PreProc">var</span> a-val/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *a-val-addr <span id="L1269" class="LineNr">1269 </span> compare a-val, *b-val-addr @@ -1195,17 +1194,17 @@ if ('onhashchange' in window) { <span id="L1285" class="LineNr">1285 </span> <span class="PreProc">break-if-=</span> <span id="L1286" class="LineNr">1286 </span> <span class="PreProc">break</span> $cell-isomorphic?:text-data <span id="L1287" class="LineNr">1287 </span> <span class="Delimiter">}</span> -<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> b-val-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get b, text-data -<span id="L1289" class="LineNr">1289 </span> <span class="PreProc">var</span> _b-val/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-ah +<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> b-val-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get b, text-data +<span id="L1289" class="LineNr">1289 </span> <span class="PreProc">var</span> _b-val/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-ah <span id="L1290" class="LineNr">1290 </span> <span class="PreProc">var</span> b-val/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _b-val -<span id="L1291" class="LineNr">1291 </span> <span class="PreProc">var</span> a-val-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get a, text-data -<span id="L1292" class="LineNr">1292 </span> <span class="PreProc">var</span> a-val/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-ah +<span id="L1291" class="LineNr">1291 </span> <span class="PreProc">var</span> a-val-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get a, text-data +<span id="L1292" class="LineNr">1292 </span> <span class="PreProc">var</span> a-val/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-ah <span id="L1293" class="LineNr">1293 </span> <span class="PreProc">var</span> tmp-array: (handle array byte) <span id="L1294" class="LineNr">1294 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> address tmp-array <span id="L1295" class="LineNr">1295 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> a-val <span id="L1296" class="LineNr">1296 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> a-val, tmp-ah -<span id="L1297" class="LineNr">1297 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah -<span id="L1298" class="LineNr">1298 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> b-val, tmp +<span id="L1297" class="LineNr">1297 </span> <span class="PreProc">var</span> tmp/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1298" class="LineNr">1298 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> b-val, tmp <span id="L1299" class="LineNr">1299 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L1300" class="LineNr">1300 </span> <span class="Delimiter">{</span> <span id="L1301" class="LineNr">1301 </span> compare match?, <span class="Constant">0</span>/false @@ -1223,9 +1222,9 @@ if ('onhashchange' in window) { <span id="L1313" class="LineNr">1313 </span> compare b-type, <span class="Constant">4</span>/primitive <span id="L1314" class="LineNr">1314 </span> <span class="Delimiter">{</span> <span id="L1315" class="LineNr">1315 </span> <span class="PreProc">break-if-!=</span> -<span id="L1316" class="LineNr">1316 </span> <span class="PreProc">var</span> a-val-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get a, index-data +<span id="L1316" class="LineNr">1316 </span> <span class="PreProc">var</span> a-val-addr/eax: (addr int) <span class="Special"><-</span> get a, index-data <span id="L1317" class="LineNr">1317 </span> <span class="PreProc">var</span> b-val-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get b, index-data -<span id="L1318" class="LineNr">1318 </span> <span class="PreProc">var</span> a-val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *a-val-addr +<span id="L1318" class="LineNr">1318 </span> <span class="PreProc">var</span> a-val/eax: int <span class="Special"><-</span> copy *a-val-addr <span id="L1319" class="LineNr">1319 </span> compare a-val, *b-val-addr <span id="L1320" class="LineNr">1320 </span> <span class="Delimiter">{</span> <span id="L1321" class="LineNr">1321 </span> <span class="PreProc">break-if-=</span> @@ -1241,9 +1240,9 @@ if ('onhashchange' in window) { <span id="L1331" class="LineNr">1331 </span> compare b-type, <span class="Constant">5</span>/screen <span id="L1332" class="LineNr">1332 </span> <span class="Delimiter">{</span> <span id="L1333" class="LineNr">1333 </span> <span class="PreProc">break-if-!=</span> -<span id="L1334" class="LineNr">1334 </span> <span class="PreProc">var</span> a-val-addr/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get a, screen-data +<span id="L1334" class="LineNr">1334 </span> <span class="PreProc">var</span> a-val-addr/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get a, screen-data <span id="L1335" class="LineNr">1335 </span> <span class="PreProc">var</span> b-val-addr/<span class="muRegEcx">ecx</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get b, screen-data -<span id="L1336" class="LineNr">1336 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../120allocate.subx.html#L448'>handle-equal?</a> *a-val-addr, *b-val-addr +<span id="L1336" class="LineNr">1336 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../120allocate.subx.html#L448'>handle-equal?</a> *a-val-addr, *b-val-addr <span id="L1337" class="LineNr">1337 </span> compare result, <span class="Constant">0</span>/false <span id="L1338" class="LineNr">1338 </span> <span class="PreProc">return</span> result <span id="L1339" class="LineNr">1339 </span> <span class="Delimiter">}</span> @@ -1252,19 +1251,19 @@ if ('onhashchange' in window) { <span id="L1342" class="LineNr">1342 </span> <span class="Delimiter">{</span> <span id="L1343" class="LineNr">1343 </span> <span class="PreProc">break-if-!=</span> <span id="L1344" class="LineNr">1344 </span> <span class="PreProc">var</span> a-val-addr/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get a, keyboard-data -<span id="L1345" class="LineNr">1345 </span> <span class="PreProc">var</span> _a/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-addr +<span id="L1345" class="LineNr">1345 </span> <span class="PreProc">var</span> _a/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-addr <span id="L1346" class="LineNr">1346 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _a -<span id="L1347" class="LineNr">1347 </span> <span class="PreProc">var</span> b-val-addr/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get b, keyboard-data -<span id="L1348" class="LineNr">1348 </span> <span class="PreProc">var</span> b/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-addr -<span id="L1349" class="LineNr">1349 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a> a, b +<span id="L1347" class="LineNr">1347 </span> <span class="PreProc">var</span> b-val-addr/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get b, keyboard-data +<span id="L1348" class="LineNr">1348 </span> <span class="PreProc">var</span> b/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-addr +<span id="L1349" class="LineNr">1349 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a> a, b <span id="L1350" class="LineNr">1350 </span> <span class="PreProc">return</span> result <span id="L1351" class="LineNr">1351 </span> <span class="Delimiter">}</span> <span id="L1352" class="LineNr">1352 </span> <span class="muComment"># if a is nil, b should be nil</span> <span id="L1353" class="LineNr">1353 </span> <span class="Delimiter">{</span> <span id="L1354" class="LineNr">1354 </span> <span class="muComment"># (assumes nil? returns 0 or 1)</span> -<span id="L1355" class="LineNr">1355 </span> <span class="PreProc">var</span> _b-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> b +<span id="L1355" class="LineNr">1355 </span> <span class="PreProc">var</span> _b-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> b <span id="L1356" class="LineNr">1356 </span> <span class="PreProc">var</span> b-nil?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy _b-nil? -<span id="L1357" class="LineNr">1357 </span> <span class="PreProc">var</span> a-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> a +<span id="L1357" class="LineNr">1357 </span> <span class="PreProc">var</span> a-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> a <span id="L1358" class="LineNr">1358 </span> <span class="muComment"># a == nil and b == nil => return true</span> <span id="L1359" class="LineNr">1359 </span> <span class="Delimiter">{</span> <span id="L1360" class="LineNr">1360 </span> compare a-nil?, <span class="Constant">0</span>/false @@ -1301,10 +1300,10 @@ if ('onhashchange' in window) { <span id="L1391" class="LineNr">1391 </span> <a href='evaluate.mu.html#L1189'>car</a> a, a-tmp-ah, trace <span id="L1392" class="LineNr">1392 </span> <a href='evaluate.mu.html#L1189'>car</a> b, b-tmp-ah, trace <span id="L1393" class="LineNr">1393 </span> <span class="Delimiter">{</span> -<span id="L1394" class="LineNr">1394 </span> <span class="PreProc">var</span> _a-tmp/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-tmp-ah +<span id="L1394" class="LineNr">1394 </span> <span class="PreProc">var</span> _a-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-tmp-ah <span id="L1395" class="LineNr">1395 </span> <span class="PreProc">var</span> a-tmp/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _a-tmp -<span id="L1396" class="LineNr">1396 </span> <span class="PreProc">var</span> b-tmp/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-tmp-ah -<span id="L1397" class="LineNr">1397 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> a-tmp, b-tmp, trace +<span id="L1396" class="LineNr">1396 </span> <span class="PreProc">var</span> b-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-tmp-ah +<span id="L1397" class="LineNr">1397 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> a-tmp, b-tmp, trace <span id="L1398" class="LineNr">1398 </span> compare result, <span class="Constant">0</span>/false <span id="L1399" class="LineNr">1399 </span> <span class="PreProc">break-if-!=</span> <span id="L1400" class="LineNr">1400 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -1314,53 +1313,53 @@ if ('onhashchange' in window) { <span id="L1404" class="LineNr">1404 </span> <span class="muComment"># recurse on cdrs</span> <span id="L1405" class="LineNr">1405 </span> <a href='evaluate.mu.html#L1217'>cdr</a> a, a-tmp-ah, trace <span id="L1406" class="LineNr">1406 </span> <a href='evaluate.mu.html#L1217'>cdr</a> b, b-tmp-ah, trace -<span id="L1407" class="LineNr">1407 </span> <span class="PreProc">var</span> _a-tmp/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-tmp-ah +<span id="L1407" class="LineNr">1407 </span> <span class="PreProc">var</span> _a-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-tmp-ah <span id="L1408" class="LineNr">1408 </span> <span class="PreProc">var</span> a-tmp/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _a-tmp -<span id="L1409" class="LineNr">1409 </span> <span class="PreProc">var</span> b-tmp/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-tmp-ah -<span id="L1410" class="LineNr">1410 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> a-tmp, b-tmp, trace +<span id="L1409" class="LineNr">1409 </span> <span class="PreProc">var</span> b-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-tmp-ah +<span id="L1410" class="LineNr">1410 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> a-tmp, b-tmp, trace <span id="L1411" class="LineNr">1411 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L1412" class="LineNr">1412 </span> <span class="PreProc">return</span> result <span id="L1413" class="LineNr">1413 </span><span class="Delimiter">}</span> <span id="L1414" class="LineNr">1414 </span> -<span id="L1415" class="LineNr">1415 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1415'>fn?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L1415" class="LineNr">1415 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1415'>fn?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1416" class="LineNr">1416 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x -<span id="L1417" class="LineNr">1417 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> +<span id="L1417" class="LineNr">1417 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> <span id="L1418" class="LineNr">1418 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol <span id="L1419" class="LineNr">1419 </span> <span class="Delimiter">{</span> <span id="L1420" class="LineNr">1420 </span> <span class="PreProc">break-if-=</span> <span id="L1421" class="LineNr">1421 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L1422" class="LineNr">1422 </span> <span class="Delimiter">}</span> -<span id="L1423" class="LineNr">1423 </span> <span class="PreProc">var</span> contents-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get x, text-data -<span id="L1424" class="LineNr">1424 </span> <span class="PreProc">var</span> contents/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah -<span id="L1425" class="LineNr">1425 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"fn"</span> +<span id="L1423" class="LineNr">1423 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data +<span id="L1424" class="LineNr">1424 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah +<span id="L1425" class="LineNr">1425 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"fn"</span> <span id="L1426" class="LineNr">1426 </span> <span class="PreProc">return</span> result <span id="L1427" class="LineNr">1427 </span><span class="Delimiter">}</span> <span id="L1428" class="LineNr">1428 </span> -<span id="L1429" class="LineNr">1429 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1429'>litfn?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L1429" class="LineNr">1429 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1429'>litfn?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1430" class="LineNr">1430 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x -<span id="L1431" class="LineNr">1431 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> +<span id="L1431" class="LineNr">1431 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> <span id="L1432" class="LineNr">1432 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol <span id="L1433" class="LineNr">1433 </span> <span class="Delimiter">{</span> <span id="L1434" class="LineNr">1434 </span> <span class="PreProc">break-if-=</span> <span id="L1435" class="LineNr">1435 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L1436" class="LineNr">1436 </span> <span class="Delimiter">}</span> -<span id="L1437" class="LineNr">1437 </span> <span class="PreProc">var</span> contents-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get x, text-data -<span id="L1438" class="LineNr">1438 </span> <span class="PreProc">var</span> contents/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah -<span id="L1439" class="LineNr">1439 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"litfn"</span> +<span id="L1437" class="LineNr">1437 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data +<span id="L1438" class="LineNr">1438 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah +<span id="L1439" class="LineNr">1439 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"litfn"</span> <span id="L1440" class="LineNr">1440 </span> <span class="PreProc">return</span> result <span id="L1441" class="LineNr">1441 </span><span class="Delimiter">}</span> <span id="L1442" class="LineNr">1442 </span> -<span id="L1443" class="LineNr">1443 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1443'>litmac?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L1443" class="LineNr">1443 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1443'>litmac?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1444" class="LineNr">1444 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x -<span id="L1445" class="LineNr">1445 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> +<span id="L1445" class="LineNr">1445 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> <span id="L1446" class="LineNr">1446 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol <span id="L1447" class="LineNr">1447 </span> <span class="Delimiter">{</span> <span id="L1448" class="LineNr">1448 </span> <span class="PreProc">break-if-=</span> <span id="L1449" class="LineNr">1449 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L1450" class="LineNr">1450 </span> <span class="Delimiter">}</span> -<span id="L1451" class="LineNr">1451 </span> <span class="PreProc">var</span> contents-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get x, text-data -<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> contents/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah -<span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"litmac"</span> +<span id="L1451" class="LineNr">1451 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data +<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah +<span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"litmac"</span> <span id="L1454" class="LineNr">1454 </span> <span class="PreProc">return</span> result <span id="L1455" class="LineNr">1455 </span><span class="Delimiter">}</span> <span id="L1456" class="LineNr">1456 </span> @@ -1395,11 +1394,11 @@ if ('onhashchange' in window) { <span id="L1485" class="LineNr">1485 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1486" class="LineNr">1486 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L1487" class="LineNr">1487 </span> <span class="muComment">#</span> -<span id="L1488" class="LineNr">1488 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1488" class="LineNr">1488 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1489" class="LineNr">1489 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1490" class="LineNr">1490 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1474'>test-evaluate-number</a>/0"</span> -<span id="L1491" class="LineNr">1491 </span> <span class="PreProc">var</span> result-value-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get result, number-data -<span id="L1492" class="LineNr">1492 </span> <span class="PreProc">var</span> result-value/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert *result-value-addr +<span id="L1491" class="LineNr">1491 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data +<span id="L1492" class="LineNr">1492 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr <span id="L1493" class="LineNr">1493 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1474'>test-evaluate-number</a>/1"</span> <span id="L1494" class="LineNr">1494 </span><span class="Delimiter">}</span> <span id="L1495" class="LineNr">1495 </span> @@ -1427,11 +1426,11 @@ if ('onhashchange' in window) { <span id="L1517" class="LineNr">1517 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L1518" class="LineNr">1518 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1519" class="LineNr">1519 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1520" class="LineNr">1520 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1520" class="LineNr">1520 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1521" class="LineNr">1521 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1522" class="LineNr">1522 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1496'>test-evaluate-symbol</a>/0"</span> -<span id="L1523" class="LineNr">1523 </span> <span class="PreProc">var</span> result-value-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get result, number-data -<span id="L1524" class="LineNr">1524 </span> <span class="PreProc">var</span> result-value/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert *result-value-addr +<span id="L1523" class="LineNr">1523 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data +<span id="L1524" class="LineNr">1524 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr <span id="L1525" class="LineNr">1525 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1496'>test-evaluate-symbol</a>/1"</span> <span id="L1526" class="LineNr">1526 </span><span class="Delimiter">}</span> <span id="L1527" class="LineNr">1527 </span> @@ -1452,10 +1451,10 @@ if ('onhashchange' in window) { <span id="L1542" class="LineNr">1542 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L1543" class="LineNr">1543 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1544" class="LineNr">1544 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1545" class="LineNr">1545 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1545" class="LineNr">1545 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1546" class="LineNr">1546 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1547" class="LineNr">1547 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">2</span>/symbol, <span class="Constant">"F - <a href='evaluate.mu.html#L1528'>test-evaluate-quote</a>/0"</span> -<span id="L1548" class="LineNr">1548 </span> <span class="PreProc">var</span> sym?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> result, <span class="Constant">"a"</span> +<span id="L1548" class="LineNr">1548 </span> <span class="PreProc">var</span> sym?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> result, <span class="Constant">"a"</span> <span id="L1549" class="LineNr">1549 </span> <a href='../502test.mu.html#L19'>check</a> sym?, <span class="Constant">"F - <a href='evaluate.mu.html#L1528'>test-evaluate-quote</a>/1"</span> <span id="L1550" class="LineNr">1550 </span><span class="Delimiter">}</span> <span id="L1551" class="LineNr">1551 </span> @@ -1477,10 +1476,10 @@ if ('onhashchange' in window) { <span id="L1567" class="LineNr">1567 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1568" class="LineNr">1568 </span> <a href='evaluate.mu.html#L11'>evaluate</a> add-ah, tmp-ah, *nil-ah, globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L1569" class="LineNr">1569 </span> <span class="muComment">#</span> -<span id="L1570" class="LineNr">1570 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1570" class="LineNr">1570 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1571" class="LineNr">1571 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1572" class="LineNr">1572 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">4</span>/primitive-function, <span class="Constant">"F - <a href='evaluate.mu.html#L1552'>test-evaluate-primitive-function</a>/0"</span> -<span id="L1573" class="LineNr">1573 </span> <span class="PreProc">var</span> result-value/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get result, index-data +<span id="L1573" class="LineNr">1573 </span> <span class="PreProc">var</span> result-value/eax: (addr int) <span class="Special"><-</span> get result, index-data <span id="L1574" class="LineNr">1574 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-value, <span class="Constant">1</span>/add, <span class="Constant">"F - <a href='evaluate.mu.html#L1552'>test-evaluate-primitive-function</a>/1"</span> <span id="L1575" class="LineNr">1575 </span><span class="Delimiter">}</span> <span id="L1576" class="LineNr">1576 </span> @@ -1513,11 +1512,11 @@ if ('onhashchange' in window) { <span id="L1603" class="LineNr">1603 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, globals, t, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L1604" class="LineNr">1604 </span><span class="CommentedCode">#? dump-trace t</span> <span id="L1605" class="LineNr">1605 </span> <span class="muComment">#</span> -<span id="L1606" class="LineNr">1606 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1606" class="LineNr">1606 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1607" class="LineNr">1607 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1608" class="LineNr">1608 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1577'>test-evaluate-primitive-function-call</a>/0"</span> -<span id="L1609" class="LineNr">1609 </span> <span class="PreProc">var</span> result-value-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get result, number-data -<span id="L1610" class="LineNr">1610 </span> <span class="PreProc">var</span> result-value/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert *result-value-addr +<span id="L1609" class="LineNr">1609 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data +<span id="L1610" class="LineNr">1610 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr <span id="L1611" class="LineNr">1611 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">2</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1577'>test-evaluate-primitive-function-call</a>/1"</span> <span id="L1612" class="LineNr">1612 </span><span class="Delimiter">}</span> <span id="L1613" class="LineNr">1613 </span> @@ -1539,10 +1538,10 @@ if ('onhashchange' in window) { <span id="L1629" class="LineNr">1629 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L1630" class="LineNr">1630 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1631" class="LineNr">1631 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp2-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1632" class="LineNr">1632 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp2-ah +<span id="L1632" class="LineNr">1632 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp2-ah <span id="L1633" class="LineNr">1633 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1634" class="LineNr">1634 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">2</span>/symbol, <span class="Constant">"F - <a href='evaluate.mu.html#L1614'>test-evaluate-backquote</a>/0"</span> -<span id="L1635" class="LineNr">1635 </span> <span class="PreProc">var</span> sym?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> result, <span class="Constant">"a"</span> +<span id="L1635" class="LineNr">1635 </span> <span class="PreProc">var</span> sym?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> result, <span class="Constant">"a"</span> <span id="L1636" class="LineNr">1636 </span> <a href='../502test.mu.html#L19'>check</a> sym?, <span class="Constant">"F - <a href='evaluate.mu.html#L1614'>test-evaluate-backquote</a>/1"</span> <span id="L1637" class="LineNr">1637 </span><span class="Delimiter">}</span> <span id="L1638" class="LineNr">1638 </span> @@ -1551,10 +1550,10 @@ if ('onhashchange' in window) { <span id="L1641" class="LineNr">1641 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen _in-ah</span> <span id="L1642" class="LineNr">1642 </span> <a href='../315stack-debug.subx.html#L5'>check-stack</a> <span id="L1643" class="LineNr">1643 </span> <span class="Delimiter">{</span> -<span id="L1644" class="LineNr">1644 </span> <span class="PreProc">var</span> inner-screen-var/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy inner-screen-var +<span id="L1644" class="LineNr">1644 </span> <span class="PreProc">var</span> inner-screen-var/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy inner-screen-var <span id="L1645" class="LineNr">1645 </span> compare inner-screen-var, <span class="Constant">0</span> <span id="L1646" class="LineNr">1646 </span> <span class="PreProc">break-if-=</span> -<span id="L1647" class="LineNr">1647 </span> <span class="PreProc">var</span> inner-screen-var-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *inner-screen-var +<span id="L1647" class="LineNr">1647 </span> <span class="PreProc">var</span> inner-screen-var-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *inner-screen-var <span id="L1648" class="LineNr">1648 </span> compare inner-screen-var-addr, <span class="Constant">0</span> <span id="L1649" class="LineNr">1649 </span> <span class="PreProc">break-if-=</span> <span id="L1650" class="LineNr">1650 </span> <span class="muComment"># if inner-screen-var exists, we're probably not in a test</span> @@ -1562,16 +1561,16 @@ if ('onhashchange' in window) { <span id="L1652" class="LineNr">1652 </span> <span class="Delimiter">}</span> <span id="L1653" class="LineNr">1653 </span> <span class="muComment"># errors? skip</span> <span id="L1654" class="LineNr">1654 </span> <span class="Delimiter">{</span> -<span id="L1655" class="LineNr">1655 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L1655" class="LineNr">1655 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L1656" class="LineNr">1656 </span> compare error?, <span class="Constant">0</span>/false <span id="L1657" class="LineNr">1657 </span> <span class="PreProc">break-if-=</span> <span id="L1658" class="LineNr">1658 </span> <span class="PreProc">return</span> <span id="L1659" class="LineNr">1659 </span> <span class="Delimiter">}</span> <span id="L1660" class="LineNr">1660 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L1661" class="LineNr">1661 </span> <span class="PreProc">var</span> in-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in-ah -<span id="L1662" class="LineNr">1662 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah +<span id="L1662" class="LineNr">1662 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah <span id="L1663" class="LineNr">1663 </span> <span class="Delimiter">{</span> -<span id="L1664" class="LineNr">1664 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in +<span id="L1664" class="LineNr">1664 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in <span id="L1665" class="LineNr">1665 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1666" class="LineNr">1666 </span> <span class="PreProc">break-if-=</span> <span id="L1667" class="LineNr">1667 </span> <span class="muComment"># nil is a literal</span> @@ -1594,18 +1593,18 @@ if ('onhashchange' in window) { <span id="L1684" class="LineNr">1684 </span> <span class="muComment"># 'in' is a pair</span> <span id="L1685" class="LineNr">1685 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"()"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L1686" class="LineNr">1686 </span> <span class="PreProc">var</span> in-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in-ah -<span id="L1687" class="LineNr">1687 </span> <span class="PreProc">var</span> _in/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah +<span id="L1687" class="LineNr">1687 </span> <span class="PreProc">var</span> _in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah <span id="L1688" class="LineNr">1688 </span> <span class="PreProc">var</span> in/<span class="muRegEbx">ebx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in <span id="L1689" class="LineNr">1689 </span> <span class="PreProc">var</span> in-left-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L1690" class="LineNr">1690 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"10"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L1691" class="LineNr">1691 </span> <span class="muComment"># check for unquote</span> <span id="L1692" class="LineNr">1692 </span> $evaluate-backquote:unquote: <span class="Delimiter">{</span> -<span id="L1693" class="LineNr">1693 </span> <span class="PreProc">var</span> in-left/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-ah -<span id="L1694" class="LineNr">1694 </span> <span class="PreProc">var</span> unquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> in-left, <span class="Constant">","</span> +<span id="L1693" class="LineNr">1693 </span> <span class="PreProc">var</span> in-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-ah +<span id="L1694" class="LineNr">1694 </span> <span class="PreProc">var</span> unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> in-left, <span class="Constant">","</span> <span id="L1695" class="LineNr">1695 </span> compare unquote?, <span class="Constant">0</span>/false <span id="L1696" class="LineNr">1696 </span> <span class="PreProc">break-if-=</span> <span id="L1697" class="LineNr">1697 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"unquote"</span> -<span id="L1698" class="LineNr">1698 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L1698" class="LineNr">1698 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right <span id="L1699" class="LineNr">1699 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">","</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L1700" class="LineNr">1700 </span> <a href='evaluate.mu.html#L11'>evaluate</a> rest-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L1701" class="LineNr">1701 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">",)"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg @@ -1617,11 +1616,11 @@ if ('onhashchange' in window) { <span id="L1707" class="LineNr">1707 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah <span id="L1708" class="LineNr">1708 </span> $evaluate-backquote:unquote-splice: <span class="Delimiter">{</span> <span id="L1709" class="LineNr">1709 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen in-left-ah</span> -<span id="L1710" class="LineNr">1710 </span> <span class="PreProc">var</span> in-left/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-ah +<span id="L1710" class="LineNr">1710 </span> <span class="PreProc">var</span> in-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-ah <span id="L1711" class="LineNr">1711 </span> <span class="Delimiter">{</span> <span id="L1712" class="LineNr">1712 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"12"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L1713" class="LineNr">1713 </span> <span class="Delimiter">{</span> -<span id="L1714" class="LineNr">1714 </span> <span class="PreProc">var</span> in-left-is-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in-left +<span id="L1714" class="LineNr">1714 </span> <span class="PreProc">var</span> in-left-is-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in-left <span id="L1715" class="LineNr">1715 </span> compare in-left-is-nil?, <span class="Constant">0</span>/false <span id="L1716" class="LineNr">1716 </span> <span class="Delimiter">}</span> <span id="L1717" class="LineNr">1717 </span> <span class="PreProc">break-if-!=</span> $evaluate-backquote:unquote-splice @@ -1629,23 +1628,23 @@ if ('onhashchange' in window) { <span id="L1719" class="LineNr">1719 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"13"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L1720" class="LineNr">1720 </span> compare *in-left-type, <span class="Constant">0</span>/pair <span id="L1721" class="LineNr">1721 </span> <span class="PreProc">break-if-!=</span> $evaluate-backquote:unquote-splice -<span id="L1722" class="LineNr">1722 </span> <span class="PreProc">var</span> in-left-left-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in-left, left +<span id="L1722" class="LineNr">1722 </span> <span class="PreProc">var</span> in-left-left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in-left, left <span id="L1723" class="LineNr">1723 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"14"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1724" class="LineNr">1724 </span> <span class="PreProc">var</span> in-left-left/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-left-ah +<span id="L1724" class="LineNr">1724 </span> <span class="PreProc">var</span> in-left-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-left-ah <span id="L1725" class="LineNr">1725 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"15"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L1726" class="LineNr">1726 </span> <span class="PreProc">var</span> in-left-left-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in-left-left, <span class="PreProc">type</span> -<span id="L1727" class="LineNr">1727 </span> <span class="PreProc">var</span> left-is-unquote-splice?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> in-left-left, <span class="Constant">",@"</span> +<span id="L1727" class="LineNr">1727 </span> <span class="PreProc">var</span> left-is-unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> in-left-left, <span class="Constant">",@"</span> <span id="L1728" class="LineNr">1728 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"16"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L1729" class="LineNr">1729 </span> compare left-is-unquote-splice?, <span class="Constant">0</span>/false <span id="L1730" class="LineNr">1730 </span> <span class="Delimiter">}</span> <span id="L1731" class="LineNr">1731 </span> <span class="PreProc">break-if-=</span> <span id="L1732" class="LineNr">1732 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"17"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L1733" class="LineNr">1733 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"unquote-splice"</span> -<span id="L1734" class="LineNr">1734 </span> <span class="PreProc">var</span> in-unquote-payload-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in-left, right +<span id="L1734" class="LineNr">1734 </span> <span class="PreProc">var</span> in-unquote-payload-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in-left, right <span id="L1735" class="LineNr">1735 </span> <a href='evaluate.mu.html#L11'>evaluate</a> in-unquote-payload-ah, out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L1736" class="LineNr">1736 </span> <span class="muComment"># errors? skip</span> <span id="L1737" class="LineNr">1737 </span> <span class="Delimiter">{</span> -<span id="L1738" class="LineNr">1738 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L1738" class="LineNr">1738 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L1739" class="LineNr">1739 </span> compare error?, <span class="Constant">0</span>/false <span id="L1740" class="LineNr">1740 </span> <span class="PreProc">break-if-=</span> <span id="L1741" class="LineNr">1741 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -1653,9 +1652,9 @@ if ('onhashchange' in window) { <span id="L1743" class="LineNr">1743 </span> <span class="Delimiter">}</span> <span id="L1744" class="LineNr">1744 </span> <span class="muComment"># while (*out-ah != null) out-ah = cdr(out-ah)</span> <span id="L1745" class="LineNr">1745 </span> <span class="Delimiter">{</span> -<span id="L1746" class="LineNr">1746 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L1746" class="LineNr">1746 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L1747" class="LineNr">1747 </span> <span class="Delimiter">{</span> -<span id="L1748" class="LineNr">1748 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out +<span id="L1748" class="LineNr">1748 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out <span id="L1749" class="LineNr">1749 </span> compare done?, <span class="Constant">0</span>/false <span id="L1750" class="LineNr">1750 </span> <span class="Delimiter">}</span> <span id="L1751" class="LineNr">1751 </span> <span class="PreProc">break-if-!=</span> @@ -1675,14 +1674,14 @@ if ('onhashchange' in window) { <span id="L1765" class="LineNr">1765 </span> <a href='cell.mu.html#L102'>allocate-pair</a> out-ah <span id="L1766" class="LineNr">1766 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"20"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L1767" class="LineNr">1767 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen out-ah</span> -<span id="L1768" class="LineNr">1768 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L1768" class="LineNr">1768 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah <span id="L1769" class="LineNr">1769 </span> <span class="PreProc">var</span> out-left-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out, left <span id="L1770" class="LineNr">1770 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`(l"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L1771" class="LineNr">1771 </span> <a href='evaluate.mu.html#L1639'>evaluate-backquote</a> in-left-ah, out-left-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L1772" class="LineNr">1772 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`r)"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L1773" class="LineNr">1773 </span> <span class="muComment"># errors? skip</span> <span id="L1774" class="LineNr">1774 </span> <span class="Delimiter">{</span> -<span id="L1775" class="LineNr">1775 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L1775" class="LineNr">1775 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L1776" class="LineNr">1776 </span> compare error?, <span class="Constant">0</span>/false <span id="L1777" class="LineNr">1777 </span> <span class="PreProc">break-if-=</span> <span id="L1778" class="LineNr">1778 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -1711,7 +1710,7 @@ if ('onhashchange' in window) { <span id="L1801" class="LineNr">1801 </span> <span class="PreProc">var</span> b-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-storage <span id="L1802" class="LineNr">1802 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> <span id="L1803" class="LineNr">1803 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1804" class="LineNr">1804 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1804" class="LineNr">1804 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage <span id="L1805" class="LineNr">1805 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *b-ah, *nil-ah <span id="L1806" class="LineNr">1806 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *a-ah, *tmp-ah <span id="L1807" class="LineNr">1807 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *backquote-ah, *tmp-ah @@ -1721,58 +1720,58 @@ if ('onhashchange' in window) { <span id="L1811" class="LineNr">1811 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1812" class="LineNr">1812 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L1813" class="LineNr">1813 </span> <span class="muComment"># result is (a b)</span> -<span id="L1814" class="LineNr">1814 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1814" class="LineNr">1814 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1815" class="LineNr">1815 </span> <span class="Delimiter">{</span> -<span id="L1816" class="LineNr">1816 </span> <span class="PreProc">var</span> result-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1816" class="LineNr">1816 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1817" class="LineNr">1817 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a>/0"</span> <span id="L1818" class="LineNr">1818 </span> <span class="Delimiter">}</span> <span id="L1819" class="LineNr">1819 </span> <span class="Delimiter">{</span> -<span id="L1820" class="LineNr">1820 </span> <span class="PreProc">var</span> a1-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left -<span id="L1821" class="LineNr">1821 </span> <span class="PreProc">var</span> a1/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah -<span id="L1822" class="LineNr">1822 </span> <span class="PreProc">var</span> check1/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> +<span id="L1820" class="LineNr">1820 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left +<span id="L1821" class="LineNr">1821 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah +<span id="L1822" class="LineNr">1822 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> <span id="L1823" class="LineNr">1823 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a>/1"</span> <span id="L1824" class="LineNr">1824 </span> <span class="Delimiter">}</span> -<span id="L1825" class="LineNr">1825 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right -<span id="L1826" class="LineNr">1826 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1825" class="LineNr">1825 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right +<span id="L1826" class="LineNr">1826 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L1827" class="LineNr">1827 </span> <span class="Delimiter">{</span> -<span id="L1828" class="LineNr">1828 </span> <span class="PreProc">var</span> a2-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1829" class="LineNr">1829 </span> <span class="PreProc">var</span> a2/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah -<span id="L1830" class="LineNr">1830 </span> <span class="PreProc">var</span> check2/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a2, <span class="Constant">"b"</span> +<span id="L1828" class="LineNr">1828 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1829" class="LineNr">1829 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah +<span id="L1830" class="LineNr">1830 </span> <span class="PreProc">var</span> check2/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a2, <span class="Constant">"b"</span> <span id="L1831" class="LineNr">1831 </span> <a href='../502test.mu.html#L19'>check</a> check2, <span class="Constant">"F - <a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a>/2"</span> <span id="L1832" class="LineNr">1832 </span> <span class="Delimiter">}</span> -<span id="L1833" class="LineNr">1833 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1834" class="LineNr">1834 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1835" class="LineNr">1835 </span> <span class="PreProc">var</span> check3/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L1833" class="LineNr">1833 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1834" class="LineNr">1834 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1835" class="LineNr">1835 </span> <span class="PreProc">var</span> check3/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L1836" class="LineNr">1836 </span> <a href='../502test.mu.html#L19'>check</a> check3, <span class="Constant">"F - <a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a>/3"</span> <span id="L1837" class="LineNr">1837 </span><span class="Delimiter">}</span> <span id="L1838" class="LineNr">1838 </span> <span id="L1839" class="LineNr">1839 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a></span> <span class="Delimiter">{</span> <span id="L1840" class="LineNr">1840 </span> <span class="PreProc">var</span> nil-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1841" class="LineNr">1841 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h +<span id="L1841" class="LineNr">1841 </span> <span class="PreProc">var</span> nil-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h <span id="L1842" class="LineNr">1842 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah <span id="L1843" class="LineNr">1843 </span> <span class="PreProc">var</span> backquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1844" class="LineNr">1844 </span> <span class="PreProc">var</span> backquote-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-h +<span id="L1844" class="LineNr">1844 </span> <span class="PreProc">var</span> backquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-h <span id="L1845" class="LineNr">1845 </span> <a href='cell.mu.html#L39'>new-symbol</a> backquote-ah, <span class="Constant">"`"</span> <span id="L1846" class="LineNr">1846 </span> <span class="PreProc">var</span> unquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1847" class="LineNr">1847 </span> <span class="PreProc">var</span> unquote-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address unquote-h +<span id="L1847" class="LineNr">1847 </span> <span class="PreProc">var</span> unquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address unquote-h <span id="L1848" class="LineNr">1848 </span> <a href='cell.mu.html#L39'>new-symbol</a> unquote-ah, <span class="Constant">","</span> <span id="L1849" class="LineNr">1849 </span> <span class="PreProc">var</span> a-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1850" class="LineNr">1850 </span> <span class="PreProc">var</span> a-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-h +<span id="L1850" class="LineNr">1850 </span> <span class="PreProc">var</span> a-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-h <span id="L1851" class="LineNr">1851 </span> <a href='cell.mu.html#L39'>new-symbol</a> a-ah, <span class="Constant">"a"</span> <span id="L1852" class="LineNr">1852 </span> <span class="PreProc">var</span> b-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1853" class="LineNr">1853 </span> <span class="PreProc">var</span> b-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-h +<span id="L1853" class="LineNr">1853 </span> <span class="PreProc">var</span> b-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-h <span id="L1854" class="LineNr">1854 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> <span id="L1855" class="LineNr">1855 </span> <span class="muComment"># env = ((b . 3))</span> <span id="L1856" class="LineNr">1856 </span> <span class="PreProc">var</span> val-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1857" class="LineNr">1857 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-h +<span id="L1857" class="LineNr">1857 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-h <span id="L1858" class="LineNr">1858 </span> <a href='cell.mu.html#L84'>new-integer</a> val-ah, <span class="Constant">3</span> <span id="L1859" class="LineNr">1859 </span> <span class="PreProc">var</span> env-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1860" class="LineNr">1860 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h +<span id="L1860" class="LineNr">1860 </span> <span class="PreProc">var</span> env-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h <span id="L1861" class="LineNr">1861 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, b-h, val-h <span id="L1862" class="LineNr">1862 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, env-h, nil-h <span id="L1863" class="LineNr">1863 </span> <span class="muComment"># input is `(a ,b)</span> <span id="L1864" class="LineNr">1864 </span> <span class="PreProc">var</span> tmp-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1865" class="LineNr">1865 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h +<span id="L1865" class="LineNr">1865 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h <span id="L1866" class="LineNr">1866 </span> <span class="muComment"># tmp = cons(unquote, b)</span> <span id="L1867" class="LineNr">1867 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, unquote-h, b-h <span id="L1868" class="LineNr">1868 </span> <span class="muComment"># tmp = cons(tmp, nil)</span> @@ -1787,61 +1786,61 @@ if ('onhashchange' in window) { <span id="L1877" class="LineNr">1877 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L1878" class="LineNr">1878 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, env-h, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L1879" class="LineNr">1879 </span> <span class="muComment"># result is (a 3)</span> -<span id="L1880" class="LineNr">1880 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1880" class="LineNr">1880 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1881" class="LineNr">1881 </span> <span class="Delimiter">{</span> -<span id="L1882" class="LineNr">1882 </span> <span class="PreProc">var</span> result-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1882" class="LineNr">1882 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1883" class="LineNr">1883 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a>/0"</span> <span id="L1884" class="LineNr">1884 </span> <span class="Delimiter">}</span> <span id="L1885" class="LineNr">1885 </span> <span class="Delimiter">{</span> -<span id="L1886" class="LineNr">1886 </span> <span class="PreProc">var</span> a1-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left -<span id="L1887" class="LineNr">1887 </span> <span class="PreProc">var</span> a1/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah -<span id="L1888" class="LineNr">1888 </span> <span class="PreProc">var</span> check1/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> +<span id="L1886" class="LineNr">1886 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left +<span id="L1887" class="LineNr">1887 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah +<span id="L1888" class="LineNr">1888 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> <span id="L1889" class="LineNr">1889 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a>/1"</span> <span id="L1890" class="LineNr">1890 </span> <span class="Delimiter">}</span> -<span id="L1891" class="LineNr">1891 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right -<span id="L1892" class="LineNr">1892 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1891" class="LineNr">1891 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right +<span id="L1892" class="LineNr">1892 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L1893" class="LineNr">1893 </span> <span class="Delimiter">{</span> -<span id="L1894" class="LineNr">1894 </span> <span class="PreProc">var</span> a2-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1895" class="LineNr">1895 </span> <span class="PreProc">var</span> a2/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah -<span id="L1896" class="LineNr">1896 </span> <span class="PreProc">var</span> a2-value-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get a2, number-data -<span id="L1897" class="LineNr">1897 </span> <span class="PreProc">var</span> a2-value/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert *a2-value-addr +<span id="L1894" class="LineNr">1894 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1895" class="LineNr">1895 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah +<span id="L1896" class="LineNr">1896 </span> <span class="PreProc">var</span> a2-value-addr/eax: (addr float) <span class="Special"><-</span> get a2, number-data +<span id="L1897" class="LineNr">1897 </span> <span class="PreProc">var</span> a2-value/eax: int <span class="Special"><-</span> convert *a2-value-addr <span id="L1898" class="LineNr">1898 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> a2-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a>/2"</span> <span id="L1899" class="LineNr">1899 </span> <span class="Delimiter">}</span> -<span id="L1900" class="LineNr">1900 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1901" class="LineNr">1901 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1902" class="LineNr">1902 </span> <span class="PreProc">var</span> check3/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L1900" class="LineNr">1900 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1901" class="LineNr">1901 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1902" class="LineNr">1902 </span> <span class="PreProc">var</span> check3/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L1903" class="LineNr">1903 </span> <a href='../502test.mu.html#L19'>check</a> check3, <span class="Constant">"F - <a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a>/3"</span> <span id="L1904" class="LineNr">1904 </span><span class="Delimiter">}</span> <span id="L1905" class="LineNr">1905 </span> <span id="L1906" class="LineNr">1906 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a></span> <span class="Delimiter">{</span> <span id="L1907" class="LineNr">1907 </span> <span class="PreProc">var</span> nil-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1908" class="LineNr">1908 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h +<span id="L1908" class="LineNr">1908 </span> <span class="PreProc">var</span> nil-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h <span id="L1909" class="LineNr">1909 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah <span id="L1910" class="LineNr">1910 </span> <span class="PreProc">var</span> backquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1911" class="LineNr">1911 </span> <span class="PreProc">var</span> backquote-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-h +<span id="L1911" class="LineNr">1911 </span> <span class="PreProc">var</span> backquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-h <span id="L1912" class="LineNr">1912 </span> <a href='cell.mu.html#L39'>new-symbol</a> backquote-ah, <span class="Constant">"`"</span> <span id="L1913" class="LineNr">1913 </span> <span class="PreProc">var</span> unquote-splice-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1914" class="LineNr">1914 </span> <span class="PreProc">var</span> unquote-splice-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address unquote-splice-h +<span id="L1914" class="LineNr">1914 </span> <span class="PreProc">var</span> unquote-splice-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address unquote-splice-h <span id="L1915" class="LineNr">1915 </span> <a href='cell.mu.html#L39'>new-symbol</a> unquote-splice-ah, <span class="Constant">",@"</span> <span id="L1916" class="LineNr">1916 </span> <span class="PreProc">var</span> a-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1917" class="LineNr">1917 </span> <span class="PreProc">var</span> a-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-h +<span id="L1917" class="LineNr">1917 </span> <span class="PreProc">var</span> a-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-h <span id="L1918" class="LineNr">1918 </span> <a href='cell.mu.html#L39'>new-symbol</a> a-ah, <span class="Constant">"a"</span> <span id="L1919" class="LineNr">1919 </span> <span class="PreProc">var</span> b-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1920" class="LineNr">1920 </span> <span class="PreProc">var</span> b-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-h +<span id="L1920" class="LineNr">1920 </span> <span class="PreProc">var</span> b-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-h <span id="L1921" class="LineNr">1921 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> <span id="L1922" class="LineNr">1922 </span> <span class="muComment"># env = ((b . (a 3)))</span> <span id="L1923" class="LineNr">1923 </span> <span class="PreProc">var</span> val-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1924" class="LineNr">1924 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-h +<span id="L1924" class="LineNr">1924 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-h <span id="L1925" class="LineNr">1925 </span> <a href='cell.mu.html#L84'>new-integer</a> val-ah, <span class="Constant">3</span> <span id="L1926" class="LineNr">1926 </span> <a href='cell.mu.html#L116'>new-pair</a> val-ah, val-h, nil-h <span id="L1927" class="LineNr">1927 </span> <a href='cell.mu.html#L116'>new-pair</a> val-ah, a-h, val-h <span id="L1928" class="LineNr">1928 </span> <span class="PreProc">var</span> env-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1929" class="LineNr">1929 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h +<span id="L1929" class="LineNr">1929 </span> <span class="PreProc">var</span> env-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h <span id="L1930" class="LineNr">1930 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, b-h, val-h <span id="L1931" class="LineNr">1931 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, env-h, nil-h <span id="L1932" class="LineNr">1932 </span> <span class="muComment"># input is `(a ,@b b)</span> <span id="L1933" class="LineNr">1933 </span> <span class="PreProc">var</span> tmp-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1934" class="LineNr">1934 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h +<span id="L1934" class="LineNr">1934 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h <span id="L1935" class="LineNr">1935 </span> <span class="muComment"># tmp = cons(b, nil)</span> <span id="L1936" class="LineNr">1936 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, b-h, nil-h <span id="L1937" class="LineNr">1937 </span> <span class="muComment"># tmp2 = cons(unquote-splice, b)</span> @@ -1862,45 +1861,45 @@ if ('onhashchange' in window) { <span id="L1952" class="LineNr">1952 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, env-h, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L1953" class="LineNr">1953 </span> <span class="muComment"># result is (a a 3 b)</span> <span id="L1954" class="LineNr">1954 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen tmp-ah</span> -<span id="L1955" class="LineNr">1955 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1955" class="LineNr">1955 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1956" class="LineNr">1956 </span> <span class="Delimiter">{</span> -<span id="L1957" class="LineNr">1957 </span> <span class="PreProc">var</span> result-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1957" class="LineNr">1957 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> <span id="L1958" class="LineNr">1958 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/0"</span> <span id="L1959" class="LineNr">1959 </span> <span class="Delimiter">}</span> <span id="L1960" class="LineNr">1960 </span> <span class="Delimiter">{</span> -<span id="L1961" class="LineNr">1961 </span> <span class="PreProc">var</span> a1-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left -<span id="L1962" class="LineNr">1962 </span> <span class="PreProc">var</span> a1/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah -<span id="L1963" class="LineNr">1963 </span> <span class="PreProc">var</span> check1/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> +<span id="L1961" class="LineNr">1961 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left +<span id="L1962" class="LineNr">1962 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah +<span id="L1963" class="LineNr">1963 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> <span id="L1964" class="LineNr">1964 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/1"</span> <span id="L1965" class="LineNr">1965 </span> <span class="Delimiter">}</span> -<span id="L1966" class="LineNr">1966 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right -<span id="L1967" class="LineNr">1967 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1966" class="LineNr">1966 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right +<span id="L1967" class="LineNr">1967 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L1968" class="LineNr">1968 </span> <span class="Delimiter">{</span> -<span id="L1969" class="LineNr">1969 </span> <span class="PreProc">var</span> a2-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1970" class="LineNr">1970 </span> <span class="PreProc">var</span> a2/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah -<span id="L1971" class="LineNr">1971 </span> <span class="PreProc">var</span> check2/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a2, <span class="Constant">"a"</span> +<span id="L1969" class="LineNr">1969 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1970" class="LineNr">1970 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah +<span id="L1971" class="LineNr">1971 </span> <span class="PreProc">var</span> check2/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a2, <span class="Constant">"a"</span> <span id="L1972" class="LineNr">1972 </span> <a href='../502test.mu.html#L19'>check</a> check2, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/2"</span> <span id="L1973" class="LineNr">1973 </span> <span class="Delimiter">}</span> -<span id="L1974" class="LineNr">1974 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1975" class="LineNr">1975 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1974" class="LineNr">1974 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1975" class="LineNr">1975 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L1976" class="LineNr">1976 </span> <span class="Delimiter">{</span> -<span id="L1977" class="LineNr">1977 </span> <span class="PreProc">var</span> a3-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1978" class="LineNr">1978 </span> <span class="PreProc">var</span> a3/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a3-ah -<span id="L1979" class="LineNr">1979 </span> <span class="PreProc">var</span> a3-value-addr/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get a3, number-data -<span id="L1980" class="LineNr">1980 </span> <span class="PreProc">var</span> a3-value/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert *a3-value-addr +<span id="L1977" class="LineNr">1977 </span> <span class="PreProc">var</span> a3-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1978" class="LineNr">1978 </span> <span class="PreProc">var</span> a3/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a3-ah +<span id="L1979" class="LineNr">1979 </span> <span class="PreProc">var</span> a3-value-addr/eax: (addr float) <span class="Special"><-</span> get a3, number-data +<span id="L1980" class="LineNr">1980 </span> <span class="PreProc">var</span> a3-value/eax: int <span class="Special"><-</span> convert *a3-value-addr <span id="L1981" class="LineNr">1981 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> a3-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/3"</span> <span id="L1982" class="LineNr">1982 </span> <span class="Delimiter">}</span> -<span id="L1983" class="LineNr">1983 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1984" class="LineNr">1984 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1983" class="LineNr">1983 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1984" class="LineNr">1984 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L1985" class="LineNr">1985 </span> <span class="Delimiter">{</span> -<span id="L1986" class="LineNr">1986 </span> <span class="PreProc">var</span> a4-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1987" class="LineNr">1987 </span> <span class="PreProc">var</span> a4/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a4-ah -<span id="L1988" class="LineNr">1988 </span> <span class="PreProc">var</span> check4/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a4, <span class="Constant">"b"</span> +<span id="L1986" class="LineNr">1986 </span> <span class="PreProc">var</span> a4-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1987" class="LineNr">1987 </span> <span class="PreProc">var</span> a4/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a4-ah +<span id="L1988" class="LineNr">1988 </span> <span class="PreProc">var</span> check4/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a4, <span class="Constant">"b"</span> <span id="L1989" class="LineNr">1989 </span> <a href='../502test.mu.html#L19'>check</a> check4, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/4"</span> <span id="L1990" class="LineNr">1990 </span> <span class="Delimiter">}</span> -<span id="L1991" class="LineNr">1991 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1992" class="LineNr">1992 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1993" class="LineNr">1993 </span> <span class="PreProc">var</span> check5/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L1991" class="LineNr">1991 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1992" class="LineNr">1992 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1993" class="LineNr">1993 </span> <span class="PreProc">var</span> check5/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L1994" class="LineNr">1994 </span> <a href='../502test.mu.html#L19'>check</a> check5, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/5"</span> <span id="L1995" class="LineNr">1995 </span><span class="Delimiter">}</span> </pre> diff --git a/html/shell/gap-buffer.mu.html b/html/shell/gap-buffer.mu.html index d869bae4..ea3d7bd9 100644 --- a/html/shell/gap-buffer.mu.html +++ b/html/shell/gap-buffer.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -75,42 +74,42 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr"> 10 </span> <span id="L11" class="LineNr"> 11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), capacity: int <span class="Delimiter">{</span> <span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L14" class="LineNr"> 14 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> left, capacity -<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L16" class="LineNr"> 16 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> right, capacity <span id="L17" class="LineNr"> 17 </span><span class="Delimiter">}</span> <span id="L18" class="LineNr"> 18 </span> <span id="L19" class="LineNr"> 19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L19'>clear-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L22" class="LineNr"> 22 </span> <a href='grapheme-stack.mu.html#L16'>clear-grapheme-stack</a> left -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L24" class="LineNr"> 24 </span> <a href='grapheme-stack.mu.html#L16'>clear-grapheme-stack</a> right <span id="L25" class="LineNr"> 25 </span><span class="Delimiter">}</span> <span id="L26" class="LineNr"> 26 </span> -<span id="L27" class="LineNr"> 27 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L27'>gap-buffer-empty?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L27" class="LineNr"> 27 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L27'>gap-buffer-empty?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L29" class="LineNr"> 29 </span> <span class="muComment"># if !empty?(left) return false</span> <span id="L30" class="LineNr"> 30 </span> <span class="Delimiter">{</span> -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left <span id="L33" class="LineNr"> 33 </span> compare result, <span class="Constant">0</span>/false <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">break-if-!=</span> <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L36" class="LineNr"> 36 </span> <span class="Delimiter">}</span> <span id="L37" class="LineNr"> 37 </span> <span class="muComment"># return empty?(right)</span> -<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">return</span> result <span id="L41" class="LineNr"> 41 </span><span class="Delimiter">}</span> <span id="L42" class="LineNr"> 42 </span> <span id="L43" class="LineNr"> 43 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L43'>gap-buffer-capacity</a></span> _gap: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _gap -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, left -<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> left-data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get left, data -<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> left-data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-data-ah -<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> length left-data +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, left +<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> left-data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get left, data +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> left-data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-data-ah +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> length left-data <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">return</span> result <span id="L50" class="LineNr"> 50 </span><span class="Delimiter">}</span> <span id="L51" class="LineNr"> 51 </span> @@ -121,10 +120,10 @@ if ('onhashchange' in window) { <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> input-stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address input-stream-storage <span id="L57" class="LineNr"> 57 </span> <a href='../108write.subx.html#L11'>write</a> input-stream, keys <span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">{</span> -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> input-stream +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> input-stream <span id="L60" class="LineNr"> 60 </span> compare done?, <span class="Constant">0</span>/false <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">break-if-!=</span> -<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> input-stream +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> input-stream <span id="L63" class="LineNr"> 63 </span> <a href='gap-buffer.mu.html#L441'>add-grapheme-at-gap</a> self, g <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">loop</span> <span id="L65" class="LineNr"> 65 </span> <span class="Delimiter">}</span> @@ -133,13 +132,13 @@ if ('onhashchange' in window) { <span id="L68" class="LineNr"> 68 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), in: (addr stream byte) <span class="Delimiter">{</span> <span id="L69" class="LineNr"> 69 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in <span id="L70" class="LineNr"> 70 </span> <span class="Delimiter">{</span> -<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in <span id="L72" class="LineNr"> 72 </span> compare done?, <span class="Constant">0</span>/false <span id="L73" class="LineNr"> 73 </span> <span class="PreProc">break-if-!=</span> -<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in <span id="L75" class="LineNr"> 75 </span> compare key, <span class="Constant">0</span>/null <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">break-if-=</span> -<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy key +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy key <span id="L78" class="LineNr"> 78 </span> <a href='gap-buffer.mu.html#L1204'>edit-gap-buffer</a> self, g <span id="L79" class="LineNr"> 79 </span> <span class="PreProc">loop</span> <span id="L80" class="LineNr"> 80 </span> <span class="Delimiter">}</span> @@ -152,9 +151,9 @@ if ('onhashchange' in window) { <span id="L87" class="LineNr"> 87 </span> <span id="L88" class="LineNr"> 88 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L88'>append-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), out: (addr stream byte) <span class="Delimiter">{</span> <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L91" class="LineNr"> 91 </span> <a href='gap-buffer.mu.html#L97'>emit-stack-from-bottom</a> left, out -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L93" class="LineNr"> 93 </span> <a href='gap-buffer.mu.html#L115'>emit-stack-from-top</a> right, out <span id="L94" class="LineNr"> 94 </span><span class="Delimiter">}</span> <span id="L95" class="LineNr"> 95 </span> @@ -162,10 +161,10 @@ if ('onhashchange' in window) { <span id="L97" class="LineNr"> 97 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L97'>emit-stack-from-bottom</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), out: (addr stream byte) <span class="Delimiter">{</span> <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L100" class="LineNr"> 100 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L100" class="LineNr"> 100 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L101" class="LineNr"> 101 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L102" class="LineNr"> 102 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top -<span id="L103" class="LineNr"> 103 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L103" class="LineNr"> 103 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L104" class="LineNr"> 104 </span> <span class="Delimiter">{</span> <span id="L105" class="LineNr"> 105 </span> compare i, *top-addr <span id="L106" class="LineNr"> 106 </span> <span class="PreProc">break-if->=</span> @@ -180,10 +179,10 @@ if ('onhashchange' in window) { <span id="L115" class="LineNr"> 115 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L115'>emit-stack-from-top</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), out: (addr stream byte) <span class="Delimiter">{</span> <span id="L116" class="LineNr"> 116 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L117" class="LineNr"> 117 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L119" class="LineNr"> 119 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L120" class="LineNr"> 120 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top -<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy *top-addr <span id="L122" class="LineNr"> 122 </span> i <span class="Special"><-</span> decrement <span id="L123" class="LineNr"> 123 </span> <span class="Delimiter">{</span> <span id="L124" class="LineNr"> 124 </span> compare i, <span class="Constant">0</span> @@ -199,17 +198,17 @@ if ('onhashchange' in window) { <span id="L134" class="LineNr"> 134 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L135" class="LineNr"> 135 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> out <span id="L136" class="LineNr"> 136 </span> <span class="Delimiter">{</span> -<span id="L137" class="LineNr"> 137 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L244'>grapheme-at-gap</a> self -<span id="L138" class="LineNr"> 138 </span> <span class="PreProc">var</span> at-word?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L335'>is-ascii-word-grapheme?</a> g +<span id="L137" class="LineNr"> 137 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L244'>grapheme-at-gap</a> self +<span id="L138" class="LineNr"> 138 </span> <span class="PreProc">var</span> at-word?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L335'>is-ascii-word-grapheme?</a> g <span id="L139" class="LineNr"> 139 </span> compare at-word?, <span class="Constant">0</span>/false <span id="L140" class="LineNr"> 140 </span> <span class="PreProc">break-if-!=</span> <span id="L141" class="LineNr"> 141 </span> <span class="PreProc">return</span> <span id="L142" class="LineNr"> 142 </span> <span class="Delimiter">}</span> <span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L144" class="LineNr"> 144 </span> <span class="PreProc">var</span> left-index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L276'>top-most-word</a> left +<span id="L144" class="LineNr"> 144 </span> <span class="PreProc">var</span> left-index/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L276'>top-most-word</a> left <span id="L145" class="LineNr"> 145 </span> <a href='gap-buffer.mu.html#L298'>emit-stack-from-index</a> left, left-index, out <span id="L146" class="LineNr"> 146 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right -<span id="L147" class="LineNr"> 147 </span> <span class="PreProc">var</span> right-index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L276'>top-most-word</a> right +<span id="L147" class="LineNr"> 147 </span> <span class="PreProc">var</span> right-index/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L276'>top-most-word</a> right <span id="L148" class="LineNr"> 148 </span> <a href='gap-buffer.mu.html#L315'>emit-stack-to-index</a> right, right-index, out <span id="L149" class="LineNr"> 149 </span><span class="Delimiter">}</span> <span id="L150" class="LineNr"> 150 </span> @@ -219,7 +218,7 @@ if ('onhashchange' in window) { <span id="L154" class="LineNr"> 154 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> g, <span class="Constant">"abc"</span> <span id="L155" class="LineNr"> 155 </span> <span class="muComment"># gap is at end (right is empty)</span> <span id="L156" class="LineNr"> 156 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> out/eax: (addr stream byte) <span class="Special"><-</span> address out-storage <span id="L158" class="LineNr"> 158 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> g, out <span id="L159" class="LineNr"> 159 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"abc"</span>, <span class="Constant">"F - test-word-at-gap-single-word-with-gap-at-end"</span> <span id="L160" class="LineNr"> 160 </span><span class="Delimiter">}</span> @@ -231,7 +230,7 @@ if ('onhashchange' in window) { <span id="L166" class="LineNr"> 166 </span> <a href='gap-buffer.mu.html#L452'>gap-to-start</a> g <span id="L167" class="LineNr"> 167 </span> <span class="muComment">#</span> <span id="L168" class="LineNr"> 168 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L169" class="LineNr"> 169 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L169" class="LineNr"> 169 </span> <span class="PreProc">var</span> out/eax: (addr stream byte) <span class="Special"><-</span> address out-storage <span id="L170" class="LineNr"> 170 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> g, out <span id="L171" class="LineNr"> 171 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"abc"</span>, <span class="Constant">"F - test-word-at-gap-single-word-with-gap-at-start"</span> <span id="L172" class="LineNr"> 172 </span><span class="Delimiter">}</span> @@ -242,7 +241,7 @@ if ('onhashchange' in window) { <span id="L177" class="LineNr"> 177 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> g, <span class="Constant">"abc "</span> <span id="L178" class="LineNr"> 178 </span> <span class="muComment"># gap is at end (right is empty)</span> <span id="L179" class="LineNr"> 179 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L180" class="LineNr"> 180 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L180" class="LineNr"> 180 </span> <span class="PreProc">var</span> out/eax: (addr stream byte) <span class="Special"><-</span> address out-storage <span id="L181" class="LineNr"> 181 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> g, out <span id="L182" class="LineNr"> 182 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - test-word-at-gap-multiple-words-with-gap-at-non-word-grapheme-at-end"</span> <span id="L183" class="LineNr"> 183 </span><span class="Delimiter">}</span> @@ -254,7 +253,7 @@ if ('onhashchange' in window) { <span id="L189" class="LineNr"> 189 </span> <a href='gap-buffer.mu.html#L452'>gap-to-start</a> g <span id="L190" class="LineNr"> 190 </span> <span class="muComment">#</span> <span id="L191" class="LineNr"> 191 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> out/eax: (addr stream byte) <span class="Special"><-</span> address out-storage <span id="L193" class="LineNr"> 193 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> g, out <span id="L194" class="LineNr"> 194 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - test-word-at-gap-multiple-words-with-gap-at-non-word-grapheme-at-start"</span> <span id="L195" class="LineNr"> 195 </span><span class="Delimiter">}</span> @@ -265,7 +264,7 @@ if ('onhashchange' in window) { <span id="L200" class="LineNr"> 200 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> g, <span class="Constant">"a bc d"</span> <span id="L201" class="LineNr"> 201 </span> <span class="muComment"># gap is at end (right is empty)</span> <span id="L202" class="LineNr"> 202 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L203" class="LineNr"> 203 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L203" class="LineNr"> 203 </span> <span class="PreProc">var</span> out/eax: (addr stream byte) <span class="Special"><-</span> address out-storage <span id="L204" class="LineNr"> 204 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> g, out <span id="L205" class="LineNr"> 205 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"d"</span>, <span class="Constant">"F - test-word-at-gap-multiple-words-with-gap-at-end"</span> <span id="L206" class="LineNr"> 206 </span><span class="Delimiter">}</span> @@ -277,7 +276,7 @@ if ('onhashchange' in window) { <span id="L212" class="LineNr"> 212 </span> <a href='gap-buffer.mu.html#L452'>gap-to-start</a> g <span id="L213" class="LineNr"> 213 </span> <span class="muComment">#</span> <span id="L214" class="LineNr"> 214 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L215" class="LineNr"> 215 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L215" class="LineNr"> 215 </span> <span class="PreProc">var</span> out/eax: (addr stream byte) <span class="Special"><-</span> address out-storage <span id="L216" class="LineNr"> 216 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> g, out <span id="L217" class="LineNr"> 217 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"a"</span>, <span class="Constant">"F - test-word-at-gap-multiple-words-with-gap-at-initial-word"</span> <span id="L218" class="LineNr"> 218 </span><span class="Delimiter">}</span> @@ -286,10 +285,10 @@ if ('onhashchange' in window) { <span id="L221" class="LineNr"> 221 </span> <span class="PreProc">var</span> _g: <a href='gap-buffer.mu.html#L3'>gap-buffer</a> <span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> g/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address _g <span id="L223" class="LineNr"> 223 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> g, <span class="Constant">"a bc d"</span> -<span id="L224" class="LineNr"> 224 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g +<span id="L224" class="LineNr"> 224 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g <span id="L225" class="LineNr"> 225 </span> <span class="muComment"># gap is at final word</span> <span id="L226" class="LineNr"> 226 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L227" class="LineNr"> 227 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L227" class="LineNr"> 227 </span> <span class="PreProc">var</span> out/eax: (addr stream byte) <span class="Special"><-</span> address out-storage <span id="L228" class="LineNr"> 228 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> g, out <span id="L229" class="LineNr"> 229 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"d"</span>, <span class="Constant">"F - test-word-at-gap-multiple-words-with-gap-at-final-word"</span> <span id="L230" class="LineNr"> 230 </span><span class="Delimiter">}</span> @@ -298,50 +297,50 @@ if ('onhashchange' in window) { <span id="L233" class="LineNr"> 233 </span> <span class="PreProc">var</span> _g: <a href='gap-buffer.mu.html#L3'>gap-buffer</a> <span id="L234" class="LineNr"> 234 </span> <span class="PreProc">var</span> g/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address _g <span id="L235" class="LineNr"> 235 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> g, <span class="Constant">"abc "</span> -<span id="L236" class="LineNr"> 236 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g +<span id="L236" class="LineNr"> 236 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g <span id="L237" class="LineNr"> 237 </span> <span class="muComment"># gap is at final word</span> <span id="L238" class="LineNr"> 238 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L239" class="LineNr"> 239 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L239" class="LineNr"> 239 </span> <span class="PreProc">var</span> out/eax: (addr stream byte) <span class="Special"><-</span> address out-storage <span id="L240" class="LineNr"> 240 </span> <a href='gap-buffer.mu.html#L133'>word-at-gap</a> g, out <span id="L241" class="LineNr"> 241 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - test-word-at-gap-multiple-words-with-gap-at-final-non-word"</span> <span id="L242" class="LineNr"> 242 </span><span class="Delimiter">}</span> <span id="L243" class="LineNr"> 243 </span> -<span id="L244" class="LineNr"> 244 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L244'>grapheme-at-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L244" class="LineNr"> 244 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L244'>grapheme-at-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L245" class="LineNr"> 245 </span> <span class="muComment"># send top of right most of the time</span> <span id="L246" class="LineNr"> 246 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> right/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right -<span id="L248" class="LineNr"> 248 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get right, data -<span id="L249" class="LineNr"> 249 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L248" class="LineNr"> 248 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get right, data +<span id="L249" class="LineNr"> 249 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L250" class="LineNr"> 250 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, top <span id="L251" class="LineNr"> 251 </span> <span class="Delimiter">{</span> <span id="L252" class="LineNr"> 252 </span> compare *top-addr, <span class="Constant">0</span> <span id="L253" class="LineNr"> 253 </span> <span class="PreProc">break-if-<=</span> <span id="L254" class="LineNr"> 254 </span> <span class="PreProc">var</span> top/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L255" class="LineNr"> 255 </span> top <span class="Special"><-</span> decrement -<span id="L256" class="LineNr"> 256 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, top +<span id="L256" class="LineNr"> 256 </span> <span class="PreProc">var</span> result/eax: (addr grapheme) <span class="Special"><-</span> index data, top <span id="L257" class="LineNr"> 257 </span> <span class="PreProc">return</span> *result <span id="L258" class="LineNr"> 258 </span> <span class="Delimiter">}</span> <span id="L259" class="LineNr"> 259 </span> <span class="muComment"># send top of left only if right is empty</span> <span id="L260" class="LineNr"> 260 </span> <span class="PreProc">var</span> left/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L261" class="LineNr"> 261 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get left, data -<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L261" class="LineNr"> 261 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get left, data +<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L263" class="LineNr"> 263 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get left, top <span id="L264" class="LineNr"> 264 </span> <span class="Delimiter">{</span> <span id="L265" class="LineNr"> 265 </span> compare *top-addr, <span class="Constant">0</span> <span id="L266" class="LineNr"> 266 </span> <span class="PreProc">break-if-<=</span> <span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> top/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L268" class="LineNr"> 268 </span> top <span class="Special"><-</span> decrement -<span id="L269" class="LineNr"> 269 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, top +<span id="L269" class="LineNr"> 269 </span> <span class="PreProc">var</span> result/eax: (addr grapheme) <span class="Special"><-</span> index data, top <span id="L270" class="LineNr"> 270 </span> <span class="PreProc">return</span> *result <span id="L271" class="LineNr"> 271 </span> <span class="Delimiter">}</span> <span id="L272" class="LineNr"> 272 </span> <span class="muComment"># send null if everything is empty</span> <span id="L273" class="LineNr"> 273 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L274" class="LineNr"> 274 </span><span class="Delimiter">}</span> <span id="L275" class="LineNr"> 275 </span> -<span id="L276" class="LineNr"> 276 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L276'>top-most-word</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L276" class="LineNr"> 276 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L276'>top-most-word</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L277" class="LineNr"> 277 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L278" class="LineNr"> 278 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L279" class="LineNr"> 279 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L279" class="LineNr"> 279 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L280" class="LineNr"> 280 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L281" class="LineNr"> 281 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L282" class="LineNr"> 282 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *top-addr @@ -350,7 +349,7 @@ if ('onhashchange' in window) { <span id="L285" class="LineNr"> 285 </span> compare i, <span class="Constant">0</span> <span id="L286" class="LineNr"> 286 </span> <span class="PreProc">break-if-<</span> <span id="L287" class="LineNr"> 287 </span> <span class="PreProc">var</span> g/<span class="muRegEdx">edx</span>: (addr grapheme) <span class="Special"><-</span> index data, i -<span id="L288" class="LineNr"> 288 </span> <span class="PreProc">var</span> is-word?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L335'>is-ascii-word-grapheme?</a> *g +<span id="L288" class="LineNr"> 288 </span> <span class="PreProc">var</span> is-word?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L335'>is-ascii-word-grapheme?</a> *g <span id="L289" class="LineNr"> 289 </span> compare is-word?, <span class="Constant">0</span>/false <span id="L290" class="LineNr"> 290 </span> <span class="PreProc">break-if-=</span> <span id="L291" class="LineNr"> 291 </span> i <span class="Special"><-</span> decrement @@ -363,10 +362,10 @@ if ('onhashchange' in window) { <span id="L298" class="LineNr"> 298 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L298'>emit-stack-from-index</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), start: int, out: (addr stream byte) <span class="Delimiter">{</span> <span id="L299" class="LineNr"> 299 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L300" class="LineNr"> 300 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L301" class="LineNr"> 301 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L301" class="LineNr"> 301 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L302" class="LineNr"> 302 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L303" class="LineNr"> 303 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top -<span id="L304" class="LineNr"> 304 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy start +<span id="L304" class="LineNr"> 304 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy start <span id="L305" class="LineNr"> 305 </span> <span class="Delimiter">{</span> <span id="L306" class="LineNr"> 306 </span> compare i, *top-addr <span id="L307" class="LineNr"> 307 </span> <span class="PreProc">break-if->=</span> @@ -380,10 +379,10 @@ if ('onhashchange' in window) { <span id="L315" class="LineNr"> 315 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L315'>emit-stack-to-index</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), end: int, out: (addr stream byte) <span class="Delimiter">{</span> <span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L318" class="LineNr"> 318 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L318" class="LineNr"> 318 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L319" class="LineNr"> 319 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L320" class="LineNr"> 320 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top -<span id="L321" class="LineNr"> 321 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L321" class="LineNr"> 321 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy *top-addr <span id="L322" class="LineNr"> 322 </span> i <span class="Special"><-</span> decrement <span id="L323" class="LineNr"> 323 </span> <span class="Delimiter">{</span> <span id="L324" class="LineNr"> 324 </span> compare i, <span class="Constant">0</span> @@ -397,7 +396,7 @@ if ('onhashchange' in window) { <span id="L332" class="LineNr"> 332 </span> <span class="Delimiter">}</span> <span id="L333" class="LineNr"> 333 </span><span class="Delimiter">}</span> <span id="L334" class="LineNr"> 334 </span> -<span id="L335" class="LineNr"> 335 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L335'>is-ascii-word-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L335" class="LineNr"> 335 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L335'>is-ascii-word-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L336" class="LineNr"> 336 </span> compare g, <span class="Constant">0x21</span>/! <span id="L337" class="LineNr"> 337 </span> <span class="Delimiter">{</span> <span id="L338" class="LineNr"> 338 </span> <span class="PreProc">break-if-!=</span> @@ -448,13 +447,13 @@ if ('onhashchange' in window) { <span id="L383" class="LineNr"> 383 </span> <span id="L384" class="LineNr"> 384 </span><span class="muComment"># We implicitly render everything editable in a single color, and assume the</span> <span id="L385" class="LineNr"> 385 </span><span class="muComment"># cursor is a single other color.</span> -<span id="L386" class="LineNr"> 386 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _gap: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), xmin: int, ymin: int, xmax: int, ymax: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L386" class="LineNr"> 386 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _gap: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), xmin: int, ymin: int, xmax: int, ymax: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _gap <span id="L388" class="LineNr"> 388 </span> <span class="PreProc">var</span> left/<span class="muRegEdx">edx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, left <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">var</span> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>/<span class="muRegEbx">ebx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L390" class="LineNr"> 390 </span> <span class="PreProc">var</span> matching-open-paren-depth/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L391" class="LineNr"> 391 </span> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, matching-open-paren-depth <span class="Special"><-</span> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a> gap, render-cursor? -<span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L393" class="LineNr"> 393 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L394" class="LineNr"> 394 </span> x2, y2 <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, left, xmin, ymin, xmax, ymax, xmin, ymin, <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, matching-open-paren-depth, color, background-color <span id="L395" class="LineNr"> 395 </span> <span class="PreProc">var</span> right/<span class="muRegEdx">edx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, right @@ -466,7 +465,7 @@ if ('onhashchange' in window) { <span id="L401" class="LineNr"> 401 </span> <span class="Delimiter">{</span> <span id="L402" class="LineNr"> 402 </span> <span class="PreProc">break-if-=</span> <span id="L403" class="LineNr"> 403 </span> <span class="muComment"># if the right side is empty, grapheme stack didn't print the cursor</span> -<span id="L404" class="LineNr"> 404 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> right +<span id="L404" class="LineNr"> 404 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> right <span id="L405" class="LineNr"> 405 </span> compare empty?, <span class="Constant">0</span>/false <span id="L406" class="LineNr"> 406 </span> <span class="PreProc">break-if-=</span> <span id="L407" class="LineNr"> 407 </span> <span class="muComment"># swap foreground and background</span> @@ -479,44 +478,44 @@ if ('onhashchange' in window) { <span id="L414" class="LineNr"> 414 </span> <span class="PreProc">return</span> x2, y2 <span id="L415" class="LineNr"> 415 </span><span class="Delimiter">}</span> <span id="L416" class="LineNr"> 416 </span> -<span id="L417" class="LineNr"> 417 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L417'>render-gap-buffer</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), gap: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), x: int, y: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L418" class="LineNr"> 418 </span> <span class="PreProc">var</span> _width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L417" class="LineNr"> 417 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L417'>render-gap-buffer</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), gap: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), x: int, y: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L418" class="LineNr"> 418 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L419" class="LineNr"> 419 </span> <span class="PreProc">var</span> _height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L420" class="LineNr"> 420 </span> _width, _height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L421" class="LineNr"> 421 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _width <span id="L422" class="LineNr"> 422 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _height -<span id="L423" class="LineNr"> 423 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L423" class="LineNr"> 423 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L424" class="LineNr"> 424 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L425" class="LineNr"> 425 </span> x2, y2 <span class="Special"><-</span> <a href='gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, x, y, width, height, render-cursor?, color, background-color <span id="L426" class="LineNr"> 426 </span> <span class="PreProc">return</span> x2 <span class="muComment"># y2? yolo</span> <span id="L427" class="LineNr"> 427 </span><span class="Delimiter">}</span> <span id="L428" class="LineNr"> 428 </span> -<span id="L429" class="LineNr"> 429 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L429'>gap-buffer-length</a></span> _gap: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L429" class="LineNr"> 429 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L429'>gap-buffer-length</a></span> _gap: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L430" class="LineNr"> 430 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _gap -<span id="L431" class="LineNr"> 431 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, left -<span id="L432" class="LineNr"> 432 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get left, top +<span id="L431" class="LineNr"> 431 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, left +<span id="L432" class="LineNr"> 432 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> get left, top <span id="L433" class="LineNr"> 433 </span> <span class="PreProc">var</span> left-length/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *tmp <span id="L434" class="LineNr"> 434 </span> <span class="PreProc">var</span> right/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, right <span id="L435" class="LineNr"> 435 </span> tmp <span class="Special"><-</span> get right, top -<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *tmp +<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy *tmp <span id="L437" class="LineNr"> 437 </span> result <span class="Special"><-</span> add left-length <span id="L438" class="LineNr"> 438 </span> <span class="PreProc">return</span> result <span id="L439" class="LineNr"> 439 </span><span class="Delimiter">}</span> <span id="L440" class="LineNr"> 440 </span> <span id="L441" class="LineNr"> 441 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L441'>add-grapheme-at-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), g: grapheme <span class="Delimiter">{</span> <span id="L442" class="LineNr"> 442 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L443" class="LineNr"> 443 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L443" class="LineNr"> 443 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L444" class="LineNr"> 444 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> left, g <span id="L445" class="LineNr"> 445 </span><span class="Delimiter">}</span> <span id="L446" class="LineNr"> 446 </span> <span id="L447" class="LineNr"> 447 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), c: code-point <span class="Delimiter">{</span> -<span id="L448" class="LineNr"> 448 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy c +<span id="L448" class="LineNr"> 448 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c <span id="L449" class="LineNr"> 449 </span> <a href='gap-buffer.mu.html#L441'>add-grapheme-at-gap</a> self, g <span id="L450" class="LineNr"> 450 </span><span class="Delimiter">}</span> <span id="L451" class="LineNr"> 451 </span> <span id="L452" class="LineNr"> 452 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L452'>gap-to-start</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L453" class="LineNr"> 453 </span> <span class="Delimiter">{</span> -<span id="L454" class="LineNr"> 454 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self +<span id="L454" class="LineNr"> 454 </span> <span class="PreProc">var</span> curr/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self <span id="L455" class="LineNr"> 455 </span> compare curr, <span class="Constant">-1</span> <span id="L456" class="LineNr"> 456 </span> <span class="PreProc">loop-if-!=</span> <span id="L457" class="LineNr"> 457 </span> <span class="Delimiter">}</span> @@ -524,29 +523,29 @@ if ('onhashchange' in window) { <span id="L459" class="LineNr"> 459 </span> <span id="L460" class="LineNr"> 460 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L460'>gap-to-end</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L461" class="LineNr"> 461 </span> <span class="Delimiter">{</span> -<span id="L462" class="LineNr"> 462 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self +<span id="L462" class="LineNr"> 462 </span> <span class="PreProc">var</span> curr/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self <span id="L463" class="LineNr"> 463 </span> compare curr, <span class="Constant">-1</span> <span id="L464" class="LineNr"> 464 </span> <span class="PreProc">loop-if-!=</span> <span id="L465" class="LineNr"> 465 </span> <span class="Delimiter">}</span> <span id="L466" class="LineNr"> 466 </span><span class="Delimiter">}</span> <span id="L467" class="LineNr"> 467 </span> -<span id="L468" class="LineNr"> 468 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L468'>gap-at-start?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L468" class="LineNr"> 468 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L468'>gap-at-start?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L469" class="LineNr"> 469 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L471" class="LineNr"> 471 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left +<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L471" class="LineNr"> 471 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left <span id="L472" class="LineNr"> 472 </span> <span class="PreProc">return</span> result <span id="L473" class="LineNr"> 473 </span><span class="Delimiter">}</span> <span id="L474" class="LineNr"> 474 </span> -<span id="L475" class="LineNr"> 475 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L475'>gap-at-end?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L475" class="LineNr"> 475 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L475'>gap-at-end?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right -<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> right +<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> right <span id="L479" class="LineNr"> 479 </span> <span class="PreProc">return</span> result <span id="L480" class="LineNr"> 480 </span><span class="Delimiter">}</span> <span id="L481" class="LineNr"> 481 </span> -<span id="L482" class="LineNr"> 482 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L482'>gap-right</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L482" class="LineNr"> 482 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L482'>gap-right</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L483" class="LineNr"> 483 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L484" class="LineNr"> 484 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L484" class="LineNr"> 484 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L485" class="LineNr"> 485 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L486" class="LineNr"> 486 </span> g <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> right <span id="L487" class="LineNr"> 487 </span> compare g, <span class="Constant">-1</span> @@ -558,9 +557,9 @@ if ('onhashchange' in window) { <span id="L493" class="LineNr"> 493 </span> <span class="PreProc">return</span> g <span id="L494" class="LineNr"> 494 </span><span class="Delimiter">}</span> <span id="L495" class="LineNr"> 495 </span> -<span id="L496" class="LineNr"> 496 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L496'>gap-left</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L496" class="LineNr"> 496 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L496'>gap-left</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L497" class="LineNr"> 497 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L498" class="LineNr"> 498 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L498" class="LineNr"> 498 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L499" class="LineNr"> 499 </span> <span class="Delimiter">{</span> <span id="L500" class="LineNr"> 500 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L501" class="LineNr"> 501 </span> g <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> left @@ -574,45 +573,45 @@ if ('onhashchange' in window) { <span id="L509" class="LineNr"> 509 </span> <span class="PreProc">return</span> g <span id="L510" class="LineNr"> 510 </span><span class="Delimiter">}</span> <span id="L511" class="LineNr"> 511 </span> -<span id="L512" class="LineNr"> 512 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L512'>index-of-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L513" class="LineNr"> 513 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L514" class="LineNr"> 514 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L515" class="LineNr"> 515 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get left, top -<span id="L516" class="LineNr"> 516 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L512" class="LineNr"> 512 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L512'>index-of-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L513" class="LineNr"> 513 </span> <span class="PreProc">var</span> self/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self +<span id="L514" class="LineNr"> 514 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L515" class="LineNr"> 515 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> get left, top +<span id="L516" class="LineNr"> 516 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy *top-addr <span id="L517" class="LineNr"> 517 </span> <span class="PreProc">return</span> result <span id="L518" class="LineNr"> 518 </span><span class="Delimiter">}</span> <span id="L519" class="LineNr"> 519 </span> -<span id="L520" class="LineNr"> 520 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L520'>first-grapheme-in-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L520" class="LineNr"> 520 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L520'>first-grapheme-in-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L521" class="LineNr"> 521 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L522" class="LineNr"> 522 </span> <span class="muComment"># try to read from left</span> -<span id="L523" class="LineNr"> 523 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L523" class="LineNr"> 523 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L524" class="LineNr"> 524 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get left, top <span id="L525" class="LineNr"> 525 </span> compare *top-addr, <span class="Constant">0</span> <span id="L526" class="LineNr"> 526 </span> <span class="Delimiter">{</span> <span id="L527" class="LineNr"> 527 </span> <span class="PreProc">break-if-<=</span> -<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get left, data -<span id="L529" class="LineNr"> 529 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L530" class="LineNr"> 530 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, <span class="Constant">0</span> +<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get left, data +<span id="L529" class="LineNr"> 529 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L530" class="LineNr"> 530 </span> <span class="PreProc">var</span> result-addr/eax: (addr grapheme) <span class="Special"><-</span> index data, <span class="Constant">0</span> <span id="L531" class="LineNr"> 531 </span> <span class="PreProc">return</span> *result-addr <span id="L532" class="LineNr"> 532 </span> <span class="Delimiter">}</span> <span id="L533" class="LineNr"> 533 </span> <span class="muComment"># try to read from right</span> -<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L535" class="LineNr"> 535 </span> top-addr <span class="Special"><-</span> get right, top <span id="L536" class="LineNr"> 536 </span> compare *top-addr, <span class="Constant">0</span> <span id="L537" class="LineNr"> 537 </span> <span class="Delimiter">{</span> <span id="L538" class="LineNr"> 538 </span> <span class="PreProc">break-if-<=</span> -<span id="L539" class="LineNr"> 539 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get right, data -<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L539" class="LineNr"> 539 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get right, data +<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L541" class="LineNr"> 541 </span> <span class="PreProc">var</span> top/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L542" class="LineNr"> 542 </span> top <span class="Special"><-</span> decrement -<span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, top +<span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> result-addr/eax: (addr grapheme) <span class="Special"><-</span> index data, top <span id="L544" class="LineNr"> 544 </span> <span class="PreProc">return</span> *result-addr <span id="L545" class="LineNr"> 545 </span> <span class="Delimiter">}</span> <span id="L546" class="LineNr"> 546 </span> <span class="muComment"># give up</span> <span id="L547" class="LineNr"> 547 </span> <span class="PreProc">return</span> <span class="Constant">-1</span> <span id="L548" class="LineNr"> 548 </span><span class="Delimiter">}</span> <span id="L549" class="LineNr"> 549 </span> -<span id="L550" class="LineNr"> 550 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L550'>grapheme-before-cursor-in-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L550" class="LineNr"> 550 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L550'>grapheme-before-cursor-in-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L551" class="LineNr"> 551 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L552" class="LineNr"> 552 </span> <span class="muComment"># try to read from left</span> <span id="L553" class="LineNr"> 553 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left @@ -620,7 +619,7 @@ if ('onhashchange' in window) { <span id="L555" class="LineNr"> 555 </span> compare *top-addr, <span class="Constant">0</span> <span id="L556" class="LineNr"> 556 </span> <span class="Delimiter">{</span> <span id="L557" class="LineNr"> 557 </span> <span class="PreProc">break-if-<=</span> -<span id="L558" class="LineNr"> 558 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> left +<span id="L558" class="LineNr"> 558 </span> <span class="PreProc">var</span> result/eax: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> left <span id="L559" class="LineNr"> 559 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> left, result <span id="L560" class="LineNr"> 560 </span> <span class="PreProc">return</span> result <span id="L561" class="LineNr"> 561 </span> <span class="Delimiter">}</span> @@ -629,19 +628,19 @@ if ('onhashchange' in window) { <span id="L564" class="LineNr"> 564 </span><span class="Delimiter">}</span> <span id="L565" class="LineNr"> 565 </span> <span id="L566" class="LineNr"> 566 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L566'>delete-before-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> -<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L569" class="LineNr"> 569 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> left +<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> self/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self +<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L569" class="LineNr"> 569 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> left <span id="L570" class="LineNr"> 570 </span><span class="Delimiter">}</span> <span id="L571" class="LineNr"> 571 </span> -<span id="L572" class="LineNr"> 572 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L572'>pop-after-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> -<span id="L573" class="LineNr"> 573 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right -<span id="L575" class="LineNr"> 575 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> right +<span id="L572" class="LineNr"> 572 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L572'>pop-after-gap</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> +<span id="L573" class="LineNr"> 573 </span> <span class="PreProc">var</span> self/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self +<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L575" class="LineNr"> 575 </span> <span class="PreProc">var</span> result/eax: grapheme <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> right <span id="L576" class="LineNr"> 576 </span> <span class="PreProc">return</span> result <span id="L577" class="LineNr"> 577 </span><span class="Delimiter">}</span> <span id="L578" class="LineNr"> 578 </span> -<span id="L579" class="LineNr"> 579 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), s: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L579" class="LineNr"> 579 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L580" class="LineNr"> 580 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L581" class="LineNr"> 581 </span> <span class="muComment"># complication: graphemes may be multiple bytes</span> <span id="L582" class="LineNr"> 582 </span> <span class="muComment"># so don't rely on length</span> @@ -651,7 +650,7 @@ if ('onhashchange' in window) { <span id="L586" class="LineNr"> 586 </span> <a href='../108write.subx.html#L11'>write</a> expected-stream, s <span id="L587" class="LineNr"> 587 </span> <span class="muComment"># compare left</span> <span id="L588" class="LineNr"> 588 </span> <span class="PreProc">var</span> left/<span class="muRegEdx">edx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L589" class="LineNr"> 589 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L482'>prefix-match?</a> left, expected-stream +<span id="L589" class="LineNr"> 589 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L482'>prefix-match?</a> left, expected-stream <span id="L590" class="LineNr"> 590 </span> compare result, <span class="Constant">0</span>/false <span id="L591" class="LineNr"> 591 </span> <span class="Delimiter">{</span> <span id="L592" class="LineNr"> 592 </span> <span class="PreProc">break-if-!=</span> @@ -679,7 +678,7 @@ if ('onhashchange' in window) { <span id="L614" class="LineNr"> 614 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a <span id="L615" class="LineNr"> 615 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a <span id="L616" class="LineNr"> 616 </span> <span class="muComment"># gap is at end (right is empty)</span> -<span id="L617" class="LineNr"> 617 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> +<span id="L617" class="LineNr"> 617 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> <span id="L618" class="LineNr"> 618 </span> <a href='../502test.mu.html#L19'>check</a> result, <span class="Constant">"F - test-gap-buffer-equal-from-end"</span> <span id="L619" class="LineNr"> 619 </span><span class="Delimiter">}</span> <span id="L620" class="LineNr"> 620 </span> @@ -691,9 +690,9 @@ if ('onhashchange' in window) { <span id="L626" class="LineNr"> 626 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a <span id="L627" class="LineNr"> 627 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a <span id="L628" class="LineNr"> 628 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a -<span id="L629" class="LineNr"> 629 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g +<span id="L629" class="LineNr"> 629 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g <span id="L630" class="LineNr"> 630 </span> <span class="muComment"># gap is in the middle</span> -<span id="L631" class="LineNr"> 631 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> +<span id="L631" class="LineNr"> 631 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> <span id="L632" class="LineNr"> 632 </span> <a href='../502test.mu.html#L19'>check</a> result, <span class="Constant">"F - test-gap-buffer-equal-from-middle"</span> <span id="L633" class="LineNr"> 633 </span><span class="Delimiter">}</span> <span id="L634" class="LineNr"> 634 </span> @@ -705,11 +704,11 @@ if ('onhashchange' in window) { <span id="L640" class="LineNr"> 640 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a <span id="L641" class="LineNr"> 641 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a <span id="L642" class="LineNr"> 642 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a -<span id="L643" class="LineNr"> 643 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g +<span id="L643" class="LineNr"> 643 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g <span id="L644" class="LineNr"> 644 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g <span id="L645" class="LineNr"> 645 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> g <span id="L646" class="LineNr"> 646 </span> <span class="muComment"># gap is at the start</span> -<span id="L647" class="LineNr"> 647 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> +<span id="L647" class="LineNr"> 647 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a> g, <span class="Constant">"aaa"</span> <span id="L648" class="LineNr"> 648 </span> <a href='../502test.mu.html#L19'>check</a> result, <span class="Constant">"F - test-gap-buffer-equal-from-start"</span> <span id="L649" class="LineNr"> 649 </span><span class="Delimiter">}</span> <span id="L650" class="LineNr"> 650 </span> @@ -722,14 +721,14 @@ if ('onhashchange' in window) { <span id="L657" class="LineNr"> 657 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a <span id="L658" class="LineNr"> 658 </span> <a href='gap-buffer.mu.html#L447'>add-code-point-at-gap</a> g, <span class="Constant">0x61</span>/a <span id="L659" class="LineNr"> 659 </span> <span class="muComment">#</span> -<span id="L660" class="LineNr"> 660 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a> g, <span class="Constant">"aa"</span> +<span id="L660" class="LineNr"> 660 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L579'>gap-buffer-equal?</a> g, <span class="Constant">"aa"</span> <span id="L661" class="LineNr"> 661 </span> <a href='../502test.mu.html#L32'>check-not</a> result, <span class="Constant">"F - test-gap-buffer-equal-fails"</span> <span id="L662" class="LineNr"> 662 </span><span class="Delimiter">}</span> <span id="L663" class="LineNr"> 663 </span> -<span id="L664" class="LineNr"> 664 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), g: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L665" class="LineNr"> 665 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L429'>gap-buffer-length</a> self +<span id="L664" class="LineNr"> 664 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), g: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L665" class="LineNr"> 665 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L429'>gap-buffer-length</a> self <span id="L666" class="LineNr"> 666 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy tmp -<span id="L667" class="LineNr"> 667 </span> <span class="PreProc">var</span> leng/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L429'>gap-buffer-length</a> g +<span id="L667" class="LineNr"> 667 </span> <span class="PreProc">var</span> leng/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L429'>gap-buffer-length</a> g <span id="L668" class="LineNr"> 668 </span> compare len, leng <span id="L669" class="LineNr"> 669 </span> <span class="Delimiter">{</span> <span id="L670" class="LineNr"> 670 </span> <span class="PreProc">break-if-=</span> @@ -740,9 +739,9 @@ if ('onhashchange' in window) { <span id="L675" class="LineNr"> 675 </span> compare i, len <span id="L676" class="LineNr"> 676 </span> <span class="PreProc">break-if->=</span> <span id="L677" class="LineNr"> 677 </span> <span class="Delimiter">{</span> -<span id="L678" class="LineNr"> 678 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> self, i +<span id="L678" class="LineNr"> 678 </span> <span class="PreProc">var</span> tmp/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> self, i <span id="L679" class="LineNr"> 679 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: grapheme <span class="Special"><-</span> copy tmp -<span id="L680" class="LineNr"> 680 </span> <span class="PreProc">var</span> currg/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> g, i +<span id="L680" class="LineNr"> 680 </span> <span class="PreProc">var</span> currg/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> g, i <span id="L681" class="LineNr"> 681 </span> compare curr, currg <span id="L682" class="LineNr"> 682 </span> <span class="PreProc">break-if-=</span> <span id="L683" class="LineNr"> 683 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false @@ -753,7 +752,7 @@ if ('onhashchange' in window) { <span id="L688" class="LineNr"> 688 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L689" class="LineNr"> 689 </span><span class="Delimiter">}</span> <span id="L690" class="LineNr"> 690 </span> -<span id="L691" class="LineNr"> 691 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L691'>gap-index</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), _n: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L691" class="LineNr"> 691 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L691'>gap-index</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), _n: int<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L693" class="LineNr"> 693 </span> <span class="PreProc">var</span> n/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _n <span id="L694" class="LineNr"> 694 </span> <span class="muComment"># if n < left->length, index into left</span> @@ -762,9 +761,9 @@ if ('onhashchange' in window) { <span id="L697" class="LineNr"> 697 </span> compare n, *left-len-a <span id="L698" class="LineNr"> 698 </span> <span class="Delimiter">{</span> <span id="L699" class="LineNr"> 699 </span> <span class="PreProc">break-if->=</span> -<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get left, data -<span id="L701" class="LineNr"> 701 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L702" class="LineNr"> 702 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, n +<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get left, data +<span id="L701" class="LineNr"> 701 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L702" class="LineNr"> 702 </span> <span class="PreProc">var</span> result/eax: (addr grapheme) <span class="Special"><-</span> index data, n <span id="L703" class="LineNr"> 703 </span> <span class="PreProc">return</span> *result <span id="L704" class="LineNr"> 704 </span> <span class="Delimiter">}</span> <span id="L705" class="LineNr"> 705 </span> <span class="muComment"># shrink n</span> @@ -775,14 +774,14 @@ if ('onhashchange' in window) { <span id="L710" class="LineNr"> 710 </span> compare n, *right-len-a <span id="L711" class="LineNr"> 711 </span> <span class="Delimiter">{</span> <span id="L712" class="LineNr"> 712 </span> <span class="PreProc">break-if->=</span> -<span id="L713" class="LineNr"> 713 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get right, data -<span id="L714" class="LineNr"> 714 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L713" class="LineNr"> 713 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get right, data +<span id="L714" class="LineNr"> 714 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L715" class="LineNr"> 715 </span> <span class="muComment"># idx = right->len - n - 1</span> <span id="L716" class="LineNr"> 716 </span> <span class="PreProc">var</span> idx/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy n <span id="L717" class="LineNr"> 717 </span> idx <span class="Special"><-</span> subtract *right-len-a <span id="L718" class="LineNr"> 718 </span> idx <span class="Special"><-</span> negate <span id="L719" class="LineNr"> 719 </span> idx <span class="Special"><-</span> subtract <span class="Constant">1</span> -<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, idx +<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> result/eax: (addr grapheme) <span class="Special"><-</span> index data, idx <span id="L721" class="LineNr"> 721 </span> <span class="PreProc">return</span> *result <span id="L722" class="LineNr"> 722 </span> <span class="Delimiter">}</span> <span id="L723" class="LineNr"> 723 </span> <span class="muComment"># error</span> @@ -804,7 +803,7 @@ if ('onhashchange' in window) { <span id="L739" class="LineNr"> 739 </span> <span class="PreProc">var</span> d/<span class="muRegEdx">edx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address _d <span id="L740" class="LineNr"> 740 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> d, <span class="Constant">"abd"</span> <span id="L741" class="LineNr"> 741 </span> <span class="muComment">#</span> -<span id="L742" class="LineNr"> 742 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a> a, a +<span id="L742" class="LineNr"> 742 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a> a, a <span id="L743" class="LineNr"> 743 </span> <a href='../502test.mu.html#L19'>check</a> result, <span class="Constant">"F - <a href='gap-buffer.mu.html#L728'>test-gap-buffers-equal?</a> - reflexive"</span> <span id="L744" class="LineNr"> 744 </span> result <span class="Special"><-</span> <a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a> a, b <span id="L745" class="LineNr"> 745 </span> <a href='../502test.mu.html#L19'>check</a> result, <span class="Constant">"F - <a href='gap-buffer.mu.html#L728'>test-gap-buffers-equal?</a> - equal"</span> @@ -823,36 +822,36 @@ if ('onhashchange' in window) { <span id="L758" class="LineNr"> 758 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address gap-storage <span id="L759" class="LineNr"> 759 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> gap, <span class="Constant">"abc"</span> <span id="L760" class="LineNr"> 760 </span> <span class="muComment"># gap is at end, all contents are in left</span> -<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">0</span> +<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">0</span> <span id="L762" class="LineNr"> 762 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L763" class="LineNr"> 763 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x61</span>/a, <span class="Constant">"F - test-gap-index/left-1"</span> -<span id="L764" class="LineNr"> 764 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">1</span> +<span id="L764" class="LineNr"> 764 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">1</span> <span id="L765" class="LineNr"> 765 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L766" class="LineNr"> 766 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x62</span>/b, <span class="Constant">"F - test-gap-index/left-2"</span> -<span id="L767" class="LineNr"> 767 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">2</span> +<span id="L767" class="LineNr"> 767 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">2</span> <span id="L768" class="LineNr"> 768 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L769" class="LineNr"> 769 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x63</span>/c, <span class="Constant">"F - test-gap-index/left-3"</span> <span id="L770" class="LineNr"> 770 </span> <span class="muComment"># now check when everything is to the right</span> <span id="L771" class="LineNr"> 771 </span> <a href='gap-buffer.mu.html#L452'>gap-to-start</a> gap <span id="L772" class="LineNr"> 772 </span> <a href='gap-buffer.mu.html#L1015'>rewind-gap-buffer</a> gap -<span id="L773" class="LineNr"> 773 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">0</span> +<span id="L773" class="LineNr"> 773 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">0</span> <span id="L774" class="LineNr"> 774 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L775" class="LineNr"> 775 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x61</span>/a, <span class="Constant">"F - test-gap-index/right-1"</span> -<span id="L776" class="LineNr"> 776 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">1</span> +<span id="L776" class="LineNr"> 776 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">1</span> <span id="L777" class="LineNr"> 777 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L778" class="LineNr"> 778 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x62</span>/b, <span class="Constant">"F - test-gap-index/right-2"</span> -<span id="L779" class="LineNr"> 779 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">2</span> +<span id="L779" class="LineNr"> 779 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L691'>gap-index</a> gap, <span class="Constant">2</span> <span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L781" class="LineNr"> 781 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x63</span>/c, <span class="Constant">"F - test-gap-index/right-3"</span> <span id="L782" class="LineNr"> 782 </span><span class="Delimiter">}</span> <span id="L783" class="LineNr"> 783 </span> <span id="L784" class="LineNr"> 784 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L784'>copy-gap-buffer</a></span> _src-ah: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), _dest-ah: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L785" class="LineNr"> 785 </span> <span class="muComment"># obtain src-a, dest-a</span> -<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> src-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _src-ah -<span id="L787" class="LineNr"> 787 </span> <span class="PreProc">var</span> _src-a/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *src-ah +<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _src-ah +<span id="L787" class="LineNr"> 787 </span> <span class="PreProc">var</span> _src-a/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *src-ah <span id="L788" class="LineNr"> 788 </span> <span class="PreProc">var</span> src-a/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _src-a -<span id="L789" class="LineNr"> 789 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _dest-ah -<span id="L790" class="LineNr"> 790 </span> <span class="PreProc">var</span> _dest-a/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah +<span id="L789" class="LineNr"> 789 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _dest-ah +<span id="L790" class="LineNr"> 790 </span> <span class="PreProc">var</span> _dest-a/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah <span id="L791" class="LineNr"> 791 </span> <span class="PreProc">var</span> dest-a/<span class="muRegEdi">edi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _dest-a <span id="L792" class="LineNr"> 792 </span> <span class="muComment"># copy left grapheme-stack</span> <span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get src-a, left @@ -864,10 +863,10 @@ if ('onhashchange' in window) { <span id="L799" class="LineNr"> 799 </span> <a href='grapheme-stack.mu.html#L67'>copy-grapheme-stack</a> src, dest <span id="L800" class="LineNr"> 800 </span><span class="Delimiter">}</span> <span id="L801" class="LineNr"> 801 </span> -<span id="L802" class="LineNr"> 802 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L802'>gap-buffer-is-decimal-integer?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L802" class="LineNr"> 802 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L802'>gap-buffer-is-decimal-integer?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L803" class="LineNr"> 803 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L804" class="LineNr"> 804 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L805" class="LineNr"> 805 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L537'>grapheme-stack-is-decimal-integer?</a> curr +<span id="L805" class="LineNr"> 805 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L537'>grapheme-stack-is-decimal-integer?</a> curr <span id="L806" class="LineNr"> 806 </span> <span class="Delimiter">{</span> <span id="L807" class="LineNr"> 807 </span> compare result, <span class="Constant">0</span>/false <span id="L808" class="LineNr"> 808 </span> <span class="PreProc">break-if-=</span> @@ -887,7 +886,7 @@ if ('onhashchange' in window) { <span id="L822" class="LineNr"> 822 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L823" class="LineNr"> 823 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L824" class="LineNr"> 824 </span> <span class="muComment">#</span> -<span id="L825" class="LineNr"> 825 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0</span>/no-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L825" class="LineNr"> 825 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0</span>/no-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L826" class="LineNr"> 826 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - test-render-gap-buffer-without-cursor"</span> <span id="L827" class="LineNr"> 827 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">4</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L815'>test-render-gap-buffer-without-cursor</a>: result"</span> <span id="L828" class="LineNr"> 828 </span> <span class="muComment"># abc</span> @@ -905,7 +904,7 @@ if ('onhashchange' in window) { <span id="L840" class="LineNr"> 840 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L841" class="LineNr"> 841 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L842" class="LineNr"> 842 </span> <span class="muComment">#</span> -<span id="L843" class="LineNr"> 843 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L843" class="LineNr"> 843 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L844" class="LineNr"> 844 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - test-render-gap-buffer-with-cursor-at-end"</span> <span id="L845" class="LineNr"> 845 </span> <span class="muComment"># we've drawn one extra grapheme for the cursor</span> <span id="L846" class="LineNr"> 846 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">4</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L832'>test-render-gap-buffer-with-cursor-at-end</a>: result"</span> @@ -919,13 +918,13 @@ if ('onhashchange' in window) { <span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address gap-storage <span id="L855" class="LineNr"> 855 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> gap, <span class="Constant">"abc"</span> <span id="L856" class="LineNr"> 856 </span> <a href='gap-buffer.mu.html#L460'>gap-to-end</a> gap -<span id="L857" class="LineNr"> 857 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> gap +<span id="L857" class="LineNr"> 857 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> gap <span id="L858" class="LineNr"> 858 </span> <span class="muComment"># setup: screen</span> <span id="L859" class="LineNr"> 859 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L860" class="LineNr"> 860 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L861" class="LineNr"> 861 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L862" class="LineNr"> 862 </span> <span class="muComment">#</span> -<span id="L863" class="LineNr"> 863 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L863" class="LineNr"> 863 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L864" class="LineNr"> 864 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - test-render-gap-buffer-with-cursor-in-middle"</span> <span id="L865" class="LineNr"> 865 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">4</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L851'>test-render-gap-buffer-with-cursor-in-middle</a>: result"</span> <span id="L866" class="LineNr"> 866 </span> <span class="muComment"># abc</span> @@ -942,7 +941,7 @@ if ('onhashchange' in window) { <span id="L877" class="LineNr"> 877 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L878" class="LineNr"> 878 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L879" class="LineNr"> 879 </span> <span class="muComment">#</span> -<span id="L880" class="LineNr"> 880 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L880" class="LineNr"> 880 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L881" class="LineNr"> 881 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - test-render-gap-buffer-with-cursor-at-start"</span> <span id="L882" class="LineNr"> 882 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">4</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L870'>test-render-gap-buffer-with-cursor-at-start</a>: result"</span> <span id="L883" class="LineNr"> 883 </span> <span class="muComment"># abc</span> @@ -959,7 +958,7 @@ if ('onhashchange' in window) { <span id="L894" class="LineNr"> 894 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L895" class="LineNr"> 895 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L896" class="LineNr"> 896 </span> <span class="muComment">#</span> -<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L898" class="LineNr"> 898 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"(a) "</span>, <span class="Constant">"F - test-render-gap-buffer-highlight-matching-close-paren"</span> <span id="L899" class="LineNr"> 899 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">4</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L887'>test-render-gap-buffer-highlight-matching-close-paren</a>: result"</span> <span id="L900" class="LineNr"> 900 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">0</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L887'>test-render-gap-buffer-highlight-matching-close-paren</a>: cursor"</span> @@ -971,13 +970,13 @@ if ('onhashchange' in window) { <span id="L906" class="LineNr"> 906 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address gap-storage <span id="L907" class="LineNr"> 907 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> gap, <span class="Constant">"(a)"</span> <span id="L908" class="LineNr"> 908 </span> <a href='gap-buffer.mu.html#L460'>gap-to-end</a> gap -<span id="L909" class="LineNr"> 909 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> gap +<span id="L909" class="LineNr"> 909 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> gap <span id="L910" class="LineNr"> 910 </span> <span class="muComment"># setup: screen</span> <span id="L911" class="LineNr"> 911 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L912" class="LineNr"> 912 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L913" class="LineNr"> 913 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L914" class="LineNr"> 914 </span> <span class="muComment">#</span> -<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L916" class="LineNr"> 916 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"(a) "</span>, <span class="Constant">"F - test-render-gap-buffer-highlight-matching-open-paren"</span> <span id="L917" class="LineNr"> 917 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">4</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L904'>test-render-gap-buffer-highlight-matching-open-paren</a>: result"</span> <span id="L918" class="LineNr"> 918 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">0</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L904'>test-render-gap-buffer-highlight-matching-open-paren</a>: cursor"</span> @@ -994,7 +993,7 @@ if ('onhashchange' in window) { <span id="L929" class="LineNr"> 929 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L930" class="LineNr"> 930 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L931" class="LineNr"> 931 </span> <span class="muComment">#</span> -<span id="L932" class="LineNr"> 932 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L932" class="LineNr"> 932 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gap, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">1</span>/show-cursor, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L933" class="LineNr"> 933 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"(a) "</span>, <span class="Constant">"F - test-render-gap-buffer-highlight-matching-open-paren-of-end"</span> <span id="L934" class="LineNr"> 934 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">4</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L922'>test-render-gap-buffer-highlight-matching-open-paren-of-end</a>: result"</span> <span id="L935" class="LineNr"> 935 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">0</span>/y, <span class="Constant">" |"</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L922'>test-render-gap-buffer-highlight-matching-open-paren-of-end</a>: cursor"</span> @@ -1014,7 +1013,7 @@ if ('onhashchange' in window) { <span id="L949" class="LineNr"> 949 </span> <span class="Delimiter">}</span> <span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _gap <span id="L951" class="LineNr"> 951 </span> <span class="PreProc">var</span> stack/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, right -<span id="L952" class="LineNr"> 952 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get stack, top +<span id="L952" class="LineNr"> 952 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> get stack, top <span id="L953" class="LineNr"> 953 </span> <span class="PreProc">var</span> top-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L954" class="LineNr"> 954 </span> compare top-index, <span class="Constant">0</span> <span id="L955" class="LineNr"> 955 </span> <span class="Delimiter">{</span> @@ -1029,9 +1028,9 @@ if ('onhashchange' in window) { <span id="L964" class="LineNr"> 964 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false, <span class="Constant">0</span> <span id="L965" class="LineNr"> 965 </span> <span class="Delimiter">}</span> <span id="L966" class="LineNr"> 966 </span> top-index <span class="Special"><-</span> decrement -<span id="L967" class="LineNr"> 967 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get stack, data -<span id="L968" class="LineNr"> 968 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L969" class="LineNr"> 969 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, top-index +<span id="L967" class="LineNr"> 967 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get stack, data +<span id="L968" class="LineNr"> 968 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L969" class="LineNr"> 969 </span> <span class="PreProc">var</span> g/eax: (addr grapheme) <span class="Special"><-</span> index data, top-index <span id="L970" class="LineNr"> 970 </span> compare *g, <span class="Constant">0x29</span>/close-paren <span id="L971" class="LineNr"> 971 </span> <span class="Delimiter">{</span> <span id="L972" class="LineNr"> 972 </span> <span class="PreProc">break-if-=</span> @@ -1041,9 +1040,9 @@ if ('onhashchange' in window) { <span id="L976" class="LineNr"> 976 </span> <span class="Delimiter">}</span> <span id="L977" class="LineNr"> 977 </span> <span class="muComment"># cursor is not at end; return (char at cursor == ')')</span> <span id="L978" class="LineNr"> 978 </span> top-index <span class="Special"><-</span> decrement -<span id="L979" class="LineNr"> 979 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get stack, data -<span id="L980" class="LineNr"> 980 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L981" class="LineNr"> 981 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, top-index +<span id="L979" class="LineNr"> 979 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get stack, data +<span id="L980" class="LineNr"> 980 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L981" class="LineNr"> 981 </span> <span class="PreProc">var</span> g/eax: (addr grapheme) <span class="Special"><-</span> index data, top-index <span id="L982" class="LineNr"> 982 </span> compare *g, <span class="Constant">0x29</span>/close-paren <span id="L983" class="LineNr"> 983 </span> <span class="Delimiter">{</span> <span id="L984" class="LineNr"> 984 </span> <span class="PreProc">break-if-=</span> @@ -1064,7 +1063,7 @@ if ('onhashchange' in window) { <span id="L999" class="LineNr"> 999 </span> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, open-paren-depth <span class="Special"><-</span> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a> gap, <span class="Constant">1</span>/render-cursor <span id="L1000" class="LineNr">1000 </span> <a href='../502test.mu.html#L19'>check</a> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L990'>test-highlight-matching-open-paren</a>: at end immediately after ')'"</span> <span id="L1001" class="LineNr">1001 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> open-paren-depth, <span class="Constant">1</span>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L990'>test-highlight-matching-open-paren</a>: depth at end immediately after ')'"</span> -<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> gap +<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> gap <span id="L1003" class="LineNr">1003 </span> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, open-paren-depth <span class="Special"><-</span> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a> gap, <span class="Constant">1</span>/render-cursor <span id="L1004" class="LineNr">1004 </span> <a href='../502test.mu.html#L19'>check</a> <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, <span class="Constant">"F - <a href='gap-buffer.mu.html#L990'>test-highlight-matching-open-paren</a>: on ')'"</span> <span id="L1005" class="LineNr">1005 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> gap @@ -1079,17 +1078,17 @@ if ('onhashchange' in window) { <span id="L1014" class="LineNr">1014 </span><span class="muComment"># restart scan without affecting gap-buffer contents</span> <span id="L1015" class="LineNr">1015 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1015'>rewind-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L1016" class="LineNr">1016 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L1017" class="LineNr">1017 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, left-read-index +<span id="L1017" class="LineNr">1017 </span> <span class="PreProc">var</span> dest/eax: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1018" class="LineNr">1018 </span> copy-to *dest, <span class="Constant">0</span> <span id="L1019" class="LineNr">1019 </span> dest <span class="Special"><-</span> get self, right-read-index <span id="L1020" class="LineNr">1020 </span> copy-to *dest, <span class="Constant">0</span> <span id="L1021" class="LineNr">1021 </span><span class="Delimiter">}</span> <span id="L1022" class="LineNr">1022 </span> -<span id="L1023" class="LineNr">1023 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L1023" class="LineNr">1023 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1024" class="LineNr">1024 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L1025" class="LineNr">1025 </span> <span class="muComment"># more in left?</span> -<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L1027" class="LineNr">1027 </span> <span class="PreProc">var</span> left-size/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left +<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L1027" class="LineNr">1027 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left <span id="L1028" class="LineNr">1028 </span> <span class="PreProc">var</span> left-read-index/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1029" class="LineNr">1029 </span> compare *left-read-index, left-size <span id="L1030" class="LineNr">1030 </span> <span class="Delimiter">{</span> @@ -1097,8 +1096,8 @@ if ('onhashchange' in window) { <span id="L1032" class="LineNr">1032 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L1033" class="LineNr">1033 </span> <span class="Delimiter">}</span> <span id="L1034" class="LineNr">1034 </span> <span class="muComment"># more in right?</span> -<span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right -<span id="L1036" class="LineNr">1036 </span> <span class="PreProc">var</span> right-size/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right +<span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L1036" class="LineNr">1036 </span> <span class="PreProc">var</span> right-size/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right <span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> right-read-index/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, right-read-index <span id="L1038" class="LineNr">1038 </span> compare *right-read-index, right-size <span id="L1039" class="LineNr">1039 </span> <span class="Delimiter">{</span> @@ -1109,73 +1108,73 @@ if ('onhashchange' in window) { <span id="L1044" class="LineNr">1044 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L1045" class="LineNr">1045 </span><span class="Delimiter">}</span> <span id="L1046" class="LineNr">1046 </span> -<span id="L1047" class="LineNr">1047 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L1047" class="LineNr">1047 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L1048" class="LineNr">1048 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L1049" class="LineNr">1049 </span> <span class="muComment"># more in left?</span> <span id="L1050" class="LineNr">1050 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L1051" class="LineNr">1051 </span> <span class="PreProc">var</span> left-size/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left +<span id="L1051" class="LineNr">1051 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left <span id="L1052" class="LineNr">1052 </span> <span class="PreProc">var</span> left-read-index-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1053" class="LineNr">1053 </span> compare *left-read-index-a, left-size <span id="L1054" class="LineNr">1054 </span> <span class="Delimiter">{</span> <span id="L1055" class="LineNr">1055 </span> <span class="PreProc">break-if->=</span> -<span id="L1056" class="LineNr">1056 </span> <span class="PreProc">var</span> left-data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get left, data -<span id="L1057" class="LineNr">1057 </span> <span class="PreProc">var</span> left-data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-data-ah +<span id="L1056" class="LineNr">1056 </span> <span class="PreProc">var</span> left-data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get left, data +<span id="L1057" class="LineNr">1057 </span> <span class="PreProc">var</span> left-data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-data-ah <span id="L1058" class="LineNr">1058 </span> <span class="PreProc">var</span> left-read-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *left-read-index-a -<span id="L1059" class="LineNr">1059 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index left-data, left-read-index +<span id="L1059" class="LineNr">1059 </span> <span class="PreProc">var</span> result/eax: (addr grapheme) <span class="Special"><-</span> index left-data, left-read-index <span id="L1060" class="LineNr">1060 </span> <span class="PreProc">return</span> *result <span id="L1061" class="LineNr">1061 </span> <span class="Delimiter">}</span> <span id="L1062" class="LineNr">1062 </span> <span class="muComment"># more in right?</span> <span id="L1063" class="LineNr">1063 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right -<span id="L1064" class="LineNr">1064 </span> <span class="PreProc">var</span> _right-size/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right +<span id="L1064" class="LineNr">1064 </span> <span class="PreProc">var</span> _right-size/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right <span id="L1065" class="LineNr">1065 </span> <span class="PreProc">var</span> right-size/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _right-size <span id="L1066" class="LineNr">1066 </span> <span class="PreProc">var</span> right-read-index-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, right-read-index <span id="L1067" class="LineNr">1067 </span> compare *right-read-index-a, right-size <span id="L1068" class="LineNr">1068 </span> <span class="Delimiter">{</span> <span id="L1069" class="LineNr">1069 </span> <span class="PreProc">break-if->=</span> <span id="L1070" class="LineNr">1070 </span> <span class="muComment"># read the right from reverse</span> -<span id="L1071" class="LineNr">1071 </span> <span class="PreProc">var</span> right-data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get right, data -<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> right-data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-data-ah +<span id="L1071" class="LineNr">1071 </span> <span class="PreProc">var</span> right-data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get right, data +<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> right-data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-data-ah <span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> right-read-index/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy right-size <span id="L1074" class="LineNr">1074 </span> right-read-index <span class="Special"><-</span> subtract *right-read-index-a <span id="L1075" class="LineNr">1075 </span> right-read-index <span class="Special"><-</span> subtract <span class="Constant">1</span> -<span id="L1076" class="LineNr">1076 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index right-data, right-read-index +<span id="L1076" class="LineNr">1076 </span> <span class="PreProc">var</span> result/eax: (addr grapheme) <span class="Special"><-</span> index right-data, right-read-index <span id="L1077" class="LineNr">1077 </span> <span class="PreProc">return</span> *result <span id="L1078" class="LineNr">1078 </span> <span class="Delimiter">}</span> <span id="L1079" class="LineNr">1079 </span> <span class="muComment"># if we get here there's nothing left</span> <span id="L1080" class="LineNr">1080 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/nul <span id="L1081" class="LineNr">1081 </span><span class="Delimiter">}</span> <span id="L1082" class="LineNr">1082 </span> -<span id="L1083" class="LineNr">1083 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L1083" class="LineNr">1083 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L1084" class="LineNr">1084 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L1085" class="LineNr">1085 </span> <span class="muComment"># more in left?</span> <span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> left-size/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left +<span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left <span id="L1088" class="LineNr">1088 </span> <span class="PreProc">var</span> left-read-index-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1089" class="LineNr">1089 </span> compare *left-read-index-a, left-size <span id="L1090" class="LineNr">1090 </span> <span class="Delimiter">{</span> <span id="L1091" class="LineNr">1091 </span> <span class="PreProc">break-if->=</span> -<span id="L1092" class="LineNr">1092 </span> <span class="PreProc">var</span> left-data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get left, data -<span id="L1093" class="LineNr">1093 </span> <span class="PreProc">var</span> left-data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-data-ah +<span id="L1092" class="LineNr">1092 </span> <span class="PreProc">var</span> left-data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get left, data +<span id="L1093" class="LineNr">1093 </span> <span class="PreProc">var</span> left-data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-data-ah <span id="L1094" class="LineNr">1094 </span> <span class="PreProc">var</span> left-read-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *left-read-index-a -<span id="L1095" class="LineNr">1095 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index left-data, left-read-index +<span id="L1095" class="LineNr">1095 </span> <span class="PreProc">var</span> result/eax: (addr grapheme) <span class="Special"><-</span> index left-data, left-read-index <span id="L1096" class="LineNr">1096 </span> increment *left-read-index-a <span id="L1097" class="LineNr">1097 </span> <span class="PreProc">return</span> *result <span id="L1098" class="LineNr">1098 </span> <span class="Delimiter">}</span> <span id="L1099" class="LineNr">1099 </span> <span class="muComment"># more in right?</span> <span id="L1100" class="LineNr">1100 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right -<span id="L1101" class="LineNr">1101 </span> <span class="PreProc">var</span> _right-size/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right +<span id="L1101" class="LineNr">1101 </span> <span class="PreProc">var</span> _right-size/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right <span id="L1102" class="LineNr">1102 </span> <span class="PreProc">var</span> right-size/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _right-size <span id="L1103" class="LineNr">1103 </span> <span class="PreProc">var</span> right-read-index-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, right-read-index <span id="L1104" class="LineNr">1104 </span> compare *right-read-index-a, right-size <span id="L1105" class="LineNr">1105 </span> <span class="Delimiter">{</span> <span id="L1106" class="LineNr">1106 </span> <span class="PreProc">break-if->=</span> <span id="L1107" class="LineNr">1107 </span> <span class="muComment"># read the right from reverse</span> -<span id="L1108" class="LineNr">1108 </span> <span class="PreProc">var</span> right-data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get right, data -<span id="L1109" class="LineNr">1109 </span> <span class="PreProc">var</span> right-data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-data-ah +<span id="L1108" class="LineNr">1108 </span> <span class="PreProc">var</span> right-data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get right, data +<span id="L1109" class="LineNr">1109 </span> <span class="PreProc">var</span> right-data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-data-ah <span id="L1110" class="LineNr">1110 </span> <span class="PreProc">var</span> right-read-index/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy right-size <span id="L1111" class="LineNr">1111 </span> right-read-index <span class="Special"><-</span> subtract *right-read-index-a <span id="L1112" class="LineNr">1112 </span> right-read-index <span class="Special"><-</span> subtract <span class="Constant">1</span> -<span id="L1113" class="LineNr">1113 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index right-data, right-read-index +<span id="L1113" class="LineNr">1113 </span> <span class="PreProc">var</span> result/eax: (addr grapheme) <span class="Special"><-</span> index right-data, right-read-index <span id="L1114" class="LineNr">1114 </span> increment *right-read-index-a <span id="L1115" class="LineNr">1115 </span> <span class="PreProc">return</span> *result <span id="L1116" class="LineNr">1116 </span> <span class="Delimiter">}</span> @@ -1186,9 +1185,9 @@ if ('onhashchange' in window) { <span id="L1121" class="LineNr">1121 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1121'>put-back-from-gap-buffer</a></span> _self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L1122" class="LineNr">1122 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L1123" class="LineNr">1123 </span> <span class="muComment"># more in right?</span> -<span id="L1124" class="LineNr">1124 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right -<span id="L1125" class="LineNr">1125 </span> <span class="PreProc">var</span> right-size/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right -<span id="L1126" class="LineNr">1126 </span> <span class="PreProc">var</span> right-read-index-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, right-read-index +<span id="L1124" class="LineNr">1124 </span> <span class="PreProc">var</span> right/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L1125" class="LineNr">1125 </span> <span class="PreProc">var</span> right-size/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right +<span id="L1126" class="LineNr">1126 </span> <span class="PreProc">var</span> right-read-index-a/eax: (addr int) <span class="Special"><-</span> get self, right-read-index <span id="L1127" class="LineNr">1127 </span> compare *right-read-index-a, <span class="Constant">0</span> <span id="L1128" class="LineNr">1128 </span> <span class="Delimiter">{</span> <span id="L1129" class="LineNr">1129 </span> <span class="PreProc">break-if-<=</span> @@ -1196,9 +1195,9 @@ if ('onhashchange' in window) { <span id="L1131" class="LineNr">1131 </span> <span class="PreProc">return</span> <span id="L1132" class="LineNr">1132 </span> <span class="Delimiter">}</span> <span id="L1133" class="LineNr">1133 </span> <span class="muComment"># more in left?</span> -<span id="L1134" class="LineNr">1134 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left -<span id="L1135" class="LineNr">1135 </span> <span class="PreProc">var</span> left-size/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left -<span id="L1136" class="LineNr">1136 </span> <span class="PreProc">var</span> left-read-index-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, left-read-index +<span id="L1134" class="LineNr">1134 </span> <span class="PreProc">var</span> left/eax: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L1135" class="LineNr">1135 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left +<span id="L1136" class="LineNr">1136 </span> <span class="PreProc">var</span> left-read-index-a/eax: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1137" class="LineNr">1137 </span> decrement *left-read-index-a <span id="L1138" class="LineNr">1138 </span><span class="Delimiter">}</span> <span id="L1139" class="LineNr">1139 </span> @@ -1207,56 +1206,56 @@ if ('onhashchange' in window) { <span id="L1142" class="LineNr">1142 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address gap-storage <span id="L1143" class="LineNr">1143 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> gap, <span class="Constant">"abc"</span> <span id="L1144" class="LineNr">1144 </span> <span class="muComment"># gap is at end, all contents are in left</span> -<span id="L1145" class="LineNr">1145 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap +<span id="L1145" class="LineNr">1145 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap <span id="L1146" class="LineNr">1146 </span> <a href='../502test.mu.html#L32'>check-not</a> done?, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/left-1/done"</span> -<span id="L1147" class="LineNr">1147 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap +<span id="L1147" class="LineNr">1147 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap <span id="L1148" class="LineNr">1148 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L1149" class="LineNr">1149 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x61</span>/a, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/left-1"</span> -<span id="L1150" class="LineNr">1150 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap +<span id="L1150" class="LineNr">1150 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap <span id="L1151" class="LineNr">1151 </span> <a href='../502test.mu.html#L32'>check-not</a> done?, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/left-2/done"</span> -<span id="L1152" class="LineNr">1152 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap +<span id="L1152" class="LineNr">1152 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap <span id="L1153" class="LineNr">1153 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L1154" class="LineNr">1154 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x62</span>/b, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/left-2"</span> -<span id="L1155" class="LineNr">1155 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap +<span id="L1155" class="LineNr">1155 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap <span id="L1156" class="LineNr">1156 </span> <a href='../502test.mu.html#L32'>check-not</a> done?, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/left-3/done"</span> -<span id="L1157" class="LineNr">1157 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap +<span id="L1157" class="LineNr">1157 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap <span id="L1158" class="LineNr">1158 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L1159" class="LineNr">1159 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x63</span>/c, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/left-3"</span> -<span id="L1160" class="LineNr">1160 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap +<span id="L1160" class="LineNr">1160 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap <span id="L1161" class="LineNr">1161 </span> <a href='../502test.mu.html#L19'>check</a> done?, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/left-4/done"</span> -<span id="L1162" class="LineNr">1162 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap +<span id="L1162" class="LineNr">1162 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap <span id="L1163" class="LineNr">1163 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L1164" class="LineNr">1164 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0</span>/nul, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/left-4"</span> <span id="L1165" class="LineNr">1165 </span> <span class="muComment"># now check when everything is to the right</span> <span id="L1166" class="LineNr">1166 </span> <a href='gap-buffer.mu.html#L452'>gap-to-start</a> gap <span id="L1167" class="LineNr">1167 </span> <a href='gap-buffer.mu.html#L1015'>rewind-gap-buffer</a> gap -<span id="L1168" class="LineNr">1168 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap +<span id="L1168" class="LineNr">1168 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap <span id="L1169" class="LineNr">1169 </span> <a href='../502test.mu.html#L32'>check-not</a> done?, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/right-1/done"</span> -<span id="L1170" class="LineNr">1170 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap +<span id="L1170" class="LineNr">1170 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap <span id="L1171" class="LineNr">1171 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L1172" class="LineNr">1172 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x61</span>/a, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/right-1"</span> -<span id="L1173" class="LineNr">1173 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap +<span id="L1173" class="LineNr">1173 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap <span id="L1174" class="LineNr">1174 </span> <a href='../502test.mu.html#L32'>check-not</a> done?, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/right-2/done"</span> -<span id="L1175" class="LineNr">1175 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap +<span id="L1175" class="LineNr">1175 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap <span id="L1176" class="LineNr">1176 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L1177" class="LineNr">1177 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x62</span>/b, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/right-2"</span> -<span id="L1178" class="LineNr">1178 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap +<span id="L1178" class="LineNr">1178 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap <span id="L1179" class="LineNr">1179 </span> <a href='../502test.mu.html#L32'>check-not</a> done?, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/right-3/done"</span> -<span id="L1180" class="LineNr">1180 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap +<span id="L1180" class="LineNr">1180 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap <span id="L1181" class="LineNr">1181 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L1182" class="LineNr">1182 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0x63</span>/c, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/right-3"</span> -<span id="L1183" class="LineNr">1183 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap +<span id="L1183" class="LineNr">1183 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> gap <span id="L1184" class="LineNr">1184 </span> <a href='../502test.mu.html#L19'>check</a> done?, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/right-4/done"</span> -<span id="L1185" class="LineNr">1185 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap +<span id="L1185" class="LineNr">1185 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> gap <span id="L1186" class="LineNr">1186 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy g <span id="L1187" class="LineNr">1187 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">0</span>/nul, <span class="Constant">"F - <a href='gap-buffer.mu.html#L1140'>test-read-from-gap-buffer</a>/right-4"</span> <span id="L1188" class="LineNr">1188 </span><span class="Delimiter">}</span> <span id="L1189" class="LineNr">1189 </span> <span id="L1190" class="LineNr">1190 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1190'>skip-spaces-from-gap-buffer</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> -<span id="L1191" class="LineNr">1191 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> self +<span id="L1191" class="LineNr">1191 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> self <span id="L1192" class="LineNr">1192 </span> compare done?, <span class="Constant">0</span>/false <span id="L1193" class="LineNr">1193 </span> <span class="PreProc">break-if-!=</span> -<span id="L1194" class="LineNr">1194 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> self +<span id="L1194" class="LineNr">1194 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> self <span id="L1195" class="LineNr">1195 </span> <span class="Delimiter">{</span> <span id="L1196" class="LineNr">1196 </span> compare g, <span class="Constant">0x20</span>/space <span id="L1197" class="LineNr">1197 </span> <span class="PreProc">break-if-=</span> @@ -1277,13 +1276,13 @@ if ('onhashchange' in window) { <span id="L1212" class="LineNr">1212 </span> <span class="Delimiter">{</span> <span id="L1213" class="LineNr">1213 </span> compare g, <span class="Constant">0x80</span>/left-arrow <span id="L1214" class="LineNr">1214 </span> <span class="PreProc">break-if-!=</span> -<span id="L1215" class="LineNr">1215 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self +<span id="L1215" class="LineNr">1215 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self <span id="L1216" class="LineNr">1216 </span> <span class="PreProc">return</span> <span id="L1217" class="LineNr">1217 </span> <span class="Delimiter">}</span> <span id="L1218" class="LineNr">1218 </span> <span class="Delimiter">{</span> <span id="L1219" class="LineNr">1219 </span> compare g, <span class="Constant">0x83</span>/right-arrow <span id="L1220" class="LineNr">1220 </span> <span class="PreProc">break-if-!=</span> -<span id="L1221" class="LineNr">1221 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self +<span id="L1221" class="LineNr">1221 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self <span id="L1222" class="LineNr">1222 </span> <span class="PreProc">return</span> <span id="L1223" class="LineNr">1223 </span> <span class="Delimiter">}</span> <span id="L1224" class="LineNr">1224 </span> <span class="Delimiter">{</span> @@ -1341,7 +1340,7 @@ if ('onhashchange' in window) { <span id="L1276" class="LineNr">1276 </span><span class="Delimiter">}</span> <span id="L1277" class="LineNr">1277 </span> <span id="L1278" class="LineNr">1278 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1278'>gap-to-start-of-next-word</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> -<span id="L1279" class="LineNr">1279 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L1279" class="LineNr">1279 </span> <span class="PreProc">var</span> curr/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1280" class="LineNr">1280 </span> <span class="muComment"># skip to next space</span> <span id="L1281" class="LineNr">1281 </span> <span class="Delimiter">{</span> <span id="L1282" class="LineNr">1282 </span> curr <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self @@ -1368,7 +1367,7 @@ if ('onhashchange' in window) { <span id="L1303" class="LineNr">1303 </span><span class="Delimiter">}</span> <span id="L1304" class="LineNr">1304 </span> <span id="L1305" class="LineNr">1305 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1305'>gap-to-end-of-previous-word</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> -<span id="L1306" class="LineNr">1306 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L1306" class="LineNr">1306 </span> <span class="PreProc">var</span> curr/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1307" class="LineNr">1307 </span> <span class="muComment"># skip to previous space</span> <span id="L1308" class="LineNr">1308 </span> <span class="Delimiter">{</span> <span id="L1309" class="LineNr">1309 </span> curr <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self @@ -1396,7 +1395,7 @@ if ('onhashchange' in window) { <span id="L1331" class="LineNr">1331 </span> <span id="L1332" class="LineNr">1332 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1332'>gap-to-previous-start-of-line</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L1333" class="LineNr">1333 </span> <span class="muComment"># skip past immediate newline</span> -<span id="L1334" class="LineNr">1334 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self +<span id="L1334" class="LineNr">1334 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self <span id="L1335" class="LineNr">1335 </span> <span class="muComment"># skip to previous newline</span> <span id="L1336" class="LineNr">1336 </span> <span class="Delimiter">{</span> <span id="L1337" class="LineNr">1337 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self @@ -1417,7 +1416,7 @@ if ('onhashchange' in window) { <span id="L1352" class="LineNr">1352 </span> <span id="L1353" class="LineNr">1353 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1353'>gap-to-next-end-of-line</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L1354" class="LineNr">1354 </span> <span class="muComment"># skip past immediate newline</span> -<span id="L1355" class="LineNr">1355 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self +<span id="L1355" class="LineNr">1355 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self <span id="L1356" class="LineNr">1356 </span> <span class="muComment"># skip to next newline</span> <span id="L1357" class="LineNr">1357 </span> <span class="Delimiter">{</span> <span id="L1358" class="LineNr">1358 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self @@ -1446,7 +1445,7 @@ if ('onhashchange' in window) { <span id="L1381" class="LineNr">1381 </span> <span class="Delimiter">{</span> <span id="L1382" class="LineNr">1382 </span> compare i, col <span id="L1383" class="LineNr">1383 </span> <span class="PreProc">break-if->=</span> -<span id="L1384" class="LineNr">1384 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self +<span id="L1384" class="LineNr">1384 </span> <span class="PreProc">var</span> curr/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self <span id="L1385" class="LineNr">1385 </span> <span class="Delimiter">{</span> <span id="L1386" class="LineNr">1386 </span> compare curr, <span class="Constant">-1</span> <span id="L1387" class="LineNr">1387 </span> <span class="PreProc">break-if-!=</span> @@ -1468,13 +1467,13 @@ if ('onhashchange' in window) { <span id="L1403" class="LineNr">1403 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1429'>count-columns-to-start-of-line</a> self <span id="L1404" class="LineNr">1404 </span> <span class="muComment"># skip to start of next line</span> <span id="L1405" class="LineNr">1405 </span> <a href='gap-buffer.mu.html#L1452'>gap-to-end-of-line</a> self -<span id="L1406" class="LineNr">1406 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self +<span id="L1406" class="LineNr">1406 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self <span id="L1407" class="LineNr">1407 </span> <span class="muComment"># skip ahead by up to col on previous line</span> <span id="L1408" class="LineNr">1408 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1409" class="LineNr">1409 </span> <span class="Delimiter">{</span> <span id="L1410" class="LineNr">1410 </span> compare i, col <span id="L1411" class="LineNr">1411 </span> <span class="PreProc">break-if->=</span> -<span id="L1412" class="LineNr">1412 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self +<span id="L1412" class="LineNr">1412 </span> <span class="PreProc">var</span> curr/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self <span id="L1413" class="LineNr">1413 </span> <span class="Delimiter">{</span> <span id="L1414" class="LineNr">1414 </span> compare curr, <span class="Constant">-1</span> <span id="L1415" class="LineNr">1415 </span> <span class="PreProc">break-if-!=</span> @@ -1493,7 +1492,7 @@ if ('onhashchange' in window) { <span id="L1428" class="LineNr">1428 </span> <span id="L1429" class="LineNr">1429 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1429'>count-columns-to-start-of-line</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> <span id="L1430" class="LineNr">1430 </span> <span class="PreProc">var</span> count/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L1431" class="LineNr">1431 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L1431" class="LineNr">1431 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1432" class="LineNr">1432 </span> <span class="muComment"># skip to previous newline</span> <span id="L1433" class="LineNr">1433 </span> <span class="Delimiter">{</span> <span id="L1434" class="LineNr">1434 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L496'>gap-left</a> self @@ -1515,7 +1514,7 @@ if ('onhashchange' in window) { <span id="L1450" class="LineNr">1450 </span><span class="Delimiter">}</span> <span id="L1451" class="LineNr">1451 </span> <span id="L1452" class="LineNr">1452 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='gap-buffer.mu.html#L1452'>gap-to-end-of-line</a></span> self: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> -<span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1454" class="LineNr">1454 </span> <span class="muComment"># skip to next newline</span> <span id="L1455" class="LineNr">1455 </span> <span class="Delimiter">{</span> <span id="L1456" class="LineNr">1456 </span> dummy <span class="Special"><-</span> <a href='gap-buffer.mu.html#L482'>gap-right</a> self diff --git a/html/shell/global.mu.html b/html/shell/global.mu.html index 2427b27d..4d9a9efe 100644 --- a/html/shell/global.mu.html +++ b/html/shell/global.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdx { color: #878700; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEcx { color: #af875f; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.Constant { color: #008787; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEbx { color: #8787af; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> @@ -83,7 +82,7 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr"> 19 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"initialize globals"</span> <span id="L20" class="LineNr"> 20 </span> <span class="PreProc">return</span> <span id="L21" class="LineNr"> 21 </span> <span class="Delimiter">}</span> -<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data <span id="L23" class="LineNr"> 23 </span> populate data-ah, <span class="Constant">0x80</span> <span id="L24" class="LineNr"> 24 </span> <a href='primitives.mu.html#L1'>initialize-primitives</a> self <span id="L25" class="LineNr"> 25 </span><span class="Delimiter">}</span> @@ -92,32 +91,32 @@ if ('onhashchange' in window) { <span id="L28" class="LineNr"> 28 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"loading globals:"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> remaining-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L30" class="LineNr"> 30 </span> <span class="Delimiter">{</span> -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> _remaining/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *remaining-ah +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> _remaining/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *remaining-ah <span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> remaining/<span class="muRegEbx">ebx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _remaining -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> remaining +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> remaining <span id="L34" class="LineNr"> 34 </span> compare done?, <span class="Constant">0</span>/false <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">break-if-!=</span> -<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get remaining, left -<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> _curr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-ah +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> curr-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get remaining, left +<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> _curr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-ah <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _curr <span id="L39" class="LineNr"> 39 </span> remaining-ah <span class="Special"><-</span> get remaining, right <span id="L40" class="LineNr"> 40 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span>, <span class="Constant">2</span>/fg <span class="Constant">0</span>/bg -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> name-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, left -<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> name/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *name-ah -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> name-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get name, text-data -<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> _name-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *name-data-ah +<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, left +<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> name/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *name-ah +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> name-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get name, text-data +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> _name-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *name-data-ah <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> name-data/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> copy _name-data <span id="L46" class="LineNr"> 46 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> name-data <span id="L47" class="LineNr"> 47 </span> <a href='../501draw-text.mu.html#L235'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, name-data, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> value-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, right -<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> value/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah -<span id="L50" class="LineNr"> 50 </span> <span class="PreProc">var</span> value-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get value, text-data -<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> _value-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-data-ah +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, right +<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> value/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah +<span id="L50" class="LineNr"> 50 </span> <span class="PreProc">var</span> value-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get value, text-data +<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> _value-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-data-ah <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> value-data/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _value-data <span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> value-gap-buffer-storage: (handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> value-gap-buffer-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address value-gap-buffer-storage <span id="L55" class="LineNr"> 55 </span> <a href='../120allocate.subx.html#L43'>allocate</a> value-gap-buffer-ah -<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> value-gap-buffer/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-gap-buffer-ah +<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> value-gap-buffer/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-gap-buffer-ah <span id="L57" class="LineNr"> 57 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> value-gap-buffer, <span class="Constant">0x1000</span>/4KB <span id="L58" class="LineNr"> 58 </span> <a href='gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a> value-gap-buffer, value-data <span id="L59" class="LineNr"> 59 </span> <a href='global.mu.html#L539'>load-lexical-scope</a> value-gap-buffer-ah, self @@ -135,8 +134,8 @@ if ('onhashchange' in window) { <span id="L71" class="LineNr"> 71 </span> <span class="PreProc">return</span> <span id="L72" class="LineNr"> 72 </span> <span class="Delimiter">}</span> <span id="L73" class="LineNr"> 73 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">" (globals . (\n"</span> -<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> final-index/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, final-index <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span>/skip-0 <span id="L78" class="LineNr"> 78 </span> <span class="Delimiter">{</span> @@ -145,8 +144,8 @@ if ('onhashchange' in window) { <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index <span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> curr-value-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> curr-value/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-value-ah -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> curr-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-value, <span class="PreProc">type</span> +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> curr-value/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-value-ah +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> curr-type/eax: (addr int) <span class="Special"><-</span> get curr-value, <span class="PreProc">type</span> <span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">{</span> <span id="L87" class="LineNr"> 87 </span> compare *curr-type, <span class="Constant">4</span>/primitive-function <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">break-if-=</span> @@ -157,12 +156,12 @@ if ('onhashchange' in window) { <span id="L93" class="LineNr"> 93 </span> compare *curr-type, <span class="Constant">3</span>/stream <span class="muComment"># not implemented yet</span> <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">break-if-=</span> <span id="L95" class="LineNr"> 95 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">" ("</span> -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, name -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> curr-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-name-ah +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, name +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> curr-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-name-ah <span id="L98" class="LineNr"> 98 </span> <a href='../108write.subx.html#L11'>write</a> out, curr-name <span id="L99" class="LineNr"> 99 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">" . ["</span> -<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> curr-input-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr, input -<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> curr-input/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-input-ah +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> curr-input-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr, input +<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> curr-input/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-input-ah <span id="L102" class="LineNr">102 </span> <span class="Delimiter">{</span> <span id="L103" class="LineNr">103 </span> compare curr-input, <span class="Constant">0</span> <span id="L104" class="LineNr">104 </span> <span class="PreProc">break-if-!=</span> @@ -187,13 +186,13 @@ if ('onhashchange' in window) { <span id="L123" class="LineNr">123 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"render globals"</span> <span id="L124" class="LineNr">124 </span> <span class="PreProc">return</span> <span id="L125" class="LineNr">125 </span> <span class="Delimiter">}</span> -<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data -<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L129" class="LineNr">129 </span> <span class="Delimiter">{</span> <span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index <span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset -<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> continue?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='primitives.mu.html#L113'>primitive-global?</a> curr +<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='primitives.mu.html#L113'>primitive-global?</a> curr <span id="L133" class="LineNr">133 </span> compare continue?, <span class="Constant">0</span>/false <span id="L134" class="LineNr">134 </span> <span class="PreProc">break-if-=</span> <span id="L135" class="LineNr">135 </span> curr-index <span class="Special"><-</span> increment @@ -221,23 +220,23 @@ if ('onhashchange' in window) { <span id="L157" class="LineNr">157 </span> <span class="Delimiter">{</span> <span id="L158" class="LineNr">158 </span> compare show-cursor?, <span class="Constant">0</span>/false <span id="L159" class="LineNr">159 </span> <span class="PreProc">break-if-=</span> -<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> cursor-index/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-index +<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> cursor-index/eax: (addr int) <span class="Special"><-</span> get self, cursor-index <span id="L161" class="LineNr">161 </span> compare *cursor-index, curr-index <span id="L162" class="LineNr">162 </span> <span class="PreProc">break-if-!=</span> <span id="L163" class="LineNr">163 </span> copy-to cursor-in-current-line?, <span class="Constant">1</span>/true <span id="L164" class="LineNr">164 </span> <span class="Delimiter">}</span> <span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEdx">edx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index <span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> curr/<span class="muRegEdx">edx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset -<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> curr-input-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr, input -<span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> _curr-input/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-input-ah +<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> curr-input-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr, input +<span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> _curr-input/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-input-ah <span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> curr-input/<span class="muRegEbx">ebx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _curr-input <span id="L170" class="LineNr">170 </span> compare curr-input, <span class="Constant">0</span> <span id="L171" class="LineNr">171 </span> <span class="PreProc">break-if-=</span> -<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> curr-trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get curr, trace -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> _curr-trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-trace-ah +<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> curr-trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get curr, trace +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> _curr-trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-trace-ah <span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> curr-trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> copy _curr-trace <span id="L175" class="LineNr">175 </span> $render-globals:render-global: <span class="Delimiter">{</span> -<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y1 <span id="L178" class="LineNr">178 </span> compare y, y2 <span id="L179" class="LineNr">179 </span> <span class="Delimiter">{</span> @@ -264,7 +263,7 @@ if ('onhashchange' in window) { <span id="L200" class="LineNr">200 </span><span class="Delimiter">}</span> <span id="L201" class="LineNr">201 </span> <span id="L202" class="LineNr">202 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L202'>render-globals-menu</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Delimiter">{</span> -<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> _width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L205" class="LineNr">205 </span> _width, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _width @@ -302,12 +301,12 @@ if ('onhashchange' in window) { <span id="L238" class="LineNr">238 </span> <span class="Delimiter">}</span> <span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> cursor-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, cursor-index <span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> cursor-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-index-addr -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data -<span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> cursor-offset/<span class="muRegEcx">ecx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, cursor-index -<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> curr-global/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, cursor-offset -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> curr-editor-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr-global, input -<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> curr-editor/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-editor-ah +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> curr-global/eax: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, cursor-offset +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> curr-editor-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr-global, input +<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> curr-editor/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-editor-ah <span id="L247" class="LineNr">247 </span> <a href='gap-buffer.mu.html#L1204'>edit-gap-buffer</a> curr-editor, key <span id="L248" class="LineNr">248 </span><span class="Delimiter">}</span> <span id="L249" class="LineNr">249 </span> @@ -316,21 +315,21 @@ if ('onhashchange' in window) { <span id="L252" class="LineNr">252 </span> <span class="PreProc">var</span> final-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, final-index <span id="L253" class="LineNr">253 </span> increment *final-index-addr <span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *final-index-addr -<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> cursor-index-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-index +<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> cursor-index-addr/eax: (addr int) <span class="Special"><-</span> get self, cursor-index <span id="L256" class="LineNr">256 </span> copy-to *cursor-index-addr, curr-index -<span id="L257" class="LineNr">257 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data -<span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L257" class="LineNr">257 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEcx">ecx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index <span id="L260" class="LineNr">260 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset -<span id="L261" class="LineNr">261 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, name +<span id="L261" class="LineNr">261 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, name <span id="L262" class="LineNr">262 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> name-stream, curr-name-ah -<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> curr-input-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr, input +<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> curr-input-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr, input <span id="L264" class="LineNr">264 </span> <a href='../120allocate.subx.html#L43'>allocate</a> curr-input-ah -<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> curr-input/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-input-ah +<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> curr-input/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-input-ah <span id="L266" class="LineNr">266 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> curr-input, capacity -<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get curr, trace +<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get curr, trace <span id="L268" class="LineNr">268 </span> <a href='../120allocate.subx.html#L43'>allocate</a> trace-ah -<span id="L269" class="LineNr">269 </span> <span class="PreProc">var</span> trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L269" class="LineNr">269 </span> <span class="PreProc">var</span> trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L270" class="LineNr">270 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L271" class="LineNr">271 </span><span class="Delimiter">}</span> <span id="L272" class="LineNr">272 </span> @@ -342,14 +341,14 @@ if ('onhashchange' in window) { <span id="L278" class="LineNr">278 </span> <span id="L279" class="LineNr">279 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L279'>refresh-definition</a></span> _self: (addr <a href='global.mu.html#L1'>global-table</a>), _index: int <span class="Delimiter">{</span> <span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _self -<span id="L281" class="LineNr">281 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data -<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L281" class="LineNr">281 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L283" class="LineNr">283 </span> <span class="PreProc">var</span> index/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _index <span id="L284" class="LineNr">284 </span> <span class="PreProc">var</span> offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, index <span id="L285" class="LineNr">285 </span> <span class="PreProc">var</span> curr-global/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, offset <span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> curr-input-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get curr-global, input -<span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> curr-trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get curr-global, trace -<span id="L288" class="LineNr">288 </span> <span class="PreProc">var</span> curr-trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-trace-ah +<span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> curr-trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get curr-global, trace +<span id="L288" class="LineNr">288 </span> <span class="PreProc">var</span> curr-trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-trace-ah <span id="L289" class="LineNr">289 </span> <a href='trace.mu.html#L80'>clear-trace</a> curr-trace <span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> curr-value-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr-global, value <span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> definitions-created-storage: (stream int <span class="Constant">0x10</span>) @@ -368,32 +367,32 @@ if ('onhashchange' in window) { <span id="L304" class="LineNr">304 </span> <span class="Delimiter">{</span> <span id="L305" class="LineNr">305 </span> compare curr-index, <span class="Constant">-1</span>/not-found <span id="L306" class="LineNr">306 </span> <span class="PreProc">break-if-!=</span> -<span id="L307" class="LineNr">307 </span> <span class="PreProc">var</span> final-index-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, final-index +<span id="L307" class="LineNr">307 </span> <span class="PreProc">var</span> final-index-addr/eax: (addr int) <span class="Special"><-</span> get self, final-index <span id="L308" class="LineNr">308 </span> increment *final-index-addr <span id="L309" class="LineNr">309 </span> curr-index <span class="Special"><-</span> copy *final-index-addr -<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> cursor-index-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-index +<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> cursor-index-addr/eax: (addr int) <span class="Special"><-</span> get self, cursor-index <span id="L311" class="LineNr">311 </span> copy-to *cursor-index-addr, curr-index <span id="L312" class="LineNr">312 </span> <span class="Delimiter">}</span> -<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data -<span id="L314" class="LineNr">314 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L314" class="LineNr">314 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEsi">esi</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index <span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset -<span id="L317" class="LineNr">317 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, name +<span id="L317" class="LineNr">317 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, name <span id="L318" class="LineNr">318 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> name, curr-name-ah -<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> curr-value-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value +<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> curr-value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value <span id="L320" class="LineNr">320 </span> <a href='../120allocate.subx.html#L479'>copy-handle</a> value, curr-value-ah <span id="L321" class="LineNr">321 </span> <span class="PreProc">var</span> index-updated/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> copy index-updated <span id="L322" class="LineNr">322 </span> copy-to *index-updated, curr-index -<span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get curr, trace +<span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get curr, trace <span id="L324" class="LineNr">324 </span> <a href='../120allocate.subx.html#L43'>allocate</a> trace-ah -<span id="L325" class="LineNr">325 </span> <span class="PreProc">var</span> trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L325" class="LineNr">325 </span> <span class="PreProc">var</span> trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L326" class="LineNr">326 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L327" class="LineNr">327 </span><span class="Delimiter">}</span> <span id="L328" class="LineNr">328 </span> <span id="L329" class="LineNr">329 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L329'>lookup-symbol-in-globals</a></span> _sym: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), _globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace), inner-screen-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), inner-keyboard-var: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> -<span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> sym/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _sym -<span id="L331" class="LineNr">331 </span> <span class="PreProc">var</span> sym-name-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get sym, text-data -<span id="L332" class="LineNr">332 </span> <span class="PreProc">var</span> _sym-name/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-name-ah +<span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> sym/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _sym +<span id="L331" class="LineNr">331 </span> <span class="PreProc">var</span> sym-name-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get sym, text-data +<span id="L332" class="LineNr">332 </span> <span class="PreProc">var</span> _sym-name/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-name-ah <span id="L333" class="LineNr">333 </span> <span class="PreProc">var</span> sym-name/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> copy _sym-name <span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> globals/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _globals <span id="L335" class="LineNr">335 </span> <span class="Delimiter">{</span> @@ -402,17 +401,17 @@ if ('onhashchange' in window) { <span id="L338" class="LineNr">338 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='global.mu.html#L402'>find-symbol-in-globals</a> globals, sym-name <span id="L339" class="LineNr">339 </span> compare curr-index, <span class="Constant">-1</span>/not-found <span id="L340" class="LineNr">340 </span> <span class="PreProc">break-if-=</span> -<span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> global-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L342" class="LineNr">342 </span> <span class="PreProc">var</span> global-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah +<span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L342" class="LineNr">342 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah <span id="L343" class="LineNr">343 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, curr-index <span id="L344" class="LineNr">344 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, curr-offset -<span id="L345" class="LineNr">345 </span> <span class="PreProc">var</span> curr-value/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value +<span id="L345" class="LineNr">345 </span> <span class="PreProc">var</span> curr-value/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value <span id="L346" class="LineNr">346 </span> copy-object curr-value, out <span id="L347" class="LineNr">347 </span> <span class="PreProc">return</span> <span id="L348" class="LineNr">348 </span> <span class="Delimiter">}</span> <span id="L349" class="LineNr">349 </span> <span class="muComment"># if sym is "screen" and inner-screen-var exists, return it</span> <span id="L350" class="LineNr">350 </span> <span class="Delimiter">{</span> -<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> sym-is-screen?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> sym-name, <span class="Constant">"screen"</span> +<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> sym-is-screen?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> sym-name, <span class="Constant">"screen"</span> <span id="L352" class="LineNr">352 </span> compare sym-is-screen?, <span class="Constant">0</span>/false <span id="L353" class="LineNr">353 </span> <span class="PreProc">break-if-=</span> <span id="L354" class="LineNr">354 </span> compare inner-screen-var, <span class="Constant">0</span> @@ -422,7 +421,7 @@ if ('onhashchange' in window) { <span id="L358" class="LineNr">358 </span> <span class="Delimiter">}</span> <span id="L359" class="LineNr">359 </span> <span class="muComment"># if sym is "keyboard" and inner-keyboard-var exists, return it</span> <span id="L360" class="LineNr">360 </span> <span class="Delimiter">{</span> -<span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> sym-is-keyboard?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> sym-name, <span class="Constant">"keyboard"</span> +<span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> sym-is-keyboard?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> sym-name, <span class="Constant">"keyboard"</span> <span id="L362" class="LineNr">362 </span> compare sym-is-keyboard?, <span class="Constant">0</span>/false <span id="L363" class="LineNr">363 </span> <span class="PreProc">break-if-=</span> <span id="L364" class="LineNr">364 </span> compare inner-keyboard-var, <span class="Constant">0</span> @@ -440,9 +439,9 @@ if ('onhashchange' in window) { <span id="L376" class="LineNr">376 </span><span class="Delimiter">}</span> <span id="L377" class="LineNr">377 </span> <span id="L378" class="LineNr">378 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L378'>maybe-lookup-symbol-in-globals</a></span> _sym: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), _globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L379" class="LineNr">379 </span> <span class="PreProc">var</span> sym/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _sym -<span id="L380" class="LineNr">380 </span> <span class="PreProc">var</span> sym-name-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get sym, text-data -<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> _sym-name/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-name-ah +<span id="L379" class="LineNr">379 </span> <span class="PreProc">var</span> sym/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _sym +<span id="L380" class="LineNr">380 </span> <span class="PreProc">var</span> sym-name-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get sym, text-data +<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> _sym-name/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-name-ah <span id="L382" class="LineNr">382 </span> <span class="PreProc">var</span> sym-name/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> copy _sym-name <span id="L383" class="LineNr">383 </span> <span class="PreProc">var</span> globals/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _globals <span id="L384" class="LineNr">384 </span> <span class="Delimiter">{</span> @@ -451,11 +450,11 @@ if ('onhashchange' in window) { <span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='global.mu.html#L402'>find-symbol-in-globals</a> globals, sym-name <span id="L388" class="LineNr">388 </span> compare curr-index, <span class="Constant">-1</span>/not-found <span id="L389" class="LineNr">389 </span> <span class="PreProc">break-if-=</span> -<span id="L390" class="LineNr">390 </span> <span class="PreProc">var</span> global-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L391" class="LineNr">391 </span> <span class="PreProc">var</span> global-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah +<span id="L390" class="LineNr">390 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L391" class="LineNr">391 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah <span id="L392" class="LineNr">392 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, curr-index <span id="L393" class="LineNr">393 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, curr-offset -<span id="L394" class="LineNr">394 </span> <span class="PreProc">var</span> curr-value/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value +<span id="L394" class="LineNr">394 </span> <span class="PreProc">var</span> curr-value/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value <span id="L395" class="LineNr">395 </span> copy-object curr-value, out <span id="L396" class="LineNr">396 </span> <span class="PreProc">return</span> <span id="L397" class="LineNr">397 </span> <span class="Delimiter">}</span> @@ -470,8 +469,8 @@ if ('onhashchange' in window) { <span id="L406" class="LineNr">406 </span> <span class="PreProc">break-if-!=</span> <span id="L407" class="LineNr">407 </span> <span class="PreProc">return</span> <span class="Constant">-1</span>/not-found <span id="L408" class="LineNr">408 </span> <span class="Delimiter">}</span> -<span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> global-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L410" class="LineNr">410 </span> <span class="PreProc">var</span> global-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah +<span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L410" class="LineNr">410 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah <span id="L411" class="LineNr">411 </span> <span class="PreProc">var</span> final-index/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get globals, final-index <span id="L412" class="LineNr">412 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *final-index <span id="L413" class="LineNr">413 </span> <span class="Delimiter">{</span> @@ -479,9 +478,9 @@ if ('onhashchange' in window) { <span id="L415" class="LineNr">415 </span> <span class="PreProc">break-if-<</span> <span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, curr-index <span id="L417" class="LineNr">417 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, curr-offset -<span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, name -<span id="L419" class="LineNr">419 </span> <span class="PreProc">var</span> curr-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-name-ah -<span id="L420" class="LineNr">420 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> sym-name, curr-name +<span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, name +<span id="L419" class="LineNr">419 </span> <span class="PreProc">var</span> curr-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-name-ah +<span id="L420" class="LineNr">420 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> sym-name, curr-name <span id="L421" class="LineNr">421 </span> compare found?, <span class="Constant">0</span>/false <span id="L422" class="LineNr">422 </span> <span class="Delimiter">{</span> <span id="L423" class="LineNr">423 </span> <span class="PreProc">break-if-=</span> @@ -502,8 +501,8 @@ if ('onhashchange' in window) { <span id="L438" class="LineNr">438 </span> <span class="PreProc">break-if-!=</span> <span id="L439" class="LineNr">439 </span> <span class="PreProc">return</span> <span class="Constant">-1</span>/not-found <span id="L440" class="LineNr">440 </span> <span class="Delimiter">}</span> -<span id="L441" class="LineNr">441 </span> <span class="PreProc">var</span> global-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L442" class="LineNr">442 </span> <span class="PreProc">var</span> global-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah +<span id="L441" class="LineNr">441 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L442" class="LineNr">442 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah <span id="L443" class="LineNr">443 </span> <span class="PreProc">var</span> final-index/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get globals, final-index <span id="L444" class="LineNr">444 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *final-index <span id="L445" class="LineNr">445 </span> <span class="Delimiter">{</span> @@ -511,9 +510,9 @@ if ('onhashchange' in window) { <span id="L447" class="LineNr">447 </span> <span class="PreProc">break-if-<</span> <span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, curr-index <span id="L449" class="LineNr">449 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, curr-offset -<span id="L450" class="LineNr">450 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, name -<span id="L451" class="LineNr">451 </span> <span class="PreProc">var</span> curr-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-name-ah -<span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> sym-name, curr-name +<span id="L450" class="LineNr">450 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, name +<span id="L451" class="LineNr">451 </span> <span class="PreProc">var</span> curr-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-name-ah +<span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> sym-name, curr-name <span id="L453" class="LineNr">453 </span> compare found?, <span class="Constant">0</span>/false <span id="L454" class="LineNr">454 </span> <span class="Delimiter">{</span> <span id="L455" class="LineNr">455 </span> <span class="PreProc">break-if-=</span> @@ -533,11 +532,11 @@ if ('onhashchange' in window) { <span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='global.mu.html#L402'>find-symbol-in-globals</a> globals, name <span id="L470" class="LineNr">470 </span> compare curr-index, <span class="Constant">-1</span>/not-found <span id="L471" class="LineNr">471 </span> <span class="PreProc">break-if-=</span> -<span id="L472" class="LineNr">472 </span> <span class="PreProc">var</span> global-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L473" class="LineNr">473 </span> <span class="PreProc">var</span> global-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah +<span id="L472" class="LineNr">472 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L473" class="LineNr">473 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah <span id="L474" class="LineNr">474 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, curr-index <span id="L475" class="LineNr">475 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, curr-offset -<span id="L476" class="LineNr">476 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value +<span id="L476" class="LineNr">476 </span> <span class="PreProc">var</span> dest/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value <span id="L477" class="LineNr">477 </span> copy-object val, dest <span id="L478" class="LineNr">478 </span> <span class="PreProc">return</span> <span id="L479" class="LineNr">479 </span> <span class="Delimiter">}</span> @@ -551,18 +550,18 @@ if ('onhashchange' in window) { <span id="L487" class="LineNr">487 </span><span class="Delimiter">}</span> <span id="L488" class="LineNr">488 </span> <span id="L489" class="LineNr">489 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L489'>stash-gap-buffer-to-globals</a></span> _globals: (addr <a href='global.mu.html#L1'>global-table</a>), definitions: (addr stream int), gap: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> -<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> globals/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _globals +<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> globals/eax: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _globals <span id="L491" class="LineNr">491 </span> compare globals, <span class="Constant">0</span> <span id="L492" class="LineNr">492 </span> <span class="Delimiter">{</span> <span id="L493" class="LineNr">493 </span> <span class="PreProc">break-if-!=</span> <span id="L494" class="LineNr">494 </span> <span class="PreProc">return</span> <span id="L495" class="LineNr">495 </span> <span class="Delimiter">}</span> -<span id="L496" class="LineNr">496 </span> <span class="PreProc">var</span> global-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L497" class="LineNr">497 </span> <span class="PreProc">var</span> global-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah +<span id="L496" class="LineNr">496 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L497" class="LineNr">497 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah <span id="L498" class="LineNr">498 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> definitions <span id="L499" class="LineNr">499 </span> <span class="Delimiter">{</span> <span id="L500" class="LineNr">500 </span> <span class="Delimiter">{</span> -<span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> definitions +<span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> definitions <span id="L502" class="LineNr">502 </span> compare done?, <span class="Constant">0</span>/false <span id="L503" class="LineNr">503 </span> <span class="Delimiter">}</span> <span id="L504" class="LineNr">504 </span> <span class="PreProc">break-if-!=</span> @@ -571,27 +570,27 @@ if ('onhashchange' in window) { <span id="L507" class="LineNr">507 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> definitions, index-addr <span id="L508" class="LineNr">508 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *index-addr <span id="L509" class="LineNr">509 </span> <span class="PreProc">var</span> offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, index -<span id="L510" class="LineNr">510 </span> <span class="PreProc">var</span> dest-global/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, offset -<span id="L511" class="LineNr">511 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get dest-global, input +<span id="L510" class="LineNr">510 </span> <span class="PreProc">var</span> dest-global/eax: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, offset +<span id="L511" class="LineNr">511 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get dest-global, input <span id="L512" class="LineNr">512 </span> copy-object gap, dest-ah <span id="L513" class="LineNr">513 </span> <span class="PreProc">loop</span> <span id="L514" class="LineNr">514 </span> <span class="Delimiter">}</span> <span id="L515" class="LineNr">515 </span><span class="Delimiter">}</span> <span id="L516" class="LineNr">516 </span> -<span id="L517" class="LineNr">517 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L517'>is-definition?</a></span> _expr: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L518" class="LineNr">518 </span> <span class="PreProc">var</span> expr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _expr +<span id="L517" class="LineNr">517 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L517'>is-definition?</a></span> _expr: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L518" class="LineNr">518 </span> <span class="PreProc">var</span> expr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _expr <span id="L519" class="LineNr">519 </span> <span class="muComment"># if expr->left is neither "define" nor "set", return</span> -<span id="L520" class="LineNr">520 </span> <span class="PreProc">var</span> left-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get expr, left -<span id="L521" class="LineNr">521 </span> <span class="PreProc">var</span> _left/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah +<span id="L520" class="LineNr">520 </span> <span class="PreProc">var</span> left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get expr, left +<span id="L521" class="LineNr">521 </span> <span class="PreProc">var</span> _left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah <span id="L522" class="LineNr">522 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _left <span id="L523" class="LineNr">523 </span> <span class="Delimiter">{</span> -<span id="L524" class="LineNr">524 </span> <span class="PreProc">var</span> def?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"define"</span> +<span id="L524" class="LineNr">524 </span> <span class="PreProc">var</span> def?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"define"</span> <span id="L525" class="LineNr">525 </span> compare def?, <span class="Constant">0</span>/false <span id="L526" class="LineNr">526 </span> <span class="PreProc">break-if-=</span> <span id="L527" class="LineNr">527 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L528" class="LineNr">528 </span> <span class="Delimiter">}</span> <span id="L529" class="LineNr">529 </span> <span class="Delimiter">{</span> -<span id="L530" class="LineNr">530 </span> <span class="PreProc">var</span> set?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"set"</span> +<span id="L530" class="LineNr">530 </span> <span class="PreProc">var</span> set?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"set"</span> <span id="L531" class="LineNr">531 </span> compare set?, <span class="Constant">0</span>/false <span id="L532" class="LineNr">532 </span> <span class="PreProc">break-if-=</span> <span id="L533" class="LineNr">533 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true @@ -607,7 +606,7 @@ if ('onhashchange' in window) { <span id="L543" class="LineNr">543 </span> <span class="PreProc">var</span> trace-h: (handle trace) <span id="L544" class="LineNr">544 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEdx">edx</span>: (addr handle trace) <span class="Special"><-</span> address trace-h <span id="L545" class="LineNr">545 </span> <a href='../120allocate.subx.html#L43'>allocate</a> trace-ah -<span id="L546" class="LineNr">546 </span> <span class="PreProc">var</span> trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L546" class="LineNr">546 </span> <span class="PreProc">var</span> trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L547" class="LineNr">547 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L548" class="LineNr">548 </span> <span class="PreProc">var</span> dummy-result-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L549" class="LineNr">549 </span> <span class="PreProc">var</span> dummy-result-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address dummy-result-h @@ -615,19 +614,19 @@ if ('onhashchange' in window) { <span id="L551" class="LineNr">551 </span> <span class="muComment">#</span> <span id="L552" class="LineNr">552 </span> <span class="muComment"># save trace to all needed globals as well</span> <span id="L553" class="LineNr">553 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> definitions-created -<span id="L554" class="LineNr">554 </span> <span class="PreProc">var</span> globals-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L555" class="LineNr">555 </span> <span class="PreProc">var</span> _globals-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *globals-data-ah +<span id="L554" class="LineNr">554 </span> <span class="PreProc">var</span> globals-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L555" class="LineNr">555 </span> <span class="PreProc">var</span> _globals-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *globals-data-ah <span id="L556" class="LineNr">556 </span> <span class="PreProc">var</span> globals-data/<span class="muRegEdi">edi</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> copy _globals-data <span id="L557" class="LineNr">557 </span> <span class="Delimiter">{</span> -<span id="L558" class="LineNr">558 </span> <span class="PreProc">var</span> no-definitions?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> definitions-created +<span id="L558" class="LineNr">558 </span> <span class="PreProc">var</span> no-definitions?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> definitions-created <span id="L559" class="LineNr">559 </span> compare no-definitions?, <span class="Constant">0</span>/false <span id="L560" class="LineNr">560 </span> <span class="PreProc">break-if-!=</span> <span id="L561" class="LineNr">561 </span> <span class="PreProc">var</span> curr-index: int -<span id="L562" class="LineNr">562 </span> <span class="PreProc">var</span> curr-index-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> address curr-index +<span id="L562" class="LineNr">562 </span> <span class="PreProc">var</span> curr-index-a/eax: (addr int) <span class="Special"><-</span> address curr-index <span id="L563" class="LineNr">563 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> definitions-created, curr-index-a -<span id="L564" class="LineNr">564 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEax">eax</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset globals-data, curr-index +<span id="L564" class="LineNr">564 </span> <span class="PreProc">var</span> curr-offset/eax: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset globals-data, curr-index <span id="L565" class="LineNr">565 </span> <span class="PreProc">var</span> curr-global/<span class="muRegEcx">ecx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index globals-data, curr-offset -<span id="L566" class="LineNr">566 </span> <span class="PreProc">var</span> curr-trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get curr-global, trace +<span id="L566" class="LineNr">566 </span> <span class="PreProc">var</span> curr-trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get curr-global, trace <span id="L567" class="LineNr">567 </span> copy-object trace-ah, curr-trace-ah <span id="L568" class="LineNr">568 </span> <span class="PreProc">loop</span> <span id="L569" class="LineNr">569 </span> <span class="Delimiter">}</span> diff --git a/html/shell/grapheme-stack.mu.html b/html/shell/grapheme-stack.mu.html index 613ec2ae..2c62b92b 100644 --- a/html/shell/grapheme-stack.mu.html +++ b/html/shell/grapheme-stack.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -74,19 +73,19 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data <span id="L11" class="LineNr"> 11 </span> populate d, n -<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> top/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top +<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L13" class="LineNr"> 13 </span> copy-to *top, <span class="Constant">0</span> <span id="L14" class="LineNr"> 14 </span><span class="Delimiter">}</span> <span id="L15" class="LineNr"> 15 </span> <span id="L16" class="LineNr"> 16 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L16'>clear-grapheme-stack</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Delimiter">{</span> <span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self -<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> top/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L19" class="LineNr"> 19 </span> copy-to *top, <span class="Constant">0</span> <span id="L20" class="LineNr"> 20 </span><span class="Delimiter">}</span> <span id="L21" class="LineNr"> 21 </span> -<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self -<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> top/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top +<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L25" class="LineNr"> 25 </span> compare *top, <span class="Constant">0</span> <span id="L26" class="LineNr"> 26 </span> <span class="Delimiter">{</span> <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">break-if-!=</span> @@ -95,9 +94,9 @@ if ('onhashchange' in window) { <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L31" class="LineNr"> 31 </span><span class="Delimiter">}</span> <span id="L32" class="LineNr"> 32 </span> -<span id="L33" class="LineNr"> 33 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L33" class="LineNr"> 33 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L33'>grapheme-stack-length</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> top/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">return</span> *top <span id="L37" class="LineNr"> 37 </span><span class="Delimiter">}</span> <span id="L38" class="LineNr"> 38 </span> @@ -105,15 +104,15 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> top/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr grapheme) <span class="Special"><-</span> index data, top -<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy _val +<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> val/eax: grapheme <span class="Special"><-</span> copy _val <span id="L47" class="LineNr"> 47 </span> copy-to *dest-addr, val <span id="L48" class="LineNr"> 48 </span> add-to *top-addr, <span class="Constant">1</span> <span id="L49" class="LineNr"> 49 </span><span class="Delimiter">}</span> <span id="L50" class="LineNr"> 50 </span> -<span id="L51" class="LineNr"> 51 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: grapheme <span class="Delimiter">{</span> +<span id="L51" class="LineNr"> 51 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L51'>pop-grapheme-stack</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: grapheme <span class="Delimiter">{</span> <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L54" class="LineNr"> 54 </span> <span class="Delimiter">{</span> @@ -123,19 +122,19 @@ if ('onhashchange' in window) { <span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">}</span> <span id="L59" class="LineNr"> 59 </span> subtract-from *top-addr, <span class="Constant">1</span> <span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> top/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr -<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> index data, top +<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> result-addr/eax: (addr grapheme) <span class="Special"><-</span> index data, top <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">return</span> *result-addr <span id="L65" class="LineNr"> 65 </span><span class="Delimiter">}</span> <span id="L66" class="LineNr"> 66 </span> <span id="L67" class="LineNr"> 67 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L67'>copy-grapheme-stack</a></span> _src: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), dest: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Delimiter">{</span> <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _src <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get src, data -<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get src, top -<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">{</span> <span id="L75" class="LineNr"> 75 </span> compare i, *top-addr <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">break-if->=</span> @@ -149,13 +148,13 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span><span class="muComment"># dump stack to screen from bottom to top</span> <span id="L85" class="LineNr"> 85 </span><span class="muComment"># hardcoded colors:</span> <span id="L86" class="LineNr"> 86 </span><span class="muComment"># matching paren</span> -<span id="L87" class="LineNr"> 87 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L87" class="LineNr"> 87 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> matching-open-paren-index/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L434'>get-matching-open-paren-index</a> self, <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, open-paren-depth <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _x +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy _x <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _y <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEsi">esi</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> @@ -166,7 +165,7 @@ if ('onhashchange' in window) { <span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> g/<span class="muRegEsi">esi</span>: (addr grapheme) <span class="Special"><-</span> index data, i <span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> fg: int <span id="L103" class="LineNr">103 </span> <span class="Delimiter">{</span> -<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy color +<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy color <span id="L105" class="LineNr">105 </span> copy-to fg, tmp <span id="L106" class="LineNr">106 </span> <span class="Delimiter">}</span> <span id="L107" class="LineNr">107 </span> <span class="Delimiter">{</span> @@ -183,13 +182,13 @@ if ('onhashchange' in window) { <span id="L118" class="LineNr">118 </span><span class="Delimiter">}</span> <span id="L119" class="LineNr">119 </span> <span id="L120" class="LineNr">120 </span><span class="muComment"># helper for small words</span> -<span id="L121" class="LineNr">121 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> _width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L121" class="LineNr">121 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> _height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L124" class="LineNr">124 </span> _width, _height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _width <span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _height -<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L129" class="LineNr">129 </span> x2, y2 <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, x, y, width, height, x, y, <a href='gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, open-paren-depth, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L130" class="LineNr">130 </span> <span class="PreProc">return</span> x2 <span class="muComment"># y2? yolo</span> @@ -200,13 +199,13 @@ if ('onhashchange' in window) { <span id="L135" class="LineNr">135 </span><span class="muComment"># hard-coded colors:</span> <span id="L136" class="LineNr">136 </span><span class="muComment"># matching paren</span> <span id="L137" class="LineNr">137 </span><span class="muComment"># cursor</span> -<span id="L138" class="LineNr">138 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L138'>render-stack-from-top-wrapping-right-then-down</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L138" class="LineNr">138 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L138'>render-stack-from-top-wrapping-right-then-down</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> matching-close-paren-index/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L378'>get-matching-close-paren-index</a> self, render-cursor? -<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get self, data +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data -<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _x +<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy _x <span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _y <span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *top-addr @@ -228,7 +227,7 @@ if ('onhashchange' in window) { <span id="L163" class="LineNr">163 </span> <span class="muComment"># highlight matching paren if needed</span> <span id="L164" class="LineNr">164 </span> <span class="PreProc">var</span> fg: int <span id="L165" class="LineNr">165 </span> <span class="Delimiter">{</span> -<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy color +<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy color <span id="L167" class="LineNr">167 </span> copy-to fg, tmp <span id="L168" class="LineNr">168 </span> <span class="Delimiter">}</span> <span id="L169" class="LineNr">169 </span> compare i, matching-close-paren-index @@ -246,13 +245,13 @@ if ('onhashchange' in window) { <span id="L181" class="LineNr">181 </span><span class="Delimiter">}</span> <span id="L182" class="LineNr">182 </span> <span id="L183" class="LineNr">183 </span><span class="muComment"># helper for small words</span> -<span id="L184" class="LineNr">184 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, render-cursor?: boolean<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> _width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L184" class="LineNr">184 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, render-cursor?: boolean<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> _height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L187" class="LineNr">187 </span> _width, _height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _width <span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _height -<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L192" class="LineNr">192 </span> x2, y2 <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L138'>render-stack-from-top-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, x, y, width, height, x, y, render-cursor?, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L193" class="LineNr">193 </span> <span class="PreProc">return</span> x2 <span class="muComment"># y2? yolo</span> @@ -263,7 +262,7 @@ if ('onhashchange' in window) { <span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> gs-storage: <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a> <span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage <span id="L200" class="LineNr">200 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">5</span> -<span id="L201" class="LineNr">201 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L201" class="LineNr">201 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L202" class="LineNr">202 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L203" class="LineNr">203 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b <span id="L204" class="LineNr">204 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g @@ -274,17 +273,17 @@ if ('onhashchange' in window) { <span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L210" class="LineNr">210 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L211" class="LineNr">211 </span> <span class="muComment">#</span> -<span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0</span>/no-highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth +<span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0</span>/no-highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth <span id="L213" class="LineNr">213 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from bottom"</span> <span id="L214" class="LineNr">214 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from bottom: result"</span> <span id="L215" class="LineNr">215 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">0</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from bottom: bg"</span> <span id="L216" class="LineNr">216 </span> <span class="muComment">#</span> -<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">1</span>/y, <span class="Constant">0</span>/cursor=false +<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">1</span>/y, <span class="Constant">0</span>/cursor=false <span id="L218" class="LineNr">218 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from top without cursor"</span> <span id="L219" class="LineNr">219 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from top without cursor: result"</span> <span id="L220" class="LineNr">220 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from top without cursor: bg"</span> <span id="L221" class="LineNr">221 </span> <span class="muComment">#</span> -<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true +<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true <span id="L223" class="LineNr">223 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from top with cursor"</span> <span id="L224" class="LineNr">224 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from top with cursor: result"</span> <span id="L225" class="LineNr">225 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L196'>test-render-grapheme-stack</a> from top with cursor: bg"</span> @@ -295,7 +294,7 @@ if ('onhashchange' in window) { <span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> gs-storage: <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a> <span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage <span id="L232" class="LineNr">232 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">5</span> -<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren +<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren <span id="L234" class="LineNr">234 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L235" class="LineNr">235 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b <span id="L236" class="LineNr">236 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g @@ -306,7 +305,7 @@ if ('onhashchange' in window) { <span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L242" class="LineNr">242 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L243" class="LineNr">243 </span> <span class="muComment">#</span> -<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true <span id="L245" class="LineNr">245 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-close-paren"</span> <span id="L246" class="LineNr">246 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L228'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a>: cursor"</span> <span id="L247" class="LineNr">247 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ) "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L228'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a>: matching paren"</span> @@ -317,7 +316,7 @@ if ('onhashchange' in window) { <span id="L252" class="LineNr">252 </span> <span class="PreProc">var</span> gs-storage: <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a> <span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage <span id="L254" class="LineNr">254 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">0x10</span> -<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x63</span>/c +<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x63</span>/c <span id="L256" class="LineNr">256 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L257" class="LineNr">257 </span> g <span class="Special"><-</span> copy <span class="Constant">0x20</span>/space <span id="L258" class="LineNr">258 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g @@ -340,7 +339,7 @@ if ('onhashchange' in window) { <span id="L275" class="LineNr">275 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L276" class="LineNr">276 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L277" class="LineNr">277 </span> <span class="muComment">#</span> -<span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true +<span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L184'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true <span id="L279" class="LineNr">279 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(a (b)) c "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-close-paren-2"</span> <span id="L280" class="LineNr">280 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L250'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a>: cursor"</span> <span id="L281" class="LineNr">281 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ) "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L250'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a>: matching paren"</span> @@ -351,7 +350,7 @@ if ('onhashchange' in window) { <span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> gs-storage: <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a> <span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage <span id="L288" class="LineNr">288 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">5</span> -<span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren +<span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren <span id="L290" class="LineNr">290 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L291" class="LineNr">291 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b <span id="L292" class="LineNr">292 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g @@ -362,7 +361,7 @@ if ('onhashchange' in window) { <span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L298" class="LineNr">298 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L299" class="LineNr">299 </span> <span class="muComment">#</span> -<span id="L300" class="LineNr">300 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">1</span>/open-paren-depth +<span id="L300" class="LineNr">300 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">1</span>/open-paren-depth <span id="L301" class="LineNr">301 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end"</span> <span id="L302" class="LineNr">302 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">"( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L284'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end</a>: matching paren"</span> <span id="L303" class="LineNr">303 </span><span class="Delimiter">}</span> @@ -372,7 +371,7 @@ if ('onhashchange' in window) { <span id="L307" class="LineNr">307 </span> <span class="PreProc">var</span> gs-storage: <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a> <span id="L308" class="LineNr">308 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage <span id="L309" class="LineNr">309 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">0x10</span> -<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L311" class="LineNr">311 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L312" class="LineNr">312 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren <span id="L313" class="LineNr">313 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g @@ -389,7 +388,7 @@ if ('onhashchange' in window) { <span id="L324" class="LineNr">324 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L325" class="LineNr">325 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L326" class="LineNr">326 </span> <span class="muComment">#</span> -<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">1</span>/open-paren-depth +<span id="L327" class="LineNr">327 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">1</span>/open-paren-depth <span id="L328" class="LineNr">328 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"a((b)) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2"</span> <span id="L329" class="LineNr">329 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L305'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2</a>: matching paren"</span> <span id="L330" class="LineNr">330 </span><span class="Delimiter">}</span> @@ -399,7 +398,7 @@ if ('onhashchange' in window) { <span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> gs-storage: <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a> <span id="L335" class="LineNr">335 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage <span id="L336" class="LineNr">336 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">5</span> -<span id="L337" class="LineNr">337 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren +<span id="L337" class="LineNr">337 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren <span id="L338" class="LineNr">338 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L339" class="LineNr">339 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b <span id="L340" class="LineNr">340 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g @@ -408,7 +407,7 @@ if ('onhashchange' in window) { <span id="L343" class="LineNr">343 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L344" class="LineNr">344 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L345" class="LineNr">345 </span> <span class="muComment">#</span> -<span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth +<span id="L346" class="LineNr">346 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth <span id="L347" class="LineNr">347 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren"</span> <span id="L348" class="LineNr">348 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">"( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L332'>test-render-grapheme-stack-while-highlighting-matching-open-paren</a>: matching paren"</span> <span id="L349" class="LineNr">349 </span><span class="Delimiter">}</span> @@ -418,7 +417,7 @@ if ('onhashchange' in window) { <span id="L353" class="LineNr">353 </span> <span class="PreProc">var</span> gs-storage: <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a> <span id="L354" class="LineNr">354 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage <span id="L355" class="LineNr">355 </span> <a href='grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">0x10</span> -<span id="L356" class="LineNr">356 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a +<span id="L356" class="LineNr">356 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a <span id="L357" class="LineNr">357 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L358" class="LineNr">358 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren <span id="L359" class="LineNr">359 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g @@ -433,7 +432,7 @@ if ('onhashchange' in window) { <span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack <span id="L369" class="LineNr">369 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L370" class="LineNr">370 </span> <span class="muComment">#</span> -<span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth +<span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L121'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth <span id="L372" class="LineNr">372 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"a((b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-2"</span> <span id="L373" class="LineNr">373 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L351'>test-render-grapheme-stack-while-highlighting-matching-open-paren-2</a>: matching paren"</span> <span id="L374" class="LineNr">374 </span><span class="Delimiter">}</span> @@ -449,8 +448,8 @@ if ('onhashchange' in window) { <span id="L384" class="LineNr">384 </span> <span class="PreProc">break-if-!=</span> <span id="L385" class="LineNr">385 </span> <span class="PreProc">return</span> *top-addr <span id="L386" class="LineNr">386 </span> <span class="Delimiter">}</span> -<span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L388" class="LineNr">388 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get self, data +<span id="L388" class="LineNr">388 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L389" class="LineNr">389 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L390" class="LineNr">390 </span> <span class="muComment"># if stack is empty, return</span> <span id="L391" class="LineNr">391 </span> compare i, <span class="Constant">0</span> @@ -505,8 +504,8 @@ if ('onhashchange' in window) { <span id="L440" class="LineNr">440 </span> <span class="PreProc">break-if-!=</span> <span id="L441" class="LineNr">441 </span> <span class="PreProc">return</span> *top-addr <span id="L442" class="LineNr">442 </span> <span class="Delimiter">}</span> -<span id="L443" class="LineNr">443 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L444" class="LineNr">444 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L443" class="LineNr">443 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get self, data +<span id="L444" class="LineNr">444 </span> <span class="PreProc">var</span> data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L445" class="LineNr">445 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L446" class="LineNr">446 </span> <span class="muComment"># if stack is empty, return</span> <span id="L447" class="LineNr">447 </span> compare i, <span class="Constant">0</span> @@ -544,10 +543,10 @@ if ('onhashchange' in window) { <span id="L479" class="LineNr">479 </span> <span id="L480" class="LineNr">480 </span><span class="muComment"># compare from bottom</span> <span id="L481" class="LineNr">481 </span><span class="muComment"># beware: modifies 'stream', which must be disposed of after a false result</span> -<span id="L482" class="LineNr">482 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L482'>prefix-match?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L482" class="LineNr">482 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L482'>prefix-match?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L484" class="LineNr">484 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L485" class="LineNr">485 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L485" class="LineNr">485 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L486" class="LineNr">486 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L487" class="LineNr">487 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L488" class="LineNr">488 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> @@ -557,7 +556,7 @@ if ('onhashchange' in window) { <span id="L492" class="LineNr">492 </span> <span class="muComment"># if curr != expected, return false</span> <span id="L493" class="LineNr">493 </span> <span class="Delimiter">{</span> <span id="L494" class="LineNr">494 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEdx">edx</span>: (addr grapheme) <span class="Special"><-</span> index data, i -<span id="L495" class="LineNr">495 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> s +<span id="L495" class="LineNr">495 </span> <span class="PreProc">var</span> expected/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> s <span id="L496" class="LineNr">496 </span> <span class="Delimiter">{</span> <span id="L497" class="LineNr">497 </span> compare expected, *curr-a <span id="L498" class="LineNr">498 </span> <span class="PreProc">break-if-=</span> @@ -572,12 +571,12 @@ if ('onhashchange' in window) { <span id="L507" class="LineNr">507 </span> <span id="L508" class="LineNr">508 </span><span class="muComment"># compare from bottom</span> <span id="L509" class="LineNr">509 </span><span class="muComment"># beware: modifies 'stream', which must be disposed of after a false result</span> -<span id="L510" class="LineNr">510 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L510'>suffix-match?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L510" class="LineNr">510 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L510'>suffix-match?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L511" class="LineNr">511 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L512" class="LineNr">512 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L513" class="LineNr">513 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L513" class="LineNr">513 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L514" class="LineNr">514 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data -<span id="L515" class="LineNr">515 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top +<span id="L515" class="LineNr">515 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L516" class="LineNr">516 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L517" class="LineNr">517 </span> i <span class="Special"><-</span> decrement <span id="L518" class="LineNr">518 </span> <span class="Delimiter">{</span> @@ -585,7 +584,7 @@ if ('onhashchange' in window) { <span id="L520" class="LineNr">520 </span> <span class="PreProc">break-if-<</span> <span id="L521" class="LineNr">521 </span> <span class="Delimiter">{</span> <span id="L522" class="LineNr">522 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEdx">edx</span>: (addr grapheme) <span class="Special"><-</span> index data, i -<span id="L523" class="LineNr">523 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> s +<span id="L523" class="LineNr">523 </span> <span class="PreProc">var</span> expected/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> s <span id="L524" class="LineNr">524 </span> <span class="muComment"># if curr != expected, return false</span> <span id="L525" class="LineNr">525 </span> <span class="Delimiter">{</span> <span id="L526" class="LineNr">526 </span> compare expected, *curr-a @@ -599,14 +598,14 @@ if ('onhashchange' in window) { <span id="L534" class="LineNr">534 </span> <span class="PreProc">return</span> <span class="Constant">1</span> <span class="muComment"># true</span> <span id="L535" class="LineNr">535 </span><span class="Delimiter">}</span> <span id="L536" class="LineNr">536 </span> -<span id="L537" class="LineNr">537 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L537'>grapheme-stack-is-decimal-integer?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L537" class="LineNr">537 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L537'>grapheme-stack-is-decimal-integer?</a></span> _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L538" class="LineNr">538 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self -<span id="L539" class="LineNr">539 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data -<span id="L540" class="LineNr">540 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L539" class="LineNr">539 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array grapheme) <span class="Special"><-</span> get self, data +<span id="L540" class="LineNr">540 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L541" class="LineNr">541 </span> <span class="PreProc">var</span> data/<span class="muRegEdx">edx</span>: (addr array grapheme) <span class="Special"><-</span> copy _data <span id="L542" class="LineNr">542 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L543" class="LineNr">543 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L544" class="LineNr">544 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">1</span>/true +<span id="L544" class="LineNr">544 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> copy <span class="Constant">1</span>/true <span id="L545" class="LineNr">545 </span> $grapheme-stack-is-integer?:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L546" class="LineNr">546 </span> compare i, *top-addr <span id="L547" class="LineNr">547 </span> <span class="PreProc">break-if->=</span> diff --git a/html/shell/infix.mu.html b/html/shell/infix.mu.html index f8305359..582ea547 100644 --- a/html/shell/infix.mu.html +++ b/html/shell/infix.mu.html @@ -14,22 +14,21 @@ 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; } -.Folded { color: #080808; background-color: #949494; } +.CommentedCode { color: #8a8a8a; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.Folded { color: #080808; background-color: #949494; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -80,7 +79,7 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr"> 13 </span><span class="muComment"># Lisp code typed in at the keyboard will never have cycles</span> <span id="L14" class="LineNr"> 14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L14'>transform-infix-2</a></span> _x-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace), at-head-of-list?: boolean <span class="Delimiter">{</span> <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> x-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x-ah -<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *x-ah +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> x/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *x-ah <span id="L17" class="Folded"> 17 </span><span class="Folded">+-- 14 lines: # trace x-ah --------------------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L31" class="LineNr"> 31 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L32" class="LineNr"> 32 </span><span class="CommentedCode">#? {</span> @@ -98,7 +97,7 @@ if ('onhashchange' in window) { <span id="L44" class="LineNr"> 44 </span> <span class="Delimiter">}</span> <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># nil? return</span> <span id="L46" class="LineNr"> 46 </span> <span class="Delimiter">{</span> -<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> x +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> x <span id="L48" class="LineNr"> 48 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">break-if-=</span> <span id="L50" class="LineNr"> 50 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -128,14 +127,14 @@ if ('onhashchange' in window) { <span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">{</span> <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, left <span id="L90" class="LineNr"> 90 </span> <span class="Delimiter">{</span> -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> infix?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L409'>operator-symbol?</a> first +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> infix?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L409'>operator-symbol?</a> first <span id="L93" class="LineNr"> 93 </span> compare infix?, <span class="Constant">0</span>/false <span id="L94" class="LineNr"> 94 </span> <span class="Delimiter">}</span> <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">break-if-=</span> -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, right -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> rest-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, right +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L99" class="LineNr"> 99 </span> compare rest-nil?, <span class="Constant">0</span>/false <span id="L100" class="LineNr">100 </span> <span class="PreProc">break-if-=</span> <span id="L101" class="LineNr">101 </span> copy-object first-ah, x-ah @@ -152,38 +151,38 @@ if ('onhashchange' in window) { <span id="L126" class="LineNr">126 </span> <span class="PreProc">break-if-=</span> <span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, left <span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, right -<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> first-infix?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L409'>operator-symbol?</a> first +<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> first-infix?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L409'>operator-symbol?</a> first <span id="L131" class="LineNr">131 </span> compare first-infix?, <span class="Constant">0</span>/false <span id="L132" class="LineNr">132 </span> <span class="PreProc">break-if-=</span> -<span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L134" class="LineNr">134 </span> <span class="Delimiter">{</span> -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> continue?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L273'>not-null-not-nil-pair?</a> rest +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L273'>not-null-not-nil-pair?</a> rest <span id="L136" class="LineNr">136 </span> compare continue?, <span class="Constant">0</span>/false <span id="L137" class="LineNr">137 </span> <span class="Delimiter">}</span> <span id="L138" class="LineNr">138 </span> <span class="PreProc">break-if-=</span> <span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L140" class="LineNr">140 </span> rest-ah <span class="Special"><-</span> get rest, right -<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L142" class="LineNr">142 </span> <span class="Delimiter">{</span> -<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> continue?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L273'>not-null-not-nil-pair?</a> rest +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L273'>not-null-not-nil-pair?</a> rest <span id="L144" class="LineNr">144 </span> compare continue?, <span class="Constant">0</span>/false <span id="L145" class="LineNr">145 </span> <span class="Delimiter">}</span> <span id="L146" class="LineNr">146 </span> <span class="PreProc">break-if-=</span> <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> third-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L148" class="LineNr">148 </span> <span class="Delimiter">{</span> -<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> third/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah -<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> third-is-operator?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L409'>operator-symbol?</a> third +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah +<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> third-is-operator?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L409'>operator-symbol?</a> third <span id="L151" class="LineNr">151 </span> compare third-is-operator?, <span class="Constant">0</span>/false <span id="L152" class="LineNr">152 </span> <span class="Delimiter">}</span> <span id="L153" class="LineNr">153 </span> <span class="PreProc">break-if-=</span> <span id="L154" class="LineNr">154 </span> <span class="muComment"># if first and third are operators, bud out first two</span> <span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> saved-rest-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> saved-rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address saved-rest-h +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> saved-rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address saved-rest-h <span id="L157" class="LineNr">157 </span> copy-object rest-ah, saved-rest-ah <span id="L158" class="LineNr">158 </span> <a href='cell.mu.html#L121'>nil</a> rest-ah <span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> result-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h +<span id="L160" class="LineNr">160 </span> <span class="PreProc">var</span> result-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h <span id="L161" class="LineNr">161 </span> <a href='cell.mu.html#L116'>new-pair</a> result-ah, *x-ah, saved-rest-h <span id="L162" class="LineNr">162 </span> <span class="muComment"># save</span> <span id="L163" class="LineNr">163 </span> copy-object result-ah, x-ah @@ -196,13 +195,13 @@ if ('onhashchange' in window) { <span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, left <span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, right <span id="L172" class="LineNr">172 </span> <span class="Delimiter">{</span> -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='infix.mu.html#L543'>quote-or-unquote?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L543'>quote-or-unquote?</a> first-ah +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> <a href='infix.mu.html#L543'>quote-or-unquote?</a>/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L543'>quote-or-unquote?</a> first-ah <span id="L174" class="LineNr">174 </span> compare <a href='infix.mu.html#L543'>quote-or-unquote?</a>, <span class="Constant">0</span>/false <span id="L175" class="LineNr">175 </span> <span class="Delimiter">}</span> <span id="L176" class="LineNr">176 </span> <span class="PreProc">break-if-!=</span> -<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L178" class="LineNr">178 </span> <span class="Delimiter">{</span> -<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> continue?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L273'>not-null-not-nil-pair?</a> rest +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L273'>not-null-not-nil-pair?</a> rest <span id="L180" class="LineNr">180 </span> compare continue?, <span class="Constant">0</span>/false <span id="L181" class="LineNr">181 </span> <span class="Delimiter">}</span> <span id="L182" class="LineNr">182 </span> <span class="PreProc">break-if-=</span> @@ -210,9 +209,9 @@ if ('onhashchange' in window) { <span id="L184" class="LineNr">184 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen rest-ah, 7/fg 0/bg</span> <span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L186" class="LineNr">186 </span> rest-ah <span class="Special"><-</span> get rest, right -<span id="L187" class="LineNr">187 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L187" class="LineNr">187 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L188" class="LineNr">188 </span> <span class="Delimiter">{</span> -<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> continue?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L273'>not-null-not-nil-pair?</a> rest +<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L273'>not-null-not-nil-pair?</a> rest <span id="L190" class="LineNr">190 </span> compare continue?, <span class="Constant">0</span>/false <span id="L191" class="LineNr">191 </span> <span class="Delimiter">}</span> <span id="L192" class="LineNr">192 </span> <span class="PreProc">break-if-=</span> @@ -221,8 +220,8 @@ if ('onhashchange' in window) { <span id="L195" class="LineNr">195 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L196" class="LineNr">196 </span> <span class="muComment"># if second is not an operator, break</span> <span id="L197" class="LineNr">197 </span> <span class="Delimiter">{</span> -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> infix?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L409'>operator-symbol?</a> second +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> infix?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L409'>operator-symbol?</a> second <span id="L200" class="LineNr">200 </span> compare infix?, <span class="Constant">0</span>/false <span id="L201" class="LineNr">201 </span> <span class="Delimiter">}</span> <span id="L202" class="LineNr">202 </span> <span class="PreProc">break-if-=</span> @@ -234,7 +233,7 @@ if ('onhashchange' in window) { <span id="L208" class="LineNr">208 </span> compare at-head-of-list?, <span class="Constant">0</span>/false <span id="L209" class="LineNr">209 </span> <span class="PreProc">break-if-=</span> <span id="L210" class="LineNr">210 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> rest-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L212" class="LineNr">212 </span> compare rest-nil?, <span class="Constant">0</span>/false <span id="L213" class="LineNr">213 </span> <span class="PreProc">break-if-!=</span> $transform-infix-2:pinch <span id="L214" class="LineNr">214 </span> <span class="Delimiter">}</span> @@ -242,12 +241,12 @@ if ('onhashchange' in window) { <span id="L216" class="LineNr">216 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "g", 4/fg 0/bg</span> <span id="L217" class="LineNr">217 </span> <span class="muComment"># save and clear third->right</span> <span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> saved-rest-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> saved-rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address saved-rest-h +<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> saved-rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address saved-rest-h <span id="L220" class="LineNr">220 </span> copy-object rest-ah, saved-rest-ah <span id="L221" class="LineNr">221 </span> <a href='cell.mu.html#L121'>nil</a> rest-ah <span id="L222" class="LineNr">222 </span> <span class="muComment"># create new-node out of first..third and rest</span> <span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> result-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h +<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> result-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h <span id="L225" class="LineNr">225 </span> <a href='cell.mu.html#L116'>new-pair</a> result-ah, *x-ah, saved-rest-h <span id="L226" class="LineNr">226 </span> <span class="muComment"># save</span> <span id="L227" class="LineNr">227 </span> copy-object result-ah, x-ah @@ -264,13 +263,13 @@ if ('onhashchange' in window) { <span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, right <span id="L239" class="LineNr">239 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "y", 1/fg 0/bg</span> <span id="L240" class="LineNr">240 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen right-ah, 3/fg 0/bg</span> -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> right-at-head-of-list?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy at-head-of-list? +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> right-at-head-of-list?/eax: boolean <span class="Special"><-</span> copy at-head-of-list? <span id="L242" class="LineNr">242 </span> <span class="Delimiter">{</span> <span id="L243" class="LineNr">243 </span> compare right-at-head-of-list?, <span class="Constant">0</span>/false <span id="L244" class="LineNr">244 </span> <span class="PreProc">break-if-=</span> <span id="L245" class="LineNr">245 </span> <span class="muComment"># if left is a quote or unquote, cdr is still head of list</span> <span id="L246" class="LineNr">246 </span> <span class="Delimiter">{</span> -<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> left-is-quote-or-unquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L543'>quote-or-unquote?</a> left-ah +<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> left-is-quote-or-unquote?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L543'>quote-or-unquote?</a> left-ah <span id="L248" class="LineNr">248 </span> compare left-is-quote-or-unquote?, <span class="Constant">0</span>/false <span id="L249" class="LineNr">249 </span> <span class="Delimiter">}</span> <span id="L250" class="LineNr">250 </span> <span class="PreProc">break-if-!=</span> @@ -282,20 +281,20 @@ if ('onhashchange' in window) { <span id="L256" class="Folded">256 </span><span class="Folded">+-- 15 lines: # trace "=> " x-ah --------------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L271" class="LineNr">271 </span><span class="Delimiter">}</span> <span id="L272" class="LineNr">272 </span> -<span id="L273" class="LineNr">273 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L273'>not-null-not-nil-pair?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L273" class="LineNr">273 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L273'>not-null-not-nil-pair?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x <span id="L275" class="LineNr">275 </span> compare x, <span class="Constant">0</span> <span id="L276" class="LineNr">276 </span> <span class="Delimiter">{</span> <span id="L277" class="LineNr">277 </span> <span class="PreProc">break-if-!=</span> <span id="L278" class="LineNr">278 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L279" class="LineNr">279 </span> <span class="Delimiter">}</span> -<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> x-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> +<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> x-type/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> <span id="L281" class="LineNr">281 </span> compare *x-type, <span class="Constant">0</span>/pair <span id="L282" class="LineNr">282 </span> <span class="Delimiter">{</span> <span id="L283" class="LineNr">283 </span> <span class="PreProc">break-if-=</span> <span id="L284" class="LineNr">284 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L285" class="LineNr">285 </span> <span class="Delimiter">}</span> -<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> x +<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> x <span id="L287" class="LineNr">287 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L288" class="LineNr">288 </span> <span class="Delimiter">{</span> <span id="L289" class="LineNr">289 </span> <span class="PreProc">break-if-=</span> @@ -306,17 +305,17 @@ if ('onhashchange' in window) { <span id="L294" class="LineNr">294 </span> <span id="L295" class="LineNr">295 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L295'>swap-cells</a></span> a-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), b-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span> <span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> tmp-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h +<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h <span id="L298" class="LineNr">298 </span> copy-object a-ah, tmp-ah <span id="L299" class="LineNr">299 </span> copy-object b-ah, a-ah <span id="L300" class="LineNr">300 </span> copy-object tmp-ah, b-ah <span id="L301" class="LineNr">301 </span><span class="Delimiter">}</span> <span id="L302" class="LineNr">302 </span> <span id="L303" class="LineNr">303 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L303'>tokenize-infix</a></span> _sym-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> sym-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _sym-ah -<span id="L305" class="LineNr">305 </span> <span class="PreProc">var</span> sym/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-ah -<span id="L306" class="LineNr">306 </span> <span class="PreProc">var</span> sym-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get sym, text-data -<span id="L307" class="LineNr">307 </span> <span class="PreProc">var</span> _sym-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-data-ah +<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> sym-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _sym-ah +<span id="L305" class="LineNr">305 </span> <span class="PreProc">var</span> sym/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-ah +<span id="L306" class="LineNr">306 </span> <span class="PreProc">var</span> sym-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get sym, text-data +<span id="L307" class="LineNr">307 </span> <span class="PreProc">var</span> _sym-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sym-data-ah <span id="L308" class="LineNr">308 </span> <span class="PreProc">var</span> sym-data/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> copy _sym-data <span id="L309" class="LineNr">309 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> sym-data <span id="L310" class="LineNr">310 </span> <span class="muComment"># read sym into a gap buffer and insert spaces in a few places</span> @@ -324,13 +323,13 @@ if ('onhashchange' in window) { <span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> buffer/<span class="muRegEdi">edi</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address buffer-storage <span id="L313" class="LineNr">313 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> buffer, <span class="Constant">0x40</span>/max-symbol-size <span id="L314" class="LineNr">314 </span> <span class="muComment"># scan for first non-$</span> -<span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> sym-data +<span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> sym-data <span id="L316" class="LineNr">316 </span> <a href='gap-buffer.mu.html#L441'>add-grapheme-at-gap</a> buffer, g <span id="L317" class="LineNr">317 </span> <span class="Delimiter">{</span> <span id="L318" class="LineNr">318 </span> compare g, <span class="Constant">0x24</span>/dollar <span id="L319" class="LineNr">319 </span> <span class="PreProc">break-if-!=</span> <span id="L320" class="LineNr">320 </span> <span class="Delimiter">{</span> -<span id="L321" class="LineNr">321 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> sym-data +<span id="L321" class="LineNr">321 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> sym-data <span id="L322" class="LineNr">322 </span> compare done?, <span class="Constant">0</span>/false <span id="L323" class="LineNr">323 </span> <span class="PreProc">break-if-=</span> <span id="L324" class="LineNr">324 </span> <span class="PreProc">return</span> <span class="muComment"># symbol is all '$'s; do nothing</span> @@ -340,15 +339,15 @@ if ('onhashchange' in window) { <span id="L328" class="LineNr">328 </span> <span class="PreProc">loop</span> <span id="L329" class="LineNr">329 </span> <span class="Delimiter">}</span> <span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> tokenization-needed?: boolean -<span id="L331" class="LineNr">331 </span> <span class="PreProc">var</span> _operator-so-far?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L456'>operator-grapheme?</a> g +<span id="L331" class="LineNr">331 </span> <span class="PreProc">var</span> _operator-so-far?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L456'>operator-grapheme?</a> g <span id="L332" class="LineNr">332 </span> <span class="PreProc">var</span> operator-so-far?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy _operator-so-far? <span id="L333" class="LineNr">333 </span> <span class="Delimiter">{</span> -<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> sym-data +<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> sym-data <span id="L335" class="LineNr">335 </span> compare done?, <span class="Constant">0</span>/false <span id="L336" class="LineNr">336 </span> <span class="PreProc">break-if-!=</span> -<span id="L337" class="LineNr">337 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> sym-data +<span id="L337" class="LineNr">337 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> sym-data <span id="L338" class="LineNr">338 </span> <span class="Delimiter">{</span> -<span id="L339" class="LineNr">339 </span> <span class="PreProc">var</span> curr-operator?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L456'>operator-grapheme?</a> g +<span id="L339" class="LineNr">339 </span> <span class="PreProc">var</span> curr-operator?/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L456'>operator-grapheme?</a> g <span id="L340" class="LineNr">340 </span> compare curr-operator?, operator-so-far? <span id="L341" class="LineNr">341 </span> <span class="PreProc">break-if-=</span> <span id="L342" class="LineNr">342 </span> <span class="muComment"># state change; insert a space</span> @@ -418,26 +417,26 @@ if ('onhashchange' in window) { <span id="L406" class="LineNr">406 </span> <span id="L407" class="LineNr">407 </span><span class="muComment"># helpers</span> <span id="L408" class="LineNr">408 </span> -<span id="L409" class="LineNr">409 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L409'>operator-symbol?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L409" class="LineNr">409 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L409'>operator-symbol?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L410" class="LineNr">410 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x <span id="L411" class="LineNr">411 </span> <span class="Delimiter">{</span> -<span id="L412" class="LineNr">412 </span> <span class="PreProc">var</span> x-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> +<span id="L412" class="LineNr">412 </span> <span class="PreProc">var</span> x-type/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> <span id="L413" class="LineNr">413 </span> compare *x-type, <span class="Constant">2</span>/symbol <span id="L414" class="LineNr">414 </span> <span class="PreProc">break-if-=</span> <span id="L415" class="LineNr">415 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L416" class="LineNr">416 </span> <span class="Delimiter">}</span> -<span id="L417" class="LineNr">417 </span> <span class="PreProc">var</span> x-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get x, text-data -<span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> _x-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *x-data-ah +<span id="L417" class="LineNr">417 </span> <span class="PreProc">var</span> x-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data +<span id="L418" class="LineNr">418 </span> <span class="PreProc">var</span> _x-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *x-data-ah <span id="L419" class="LineNr">419 </span> <span class="PreProc">var</span> x-data/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> copy _x-data <span id="L420" class="LineNr">420 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> x-data -<span id="L421" class="LineNr">421 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> x-data +<span id="L421" class="LineNr">421 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> x-data <span id="L422" class="LineNr">422 </span> <span class="muComment"># special case: '$' is reserved for gensyms, and can work with either</span> <span id="L423" class="LineNr">423 </span> <span class="muComment"># operator or non-operator symbols.</span> <span id="L424" class="LineNr">424 </span> <span class="Delimiter">{</span> <span id="L425" class="LineNr">425 </span> compare g, <span class="Constant">0x24</span>/dollar <span id="L426" class="LineNr">426 </span> <span class="PreProc">break-if-!=</span> <span id="L427" class="LineNr">427 </span> <span class="Delimiter">{</span> -<span id="L428" class="LineNr">428 </span> <span class="PreProc">var</span> all-dollars?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> x-data +<span id="L428" class="LineNr">428 </span> <span class="PreProc">var</span> all-dollars?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> x-data <span id="L429" class="LineNr">429 </span> compare all-dollars?, <span class="Constant">0</span>/false <span id="L430" class="LineNr">430 </span> <span class="PreProc">break-if-=</span> <span id="L431" class="LineNr">431 </span> <span class="muComment"># '$', '$$', '$$$', etc. are regular symbols</span> @@ -448,13 +447,13 @@ if ('onhashchange' in window) { <span id="L436" class="LineNr">436 </span> <span class="Delimiter">}</span> <span id="L437" class="LineNr">437 </span> <span class="Delimiter">{</span> <span id="L438" class="LineNr">438 </span> <span class="Delimiter">{</span> -<span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='infix.mu.html#L456'>operator-grapheme?</a> g +<span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='infix.mu.html#L456'>operator-grapheme?</a> g <span id="L440" class="LineNr">440 </span> compare result, <span class="Constant">0</span>/false <span id="L441" class="LineNr">441 </span> <span class="PreProc">break-if-!=</span> <span id="L442" class="LineNr">442 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L443" class="LineNr">443 </span> <span class="Delimiter">}</span> <span id="L444" class="LineNr">444 </span> <span class="Delimiter">{</span> -<span id="L445" class="LineNr">445 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> x-data +<span id="L445" class="LineNr">445 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> x-data <span id="L446" class="LineNr">446 </span> compare done?, <span class="Constant">0</span>/false <span id="L447" class="LineNr">447 </span> <span class="Delimiter">}</span> <span id="L448" class="LineNr">448 </span> <span class="PreProc">break-if-!=</span> @@ -465,7 +464,7 @@ if ('onhashchange' in window) { <span id="L453" class="LineNr">453 </span><span class="Delimiter">}</span> <span id="L454" class="LineNr">454 </span> <span id="L455" class="LineNr">455 </span><span class="muComment"># just a short list of operator graphemes for now</span> -<span id="L456" class="LineNr">456 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L456'>operator-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L456" class="LineNr">456 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L456'>operator-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L457" class="LineNr">457 </span> <span class="muComment"># '$' is special and can be in either a symbol or operator; here we treat it as a symbol</span> <span id="L458" class="LineNr">458 </span> compare g, <span class="Constant">0x25</span>/percent <span id="L459" class="LineNr">459 </span> <span class="Delimiter">{</span> @@ -552,29 +551,29 @@ if ('onhashchange' in window) { <span id="L540" class="LineNr">540 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L541" class="LineNr">541 </span><span class="Delimiter">}</span> <span id="L542" class="LineNr">542 </span> -<span id="L543" class="LineNr">543 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L543'>quote-or-unquote?</a></span> _x-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L544" class="LineNr">544 </span> <span class="PreProc">var</span> x-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x-ah -<span id="L545" class="LineNr">545 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *x-ah +<span id="L543" class="LineNr">543 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L543'>quote-or-unquote?</a></span> _x-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L544" class="LineNr">544 </span> <span class="PreProc">var</span> x-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x-ah +<span id="L545" class="LineNr">545 </span> <span class="PreProc">var</span> x/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *x-ah <span id="L546" class="LineNr">546 </span> <span class="Delimiter">{</span> -<span id="L547" class="LineNr">547 </span> <span class="PreProc">var</span> quote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> x, <span class="Constant">"'"</span> +<span id="L547" class="LineNr">547 </span> <span class="PreProc">var</span> quote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> x, <span class="Constant">"'"</span> <span id="L548" class="LineNr">548 </span> compare quote?, <span class="Constant">0</span>/false <span id="L549" class="LineNr">549 </span> <span class="PreProc">break-if-=</span> <span id="L550" class="LineNr">550 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L551" class="LineNr">551 </span> <span class="Delimiter">}</span> <span id="L552" class="LineNr">552 </span> <span class="Delimiter">{</span> -<span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> backquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> x, <span class="Constant">"`"</span> +<span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> backquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> x, <span class="Constant">"`"</span> <span id="L554" class="LineNr">554 </span> compare backquote?, <span class="Constant">0</span>/false <span id="L555" class="LineNr">555 </span> <span class="PreProc">break-if-=</span> <span id="L556" class="LineNr">556 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L557" class="LineNr">557 </span> <span class="Delimiter">}</span> <span id="L558" class="LineNr">558 </span> <span class="Delimiter">{</span> -<span id="L559" class="LineNr">559 </span> <span class="PreProc">var</span> unquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> x, <span class="Constant">","</span> +<span id="L559" class="LineNr">559 </span> <span class="PreProc">var</span> unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> x, <span class="Constant">","</span> <span id="L560" class="LineNr">560 </span> compare unquote?, <span class="Constant">0</span>/false <span id="L561" class="LineNr">561 </span> <span class="PreProc">break-if-=</span> <span id="L562" class="LineNr">562 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L563" class="LineNr">563 </span> <span class="Delimiter">}</span> <span id="L564" class="LineNr">564 </span> <span class="Delimiter">{</span> -<span id="L565" class="LineNr">565 </span> <span class="PreProc">var</span> unquote-splice?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> x, <span class="Constant">",@"</span> +<span id="L565" class="LineNr">565 </span> <span class="PreProc">var</span> unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> x, <span class="Constant">",@"</span> <span id="L566" class="LineNr">566 </span> compare unquote-splice?, <span class="Constant">0</span>/false <span id="L567" class="LineNr">567 </span> <span class="PreProc">break-if-=</span> <span id="L568" class="LineNr">568 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true @@ -591,25 +590,25 @@ if ('onhashchange' in window) { <span id="L579" class="LineNr">579 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">0x10</span>/levels, <span class="Constant">0x1000</span>/capacity, <span class="Constant">0</span>/visible <span id="L580" class="LineNr">580 </span> <span class="muComment">#</span> <span id="L581" class="LineNr">581 </span> <span class="PreProc">var</span> actual-buffer-storage: <a href='gap-buffer.mu.html#L3'>gap-buffer</a> -<span id="L582" class="LineNr">582 </span> <span class="PreProc">var</span> actual-buffer/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address actual-buffer-storage +<span id="L582" class="LineNr">582 </span> <span class="PreProc">var</span> actual-buffer/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address actual-buffer-storage <span id="L583" class="LineNr">583 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> actual-buffer, actual <span id="L584" class="LineNr">584 </span> <span class="PreProc">var</span> actual-tree-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L585" class="LineNr">585 </span> <span class="PreProc">var</span> actual-tree-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address actual-tree-h <span id="L586" class="LineNr">586 </span> <a href='read.mu.html#L1'>read-cell</a> actual-buffer, actual-tree-ah, trace <span id="L587" class="LineNr">587 </span><span class="CommentedCode">#? dump-trace-with-label trace, "infix"</span> <span id="L588" class="LineNr">588 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen actual-tree-ah, 7/fg 0/bg</span> -<span id="L589" class="LineNr">589 </span> <span class="PreProc">var</span> _actual-tree/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *actual-tree-ah +<span id="L589" class="LineNr">589 </span> <span class="PreProc">var</span> _actual-tree/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *actual-tree-ah <span id="L590" class="LineNr">590 </span> <span class="PreProc">var</span> actual-tree/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _actual-tree <span id="L591" class="LineNr">591 </span> <span class="muComment">#</span> <span id="L592" class="LineNr">592 </span> <span class="PreProc">var</span> expected-buffer-storage: <a href='gap-buffer.mu.html#L3'>gap-buffer</a> -<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> expected-buffer/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address expected-buffer-storage +<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> expected-buffer/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address expected-buffer-storage <span id="L594" class="LineNr">594 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> expected-buffer, expected <span id="L595" class="LineNr">595 </span> <span class="PreProc">var</span> expected-tree-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L596" class="LineNr">596 </span> <span class="PreProc">var</span> expected-tree-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address expected-tree-h <span id="L597" class="LineNr">597 </span> <a href='infix.mu.html#L604'>read-without-infix</a> expected-buffer, expected-tree-ah, trace -<span id="L598" class="LineNr">598 </span> <span class="PreProc">var</span> expected-tree/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-tree-ah +<span id="L598" class="LineNr">598 </span> <span class="PreProc">var</span> expected-tree/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-tree-ah <span id="L599" class="LineNr">599 </span> <span class="muComment">#</span> -<span id="L600" class="LineNr">600 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> actual-tree, expected-tree, trace +<span id="L600" class="LineNr">600 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> actual-tree, expected-tree, trace <span id="L601" class="LineNr">601 </span> <a href='../502test.mu.html#L19'>check</a> match?, message <span id="L602" class="LineNr">602 </span><span class="Delimiter">}</span> <span id="L603" class="LineNr">603 </span> @@ -618,7 +617,7 @@ if ('onhashchange' in window) { <span id="L606" class="LineNr">606 </span> <span class="PreProc">var</span> tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x400</span>) <span id="L607" class="LineNr">607 </span> <span class="PreProc">var</span> tokens/<span class="muRegEdx">edx</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address tokens-storage <span id="L608" class="LineNr">608 </span> <a href='tokenize.mu.html#L13'>tokenize</a> in, tokens, trace -<span id="L609" class="LineNr">609 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L609" class="LineNr">609 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L610" class="LineNr">610 </span> compare error?, <span class="Constant">0</span>/false <span id="L611" class="LineNr">611 </span> <span class="Delimiter">{</span> <span id="L612" class="LineNr">612 </span> <span class="PreProc">break-if-=</span> @@ -629,7 +628,7 @@ if ('onhashchange' in window) { <span id="L617" class="LineNr">617 </span> <span class="PreProc">var</span> parenthesized-tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x400</span>) <span id="L618" class="LineNr">618 </span> <span class="PreProc">var</span> parenthesized-tokens/<span class="muRegEcx">ecx</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address parenthesized-tokens-storage <span id="L619" class="LineNr">619 </span> <a href='parenthesize.mu.html#L15'>parenthesize</a> tokens, parenthesized-tokens, trace -<span id="L620" class="LineNr">620 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L620" class="LineNr">620 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L621" class="LineNr">621 </span> compare error?, <span class="Constant">0</span>/false <span id="L622" class="LineNr">622 </span> <span class="Delimiter">{</span> <span id="L623" class="LineNr">623 </span> <span class="PreProc">break-if-=</span> diff --git a/html/shell/int-stack.mu.html b/html/shell/int-stack.mu.html index 363f3a3e..dcebcb7d 100644 --- a/html/shell/int-stack.mu.html +++ b/html/shell/int-stack.mu.html @@ -14,17 +14,16 @@ 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; } -.muRegEcx { color: #af875f; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.muRegEdx { color: #878700; } -.muRegEax { color: #875f00; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.Constant { color: #008787; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.Special { color: #ff6060; } --> </style> @@ -69,7 +68,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='int-stack.mu.html#L1'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array int) <span class="Special"><-</span> get self, data <span id="L9" class="LineNr"> 9 </span> populate d, n -<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> top/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top +<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L11" class="LineNr">11 </span> copy-to *top, <span class="Constant">0</span> <span id="L12" class="LineNr">12 </span><span class="Delimiter">}</span> <span id="L13" class="LineNr">13 </span> @@ -77,15 +76,15 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='int-stack.mu.html#L1'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> get self, data -<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> top/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> index data, top -<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy _val +<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy _val <span id="L22" class="LineNr">22 </span> copy-to *dest-addr, val <span id="L23" class="LineNr">23 </span> add-to *top-addr, <span class="Constant">1</span> <span id="L24" class="LineNr">24 </span><span class="Delimiter">}</span> <span id="L25" class="LineNr">25 </span> -<span id="L26" class="LineNr">26 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='int-stack.mu.html#L26'>pop-int-stack</a></span> _self: (addr <a href='int-stack.mu.html#L1'>int-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L26" class="LineNr">26 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='int-stack.mu.html#L26'>pop-int-stack</a></span> _self: (addr <a href='int-stack.mu.html#L1'>int-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='int-stack.mu.html#L1'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L29" class="LineNr">29 </span> <span class="Delimiter">{</span> @@ -95,14 +94,14 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr">33 </span> <span class="Delimiter">}</span> <span id="L34" class="LineNr">34 </span> subtract-from *top-addr, <span class="Constant">1</span> <span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> get self, data -<span id="L36" class="LineNr">36 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L36" class="LineNr">36 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> top/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr -<span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index data, top -<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *result-addr +<span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> result-addr/eax: (addr int) <span class="Special"><-</span> index data, top +<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy *result-addr <span id="L40" class="LineNr">40 </span> <span class="PreProc">return</span> val <span id="L41" class="LineNr">41 </span><span class="Delimiter">}</span> <span id="L42" class="LineNr">42 </span> -<span id="L43" class="LineNr">43 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='int-stack.mu.html#L43'>int-stack-empty?</a></span> _self: (addr <a href='int-stack.mu.html#L1'>int-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L43" class="LineNr">43 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='int-stack.mu.html#L43'>int-stack-empty?</a></span> _self: (addr <a href='int-stack.mu.html#L1'>int-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L44" class="LineNr">44 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='int-stack.mu.html#L1'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L45" class="LineNr">45 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L46" class="LineNr">46 </span> compare *top-addr, <span class="Constant">0</span> @@ -113,7 +112,7 @@ if ('onhashchange' in window) { <span id="L51" class="LineNr">51 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L52" class="LineNr">52 </span><span class="Delimiter">}</span> <span id="L53" class="LineNr">53 </span> -<span id="L54" class="LineNr">54 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='int-stack.mu.html#L54'>int-stack-top</a></span> _self: (addr <a href='int-stack.mu.html#L1'>int-stack</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L54" class="LineNr">54 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='int-stack.mu.html#L54'>int-stack-top</a></span> _self: (addr <a href='int-stack.mu.html#L1'>int-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L55" class="LineNr">55 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='int-stack.mu.html#L1'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L56" class="LineNr">56 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L57" class="LineNr">57 </span> <span class="PreProc">var</span> top/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr @@ -124,9 +123,9 @@ if ('onhashchange' in window) { <span id="L62" class="LineNr">62 </span> <span class="Delimiter">}</span> <span id="L63" class="LineNr">63 </span> top <span class="Special"><-</span> decrement <span id="L64" class="LineNr">64 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> get self, data -<span id="L65" class="LineNr">65 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L66" class="LineNr">66 </span> <span class="PreProc">var</span> result-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> index data, top -<span id="L67" class="LineNr">67 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *result-addr +<span id="L65" class="LineNr">65 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L66" class="LineNr">66 </span> <span class="PreProc">var</span> result-addr/eax: (addr int) <span class="Special"><-</span> index data, top +<span id="L67" class="LineNr">67 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy *result-addr <span id="L68" class="LineNr">68 </span> <span class="PreProc">return</span> val <span id="L69" class="LineNr">69 </span><span class="Delimiter">}</span> </pre> diff --git a/html/shell/macroexpand.mu.html b/html/shell/macroexpand.mu.html index e4fc4b62..d11e5f06 100644 --- a/html/shell/macroexpand.mu.html +++ b/html/shell/macroexpand.mu.html @@ -14,22 +14,21 @@ 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; } -.muFunction { color: #af5f00; text-decoration: underline; } .LineNr { } .Delimiter { color: #c000c0; } .CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } .Folded { color: #080808; background-color: #949494; } +.muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -70,10 +69,10 @@ if ('onhashchange' in window) { <span id="L17" class="LineNr"> 17 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L18" class="LineNr"> 18 </span> <span class="muComment"># loop until convergence</span> <span id="L19" class="LineNr"> 19 </span> <span class="Delimiter">{</span> -<span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L21" class="LineNr"> 21 </span> compare error?, <span class="Constant">0</span>/false <span id="L22" class="LineNr"> 22 </span> <span class="PreProc">break-if-!=</span> -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> expanded?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> expr-ah, globals, trace +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> expanded?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> expr-ah, globals, trace <span id="L24" class="LineNr"> 24 </span> compare expanded?, <span class="Constant">0</span>/false <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">loop-if-!=</span> <span id="L26" class="LineNr"> 26 </span> <span class="Delimiter">}</span> @@ -82,14 +81,14 @@ if ('onhashchange' in window) { <span id="L43" class="LineNr"> 43 </span><span class="Delimiter">}</span> <span id="L44" class="LineNr"> 44 </span> <span id="L45" class="LineNr"> 45 </span><span class="muComment"># return true if we found any macros</span> -<span id="L46" class="LineNr"> 46 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='macroexpand.mu.html#L46'>macroexpand-iter</a></span> _expr-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L46" class="LineNr"> 46 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='macroexpand.mu.html#L46'>macroexpand-iter</a></span> _expr-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> expr-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _expr-ah <span id="L48" class="Folded"> 48 </span><span class="Folded">+-- 15 lines: # trace "macroexpand-iter " expr ------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L63" class="LineNr"> 63 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L64" class="LineNr"> 64 </span> <span class="muComment"># if expr is a non-pair, return</span> -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> expr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expr-ah +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> expr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expr-ah <span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span> -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> expr +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> expr <span id="L68" class="LineNr"> 68 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break-if-=</span> <span id="L70" class="LineNr"> 70 </span> <span class="muComment"># nil is a literal</span> @@ -98,7 +97,7 @@ if ('onhashchange' in window) { <span id="L73" class="LineNr"> 73 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">}</span> <span id="L75" class="LineNr"> 75 </span> <span class="Delimiter">{</span> -<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> expr-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get expr, <span class="PreProc">type</span> +<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> expr-type/eax: (addr int) <span class="Special"><-</span> get expr, <span class="PreProc">type</span> <span id="L77" class="LineNr"> 77 </span> compare *expr-type, <span class="Constant">0</span>/pair <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">break-if-=</span> <span id="L79" class="LineNr"> 79 </span> <span class="muComment"># non-pairs are literals</span> @@ -109,9 +108,9 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span> <span class="muComment"># if expr is a literal pair, return</span> <span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get expr, left <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get expr, right -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">{</span> -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first <span id="L90" class="LineNr"> 90 </span> compare <a href='evaluate.mu.html#L1429'>litfn?</a>, <span class="Constant">0</span>/false <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">break-if-=</span> <span id="L92" class="LineNr"> 92 </span> <span class="muComment"># litfn is a literal</span> @@ -120,7 +119,7 @@ if ('onhashchange' in window) { <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">}</span> <span id="L97" class="LineNr"> 97 </span> <span class="Delimiter">{</span> -<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1443'>litmac?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> first +<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1443'>litmac?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> first <span id="L99" class="LineNr"> 99 </span> compare <a href='evaluate.mu.html#L1443'>litmac?</a>, <span class="Constant">0</span>/false <span id="L100" class="LineNr">100 </span> <span class="PreProc">break-if-=</span> <span id="L101" class="LineNr">101 </span> <span class="muComment"># litmac is a literal</span> @@ -131,26 +130,26 @@ if ('onhashchange' in window) { <span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L107" class="LineNr">107 </span> <span class="muComment"># for each builtin, expand only what will later be evaluated</span> <span id="L108" class="LineNr">108 </span> $macroexpand-iter:anonymous-function: <span class="Delimiter">{</span> -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1415'>fn?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1415'>fn?</a> first +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1415'>fn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1415'>fn?</a> first <span id="L110" class="LineNr">110 </span> compare <a href='evaluate.mu.html#L1415'>fn?</a>, <span class="Constant">0</span>/false <span id="L111" class="LineNr">111 </span> <span class="PreProc">break-if-=</span> <span id="L112" class="LineNr">112 </span> <span class="muComment"># fn: expand every expression in the body</span> <span id="L113" class="LineNr">113 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"mac"</span>, <span class="Constant">"anonymous function"</span> <span id="L114" class="LineNr">114 </span> <span class="muComment"># skip parameters</span> -<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L116" class="LineNr">116 </span> <span class="Delimiter">{</span> <span id="L117" class="LineNr">117 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L118" class="LineNr">118 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L119" class="LineNr">119 </span> <span class="Delimiter">{</span> -<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L121" class="LineNr">121 </span> compare done?, <span class="Constant">0</span>/false <span id="L122" class="LineNr">122 </span> <span class="Delimiter">}</span> <span id="L123" class="LineNr">123 </span> <span class="PreProc">break-if-!=</span> -<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> curr-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> macro-found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> curr-ah, globals, trace +<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> curr-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> curr-ah, globals, trace <span id="L126" class="LineNr">126 </span> result <span class="Special"><-</span> or macro-found? <span id="L127" class="LineNr">127 </span> <span class="Delimiter">{</span> -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L129" class="LineNr">129 </span> compare error?, <span class="Constant">0</span>/false <span id="L130" class="LineNr">130 </span> <span class="PreProc">break-if-=</span> <span id="L131" class="LineNr">131 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -165,7 +164,7 @@ if ('onhashchange' in window) { <span id="L154" class="LineNr">154 </span> <span class="muComment"># builtins with "special" evaluation rules</span> <span id="L155" class="LineNr">155 </span> $macroexpand-iter:quote: <span class="Delimiter">{</span> <span id="L156" class="LineNr">156 </span> <span class="muComment"># trees starting with single quote create literals</span> -<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> quote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"'"</span> +<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> quote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"'"</span> <span id="L158" class="LineNr">158 </span> compare quote?, <span class="Constant">0</span>/false <span id="L159" class="LineNr">159 </span> <span class="PreProc">break-if-=</span> <span id="L160" class="LineNr">160 </span> <span class="muComment">#</span> @@ -175,13 +174,13 @@ if ('onhashchange' in window) { <span id="L164" class="LineNr">164 </span> <span class="Delimiter">}</span> <span id="L165" class="LineNr">165 </span> $macroexpand-iter:backquote: <span class="Delimiter">{</span> <span id="L166" class="LineNr">166 </span> <span class="muComment"># nested backquote not supported for now</span> -<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> backquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"`"</span> +<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> backquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"`"</span> <span id="L168" class="LineNr">168 </span> compare backquote?, <span class="Constant">0</span>/false <span id="L169" class="LineNr">169 </span> <span class="PreProc">break-if-=</span> <span id="L170" class="LineNr">170 </span> <span class="muComment">#</span> <span id="L171" class="LineNr">171 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x40/x 0x10/y</span> <span id="L172" class="LineNr">172 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen rest-ah</span> -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> double-unquote-found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L331'>look-for-double-unquote</a> rest-ah +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> double-unquote-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L331'>look-for-double-unquote</a> rest-ah <span id="L174" class="LineNr">174 </span> compare double-unquote-found?, <span class="Constant">0</span>/false <span id="L175" class="LineNr">175 </span> <span class="Delimiter">{</span> <span id="L176" class="LineNr">176 </span> <span class="PreProc">break-if-=</span> @@ -192,32 +191,32 @@ if ('onhashchange' in window) { <span id="L181" class="LineNr">181 </span> <span class="Delimiter">}</span> <span id="L182" class="LineNr">182 </span> $macroexpand-iter:define: <span class="Delimiter">{</span> <span id="L183" class="LineNr">183 </span> <span class="muComment"># trees starting with "define" define globals</span> -<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> define?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"define"</span> +<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> define?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"define"</span> <span id="L185" class="LineNr">185 </span> compare define?, <span class="Constant">0</span>/false <span id="L186" class="LineNr">186 </span> <span class="PreProc">break-if-=</span> <span id="L187" class="LineNr">187 </span> <span class="muComment">#</span> <span id="L188" class="LineNr">188 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"mac"</span>, <span class="Constant">"define"</span> -<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L190" class="LineNr">190 </span> rest-ah <span class="Special"><-</span> get rest, right <span class="muComment"># skip name</span> <span id="L191" class="LineNr">191 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> macro-found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> val-ah, globals, trace +<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> val-ah, globals, trace <span id="L194" class="LineNr">194 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L195" class="Folded">195 </span><span class="Folded">+-- 15 lines: # trace "define=> " _expr-ah ----------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L210" class="LineNr">210 </span> <span class="PreProc">return</span> macro-found? <span id="L211" class="LineNr">211 </span> <span class="Delimiter">}</span> <span id="L212" class="LineNr">212 </span> $macroexpand-iter:set: <span class="Delimiter">{</span> <span id="L213" class="LineNr">213 </span> <span class="muComment"># trees starting with "set" mutate bindings</span> -<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> set?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"set"</span> +<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> set?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> first, <span class="Constant">"set"</span> <span id="L215" class="LineNr">215 </span> compare set?, <span class="Constant">0</span>/false <span id="L216" class="LineNr">216 </span> <span class="PreProc">break-if-=</span> <span id="L217" class="LineNr">217 </span> <span class="muComment">#</span> <span id="L218" class="LineNr">218 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"mac"</span>, <span class="Constant">"set"</span> -<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L220" class="LineNr">220 </span> rest-ah <span class="Special"><-</span> get rest, right <span class="muComment"># skip name</span> <span id="L221" class="LineNr">221 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> macro-found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> val-ah, globals, trace +<span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> val-ah, globals, trace <span id="L224" class="LineNr">224 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L225" class="Folded">225 </span><span class="Folded">+-- 15 lines: # trace "set=> " _expr-ah -------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L240" class="LineNr">240 </span> <span class="PreProc">return</span> macro-found? @@ -231,25 +230,25 @@ if ('onhashchange' in window) { <span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> definition-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> definition-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address definition-h <span id="L250" class="LineNr">250 </span> <a href='global.mu.html#L378'>maybe-lookup-symbol-in-globals</a> first, definition-ah, globals, trace -<span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> definition/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *definition-ah +<span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> definition/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *definition-ah <span id="L252" class="LineNr">252 </span> compare definition, <span class="Constant">0</span> <span id="L253" class="LineNr">253 </span> <span class="PreProc">break-if-=</span> <span id="L254" class="LineNr">254 </span> <span class="muComment"># definition found</span> <span id="L255" class="LineNr">255 </span> <span class="Delimiter">{</span> -<span id="L256" class="LineNr">256 </span> <span class="PreProc">var</span> definition-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get definition, <span class="PreProc">type</span> +<span id="L256" class="LineNr">256 </span> <span class="PreProc">var</span> definition-type/eax: (addr int) <span class="Special"><-</span> get definition, <span class="PreProc">type</span> <span id="L257" class="LineNr">257 </span> compare *definition-type, <span class="Constant">0</span>/pair <span id="L258" class="LineNr">258 </span> <span class="Delimiter">}</span> <span id="L259" class="LineNr">259 </span> <span class="PreProc">break-if-!=</span> <span id="L260" class="LineNr">260 </span> <span class="muComment"># definition is a pair</span> <span id="L261" class="LineNr">261 </span> <span class="Delimiter">{</span> -<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> definition-car-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get definition, left -<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> definition-car/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *definition-car-ah -<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> macro?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> definition-car +<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> definition-car-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get definition, left +<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> definition-car/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *definition-car-ah +<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> macro?/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> definition-car <span id="L265" class="LineNr">265 </span> compare macro?, <span class="Constant">0</span>/false <span id="L266" class="LineNr">266 </span> <span class="Delimiter">}</span> <span id="L267" class="LineNr">267 </span> <span class="PreProc">break-if-=</span> <span id="L268" class="LineNr">268 </span> <span class="muComment"># definition is a macro</span> -<span id="L269" class="LineNr">269 </span> <span class="PreProc">var</span> macro-definition-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get definition, right +<span id="L269" class="LineNr">269 </span> <span class="PreProc">var</span> macro-definition-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get definition, right <span id="L270" class="LineNr">270 </span> <span class="muComment"># TODO: check car(macro-definition) is litfn</span> <span id="L271" class="LineNr">271 </span><span class="CommentedCode">#? turn-on-debug-print</span> <span id="L272" class="LineNr">272 </span> <a href='evaluate.mu.html#L655'>apply</a> macro-definition-ah, rest-ah, expr-ah, globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number @@ -263,14 +262,14 @@ if ('onhashchange' in window) { <span id="L294" class="LineNr">294 </span> $macroexpand-iter:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L295" class="LineNr">295 </span><span class="CommentedCode">#? clear-screen 0/screen</span> <span id="L296" class="LineNr">296 </span><span class="CommentedCode">#? dump-trace trace</span> -<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> macro-found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> curr-ah, globals, trace +<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> curr-ah, globals, trace <span id="L298" class="LineNr">298 </span> result <span class="Special"><-</span> or macro-found? -<span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L299" class="LineNr">299 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L300" class="LineNr">300 </span> compare error?, <span class="Constant">0</span>/false <span id="L301" class="LineNr">301 </span> <span class="PreProc">break-if-!=</span> -<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L303" class="LineNr">303 </span> <span class="Delimiter">{</span> -<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L305" class="LineNr">305 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L306" class="LineNr">306 </span> <span class="Delimiter">}</span> <span id="L307" class="LineNr">307 </span> <span class="PreProc">break-if-!=</span> @@ -283,55 +282,55 @@ if ('onhashchange' in window) { <span id="L328" class="LineNr">328 </span> <span class="PreProc">return</span> result <span id="L329" class="LineNr">329 </span><span class="Delimiter">}</span> <span id="L330" class="LineNr">330 </span> -<span id="L331" class="LineNr">331 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='macroexpand.mu.html#L331'>look-for-double-unquote</a></span> _expr-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L331" class="LineNr">331 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='macroexpand.mu.html#L331'>look-for-double-unquote</a></span> _expr-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L332" class="LineNr">332 </span> <span class="muComment"># if expr is a non-pair, return false</span> -<span id="L333" class="LineNr">333 </span> <span class="PreProc">var</span> expr-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _expr-ah -<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> expr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expr-ah +<span id="L333" class="LineNr">333 </span> <span class="PreProc">var</span> expr-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _expr-ah +<span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> expr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expr-ah <span id="L335" class="LineNr">335 </span> <span class="Delimiter">{</span> -<span id="L336" class="LineNr">336 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> expr +<span id="L336" class="LineNr">336 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> expr <span id="L337" class="LineNr">337 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L338" class="LineNr">338 </span> <span class="PreProc">break-if-=</span> <span id="L339" class="LineNr">339 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L340" class="LineNr">340 </span> <span class="Delimiter">}</span> <span id="L341" class="LineNr">341 </span> <span class="Delimiter">{</span> -<span id="L342" class="LineNr">342 </span> <span class="PreProc">var</span> expr-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get expr, <span class="PreProc">type</span> +<span id="L342" class="LineNr">342 </span> <span class="PreProc">var</span> expr-type/eax: (addr int) <span class="Special"><-</span> get expr, <span class="PreProc">type</span> <span id="L343" class="LineNr">343 </span> compare *expr-type, <span class="Constant">0</span>/pair <span id="L344" class="LineNr">344 </span> <span class="PreProc">break-if-=</span> <span id="L345" class="LineNr">345 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L346" class="LineNr">346 </span> <span class="Delimiter">}</span> <span id="L347" class="LineNr">347 </span> <span class="PreProc">var</span> cdr-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get expr, right <span id="L348" class="LineNr">348 </span> <span class="PreProc">var</span> car-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get expr, left -<span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1189'>car</a>/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *car-ah +<span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1189'>car</a>/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *car-ah <span id="L350" class="LineNr">350 </span> <span class="muComment"># if car is unquote or unquote-splice, check if cadr is unquote or</span> <span id="L351" class="LineNr">351 </span> <span class="muComment"># unquote-splice.</span> <span id="L352" class="LineNr">352 </span> $look-for-double-unquote:<a href='../502test.mu.html#L19'>check</a>: <span class="Delimiter">{</span> <span id="L353" class="LineNr">353 </span> <span class="muComment"># if car is not an unquote, break</span> <span id="L354" class="LineNr">354 </span> <span class="Delimiter">{</span> <span id="L355" class="LineNr">355 </span> <span class="Delimiter">{</span> -<span id="L356" class="LineNr">356 </span> <span class="PreProc">var</span> unquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> <a href='evaluate.mu.html#L1189'>car</a>, <span class="Constant">","</span> +<span id="L356" class="LineNr">356 </span> <span class="PreProc">var</span> unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> <a href='evaluate.mu.html#L1189'>car</a>, <span class="Constant">","</span> <span id="L357" class="LineNr">357 </span> compare unquote?, <span class="Constant">0</span>/false <span id="L358" class="LineNr">358 </span> <span class="Delimiter">}</span> <span id="L359" class="LineNr">359 </span> <span class="PreProc">break-if-!=</span> -<span id="L360" class="LineNr">360 </span> <span class="PreProc">var</span> unquote-splice?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> <a href='evaluate.mu.html#L1189'>car</a>, <span class="Constant">",@"</span> +<span id="L360" class="LineNr">360 </span> <span class="PreProc">var</span> unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> <a href='evaluate.mu.html#L1189'>car</a>, <span class="Constant">",@"</span> <span id="L361" class="LineNr">361 </span> compare unquote-splice?, <span class="Constant">0</span>/false <span id="L362" class="LineNr">362 </span> <span class="PreProc">break-if-!=</span> <span id="L363" class="LineNr">363 </span> <span class="PreProc">break</span> $look-for-double-unquote:<a href='../502test.mu.html#L19'>check</a> <span id="L364" class="LineNr">364 </span> <span class="Delimiter">}</span> <span id="L365" class="LineNr">365 </span> <span class="muComment"># if cdr is not a pair, break</span> -<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1217'>cdr</a>/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cdr-ah +<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1217'>cdr</a>/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cdr-ah <span id="L367" class="LineNr">367 </span> <span class="PreProc">var</span> cdr-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get <a href='evaluate.mu.html#L1217'>cdr</a>, <span class="PreProc">type</span> <span id="L368" class="LineNr">368 </span> compare *cdr-type, <span class="Constant">0</span>/pair <span id="L369" class="LineNr">369 </span> <span class="PreProc">break-if-!=</span> <span id="L370" class="LineNr">370 </span> <span class="muComment"># if cadr is not an unquote, break</span> -<span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> cadr-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get <a href='evaluate.mu.html#L1217'>cdr</a>, left -<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> cadr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cadr-ah +<span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> cadr-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get <a href='evaluate.mu.html#L1217'>cdr</a>, left +<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> cadr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cadr-ah <span id="L373" class="LineNr">373 </span> <span class="Delimiter">{</span> <span id="L374" class="LineNr">374 </span> <span class="Delimiter">{</span> -<span id="L375" class="LineNr">375 </span> <span class="PreProc">var</span> unquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> cadr, <span class="Constant">","</span> +<span id="L375" class="LineNr">375 </span> <span class="PreProc">var</span> unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> cadr, <span class="Constant">","</span> <span id="L376" class="LineNr">376 </span> compare unquote?, <span class="Constant">0</span>/false <span id="L377" class="LineNr">377 </span> <span class="Delimiter">}</span> <span id="L378" class="LineNr">378 </span> <span class="PreProc">break-if-!=</span> -<span id="L379" class="LineNr">379 </span> <span class="PreProc">var</span> unquote-splice?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> cadr, <span class="Constant">",@"</span> +<span id="L379" class="LineNr">379 </span> <span class="PreProc">var</span> unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> cadr, <span class="Constant">",@"</span> <span id="L380" class="LineNr">380 </span> compare unquote-splice?, <span class="Constant">0</span>/false <span id="L381" class="LineNr">381 </span> <span class="PreProc">break-if-!=</span> <span id="L382" class="LineNr">382 </span> <span class="PreProc">break</span> $look-for-double-unquote:<a href='../502test.mu.html#L19'>check</a> @@ -339,7 +338,7 @@ if ('onhashchange' in window) { <span id="L384" class="LineNr">384 </span> <span class="muComment"># error</span> <span id="L385" class="LineNr">385 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L386" class="LineNr">386 </span> <span class="Delimiter">}</span> -<span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L331'>look-for-double-unquote</a> car-ah +<span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L331'>look-for-double-unquote</a> car-ah <span id="L388" class="LineNr">388 </span> compare result, <span class="Constant">0</span>/false <span id="L389" class="LineNr">389 </span> <span class="Delimiter">{</span> <span id="L390" class="LineNr">390 </span> <span class="PreProc">break-if-=</span> @@ -361,30 +360,30 @@ if ('onhashchange' in window) { <span id="L406" class="LineNr">406 </span> <span class="muComment"># invoke macro</span> <span id="L407" class="LineNr">407 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"(m 3 4)"</span> <span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> gap-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah +<span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah <span id="L410" class="LineNr">410 </span> <span class="PreProc">var</span> result-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L411" class="LineNr">411 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h <span id="L412" class="LineNr">412 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L413" class="LineNr">413 </span> <span class="PreProc">var</span> trace/<span class="muRegEcx">ecx</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L414" class="LineNr">414 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L415" class="LineNr">415 </span> <a href='read.mu.html#L1'>read-cell</a> gap, result-ah, trace -<span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace -<span id="L417" class="LineNr">417 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace +<span id="L417" class="LineNr">417 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L418" class="LineNr">418 </span> <a href='../502test.mu.html#L32'>check-not</a> error?, <span class="Constant">"F - <a href='macroexpand.mu.html#L397'>test-macroexpand</a>/error"</span> <span id="L419" class="LineNr">419 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen result-ah, 4/fg 0/bg</span> -<span id="L420" class="LineNr">420 </span> <span class="PreProc">var</span> _result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah +<span id="L420" class="LineNr">420 </span> <span class="PreProc">var</span> _result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah <span id="L421" class="LineNr">421 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _result <span id="L422" class="LineNr">422 </span> <span class="muComment"># expected</span> <span id="L423" class="LineNr">423 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"(+ 3 4)"</span> <span id="L424" class="LineNr">424 </span> <span class="PreProc">var</span> expected-gap-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L425" class="LineNr">425 </span> <span class="PreProc">var</span> expected-gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah +<span id="L425" class="LineNr">425 </span> <span class="PreProc">var</span> expected-gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah <span id="L426" class="LineNr">426 </span> <span class="PreProc">var</span> expected-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L427" class="LineNr">427 </span> <span class="PreProc">var</span> expected-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address expected-h <span id="L428" class="LineNr">428 </span> <a href='read.mu.html#L1'>read-cell</a> expected-gap, expected-ah, trace <span id="L429" class="LineNr">429 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen expected-ah</span> -<span id="L430" class="LineNr">430 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah +<span id="L430" class="LineNr">430 </span> <span class="PreProc">var</span> expected/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah <span id="L431" class="LineNr">431 </span> <span class="muComment">#</span> -<span id="L432" class="LineNr">432 </span> <span class="PreProc">var</span> assertion/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace +<span id="L432" class="LineNr">432 </span> <span class="PreProc">var</span> assertion/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace <span id="L433" class="LineNr">433 </span> <a href='../502test.mu.html#L19'>check</a> assertion, <span class="Constant">"F - test-macroexpand"</span> <span id="L434" class="LineNr">434 </span><span class="Delimiter">}</span> <span id="L435" class="LineNr">435 </span> @@ -400,29 +399,29 @@ if ('onhashchange' in window) { <span id="L445" class="LineNr">445 </span> <span class="muComment"># invoke macro</span> <span id="L446" class="LineNr">446 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"(fn() (m 3 4))"</span> <span id="L447" class="LineNr">447 </span> <span class="PreProc">var</span> gap-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah +<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah <span id="L449" class="LineNr">449 </span> <span class="PreProc">var</span> result-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L450" class="LineNr">450 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h <span id="L451" class="LineNr">451 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> trace/<span class="muRegEcx">ecx</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L453" class="LineNr">453 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L454" class="LineNr">454 </span> <a href='read.mu.html#L1'>read-cell</a> gap, result-ah, trace -<span id="L455" class="LineNr">455 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace -<span id="L456" class="LineNr">456 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L455" class="LineNr">455 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace +<span id="L456" class="LineNr">456 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L457" class="LineNr">457 </span> <a href='../502test.mu.html#L32'>check-not</a> error?, <span class="Constant">"F - <a href='macroexpand.mu.html#L436'>test-macroexpand-inside-anonymous-fn</a>/error"</span> <span id="L458" class="LineNr">458 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen result-ah</span> -<span id="L459" class="LineNr">459 </span> <span class="PreProc">var</span> _result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah +<span id="L459" class="LineNr">459 </span> <span class="PreProc">var</span> _result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah <span id="L460" class="LineNr">460 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _result <span id="L461" class="LineNr">461 </span> <span class="muComment"># expected</span> <span id="L462" class="LineNr">462 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"(fn() (+ 3 4))"</span> <span id="L463" class="LineNr">463 </span> <span class="PreProc">var</span> expected-gap-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L464" class="LineNr">464 </span> <span class="PreProc">var</span> expected-gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah +<span id="L464" class="LineNr">464 </span> <span class="PreProc">var</span> expected-gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah <span id="L465" class="LineNr">465 </span> <span class="PreProc">var</span> expected-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> expected-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address expected-h <span id="L467" class="LineNr">467 </span> <a href='read.mu.html#L1'>read-cell</a> expected-gap, expected-ah, trace -<span id="L468" class="LineNr">468 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah +<span id="L468" class="LineNr">468 </span> <span class="PreProc">var</span> expected/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah <span id="L469" class="LineNr">469 </span> <span class="muComment">#</span> -<span id="L470" class="LineNr">470 </span> <span class="PreProc">var</span> assertion/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace +<span id="L470" class="LineNr">470 </span> <span class="PreProc">var</span> assertion/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace <span id="L471" class="LineNr">471 </span> <a href='../502test.mu.html#L19'>check</a> assertion, <span class="Constant">"F - test-macroexpand-inside-anonymous-fn"</span> <span id="L472" class="LineNr">472 </span><span class="Delimiter">}</span> <span id="L473" class="LineNr">473 </span> @@ -438,30 +437,30 @@ if ('onhashchange' in window) { <span id="L483" class="LineNr">483 </span> <span class="muComment"># invoke macro</span> <span id="L484" class="LineNr">484 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"((fn() (m 3 4)))"</span> <span id="L485" class="LineNr">485 </span> <span class="PreProc">var</span> gap-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L486" class="LineNr">486 </span> <span class="PreProc">var</span> gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah +<span id="L486" class="LineNr">486 </span> <span class="PreProc">var</span> gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah <span id="L487" class="LineNr">487 </span> <span class="PreProc">var</span> result-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L488" class="LineNr">488 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h <span id="L489" class="LineNr">489 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> trace/<span class="muRegEcx">ecx</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L491" class="LineNr">491 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L492" class="LineNr">492 </span> <a href='read.mu.html#L1'>read-cell</a> gap, result-ah, trace -<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace -<span id="L494" class="LineNr">494 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace +<span id="L494" class="LineNr">494 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L495" class="LineNr">495 </span> <a href='../502test.mu.html#L32'>check-not</a> error?, <span class="Constant">"F - <a href='macroexpand.mu.html#L474'>test-macroexpand-inside-fn-call</a>/error"</span> <span id="L496" class="LineNr">496 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen result-ah</span> -<span id="L497" class="LineNr">497 </span> <span class="PreProc">var</span> _result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah +<span id="L497" class="LineNr">497 </span> <span class="PreProc">var</span> _result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah <span id="L498" class="LineNr">498 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _result <span id="L499" class="LineNr">499 </span> <span class="muComment"># expected</span> <span id="L500" class="LineNr">500 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"((fn() (+ 3 4)))"</span> <span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> expected-gap-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L502" class="LineNr">502 </span> <span class="PreProc">var</span> expected-gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah +<span id="L502" class="LineNr">502 </span> <span class="PreProc">var</span> expected-gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah <span id="L503" class="LineNr">503 </span> <span class="PreProc">var</span> expected-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L504" class="LineNr">504 </span> <span class="PreProc">var</span> expected-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address expected-h <span id="L505" class="LineNr">505 </span> <a href='read.mu.html#L1'>read-cell</a> expected-gap, expected-ah, trace <span id="L506" class="LineNr">506 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen expected-ah</span> -<span id="L507" class="LineNr">507 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah +<span id="L507" class="LineNr">507 </span> <span class="PreProc">var</span> expected/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah <span id="L508" class="LineNr">508 </span> <span class="muComment">#</span> -<span id="L509" class="LineNr">509 </span> <span class="PreProc">var</span> assertion/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace +<span id="L509" class="LineNr">509 </span> <span class="PreProc">var</span> assertion/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace <span id="L510" class="LineNr">510 </span> <a href='../502test.mu.html#L19'>check</a> assertion, <span class="Constant">"F - test-macroexpand-inside-fn-call"</span> <span id="L511" class="LineNr">511 </span><span class="Delimiter">}</span> <span id="L512" class="LineNr">512 </span> @@ -474,15 +473,15 @@ if ('onhashchange' in window) { <span id="L519" class="LineNr">519 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage <span id="L520" class="LineNr">520 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"(cons 1 `(3))"</span> <span id="L521" class="LineNr">521 </span> <span class="PreProc">var</span> gap-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L522" class="LineNr">522 </span> <span class="PreProc">var</span> gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah +<span id="L522" class="LineNr">522 </span> <span class="PreProc">var</span> gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah <span id="L523" class="LineNr">523 </span> <span class="PreProc">var</span> result-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L524" class="LineNr">524 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h <span id="L525" class="LineNr">525 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L526" class="LineNr">526 </span> <span class="PreProc">var</span> trace/<span class="muRegEcx">ecx</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L527" class="LineNr">527 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L528" class="LineNr">528 </span> <a href='read.mu.html#L1'>read-cell</a> gap, result-ah, trace -<span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace -<span id="L530" class="LineNr">530 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace +<span id="L530" class="LineNr">530 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L531" class="LineNr">531 </span> <a href='../502test.mu.html#L32'>check-not</a> error?, <span class="Constant">"F - test-macroexpand-repeatedly-with-backquoted-arg"</span> <span id="L532" class="LineNr">532 </span> <span class="Delimiter">{</span> <span id="L533" class="LineNr">533 </span> compare error?, <span class="Constant">0</span>/false @@ -507,29 +506,29 @@ if ('onhashchange' in window) { <span id="L552" class="LineNr">552 </span> <span class="muComment"># invoke macro</span> <span id="L553" class="LineNr">553 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"`(print [result is ] ,(m 3 4)))"</span> <span id="L554" class="LineNr">554 </span> <span class="PreProc">var</span> gap-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L555" class="LineNr">555 </span> <span class="PreProc">var</span> gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah +<span id="L555" class="LineNr">555 </span> <span class="PreProc">var</span> gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah <span id="L556" class="LineNr">556 </span> <span class="PreProc">var</span> result-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L557" class="LineNr">557 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h <span id="L558" class="LineNr">558 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L559" class="LineNr">559 </span> <span class="PreProc">var</span> trace/<span class="muRegEcx">ecx</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L560" class="LineNr">560 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L561" class="LineNr">561 </span> <a href='read.mu.html#L1'>read-cell</a> gap, result-ah, trace -<span id="L562" class="LineNr">562 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace -<span id="L563" class="LineNr">563 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L562" class="LineNr">562 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace +<span id="L563" class="LineNr">563 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L564" class="LineNr">564 </span> <a href='../502test.mu.html#L32'>check-not</a> error?, <span class="Constant">"F - test-macroexpand-inside-backquote-unquote/error"</span> <span id="L565" class="LineNr">565 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen result-ah</span> -<span id="L566" class="LineNr">566 </span> <span class="PreProc">var</span> _result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah +<span id="L566" class="LineNr">566 </span> <span class="PreProc">var</span> _result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah <span id="L567" class="LineNr">567 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _result <span id="L568" class="LineNr">568 </span> <span class="muComment"># expected</span> <span id="L569" class="LineNr">569 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"`(print [result is ] ,(+ 3 4)))"</span> <span id="L570" class="LineNr">570 </span> <span class="PreProc">var</span> expected-gap-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L571" class="LineNr">571 </span> <span class="PreProc">var</span> expected-gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah +<span id="L571" class="LineNr">571 </span> <span class="PreProc">var</span> expected-gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah <span id="L572" class="LineNr">572 </span> <span class="PreProc">var</span> expected-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L573" class="LineNr">573 </span> <span class="PreProc">var</span> expected-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address expected-h <span id="L574" class="LineNr">574 </span> <a href='read.mu.html#L1'>read-cell</a> expected-gap, expected-ah, trace -<span id="L575" class="LineNr">575 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah +<span id="L575" class="LineNr">575 </span> <span class="PreProc">var</span> expected/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah <span id="L576" class="LineNr">576 </span> <span class="muComment">#</span> -<span id="L577" class="LineNr">577 </span> <span class="PreProc">var</span> assertion/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace +<span id="L577" class="LineNr">577 </span> <span class="PreProc">var</span> assertion/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace <span id="L578" class="LineNr">578 </span> <a href='../502test.mu.html#L19'>check</a> assertion, <span class="Constant">"F - test-macroexpand-inside-backquote-unquote"</span> <span id="L579" class="LineNr">579 </span><span class="Delimiter">}</span> <span id="L580" class="LineNr">580 </span> @@ -545,30 +544,30 @@ if ('onhashchange' in window) { <span id="L590" class="LineNr">590 </span> <span class="muComment"># invoke macro</span> <span id="L591" class="LineNr">591 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"`(a ,(m 3 4) `(b ,(m 3 4) ,,(m 3 4)))"</span> <span id="L592" class="LineNr">592 </span> <span class="PreProc">var</span> gap-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah +<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *gap-ah <span id="L594" class="LineNr">594 </span> <span class="PreProc">var</span> result-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L595" class="LineNr">595 </span> <span class="PreProc">var</span> result-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address result-h <span id="L596" class="LineNr">596 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L597" class="LineNr">597 </span> <span class="PreProc">var</span> trace/<span class="muRegEcx">ecx</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L598" class="LineNr">598 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L599" class="LineNr">599 </span> <a href='read.mu.html#L1'>read-cell</a> gap, result-ah, trace -<span id="L600" class="LineNr">600 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace -<span id="L601" class="LineNr">601 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L600" class="LineNr">600 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> result-ah, globals, trace +<span id="L601" class="LineNr">601 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L602" class="LineNr">602 </span> <a href='../502test.mu.html#L32'>check-not</a> error?, <span class="Constant">"F - test-macroexpand-inside-nested-backquote-unquote/error"</span> <span id="L603" class="LineNr">603 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen result-ah</span> -<span id="L604" class="LineNr">604 </span> <span class="PreProc">var</span> _result/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah +<span id="L604" class="LineNr">604 </span> <span class="PreProc">var</span> _result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *result-ah <span id="L605" class="LineNr">605 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _result <span id="L606" class="LineNr">606 </span> <span class="muComment"># expected</span> <span id="L607" class="LineNr">607 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"`(a ,(+ 3 4) `(b ,(m 3 4) ,,(+ 3 4)))"</span> <span id="L608" class="LineNr">608 </span> <span class="PreProc">var</span> expected-gap-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data -<span id="L609" class="LineNr">609 </span> <span class="PreProc">var</span> expected-gap/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah +<span id="L609" class="LineNr">609 </span> <span class="PreProc">var</span> expected-gap/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-gap-ah <span id="L610" class="LineNr">610 </span> <span class="PreProc">var</span> expected-h: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L611" class="LineNr">611 </span> <span class="PreProc">var</span> expected-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address expected-h <span id="L612" class="LineNr">612 </span> <a href='read.mu.html#L1'>read-cell</a> expected-gap, expected-ah, trace <span id="L613" class="LineNr">613 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen expected-ah</span> -<span id="L614" class="LineNr">614 </span> <span class="PreProc">var</span> expected/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah +<span id="L614" class="LineNr">614 </span> <span class="PreProc">var</span> expected/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expected-ah <span id="L615" class="LineNr">615 </span> <span class="muComment">#</span> -<span id="L616" class="LineNr">616 </span> <span class="PreProc">var</span> assertion/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace +<span id="L616" class="LineNr">616 </span> <span class="PreProc">var</span> assertion/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> result, expected, trace <span id="L617" class="LineNr">617 </span> <a href='../502test.mu.html#L19'>check</a> assertion, <span class="Constant">"F - test-macroexpand-inside-nested-backquote-unquote"</span> <span id="L618" class="LineNr">618 </span><span class="Delimiter">}</span> <span id="L619" class="LineNr">619 </span> diff --git a/html/shell/main.mu.html b/html/shell/main.mu.html index 800f8b8f..d6222803 100644 --- a/html/shell/main.mu.html +++ b/html/shell/main.mu.html @@ -14,15 +14,14 @@ 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 { } +.PreProc { color: #c000c0; } .Special { color: #ff6060; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } +.muRegEsi { color: #005faf; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -70,10 +69,10 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr">10 </span> <a href='environment.mu.html#L115'>render-environment</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, env <span id="L11" class="LineNr">11 </span> <span class="muComment"># no way to quit right now; just reboot</span> <span id="L12" class="LineNr">12 </span> <span class="Delimiter">{</span> -<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L14" class="LineNr">14 </span> compare key, <span class="Constant">0</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">loop-if-=</span> -<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy key +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> key/eax: grapheme <span class="Special"><-</span> copy key <span id="L17" class="LineNr">17 </span> <a href='environment.mu.html#L148'>edit-environment</a> env, key, data-disk <span id="L18" class="LineNr">18 </span> <span class="Delimiter">}</span> <span id="L19" class="LineNr">19 </span> <span class="PreProc">loop</span> diff --git a/html/shell/parenthesize.mu.html b/html/shell/parenthesize.mu.html index c00fc005..811c9420 100644 --- a/html/shell/parenthesize.mu.html +++ b/html/shell/parenthesize.mu.html @@ -17,8 +17,9 @@ a { color:inherit; } .LineNr { } .Delimiter { color: #c000c0; } .CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } @@ -26,10 +27,8 @@ a { color:inherit; } .muTest { color: #5f8700; } .muComment { color: #005faf; } .muS1Comment { color: #0000af; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -94,7 +93,7 @@ if ('onhashchange' in window) { <span id="L27" class="LineNr"> 27 </span> <a href='int-stack.mu.html#L6'>initialize-int-stack</a> implicit-open-parens, <span class="Constant">0x10</span> <span class="muComment"># potentially a major memory leak</span> <span id="L28" class="LineNr"> 28 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">{</span> -<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in <span id="L31" class="LineNr"> 31 </span> compare done?, <span class="Constant">0</span>/false <span id="L32" class="LineNr"> 32 </span> <span class="PreProc">break-if-!=</span> <span id="L33" class="LineNr"> 33 </span> <span class="muComment">#</span> @@ -104,16 +103,16 @@ if ('onhashchange' in window) { <span id="L37" class="LineNr"> 37 </span><span class="CommentedCode">#? dump-token-from-cursor curr-token</span> <span id="L38" class="LineNr"> 38 </span> <span class="muComment"># update state</span> <span id="L39" class="LineNr"> 39 </span> <span class="Delimiter">{</span> -<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> is-indent?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> curr-token +<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> is-indent?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> curr-token <span id="L41" class="LineNr"> 41 </span> compare is-indent?, <span class="Constant">0</span>/false <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">break-if-=</span> <span id="L43" class="LineNr"> 43 </span> copy-to num-words-in-line, <span class="Constant">0</span> <span id="L44" class="LineNr"> 44 </span> copy-to paren-at-start-of-line?, <span class="Constant">0</span>/false -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='parenthesize.mu.html#L145'>indent-level</a> curr-token +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='parenthesize.mu.html#L145'>indent-level</a> curr-token <span id="L46" class="LineNr"> 46 </span> copy-to curr-line-indent, tmp <span id="L47" class="LineNr"> 47 </span> <span class="Delimiter">}</span> <span id="L48" class="LineNr"> 48 </span> <span class="Delimiter">{</span> -<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> is-word?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='parenthesize.mu.html#L151'>word-token?</a> curr-token +<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> is-word?/eax: boolean <span class="Special"><-</span> <a href='parenthesize.mu.html#L151'>word-token?</a> curr-token <span id="L50" class="LineNr"> 50 </span> compare is-word?, <span class="Constant">0</span>/false <span id="L51" class="LineNr"> 51 </span> <span class="PreProc">break-if-=</span> <span id="L52" class="LineNr"> 52 </span> increment num-words-in-line @@ -121,7 +120,7 @@ if ('onhashchange' in window) { <span id="L54" class="LineNr"> 54 </span> <span class="Delimiter">{</span> <span id="L55" class="LineNr"> 55 </span> compare num-words-in-line, <span class="Constant">0</span> <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">break-if-!=</span> -<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> is-open?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token +<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> is-open?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token <span id="L58" class="LineNr"> 58 </span> compare is-open?, <span class="Constant">0</span>/false <span id="L59" class="LineNr"> 59 </span> <span class="PreProc">break-if-=</span> <span id="L60" class="LineNr"> 60 </span> copy-to paren-at-start-of-line?, <span class="Constant">1</span>/true @@ -136,7 +135,7 @@ if ('onhashchange' in window) { <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break</span> $parenthesize:<a href='parenthesize.mu.html#L196'>emit</a> <span id="L70" class="LineNr"> 70 </span> <span class="Delimiter">}</span> <span id="L71" class="LineNr"> 71 </span> <span class="Delimiter">{</span> -<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> is-indent?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> curr-token +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> is-indent?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> curr-token <span id="L73" class="LineNr"> 73 </span> compare is-indent?, <span class="Constant">0</span>/false <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">break-if-=</span> <span id="L75" class="LineNr"> 75 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen "B", 7/fg 0/bg</span> @@ -153,14 +152,14 @@ if ('onhashchange' in window) { <span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">{</span> <span id="L87" class="LineNr"> 87 </span> compare num-words-in-line, <span class="Constant">2</span> <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">break-if-!=</span> -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> is-word?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='parenthesize.mu.html#L151'>word-token?</a> curr-token +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> is-word?/eax: boolean <span class="Special"><-</span> <a href='parenthesize.mu.html#L151'>word-token?</a> curr-token <span id="L90" class="LineNr"> 90 </span> compare is-word?, <span class="Constant">0</span>/false <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">break-if-=</span> <span id="L92" class="LineNr"> 92 </span> compare *explicit-open-parens, <span class="Constant">0</span> <span id="L93" class="LineNr"> 93 </span> <span class="PreProc">break-if-!=</span> <span id="L94" class="LineNr"> 94 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen "(\n", 7/fg 0/bg</span> <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> paren-storage: <a href='tokenize.mu.html#L3'>token</a> -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> paren-token/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address paren-storage +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> paren-token/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address paren-storage <span id="L97" class="LineNr"> 97 </span> <a href='tokenize.mu.html#L1030'>initialize-token</a> paren-token, <span class="Constant">"("</span> <span id="L98" class="LineNr"> 98 </span> <a href='../309stream.subx.html#L54'>write-to-stream</a> out, paren-token <span id="L99" class="LineNr"> 99 </span> <a href='int-stack.mu.html#L14'>push-int-stack</a> implicit-open-parens, curr-line-indent @@ -168,24 +167,24 @@ if ('onhashchange' in window) { <span id="L101" class="LineNr">101 </span> <a href='parenthesize.mu.html#L176'>emit-all</a> buffer, curr-token, out, explicit-open-parens <span id="L102" class="LineNr">102 </span> <span class="Delimiter">}</span> <span id="L103" class="LineNr">103 </span> <span class="Delimiter">{</span> -<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> is-indent?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> curr-token +<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> is-indent?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> curr-token <span id="L105" class="LineNr">105 </span> compare is-indent?, <span class="Constant">0</span>/false <span id="L106" class="LineNr">106 </span> <span class="PreProc">break-if-=</span> <span id="L107" class="LineNr">107 </span> <span class="Delimiter">{</span> <span id="L108" class="LineNr">108 </span> <span class="muS1Comment"># . loop check</span> -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='int-stack.mu.html#L43'>int-stack-empty?</a> implicit-open-parens +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='int-stack.mu.html#L43'>int-stack-empty?</a> implicit-open-parens <span id="L110" class="LineNr">110 </span> compare done?, <span class="Constant">0</span>/false <span id="L111" class="LineNr">111 </span> <span class="PreProc">break-if-!=</span> -<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> top-indent/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='int-stack.mu.html#L54'>int-stack-top</a> implicit-open-parens +<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> top-indent/eax: int <span class="Special"><-</span> <a href='int-stack.mu.html#L54'>int-stack-top</a> implicit-open-parens <span id="L113" class="LineNr">113 </span> compare top-indent, curr-line-indent <span id="L114" class="LineNr">114 </span> <span class="PreProc">break-if-<</span> <span id="L115" class="LineNr">115 </span> <span class="muS1Comment"># . loop body</span> <span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> paren-storage: <a href='tokenize.mu.html#L3'>token</a> -<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> paren-token/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address paren-storage +<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> paren-token/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address paren-storage <span id="L118" class="LineNr">118 </span> <a href='tokenize.mu.html#L1030'>initialize-token</a> paren-token, <span class="Constant">")"</span> <span id="L119" class="LineNr">119 </span> <a href='../309stream.subx.html#L54'>write-to-stream</a> out, paren-token <span id="L120" class="LineNr">120 </span> <span class="muS1Comment"># . update</span> -<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='int-stack.mu.html#L26'>pop-int-stack</a> implicit-open-parens +<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='int-stack.mu.html#L26'>pop-int-stack</a> implicit-open-parens <span id="L122" class="LineNr">122 </span> <span class="PreProc">loop</span> <span id="L123" class="LineNr">123 </span> <span class="Delimiter">}</span> <span id="L124" class="LineNr">124 </span> <span class="Delimiter">}</span> @@ -194,45 +193,45 @@ if ('onhashchange' in window) { <span id="L127" class="LineNr">127 </span> <a href='parenthesize.mu.html#L176'>emit-all</a> buffer, <span class="Constant">0</span>/no-curr-token, out, explicit-open-parens <span id="L128" class="LineNr">128 </span> <span class="Delimiter">{</span> <span id="L129" class="LineNr">129 </span> <span class="muS1Comment"># . loop check</span> -<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='int-stack.mu.html#L43'>int-stack-empty?</a> implicit-open-parens +<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='int-stack.mu.html#L43'>int-stack-empty?</a> implicit-open-parens <span id="L131" class="LineNr">131 </span> compare done?, <span class="Constant">0</span>/false <span id="L132" class="LineNr">132 </span> <span class="PreProc">break-if-!=</span> <span id="L133" class="LineNr">133 </span> <span class="muS1Comment"># . loop body</span> <span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> paren-storage: <a href='tokenize.mu.html#L3'>token</a> -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> paren-token/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address paren-storage +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> paren-token/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address paren-storage <span id="L136" class="LineNr">136 </span> <a href='tokenize.mu.html#L1030'>initialize-token</a> paren-token, <span class="Constant">")"</span> <span id="L137" class="LineNr">137 </span> <a href='../309stream.subx.html#L54'>write-to-stream</a> out, paren-token <span id="L138" class="LineNr">138 </span> <span class="muS1Comment"># . update</span> -<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='int-stack.mu.html#L26'>pop-int-stack</a> implicit-open-parens +<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='int-stack.mu.html#L26'>pop-int-stack</a> implicit-open-parens <span id="L140" class="LineNr">140 </span> <span class="PreProc">loop</span> <span id="L141" class="LineNr">141 </span> <span class="Delimiter">}</span> <span id="L142" class="LineNr">142 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L143" class="LineNr">143 </span><span class="Delimiter">}</span> <span id="L144" class="LineNr">144 </span> -<span id="L145" class="LineNr">145 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parenthesize.mu.html#L145'>indent-level</a></span> _in: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> -<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _in -<span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get in, number-data +<span id="L145" class="LineNr">145 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parenthesize.mu.html#L145'>indent-level</a></span> _in: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> in/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _in +<span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> result/eax: (addr int) <span class="Special"><-</span> get in, number-data <span id="L148" class="LineNr">148 </span> <span class="PreProc">return</span> *result <span id="L149" class="LineNr">149 </span><span class="Delimiter">}</span> <span id="L150" class="LineNr">150 </span> -<span id="L151" class="LineNr">151 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parenthesize.mu.html#L151'>word-token?</a></span> in: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L151" class="LineNr">151 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parenthesize.mu.html#L151'>word-token?</a></span> in: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L152" class="LineNr">152 </span> <span class="Delimiter">{</span> -<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> is-indent?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> in +<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> is-indent?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> in <span id="L154" class="LineNr">154 </span> compare is-indent?, <span class="Constant">0</span>/false <span id="L155" class="LineNr">155 </span> <span class="PreProc">break-if-!=</span> -<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> is-bracket?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L878'>bracket-token?</a> in <span class="muComment"># overzealously checks for [], but shouldn't ever encounter it</span> +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> is-bracket?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L878'>bracket-token?</a> in <span class="muComment"># overzealously checks for [], but shouldn't ever encounter it</span> <span id="L157" class="LineNr">157 </span> compare is-bracket?, <span class="Constant">0</span>/false <span id="L158" class="LineNr">158 </span> <span class="PreProc">break-if-!=</span> -<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> is-quote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L895'>quote-token?</a> in +<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> is-quote?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L895'>quote-token?</a> in <span id="L160" class="LineNr">160 </span> compare is-quote?, <span class="Constant">0</span>/false <span id="L161" class="LineNr">161 </span> <span class="PreProc">break-if-!=</span> -<span id="L162" class="LineNr">162 </span> <span class="PreProc">var</span> is-backquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L904'>backquote-token?</a> in +<span id="L162" class="LineNr">162 </span> <span class="PreProc">var</span> is-backquote?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L904'>backquote-token?</a> in <span id="L163" class="LineNr">163 </span> compare is-backquote?, <span class="Constant">0</span>/false <span id="L164" class="LineNr">164 </span> <span class="PreProc">break-if-!=</span> -<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> is-unquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L913'>unquote-token?</a> in +<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> is-unquote?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L913'>unquote-token?</a> in <span id="L166" class="LineNr">166 </span> compare is-unquote?, <span class="Constant">0</span>/false <span id="L167" class="LineNr">167 </span> <span class="PreProc">break-if-!=</span> -<span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> is-unquote-splice?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L922'>unquote-splice-token?</a> in +<span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> is-unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L922'>unquote-splice-token?</a> in <span id="L169" class="LineNr">169 </span> compare is-unquote-splice?, <span class="Constant">0</span>/false <span id="L170" class="LineNr">170 </span> <span class="PreProc">break-if-!=</span> <span id="L171" class="LineNr">171 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true @@ -243,11 +242,11 @@ if ('onhashchange' in window) { <span id="L176" class="LineNr">176 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parenthesize.mu.html#L176'>emit-all</a></span> first: (addr stream <a href='tokenize.mu.html#L3'>token</a>), second: (addr <a href='tokenize.mu.html#L3'>token</a>), out: (addr stream <a href='tokenize.mu.html#L3'>token</a>), explicit-open-parens: (addr int) <span class="Delimiter">{</span> <span id="L177" class="LineNr">177 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> first <span id="L178" class="LineNr">178 </span> <span class="Delimiter">{</span> -<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> first +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> first <span id="L180" class="LineNr">180 </span> compare done?, <span class="Constant">0</span>/false <span id="L181" class="LineNr">181 </span> <span class="PreProc">break-if-!=</span> <span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> -<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage +<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> curr-token/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L184" class="LineNr">184 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> first, curr-token <span id="L185" class="LineNr">185 </span> <a href='parenthesize.mu.html#L196'>emit</a> curr-token, out, explicit-open-parens <span id="L186" class="LineNr">186 </span> <span class="PreProc">loop</span> @@ -262,7 +261,7 @@ if ('onhashchange' in window) { <span id="L195" class="LineNr">195 </span> <span id="L196" class="LineNr">196 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parenthesize.mu.html#L196'>emit</a></span> t: (addr <a href='tokenize.mu.html#L3'>token</a>), out: (addr stream <a href='tokenize.mu.html#L3'>token</a>), explicit-open-parens: (addr int) <span class="Delimiter">{</span> <span id="L197" class="LineNr">197 </span> <span class="Delimiter">{</span> -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> is-indent?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> t +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> is-indent?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> t <span id="L199" class="LineNr">199 </span> compare is-indent?, <span class="Constant">0</span>/false <span id="L200" class="LineNr">200 </span> <span class="PreProc">break-if-=</span> <span id="L201" class="LineNr">201 </span> <span class="PreProc">return</span> @@ -270,13 +269,13 @@ if ('onhashchange' in window) { <span id="L203" class="LineNr">203 </span> <a href='../309stream.subx.html#L54'>write-to-stream</a> out, t <span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> explicit-open-parens/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> copy explicit-open-parens <span id="L205" class="LineNr">205 </span> <span class="Delimiter">{</span> -<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> is-open?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> t +<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> is-open?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> t <span id="L207" class="LineNr">207 </span> compare is-open?, <span class="Constant">0</span>/false <span id="L208" class="LineNr">208 </span> <span class="PreProc">break-if-=</span> <span id="L209" class="LineNr">209 </span> increment *explicit-open-parens <span id="L210" class="LineNr">210 </span> <span class="Delimiter">}</span> <span id="L211" class="LineNr">211 </span> <span class="Delimiter">{</span> -<span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> is-close?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> t +<span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> is-close?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> t <span id="L213" class="LineNr">213 </span> compare is-close?, <span class="Constant">0</span>/false <span id="L214" class="LineNr">214 </span> <span class="PreProc">break-if-=</span> <span id="L215" class="LineNr">215 </span> decrement *explicit-open-parens @@ -290,18 +289,18 @@ if ('onhashchange' in window) { <span id="L223" class="LineNr">223 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parenthesize.mu.html#L223'>emit-salient-tokens</a></span> in: (addr stream <a href='tokenize.mu.html#L3'>token</a>), out: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Delimiter">{</span> <span id="L224" class="LineNr">224 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in <span id="L225" class="LineNr">225 </span> <span class="Delimiter">{</span> -<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in +<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in <span id="L227" class="LineNr">227 </span> compare done?, <span class="Constant">0</span>/false <span id="L228" class="LineNr">228 </span> <span class="PreProc">break-if-!=</span> <span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L3'>token</a>/<span class="muRegEdx">edx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address token-storage <span id="L231" class="LineNr">231 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> in, <a href='tokenize.mu.html#L3'>token</a> <span id="L232" class="LineNr">232 </span> <span class="muComment"># skip tokens should be skipped</span> -<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> is-skip?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1000'>skip-token?</a> <a href='tokenize.mu.html#L3'>token</a> +<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> is-skip?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1000'>skip-token?</a> <a href='tokenize.mu.html#L3'>token</a> <span id="L234" class="LineNr">234 </span> compare is-skip?, <span class="Constant">0</span>/false <span id="L235" class="LineNr">235 </span> <span class="PreProc">loop-if-!=</span> <span id="L236" class="LineNr">236 </span> <span class="muComment"># indent tokens should be skipped</span> -<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> is-indent?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> <a href='tokenize.mu.html#L3'>token</a> +<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> is-indent?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1011'>indent-token?</a> <a href='tokenize.mu.html#L3'>token</a> <span id="L238" class="LineNr">238 </span> compare is-indent?, <span class="Constant">0</span>/false <span id="L239" class="LineNr">239 </span> <span class="PreProc">loop-if-!=</span> <span id="L240" class="LineNr">240 </span> <span class="muComment">#</span> @@ -377,14 +376,14 @@ if ('onhashchange' in window) { <span id="L310" class="LineNr">310 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L311" class="LineNr">311 </span> <span class="muComment">#</span> <span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> actual-buffer-storage: <a href='gap-buffer.mu.html#L3'>gap-buffer</a> -<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> actual-buffer/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address actual-buffer-storage +<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> actual-buffer/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address actual-buffer-storage <span id="L314" class="LineNr">314 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> actual-buffer, actual <span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> actual-tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x40</span>) <span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> actual-tokens/<span class="muRegEsi">esi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address actual-tokens-storage <span id="L317" class="LineNr">317 </span> <a href='parenthesize.mu.html#L383'>tokenize-and-parenthesize</a> actual-buffer, actual-tokens, trace <span id="L318" class="LineNr">318 </span> <span class="muComment">#</span> <span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> expected-buffer-storage: <a href='gap-buffer.mu.html#L3'>gap-buffer</a> -<span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> expected-buffer/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address expected-buffer-storage +<span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> expected-buffer/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> address expected-buffer-storage <span id="L321" class="LineNr">321 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> expected-buffer, expected <span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> expected-tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x40</span>) <span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> expected-tokens/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address expected-tokens-storage @@ -399,11 +398,11 @@ if ('onhashchange' in window) { <span id="L332" class="LineNr">332 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> expected <span id="L333" class="LineNr">333 </span> <span class="Delimiter">{</span> <span id="L334" class="LineNr">334 </span> <span class="muComment"># loop termination checks</span> -<span id="L335" class="LineNr">335 </span> <span class="PreProc">var</span> actual-done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> actual +<span id="L335" class="LineNr">335 </span> <span class="PreProc">var</span> actual-done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> actual <span id="L336" class="LineNr">336 </span> <span class="Delimiter">{</span> <span id="L337" class="LineNr">337 </span> compare actual-done?, <span class="Constant">0</span>/false <span id="L338" class="LineNr">338 </span> <span class="PreProc">break-if-=</span> -<span id="L339" class="LineNr">339 </span> <span class="PreProc">var</span> expected-done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> expected +<span id="L339" class="LineNr">339 </span> <span class="PreProc">var</span> expected-done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> expected <span id="L340" class="LineNr">340 </span> compare expected-done?, <span class="Constant">0</span>/false <span id="L341" class="LineNr">341 </span> <span class="Delimiter">{</span> <span id="L342" class="LineNr">342 </span> <span class="PreProc">break-if-!=</span> @@ -416,7 +415,7 @@ if ('onhashchange' in window) { <span id="L349" class="LineNr">349 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"."</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg <span id="L350" class="LineNr">350 </span> <span class="PreProc">return</span> <span id="L351" class="LineNr">351 </span> <span class="Delimiter">}</span> -<span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> expected-done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> expected +<span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> expected-done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> expected <span id="L353" class="LineNr">353 </span> compare expected-done?, <span class="Constant">0</span>/false <span id="L354" class="LineNr">354 </span> <span class="Delimiter">{</span> <span id="L355" class="LineNr">355 </span> <span class="PreProc">break-if-=</span> @@ -435,7 +434,7 @@ if ('onhashchange' in window) { <span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> expected-token/<span class="muRegEdx">edx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address expected-token-storage <span id="L369" class="LineNr">369 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> expected, expected-token <span id="L370" class="LineNr">370 </span><span class="CommentedCode">#? dump-token-from-cursor expected-token</span> -<span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1052'>tokens-equal?</a> curr-token, expected-token +<span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1052'>tokens-equal?</a> curr-token, expected-token <span id="L372" class="LineNr">372 </span> compare match?, <span class="Constant">0</span>/false <span id="L373" class="LineNr">373 </span> <span class="Delimiter">{</span> <span id="L374" class="LineNr">374 </span> <span class="PreProc">break-if-!=</span> @@ -451,7 +450,7 @@ if ('onhashchange' in window) { <span id="L384" class="LineNr">384 </span> <span class="PreProc">var</span> tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x400</span>) <span id="L385" class="LineNr">385 </span> <span class="PreProc">var</span> tokens/<span class="muRegEdx">edx</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address tokens-storage <span id="L386" class="LineNr">386 </span> <a href='tokenize.mu.html#L13'>tokenize</a> in, tokens, trace -<span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L388" class="LineNr">388 </span> compare error?, <span class="Constant">0</span>/false <span id="L389" class="LineNr">389 </span> <span class="Delimiter">{</span> <span id="L390" class="LineNr">390 </span> <span class="PreProc">break-if-=</span> @@ -464,7 +463,7 @@ if ('onhashchange' in window) { <span id="L397" class="LineNr">397 </span> <span class="PreProc">var</span> tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x400</span>) <span id="L398" class="LineNr">398 </span> <span class="PreProc">var</span> tokens/<span class="muRegEdx">edx</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address tokens-storage <span id="L399" class="LineNr">399 </span> <a href='tokenize.mu.html#L13'>tokenize</a> in, tokens, trace -<span id="L400" class="LineNr">400 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L400" class="LineNr">400 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L401" class="LineNr">401 </span> compare error?, <span class="Constant">0</span>/false <span id="L402" class="LineNr">402 </span> <span class="Delimiter">{</span> <span id="L403" class="LineNr">403 </span> <span class="PreProc">break-if-=</span> diff --git a/html/shell/parse.mu.html b/html/shell/parse.mu.html index e57e5959..71dcd66c 100644 --- a/html/shell/parse.mu.html +++ b/html/shell/parse.mu.html @@ -14,18 +14,17 @@ 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; } -.muRegEdi { color: #87ffd7; } -.Special { color: #ff6060; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .LineNr { } -.muRegEdx { color: #878700; } -.muRegEcx { color: #af875f; } -.muRegEsi { color: #87d787; } -.muRegEax { color: #875f00; } +.muRegEsi { color: #005faf; } +.muComment { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } -.muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> @@ -63,14 +62,14 @@ if ('onhashchange' in window) { <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parse.mu.html#L1'>parse-input</a></span> tokens: (addr stream <a href='tokenize.mu.html#L3'>token</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L2" class="LineNr"> 2 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> tokens -<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> tokens +<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> tokens <span id="L4" class="LineNr"> 4 </span> compare empty?, <span class="Constant">0</span>/false <span id="L5" class="LineNr"> 5 </span> <span class="Delimiter">{</span> <span id="L6" class="LineNr"> 6 </span> <span class="PreProc">break-if-=</span> <span id="L7" class="LineNr"> 7 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"nothing to parse"</span> <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">return</span> <span id="L9" class="LineNr"> 9 </span> <span class="Delimiter">}</span> -<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> dot?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L12" class="LineNr"> 12 </span> close-paren?, dot? <span class="Special"><-</span> <a href='parse.mu.html#L36'>parse-sexpression</a> tokens, out, trace <span id="L13" class="LineNr"> 13 </span> <span class="Delimiter">{</span> @@ -86,7 +85,7 @@ if ('onhashchange' in window) { <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">return</span> <span id="L24" class="LineNr"> 24 </span> <span class="Delimiter">}</span> <span id="L25" class="LineNr"> 25 </span> <span class="Delimiter">{</span> -<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> tokens +<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> tokens <span id="L27" class="LineNr"> 27 </span> compare empty?, <span class="Constant">0</span>/false <span id="L28" class="LineNr"> 28 </span> <span class="PreProc">break-if-!=</span> <span id="L29" class="LineNr"> 29 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"unexpected tokens at end; only type in a single expression at a time"</span> @@ -96,12 +95,12 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr"> 33 </span><span class="muComment"># return values:</span> <span id="L34" class="LineNr"> 34 </span><span class="muComment"># unmatched close-paren encountered?</span> <span id="L35" class="LineNr"> 35 </span><span class="muComment"># dot encountered? (only used internally by recursive calls)</span> -<span id="L36" class="LineNr"> 36 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parse.mu.html#L36'>parse-sexpression</a></span> tokens: (addr stream <a href='tokenize.mu.html#L3'>token</a>), _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean, _/<span class="muRegEcx">ecx</span>: boolean <span class="Delimiter">{</span> +<span id="L36" class="LineNr"> 36 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parse.mu.html#L36'>parse-sexpression</a></span> tokens: (addr stream <a href='tokenize.mu.html#L3'>token</a>), _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace)<span class="PreProc"> -> </span>_/eax: boolean, _/<span class="muRegEcx">ecx</span>: boolean <span class="Delimiter">{</span> <span id="L37" class="LineNr"> 37 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"parse"</span>, <span class="Constant">"parse"</span> <span id="L38" class="LineNr"> 38 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEcx">ecx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> tokens +<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> tokens <span id="L42" class="LineNr"> 42 </span> compare empty?, <span class="Constant">0</span>/false <span id="L43" class="LineNr"> 43 </span> <span class="Delimiter">{</span> <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">break-if-=</span> @@ -112,75 +111,75 @@ if ('onhashchange' in window) { <span id="L49" class="LineNr"> 49 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> tokens, curr-token <span id="L50" class="LineNr"> 50 </span> $parse-sexpression:type-check: <span class="Delimiter">{</span> <span id="L51" class="LineNr"> 51 </span> <span class="muComment"># single quote -> parse as list with a special car</span> -<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L895'>quote-token?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L895'>quote-token?</a> curr-token +<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L895'>quote-token?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L895'>quote-token?</a> curr-token <span id="L53" class="LineNr"> 53 </span> compare <a href='tokenize.mu.html#L895'>quote-token?</a>, <span class="Constant">0</span>/false <span id="L54" class="LineNr"> 54 </span> <span class="Delimiter">{</span> <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">break-if-=</span> <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L57" class="LineNr"> 57 </span> <a href='cell.mu.html#L102'>allocate-pair</a> out -<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> left-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, left <span id="L60" class="LineNr"> 60 </span> <a href='cell.mu.html#L39'>new-symbol</a> left-ah, <span class="Constant">"'"</span> <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, right -<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> dot?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L64" class="LineNr"> 64 </span> close-paren?, dot? <span class="Special"><-</span> <a href='parse.mu.html#L36'>parse-sexpression</a> tokens, right-ah, trace <span id="L65" class="LineNr"> 65 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">return</span> close-paren?, dot? <span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">}</span> <span id="L68" class="LineNr"> 68 </span> <span class="muComment"># backquote quote -> parse as list with a special car</span> -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L904'>backquote-token?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L904'>backquote-token?</a> curr-token +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L904'>backquote-token?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L904'>backquote-token?</a> curr-token <span id="L70" class="LineNr"> 70 </span> compare <a href='tokenize.mu.html#L904'>backquote-token?</a>, <span class="Constant">0</span>/false <span id="L71" class="LineNr"> 71 </span> <span class="Delimiter">{</span> <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">break-if-=</span> <span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L74" class="LineNr"> 74 </span> <a href='cell.mu.html#L102'>allocate-pair</a> out -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> left-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, left <span id="L77" class="LineNr"> 77 </span> <a href='cell.mu.html#L39'>new-symbol</a> left-ah, <span class="Constant">"`"</span> <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, right -<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> dot?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L81" class="LineNr"> 81 </span> close-paren?, dot? <span class="Special"><-</span> <a href='parse.mu.html#L36'>parse-sexpression</a> tokens, right-ah, trace <span id="L82" class="LineNr"> 82 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">return</span> close-paren?, dot? <span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">}</span> <span id="L85" class="LineNr"> 85 </span> <span class="muComment"># unquote -> parse as list with a special car</span> -<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L913'>unquote-token?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L913'>unquote-token?</a> curr-token +<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L913'>unquote-token?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L913'>unquote-token?</a> curr-token <span id="L87" class="LineNr"> 87 </span> compare <a href='tokenize.mu.html#L913'>unquote-token?</a>, <span class="Constant">0</span>/false <span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">{</span> <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">break-if-=</span> <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L91" class="LineNr"> 91 </span> <a href='cell.mu.html#L102'>allocate-pair</a> out -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> left-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, left <span id="L94" class="LineNr"> 94 </span> <a href='cell.mu.html#L39'>new-symbol</a> left-ah, <span class="Constant">","</span> <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, right -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> dot?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L98" class="LineNr"> 98 </span> close-paren?, dot? <span class="Special"><-</span> <a href='parse.mu.html#L36'>parse-sexpression</a> tokens, right-ah, trace <span id="L99" class="LineNr"> 99 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L100" class="LineNr">100 </span> <span class="PreProc">return</span> close-paren?, dot? <span id="L101" class="LineNr">101 </span> <span class="Delimiter">}</span> <span id="L102" class="LineNr">102 </span> <span class="muComment"># unquote-splice -> parse as list with a special car</span> -<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L922'>unquote-splice-token?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L922'>unquote-splice-token?</a> curr-token +<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L922'>unquote-splice-token?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L922'>unquote-splice-token?</a> curr-token <span id="L104" class="LineNr">104 </span> compare <a href='tokenize.mu.html#L922'>unquote-splice-token?</a>, <span class="Constant">0</span>/false <span id="L105" class="LineNr">105 </span> <span class="Delimiter">{</span> <span id="L106" class="LineNr">106 </span> <span class="PreProc">break-if-=</span> <span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L108" class="LineNr">108 </span> <a href='cell.mu.html#L102'>allocate-pair</a> out -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> left-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, left <span id="L111" class="LineNr">111 </span> <a href='cell.mu.html#L39'>new-symbol</a> left-ah, <span class="Constant">",@"</span> <span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out-addr, right -<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> dot?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L115" class="LineNr">115 </span> close-paren?, dot? <span class="Special"><-</span> <a href='parse.mu.html#L36'>parse-sexpression</a> tokens, right-ah, trace <span id="L116" class="LineNr">116 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L117" class="LineNr">117 </span> <span class="PreProc">return</span> close-paren?, dot? <span id="L118" class="LineNr">118 </span> <span class="Delimiter">}</span> <span id="L119" class="LineNr">119 </span> <span class="muComment"># dot -> return</span> -<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> dot?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L963'>dot-token?</a> curr-token +<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> dot?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L963'>dot-token?</a> curr-token <span id="L121" class="LineNr">121 </span> compare dot?, <span class="Constant">0</span>/false <span id="L122" class="LineNr">122 </span> <span class="Delimiter">{</span> <span id="L123" class="LineNr">123 </span> <span class="PreProc">break-if-=</span> @@ -188,7 +187,7 @@ if ('onhashchange' in window) { <span id="L125" class="LineNr">125 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false, <span class="Constant">1</span>/true <span id="L126" class="LineNr">126 </span> <span class="Delimiter">}</span> <span id="L127" class="LineNr">127 </span> <span class="muComment"># not bracket -> parse atom</span> -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L878'>bracket-token?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L878'>bracket-token?</a> curr-token +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L878'>bracket-token?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L878'>bracket-token?</a> curr-token <span id="L129" class="LineNr">129 </span> compare <a href='tokenize.mu.html#L878'>bracket-token?</a>, <span class="Constant">0</span>/false <span id="L130" class="LineNr">130 </span> <span class="Delimiter">{</span> <span id="L131" class="LineNr">131 </span> <span class="PreProc">break-if-!=</span> @@ -196,16 +195,16 @@ if ('onhashchange' in window) { <span id="L133" class="LineNr">133 </span> <span class="PreProc">break</span> $parse-sexpression:type-check <span id="L134" class="LineNr">134 </span> <span class="Delimiter">}</span> <span id="L135" class="LineNr">135 </span> <span class="muComment"># open paren -> parse list</span> -<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> open-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token +<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> open-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token <span id="L137" class="LineNr">137 </span> compare open-paren?, <span class="Constant">0</span>/false <span id="L138" class="LineNr">138 </span> <span class="Delimiter">{</span> <span id="L139" class="LineNr">139 </span> <span class="PreProc">break-if-=</span> <span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out <span id="L141" class="LineNr">141 </span> <a href='cell.mu.html#L102'>allocate-pair</a> curr -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> curr-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> curr-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr <span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> left/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr-addr, left <span id="L144" class="LineNr">144 </span> <span class="Delimiter">{</span> -<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> dot?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L147" class="LineNr">147 </span> close-paren?, dot? <span class="Special"><-</span> <a href='parse.mu.html#L36'>parse-sexpression</a> tokens, left, trace <span id="L148" class="LineNr">148 </span> <span class="Delimiter">{</span> @@ -216,12 +215,12 @@ if ('onhashchange' in window) { <span id="L153" class="LineNr">153 </span> <span class="Delimiter">}</span> <span id="L154" class="LineNr">154 </span> compare close-paren?, <span class="Constant">0</span>/false <span id="L155" class="LineNr">155 </span> <span class="PreProc">break-if-!=</span> -<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> curr-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> curr-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr <span id="L157" class="LineNr">157 </span> curr <span class="Special"><-</span> get curr-addr, right <span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> tmp/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage <span id="L160" class="LineNr">160 </span> $parse-sexpression:list-loop: <span class="Delimiter">{</span> -<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L162" class="LineNr">162 </span> <span class="PreProc">var</span> dot?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L163" class="LineNr">163 </span> close-paren?, dot? <span class="Special"><-</span> <a href='parse.mu.html#L36'>parse-sexpression</a> tokens, tmp, trace <span id="L164" class="LineNr">164 </span> <span class="muComment"># '.' -> clean up right here and return</span> @@ -235,7 +234,7 @@ if ('onhashchange' in window) { <span id="L172" class="LineNr">172 </span> <span class="muComment"># ')' -> return</span> <span id="L173" class="LineNr">173 </span> compare close-paren?, <span class="Constant">0</span>/false <span id="L174" class="LineNr">174 </span> <span class="PreProc">break-if-!=</span> -<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> curr-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr +<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> curr-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr <span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr-addr, left <span id="L177" class="LineNr">177 </span> copy-object tmp, left <span id="L178" class="LineNr">178 </span> <span class="muComment">#</span> @@ -246,7 +245,7 @@ if ('onhashchange' in window) { <span id="L183" class="LineNr">183 </span> <span class="PreProc">break</span> $parse-sexpression:type-check <span id="L184" class="LineNr">184 </span> <span class="Delimiter">}</span> <span id="L185" class="LineNr">185 </span> <span class="muComment"># close paren -> return</span> -<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token +<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token <span id="L187" class="LineNr">187 </span> compare close-paren?, <span class="Constant">0</span>/false <span id="L188" class="LineNr">188 </span> <span class="Delimiter">{</span> <span id="L189" class="LineNr">189 </span> <span class="PreProc">break-if-=</span> @@ -257,8 +256,8 @@ if ('onhashchange' in window) { <span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x400</span>) <span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> stream/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L196" class="LineNr">196 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"unexpected <a href='tokenize.mu.html#L3'>token</a> "</span> -<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah +<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> curr-token-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah <span id="L199" class="LineNr">199 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> curr-token-data <span id="L200" class="LineNr">200 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> stream, curr-token-data <span id="L201" class="LineNr">201 </span> <span class="Special"><a href='trace.mu.html#L211'>error-stream</a></span> trace, stream @@ -270,27 +269,27 @@ if ('onhashchange' in window) { <span id="L207" class="LineNr">207 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parse.mu.html#L207'>parse-atom</a></span> _curr-token: (addr <a href='tokenize.mu.html#L3'>token</a>), _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L208" class="LineNr">208 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"parse"</span>, <span class="Constant">"parse atom"</span> <span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEcx">ecx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _curr-token -<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data -<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> _curr-token-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah +<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> curr-token-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data +<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> _curr-token-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah <span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> copy _curr-token-data <span id="L213" class="LineNr">213 </span> trace trace, <span class="Constant">"parse"</span>, curr-token-data <span id="L214" class="LineNr">214 </span> <span class="muComment"># number</span> -<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L847'>number-token?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L847'>number-token?</a> curr-token +<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L847'>number-token?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L847'>number-token?</a> curr-token <span id="L216" class="LineNr">216 </span> compare <a href='tokenize.mu.html#L847'>number-token?</a>, <span class="Constant">0</span>/false <span id="L217" class="LineNr">217 </span> <span class="Delimiter">{</span> <span id="L218" class="LineNr">218 </span> <span class="PreProc">break-if-=</span> <span id="L219" class="LineNr">219 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> curr-token-data -<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> _val/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> curr-token-data +<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> _val/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> curr-token-data <span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> val/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _val <span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> val-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert val <span id="L223" class="LineNr">223 </span> <a href='cell.mu.html#L68'>allocate-number</a> _out -<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out -<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr float) <span class="Special"><-</span> get out-addr, number-data <span id="L227" class="LineNr">227 </span> copy-to *dest, val-float <span id="L228" class="LineNr">228 </span> <span class="Delimiter">{</span> <span id="L229" class="LineNr">229 </span> <span class="Delimiter">{</span> -<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L231" class="LineNr">231 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L232" class="LineNr">232 </span> <span class="Delimiter">}</span> <span id="L233" class="LineNr">233 </span> <span class="PreProc">break-if-=</span> @@ -307,7 +306,7 @@ if ('onhashchange' in window) { <span id="L244" class="LineNr">244 </span> <span class="Delimiter">}</span> <span id="L245" class="LineNr">245 </span> <span class="muComment"># default: copy either to a symbol or a stream</span> <span id="L246" class="LineNr">246 </span> <span class="muComment"># stream token -> literal</span> -<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L989'>stream-token?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L989'>stream-token?</a> curr-token +<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L989'>stream-token?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L989'>stream-token?</a> curr-token <span id="L248" class="LineNr">248 </span> compare <a href='tokenize.mu.html#L989'>stream-token?</a>, <span class="Constant">0</span>/false <span id="L249" class="LineNr">249 </span> <span class="Delimiter">{</span> <span id="L250" class="LineNr">250 </span> <span class="PreProc">break-if-=</span> @@ -319,14 +318,14 @@ if ('onhashchange' in window) { <span id="L256" class="LineNr">256 </span> <a href='cell.mu.html#L21'>allocate-symbol</a> _out <span id="L257" class="LineNr">257 </span> <span class="Delimiter">}</span> <span id="L258" class="LineNr">258 </span> <span class="muComment"># copy token data</span> -<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out -<span id="L260" class="LineNr">260 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out +<span id="L260" class="LineNr">260 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L261" class="LineNr">261 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEcx">ecx</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data <span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEdx">edx</span>: (addr handle stream byte) <span class="Special"><-</span> get out-addr, text-data <span id="L263" class="LineNr">263 </span> copy-object curr-token-data-ah, dest-ah <span id="L264" class="LineNr">264 </span> <span class="Delimiter">{</span> <span id="L265" class="LineNr">265 </span> <span class="Delimiter">{</span> -<span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L267" class="LineNr">267 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L268" class="LineNr">268 </span> <span class="Delimiter">}</span> <span id="L269" class="LineNr">269 </span> <span class="PreProc">break-if-=</span> @@ -343,7 +342,7 @@ if ('onhashchange' in window) { <span id="L280" class="LineNr">280 </span> <span id="L281" class="LineNr">281 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parse.mu.html#L281'>parse-dot-tail</a></span> tokens: (addr stream <a href='tokenize.mu.html#L3'>token</a>), _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out -<span id="L283" class="LineNr">283 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false +<span id="L283" class="LineNr">283 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L284" class="LineNr">284 </span> <span class="PreProc">var</span> dot?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L285" class="LineNr">285 </span> close-paren?, dot? <span class="Special"><-</span> <a href='parse.mu.html#L36'>parse-sexpression</a> tokens, out, trace <span id="L286" class="LineNr">286 </span> compare close-paren?, <span class="Constant">0</span>/false diff --git a/html/shell/primitives.mu.html b/html/shell/primitives.mu.html index 279f05a8..1fd0cbd5 100644 --- a/html/shell/primitives.mu.html +++ b/html/shell/primitives.mu.html @@ -16,19 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -117,75 +116,75 @@ if ('onhashchange' in window) { <span id="L51" class="LineNr"> 51 </span> y <span class="Special"><-</span> subtract <span class="Constant">0x10</span> <span id="L52" class="LineNr"> 52 </span> <a href='../500fake-screen.mu.html#L353'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, y, xmax, ymax, <span class="Constant">0xdc</span>/bg=green-bg <span id="L53" class="LineNr"> 53 </span> y <span class="Special"><-</span> increment -<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L55" class="LineNr"> 55 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"cursor graphics"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L56" class="LineNr"> 56 </span> y <span class="Special"><-</span> increment -<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L58" class="LineNr"> 58 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" print"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L59" class="LineNr"> 59 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> a -> a"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L60" class="LineNr"> 60 </span> y <span class="Special"><-</span> increment -<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L62" class="LineNr"> 62 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" lines columns"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L63" class="LineNr"> 63 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> -> number"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L64" class="LineNr"> 64 </span> y <span class="Special"><-</span> increment -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L66" class="LineNr"> 66 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" up down left right"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L67" class="LineNr"> 67 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": screen"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L68" class="LineNr"> 68 </span> y <span class="Special"><-</span> increment -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L70" class="LineNr"> 70 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" cr"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L71" class="LineNr"> 71 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> "</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L72" class="LineNr"> 72 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"# move cursor down and to left margin"</span>, tmpx, xmax, y, <span class="Constant">0x38</span>/fg=trace, <span class="Constant">0xdc</span>/bg=green-bg <span id="L73" class="LineNr"> 73 </span> y <span class="Special"><-</span> increment -<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L75" class="LineNr"> 75 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"pixel graphics"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L76" class="LineNr"> 76 </span> y <span class="Special"><-</span> increment -<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L78" class="LineNr"> 78 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" width height"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L79" class="LineNr"> 79 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> -> number"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L80" class="LineNr"> 80 </span> y <span class="Special"><-</span> increment -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L82" class="LineNr"> 82 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" pixel"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L83" class="LineNr"> 83 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> x y color"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L84" class="LineNr"> 84 </span> y <span class="Special"><-</span> increment -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L86" class="LineNr"> 86 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"screen/keyboard"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L87" class="LineNr"> 87 </span> y <span class="Special"><-</span> increment -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L89" class="LineNr"> 89 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" clear"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L90" class="LineNr"> 90 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": screen"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L91" class="LineNr"> 91 </span> y <span class="Special"><-</span> increment -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L93" class="LineNr"> 93 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" key"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L94" class="LineNr"> 94 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": () -> grapheme?"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L95" class="LineNr"> 95 </span> y <span class="Special"><-</span> increment -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L97" class="LineNr"> 97 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"streams"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L98" class="LineNr"> 98 </span> y <span class="Special"><-</span> increment -<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L100" class="LineNr"> 100 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" stream"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L101" class="LineNr"> 101 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": () -> stream "</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L102" class="LineNr"> 102 </span> y <span class="Special"><-</span> increment -<span id="L103" class="LineNr"> 103 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L103" class="LineNr"> 103 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L104" class="LineNr"> 104 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" write"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L105" class="LineNr"> 105 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": stream grapheme -> stream"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L106" class="LineNr"> 106 </span> y <span class="Special"><-</span> increment -<span id="L107" class="LineNr"> 107 </span> <span class="PreProc">var</span> tmpx/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L107" class="LineNr"> 107 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin <span id="L108" class="LineNr"> 108 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"fn <a href='evaluate.mu.html#L655'>apply</a> set if while cons <a href='evaluate.mu.html#L1189'>car</a> <a href='evaluate.mu.html#L1217'>cdr</a> no not and or = "</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L109" class="LineNr"> 109 </span> <span class="muComment"># numbers</span> <span id="L110" class="LineNr"> 110 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"< > <= >= + - * / % sqrt <a href='../506math.mu.html#L1'>abs</a> sgn"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L111" class="LineNr"> 111 </span><span class="Delimiter">}</span> <span id="L112" class="LineNr"> 112 </span> -<span id="L113" class="LineNr"> 113 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L113'>primitive-global?</a></span> _x: (addr <a href='global.mu.html#L7'>global</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L114" class="LineNr"> 114 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> copy _x -<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> value-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, value -<span id="L116" class="LineNr"> 116 </span> <span class="PreProc">var</span> value/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah +<span id="L113" class="LineNr"> 113 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L113'>primitive-global?</a></span> _x: (addr <a href='global.mu.html#L7'>global</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L114" class="LineNr"> 114 </span> <span class="PreProc">var</span> x/eax: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> copy _x +<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, value +<span id="L116" class="LineNr"> 116 </span> <span class="PreProc">var</span> value/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah <span id="L117" class="LineNr"> 117 </span> compare value, <span class="Constant">0</span>/null <span id="L118" class="LineNr"> 118 </span> <span class="Delimiter">{</span> <span id="L119" class="LineNr"> 119 </span> <span class="PreProc">break-if-!=</span> <span id="L120" class="LineNr"> 120 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L121" class="LineNr"> 121 </span> <span class="Delimiter">}</span> -<span id="L122" class="LineNr"> 122 </span> <span class="PreProc">var</span> value-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get value, <span class="PreProc">type</span> +<span id="L122" class="LineNr"> 122 </span> <span class="PreProc">var</span> value-type/eax: (addr int) <span class="Special"><-</span> get value, <span class="PreProc">type</span> <span id="L123" class="LineNr"> 123 </span> compare *value-type, <span class="Constant">4</span>/primitive <span id="L124" class="LineNr"> 124 </span> <span class="Delimiter">{</span> <span id="L125" class="LineNr"> 125 </span> <span class="PreProc">break-if-=</span> @@ -205,13 +204,13 @@ if ('onhashchange' in window) { <span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> final-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, final-index <span id="L140" class="LineNr"> 140 </span> increment *final-index-addr <span id="L141" class="LineNr"> 141 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *final-index-addr -<span id="L142" class="LineNr"> 142 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data -<span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L142" class="LineNr"> 142 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L144" class="LineNr"> 144 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEsi">esi</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index <span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset -<span id="L146" class="LineNr"> 146 </span> <span class="PreProc">var</span> curr-name-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, name +<span id="L146" class="LineNr"> 146 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, name <span id="L147" class="LineNr"> 147 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> name, curr-name-ah -<span id="L148" class="LineNr"> 148 </span> <span class="PreProc">var</span> curr-value-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value +<span id="L148" class="LineNr"> 148 </span> <span class="PreProc">var</span> curr-value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value <span id="L149" class="LineNr"> 149 </span> <a href='cell.mu.html#L141'>new-primitive-function</a> curr-value-ah, curr-index <span id="L150" class="LineNr"> 150 </span><span class="Delimiter">}</span> <span id="L151" class="LineNr"> 151 </span> @@ -220,42 +219,42 @@ if ('onhashchange' in window) { <span id="L154" class="LineNr"> 154 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _f <span id="L155" class="LineNr"> 155 </span> <span class="PreProc">var</span> f-index-a/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get f, index-data <span id="L156" class="LineNr"> 156 </span> <span class="PreProc">var</span> f-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *f-index-a -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> globals/<span class="muRegEax">eax</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _globals +<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> globals/eax: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _globals <span id="L158" class="LineNr"> 158 </span> compare globals, <span class="Constant">0</span> <span id="L159" class="LineNr"> 159 </span> <span class="Delimiter">{</span> <span id="L160" class="LineNr"> 160 </span> <span class="PreProc">break-if-!=</span> <span id="L161" class="LineNr"> 161 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"apply primitive"</span> <span id="L162" class="LineNr"> 162 </span> <span class="PreProc">return</span> <span id="L163" class="LineNr"> 163 </span> <span class="Delimiter">}</span> -<span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> global-data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> global-data/<span class="muRegEax">eax</span>: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah +<span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah <span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> f-offset/<span class="muRegEcx">ecx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, f-index <span id="L167" class="LineNr"> 167 </span> <span class="PreProc">var</span> f-value/<span class="muRegEcx">ecx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, f-offset <span id="L168" class="LineNr"> 168 </span> <span class="PreProc">var</span> f-name-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> get f-value, name -<span id="L169" class="LineNr"> 169 </span> <span class="PreProc">var</span> f-name/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *f-name-ah +<span id="L169" class="LineNr"> 169 </span> <span class="PreProc">var</span> f-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *f-name-ah <span id="L170" class="LineNr"> 170 </span> <span class="Delimiter">{</span> -<span id="L171" class="LineNr"> 171 </span> <span class="PreProc">var</span> add?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"+"</span> +<span id="L171" class="LineNr"> 171 </span> <span class="PreProc">var</span> add?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"+"</span> <span id="L172" class="LineNr"> 172 </span> compare add?, <span class="Constant">0</span>/false <span id="L173" class="LineNr"> 173 </span> <span class="PreProc">break-if-=</span> <span id="L174" class="LineNr"> 174 </span> <a href='primitives.mu.html#L424'>apply-add</a> args-ah, out, trace <span id="L175" class="LineNr"> 175 </span> <span class="PreProc">return</span> <span id="L176" class="LineNr"> 176 </span> <span class="Delimiter">}</span> <span id="L177" class="LineNr"> 177 </span> <span class="Delimiter">{</span> -<span id="L178" class="LineNr"> 178 </span> <span class="PreProc">var</span> subtract?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"-"</span> +<span id="L178" class="LineNr"> 178 </span> <span class="PreProc">var</span> subtract?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"-"</span> <span id="L179" class="LineNr"> 179 </span> compare subtract?, <span class="Constant">0</span>/false <span id="L180" class="LineNr"> 180 </span> <span class="PreProc">break-if-=</span> <span id="L181" class="LineNr"> 181 </span> <a href='primitives.mu.html#L516'>apply-subtract</a> args-ah, out, trace <span id="L182" class="LineNr"> 182 </span> <span class="PreProc">return</span> <span id="L183" class="LineNr"> 183 </span> <span class="Delimiter">}</span> <span id="L184" class="LineNr"> 184 </span> <span class="Delimiter">{</span> -<span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> multiply?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"*"</span> +<span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> multiply?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"*"</span> <span id="L186" class="LineNr"> 186 </span> compare multiply?, <span class="Constant">0</span>/false <span id="L187" class="LineNr"> 187 </span> <span class="PreProc">break-if-=</span> <span id="L188" class="LineNr"> 188 </span> <a href='primitives.mu.html#L579'>apply-multiply</a> args-ah, out, trace <span id="L189" class="LineNr"> 189 </span> <span class="PreProc">return</span> <span id="L190" class="LineNr"> 190 </span> <span class="Delimiter">}</span> <span id="L191" class="LineNr"> 191 </span> <span class="Delimiter">{</span> -<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> divide?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"/"</span> +<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> divide?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"/"</span> <span id="L193" class="LineNr"> 193 </span> compare divide?, <span class="Constant">0</span>/false <span id="L194" class="LineNr"> 194 </span> <span class="PreProc">break-if-=</span> <span id="L195" class="LineNr"> 195 </span> <a href='primitives.mu.html#L642'>apply-divide</a> args-ah, out, trace @@ -268,217 +267,217 @@ if ('onhashchange' in window) { <span id="L202" class="LineNr"> 202 </span> <span class="muComment"># using 'rem' for filtering out elements from lists.</span> <span id="L203" class="LineNr"> 203 </span> <span class="muComment"># <a href="https://arclanguage.github.io/ref/list.html#rem">https://arclanguage.github.io/ref/list.html#rem</a></span> <span id="L204" class="LineNr"> 204 </span> <span class="Delimiter">{</span> -<span id="L205" class="LineNr"> 205 </span> <span class="PreProc">var</span> remainder?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"%"</span> +<span id="L205" class="LineNr"> 205 </span> <span class="PreProc">var</span> remainder?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"%"</span> <span id="L206" class="LineNr"> 206 </span> compare remainder?, <span class="Constant">0</span>/false <span id="L207" class="LineNr"> 207 </span> <span class="PreProc">break-if-=</span> <span id="L208" class="LineNr"> 208 </span> <a href='primitives.mu.html#L705'>apply-remainder</a> args-ah, out, trace <span id="L209" class="LineNr"> 209 </span> <span class="PreProc">return</span> <span id="L210" class="LineNr"> 210 </span> <span class="Delimiter">}</span> <span id="L211" class="LineNr"> 211 </span> <span class="Delimiter">{</span> -<span id="L212" class="LineNr"> 212 </span> <span class="PreProc">var</span> square-root?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"sqrt"</span> +<span id="L212" class="LineNr"> 212 </span> <span class="PreProc">var</span> square-root?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"sqrt"</span> <span id="L213" class="LineNr"> 213 </span> compare square-root?, <span class="Constant">0</span>/false <span id="L214" class="LineNr"> 214 </span> <span class="PreProc">break-if-=</span> <span id="L215" class="LineNr"> 215 </span> <a href='primitives.mu.html#L774'>apply-square-root</a> args-ah, out, trace <span id="L216" class="LineNr"> 216 </span> <span class="PreProc">return</span> <span id="L217" class="LineNr"> 217 </span> <span class="Delimiter">}</span> <span id="L218" class="LineNr"> 218 </span> <span class="Delimiter">{</span> -<span id="L219" class="LineNr"> 219 </span> <span class="PreProc">var</span> abs?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"abs"</span> +<span id="L219" class="LineNr"> 219 </span> <span class="PreProc">var</span> abs?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"abs"</span> <span id="L220" class="LineNr"> 220 </span> compare abs?, <span class="Constant">0</span>/false <span id="L221" class="LineNr"> 221 </span> <span class="PreProc">break-if-=</span> <span id="L222" class="LineNr"> 222 </span> <a href='primitives.mu.html#L809'>apply-abs</a> args-ah, out, trace <span id="L223" class="LineNr"> 223 </span> <span class="PreProc">return</span> <span id="L224" class="LineNr"> 224 </span> <span class="Delimiter">}</span> <span id="L225" class="LineNr"> 225 </span> <span class="Delimiter">{</span> -<span id="L226" class="LineNr"> 226 </span> <span class="PreProc">var</span> sgn?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"sgn"</span> +<span id="L226" class="LineNr"> 226 </span> <span class="PreProc">var</span> sgn?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"sgn"</span> <span id="L227" class="LineNr"> 227 </span> compare sgn?, <span class="Constant">0</span>/false <span id="L228" class="LineNr"> 228 </span> <span class="PreProc">break-if-=</span> <span id="L229" class="LineNr"> 229 </span> <a href='primitives.mu.html#L852'>apply-sgn</a> args-ah, out, trace <span id="L230" class="LineNr"> 230 </span> <span class="PreProc">return</span> <span id="L231" class="LineNr"> 231 </span> <span class="Delimiter">}</span> <span id="L232" class="LineNr"> 232 </span> <span class="Delimiter">{</span> -<span id="L233" class="LineNr"> 233 </span> <span class="PreProc">var</span> car?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"car"</span> +<span id="L233" class="LineNr"> 233 </span> <span class="PreProc">var</span> car?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"car"</span> <span id="L234" class="LineNr"> 234 </span> compare car?, <span class="Constant">0</span>/false <span id="L235" class="LineNr"> 235 </span> <span class="PreProc">break-if-=</span> <span id="L236" class="LineNr"> 236 </span> <a href='primitives.mu.html#L904'>apply-car</a> args-ah, out, trace <span id="L237" class="LineNr"> 237 </span> <span class="PreProc">return</span> <span id="L238" class="LineNr"> 238 </span> <span class="Delimiter">}</span> <span id="L239" class="LineNr"> 239 </span> <span class="Delimiter">{</span> -<span id="L240" class="LineNr"> 240 </span> <span class="PreProc">var</span> cdr?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cdr"</span> +<span id="L240" class="LineNr"> 240 </span> <span class="PreProc">var</span> cdr?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cdr"</span> <span id="L241" class="LineNr"> 241 </span> compare cdr?, <span class="Constant">0</span>/false <span id="L242" class="LineNr"> 242 </span> <span class="PreProc">break-if-=</span> <span id="L243" class="LineNr"> 243 </span> <a href='primitives.mu.html#L946'>apply-cdr</a> args-ah, out, trace <span id="L244" class="LineNr"> 244 </span> <span class="PreProc">return</span> <span id="L245" class="LineNr"> 245 </span> <span class="Delimiter">}</span> <span id="L246" class="LineNr"> 246 </span> <span class="Delimiter">{</span> -<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> cons?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cons"</span> +<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> cons?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cons"</span> <span id="L248" class="LineNr"> 248 </span> compare cons?, <span class="Constant">0</span>/false <span id="L249" class="LineNr"> 249 </span> <span class="PreProc">break-if-=</span> <span id="L250" class="LineNr"> 250 </span> <a href='primitives.mu.html#L988'>apply-cons</a> args-ah, out, trace <span id="L251" class="LineNr"> 251 </span> <span class="PreProc">return</span> <span id="L252" class="LineNr"> 252 </span> <span class="Delimiter">}</span> <span id="L253" class="LineNr"> 253 </span> <span class="Delimiter">{</span> -<span id="L254" class="LineNr"> 254 </span> <span class="PreProc">var</span> structurally-equal?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"="</span> +<span id="L254" class="LineNr"> 254 </span> <span class="PreProc">var</span> structurally-equal?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"="</span> <span id="L255" class="LineNr"> 255 </span> compare structurally-equal?, <span class="Constant">0</span>/false <span id="L256" class="LineNr"> 256 </span> <span class="PreProc">break-if-=</span> <span id="L257" class="LineNr"> 257 </span> <a href='primitives.mu.html#L1031'>apply-structurally-equal</a> args-ah, out, trace <span id="L258" class="LineNr"> 258 </span> <span class="PreProc">return</span> <span id="L259" class="LineNr"> 259 </span> <span class="Delimiter">}</span> <span id="L260" class="LineNr"> 260 </span> <span class="Delimiter">{</span> -<span id="L261" class="LineNr"> 261 </span> <span class="PreProc">var</span> not?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"no"</span> +<span id="L261" class="LineNr"> 261 </span> <span class="PreProc">var</span> not?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"no"</span> <span id="L262" class="LineNr"> 262 </span> compare not?, <span class="Constant">0</span>/false <span id="L263" class="LineNr"> 263 </span> <span class="PreProc">break-if-=</span> <span id="L264" class="LineNr"> 264 </span> <a href='primitives.mu.html#L1084'>apply-not</a> args-ah, out, trace <span id="L265" class="LineNr"> 265 </span> <span class="PreProc">return</span> <span id="L266" class="LineNr"> 266 </span> <span class="Delimiter">}</span> <span id="L267" class="LineNr"> 267 </span> <span class="Delimiter">{</span> -<span id="L268" class="LineNr"> 268 </span> <span class="PreProc">var</span> not?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"not"</span> +<span id="L268" class="LineNr"> 268 </span> <span class="PreProc">var</span> not?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"not"</span> <span id="L269" class="LineNr"> 269 </span> compare not?, <span class="Constant">0</span>/false <span id="L270" class="LineNr"> 270 </span> <span class="PreProc">break-if-=</span> <span id="L271" class="LineNr"> 271 </span> <a href='primitives.mu.html#L1084'>apply-not</a> args-ah, out, trace <span id="L272" class="LineNr"> 272 </span> <span class="PreProc">return</span> <span id="L273" class="LineNr"> 273 </span> <span class="Delimiter">}</span> <span id="L274" class="LineNr"> 274 </span> <span class="Delimiter">{</span> -<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> debug?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"dbg"</span> +<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> debug?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"dbg"</span> <span id="L276" class="LineNr"> 276 </span> compare debug?, <span class="Constant">0</span>/false <span id="L277" class="LineNr"> 277 </span> <span class="PreProc">break-if-=</span> <span id="L278" class="LineNr"> 278 </span> <a href='primitives.mu.html#L1117'>apply-debug</a> args-ah, out, trace <span id="L279" class="LineNr"> 279 </span> <span class="PreProc">return</span> <span id="L280" class="LineNr"> 280 </span> <span class="Delimiter">}</span> <span id="L281" class="LineNr"> 281 </span> <span class="Delimiter">{</span> -<span id="L282" class="LineNr"> 282 </span> <span class="PreProc">var</span> lesser?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"<"</span> +<span id="L282" class="LineNr"> 282 </span> <span class="PreProc">var</span> lesser?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"<"</span> <span id="L283" class="LineNr"> 283 </span> compare lesser?, <span class="Constant">0</span>/false <span id="L284" class="LineNr"> 284 </span> <span class="PreProc">break-if-=</span> <span id="L285" class="LineNr"> 285 </span> <a href='primitives.mu.html#L1147'>apply-<</a> args-ah, out, trace <span id="L286" class="LineNr"> 286 </span> <span class="PreProc">return</span> <span id="L287" class="LineNr"> 287 </span> <span class="Delimiter">}</span> <span id="L288" class="LineNr"> 288 </span> <span class="Delimiter">{</span> -<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> greater?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">">"</span> +<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> greater?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">">"</span> <span id="L290" class="LineNr"> 290 </span> compare greater?, <span class="Constant">0</span>/false <span id="L291" class="LineNr"> 291 </span> <span class="PreProc">break-if-=</span> <span id="L292" class="LineNr"> 292 </span> <a href='primitives.mu.html#L1216'>apply-></a> args-ah, out, trace <span id="L293" class="LineNr"> 293 </span> <span class="PreProc">return</span> <span id="L294" class="LineNr"> 294 </span> <span class="Delimiter">}</span> <span id="L295" class="LineNr"> 295 </span> <span class="Delimiter">{</span> -<span id="L296" class="LineNr"> 296 </span> <span class="PreProc">var</span> lesser-or-equal?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"<="</span> +<span id="L296" class="LineNr"> 296 </span> <span class="PreProc">var</span> lesser-or-equal?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"<="</span> <span id="L297" class="LineNr"> 297 </span> compare lesser-or-equal?, <span class="Constant">0</span>/false <span id="L298" class="LineNr"> 298 </span> <span class="PreProc">break-if-=</span> <span id="L299" class="LineNr"> 299 </span> <a href='primitives.mu.html#L1285'>apply-<=</a> args-ah, out, trace <span id="L300" class="LineNr"> 300 </span> <span class="PreProc">return</span> <span id="L301" class="LineNr"> 301 </span> <span class="Delimiter">}</span> <span id="L302" class="LineNr"> 302 </span> <span class="Delimiter">{</span> -<span id="L303" class="LineNr"> 303 </span> <span class="PreProc">var</span> greater-or-equal?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">">="</span> +<span id="L303" class="LineNr"> 303 </span> <span class="PreProc">var</span> greater-or-equal?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">">="</span> <span id="L304" class="LineNr"> 304 </span> compare greater-or-equal?, <span class="Constant">0</span>/false <span id="L305" class="LineNr"> 305 </span> <span class="PreProc">break-if-=</span> <span id="L306" class="LineNr"> 306 </span> <a href='primitives.mu.html#L1354'>apply->=</a> args-ah, out, trace <span id="L307" class="LineNr"> 307 </span> <span class="PreProc">return</span> <span id="L308" class="LineNr"> 308 </span> <span class="Delimiter">}</span> <span id="L309" class="LineNr"> 309 </span> <span class="Delimiter">{</span> -<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> print?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"print"</span> +<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"print"</span> <span id="L311" class="LineNr"> 311 </span> compare print?, <span class="Constant">0</span>/false <span id="L312" class="LineNr"> 312 </span> <span class="PreProc">break-if-=</span> <span id="L313" class="LineNr"> 313 </span> <a href='primitives.mu.html#L1423'>apply-print</a> args-ah, out, trace <span id="L314" class="LineNr"> 314 </span> <span class="PreProc">return</span> <span id="L315" class="LineNr"> 315 </span> <span class="Delimiter">}</span> <span id="L316" class="LineNr"> 316 </span> <span class="Delimiter">{</span> -<span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> clear?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"clear"</span> +<span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> clear?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"clear"</span> <span id="L318" class="LineNr"> 318 </span> compare clear?, <span class="Constant">0</span>/false <span id="L319" class="LineNr"> 319 </span> <span class="PreProc">break-if-=</span> <span id="L320" class="LineNr"> 320 </span> <a href='primitives.mu.html#L1481'>apply-clear</a> args-ah, out, trace <span id="L321" class="LineNr"> 321 </span> <span class="PreProc">return</span> <span id="L322" class="LineNr"> 322 </span> <span class="Delimiter">}</span> <span id="L323" class="LineNr"> 323 </span> <span class="Delimiter">{</span> -<span id="L324" class="LineNr"> 324 </span> <span class="PreProc">var</span> lines?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"lines"</span> +<span id="L324" class="LineNr"> 324 </span> <span class="PreProc">var</span> lines?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"lines"</span> <span id="L325" class="LineNr"> 325 </span> compare lines?, <span class="Constant">0</span>/false <span id="L326" class="LineNr"> 326 </span> <span class="PreProc">break-if-=</span> <span id="L327" class="LineNr"> 327 </span> <a href='primitives.mu.html#L1944'>apply-lines</a> args-ah, out, trace <span id="L328" class="LineNr"> 328 </span> <span class="PreProc">return</span> <span id="L329" class="LineNr"> 329 </span> <span class="Delimiter">}</span> <span id="L330" class="LineNr"> 330 </span> <span class="Delimiter">{</span> -<span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> columns?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"columns"</span> +<span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> columns?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"columns"</span> <span id="L332" class="LineNr"> 332 </span> compare columns?, <span class="Constant">0</span>/false <span id="L333" class="LineNr"> 333 </span> <span class="PreProc">break-if-=</span> <span id="L334" class="LineNr"> 334 </span> <a href='primitives.mu.html#L1988'>apply-columns</a> args-ah, out, trace <span id="L335" class="LineNr"> 335 </span> <span class="PreProc">return</span> <span id="L336" class="LineNr"> 336 </span> <span class="Delimiter">}</span> <span id="L337" class="LineNr"> 337 </span> <span class="Delimiter">{</span> -<span id="L338" class="LineNr"> 338 </span> <span class="PreProc">var</span> up?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"up"</span> +<span id="L338" class="LineNr"> 338 </span> <span class="PreProc">var</span> up?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"up"</span> <span id="L339" class="LineNr"> 339 </span> compare up?, <span class="Constant">0</span>/false <span id="L340" class="LineNr"> 340 </span> <span class="PreProc">break-if-=</span> <span id="L341" class="LineNr"> 341 </span> <a href='primitives.mu.html#L1517'>apply-up</a> args-ah, out, trace <span id="L342" class="LineNr"> 342 </span> <span class="PreProc">return</span> <span id="L343" class="LineNr"> 343 </span> <span class="Delimiter">}</span> <span id="L344" class="LineNr"> 344 </span> <span class="Delimiter">{</span> -<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">var</span> down?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"down"</span> +<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">var</span> down?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"down"</span> <span id="L346" class="LineNr"> 346 </span> compare down?, <span class="Constant">0</span>/false <span id="L347" class="LineNr"> 347 </span> <span class="PreProc">break-if-=</span> <span id="L348" class="LineNr"> 348 </span> <a href='primitives.mu.html#L1553'>apply-down</a> args-ah, out, trace <span id="L349" class="LineNr"> 349 </span> <span class="PreProc">return</span> <span id="L350" class="LineNr"> 350 </span> <span class="Delimiter">}</span> <span id="L351" class="LineNr"> 351 </span> <span class="Delimiter">{</span> -<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> left?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"left"</span> +<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> left?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"left"</span> <span id="L353" class="LineNr"> 353 </span> compare left?, <span class="Constant">0</span>/false <span id="L354" class="LineNr"> 354 </span> <span class="PreProc">break-if-=</span> <span id="L355" class="LineNr"> 355 </span> <a href='primitives.mu.html#L1589'>apply-left</a> args-ah, out, trace <span id="L356" class="LineNr"> 356 </span> <span class="PreProc">return</span> <span id="L357" class="LineNr"> 357 </span> <span class="Delimiter">}</span> <span id="L358" class="LineNr"> 358 </span> <span class="Delimiter">{</span> -<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">var</span> right?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"right"</span> +<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">var</span> right?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"right"</span> <span id="L360" class="LineNr"> 360 </span> compare right?, <span class="Constant">0</span>/false <span id="L361" class="LineNr"> 361 </span> <span class="PreProc">break-if-=</span> <span id="L362" class="LineNr"> 362 </span> <a href='primitives.mu.html#L1625'>apply-right</a> args-ah, out, trace <span id="L363" class="LineNr"> 363 </span> <span class="PreProc">return</span> <span id="L364" class="LineNr"> 364 </span> <span class="Delimiter">}</span> <span id="L365" class="LineNr"> 365 </span> <span class="Delimiter">{</span> -<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> cr?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cr"</span> +<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> cr?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cr"</span> <span id="L367" class="LineNr"> 367 </span> compare cr?, <span class="Constant">0</span>/false <span id="L368" class="LineNr"> 368 </span> <span class="PreProc">break-if-=</span> <span id="L369" class="LineNr"> 369 </span> <a href='primitives.mu.html#L1661'>apply-cr</a> args-ah, out, trace <span id="L370" class="LineNr"> 370 </span> <span class="PreProc">return</span> <span id="L371" class="LineNr"> 371 </span> <span class="Delimiter">}</span> <span id="L372" class="LineNr"> 372 </span> <span class="Delimiter">{</span> -<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> pixel?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"pixel"</span> +<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> pixel?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"pixel"</span> <span id="L374" class="LineNr"> 374 </span> compare pixel?, <span class="Constant">0</span>/false <span id="L375" class="LineNr"> 375 </span> <span class="PreProc">break-if-=</span> <span id="L376" class="LineNr"> 376 </span> <a href='primitives.mu.html#L1697'>apply-pixel</a> args-ah, out, trace <span id="L377" class="LineNr"> 377 </span> <span class="PreProc">return</span> <span id="L378" class="LineNr"> 378 </span> <span class="Delimiter">}</span> <span id="L379" class="LineNr"> 379 </span> <span class="Delimiter">{</span> -<span id="L380" class="LineNr"> 380 </span> <span class="PreProc">var</span> width?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"width"</span> +<span id="L380" class="LineNr"> 380 </span> <span class="PreProc">var</span> width?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"width"</span> <span id="L381" class="LineNr"> 381 </span> compare width?, <span class="Constant">0</span>/false <span id="L382" class="LineNr"> 382 </span> <span class="PreProc">break-if-=</span> <span id="L383" class="LineNr"> 383 </span> <a href='primitives.mu.html#L2028'>apply-width</a> args-ah, out, trace <span id="L384" class="LineNr"> 384 </span> <span class="PreProc">return</span> <span id="L385" class="LineNr"> 385 </span> <span class="Delimiter">}</span> <span id="L386" class="LineNr"> 386 </span> <span class="Delimiter">{</span> -<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> height?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"height"</span> +<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> height?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"height"</span> <span id="L388" class="LineNr"> 388 </span> compare height?, <span class="Constant">0</span>/false <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">break-if-=</span> <span id="L390" class="LineNr"> 390 </span> <a href='primitives.mu.html#L2069'>apply-height</a> args-ah, out, trace <span id="L391" class="LineNr"> 391 </span> <span class="PreProc">return</span> <span id="L392" class="LineNr"> 392 </span> <span class="Delimiter">}</span> <span id="L393" class="LineNr"> 393 </span> <span class="Delimiter">{</span> -<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> wait-for-key?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"key"</span> +<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> wait-for-key?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"key"</span> <span id="L395" class="LineNr"> 395 </span> compare wait-for-key?, <span class="Constant">0</span>/false <span id="L396" class="LineNr"> 396 </span> <span class="PreProc">break-if-=</span> <span id="L397" class="LineNr"> 397 </span> <a href='primitives.mu.html#L1820'>apply-wait-for-key</a> args-ah, out, trace <span id="L398" class="LineNr"> 398 </span> <span class="PreProc">return</span> <span id="L399" class="LineNr"> 399 </span> <span class="Delimiter">}</span> <span id="L400" class="LineNr"> 400 </span> <span class="Delimiter">{</span> -<span id="L401" class="LineNr"> 401 </span> <span class="PreProc">var</span> stream?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"stream"</span> +<span id="L401" class="LineNr"> 401 </span> <span class="PreProc">var</span> stream?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"stream"</span> <span id="L402" class="LineNr"> 402 </span> compare stream?, <span class="Constant">0</span>/false <span id="L403" class="LineNr"> 403 </span> <span class="PreProc">break-if-=</span> <span id="L404" class="LineNr"> 404 </span> <a href='primitives.mu.html#L1872'>apply-stream</a> args-ah, out, trace <span id="L405" class="LineNr"> 405 </span> <span class="PreProc">return</span> <span id="L406" class="LineNr"> 406 </span> <span class="Delimiter">}</span> <span id="L407" class="LineNr"> 407 </span> <span class="Delimiter">{</span> -<span id="L408" class="LineNr"> 408 </span> <span class="PreProc">var</span> write?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"write"</span> +<span id="L408" class="LineNr"> 408 </span> <span class="PreProc">var</span> write?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"write"</span> <span id="L409" class="LineNr"> 409 </span> compare write?, <span class="Constant">0</span>/false <span id="L410" class="LineNr"> 410 </span> <span class="PreProc">break-if-=</span> <span id="L411" class="LineNr"> 411 </span> <a href='primitives.mu.html#L1877'>apply-write</a> args-ah, out, trace <span id="L412" class="LineNr"> 412 </span> <span class="PreProc">return</span> <span id="L413" class="LineNr"> 413 </span> <span class="Delimiter">}</span> <span id="L414" class="LineNr"> 414 </span> <span class="Delimiter">{</span> -<span id="L415" class="LineNr"> 415 </span> <span class="PreProc">var</span> abort?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"abort"</span> +<span id="L415" class="LineNr"> 415 </span> <span class="PreProc">var</span> abort?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"abort"</span> <span id="L416" class="LineNr"> 416 </span> compare abort?, <span class="Constant">0</span>/false <span id="L417" class="LineNr"> 417 </span> <span class="PreProc">break-if-=</span> <span id="L418" class="LineNr"> 418 </span> <a href='primitives.mu.html#L1984'>apply-abort</a> args-ah, out, trace @@ -489,8 +488,8 @@ if ('onhashchange' in window) { <span id="L423" class="LineNr"> 423 </span> <span id="L424" class="LineNr"> 424 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L424'>apply-add</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L425" class="LineNr"> 425 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply +"</span> -<span id="L426" class="LineNr"> 426 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L427" class="LineNr"> 427 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L426" class="LineNr"> 426 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L427" class="LineNr"> 427 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L428" class="LineNr"> 428 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L429" class="LineNr"> 429 </span> <span class="Delimiter">{</span> <span id="L430" class="LineNr"> 430 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -499,7 +498,7 @@ if ('onhashchange' in window) { <span id="L433" class="LineNr"> 433 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to + are not a list"</span> <span id="L434" class="LineNr"> 434 </span> <span class="PreProc">return</span> <span id="L435" class="LineNr"> 435 </span> <span class="Delimiter">}</span> -<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L437" class="LineNr"> 437 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L438" class="LineNr"> 438 </span> <span class="Delimiter">{</span> <span id="L439" class="LineNr"> 439 </span> <span class="PreProc">break-if-=</span> @@ -507,8 +506,8 @@ if ('onhashchange' in window) { <span id="L441" class="LineNr"> 441 </span> <span class="PreProc">return</span> <span id="L442" class="LineNr"> 442 </span> <span class="Delimiter">}</span> <span id="L443" class="LineNr"> 443 </span> <span class="muComment"># args->left->value</span> -<span id="L444" class="LineNr"> 444 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L445" class="LineNr"> 445 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L444" class="LineNr"> 444 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L445" class="LineNr"> 445 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L446" class="LineNr"> 446 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L447" class="LineNr"> 447 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L448" class="LineNr"> 448 </span> <span class="Delimiter">{</span> @@ -518,8 +517,8 @@ if ('onhashchange' in window) { <span id="L452" class="LineNr"> 452 </span> <span class="Delimiter">}</span> <span id="L453" class="LineNr"> 453 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L454" class="LineNr"> 454 </span> <span class="muComment"># args->right->left->value</span> -<span id="L455" class="LineNr"> 455 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L455" class="LineNr"> 455 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L457" class="LineNr"> 457 </span> <span class="Delimiter">{</span> <span id="L458" class="LineNr"> 458 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L459" class="LineNr"> 459 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -528,14 +527,14 @@ if ('onhashchange' in window) { <span id="L462" class="LineNr"> 462 </span> <span class="PreProc">return</span> <span id="L463" class="LineNr"> 463 </span> <span class="Delimiter">}</span> <span id="L464" class="LineNr"> 464 </span> <span class="Delimiter">{</span> -<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L466" class="LineNr"> 466 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L467" class="LineNr"> 467 </span> <span class="PreProc">break-if-=</span> <span id="L468" class="LineNr"> 468 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"+ needs 2 args but got 1"</span> <span id="L469" class="LineNr"> 469 </span> <span class="PreProc">return</span> <span id="L470" class="LineNr"> 470 </span> <span class="Delimiter">}</span> -<span id="L471" class="LineNr"> 471 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L472" class="LineNr"> 472 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L471" class="LineNr"> 471 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L472" class="LineNr"> 472 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L473" class="LineNr"> 473 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L474" class="LineNr"> 474 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L475" class="LineNr"> 475 </span> <span class="Delimiter">{</span> @@ -581,8 +580,8 @@ if ('onhashchange' in window) { <span id="L515" class="LineNr"> 515 </span> <span id="L516" class="LineNr"> 516 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L516'>apply-subtract</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L517" class="LineNr"> 517 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply -"</span> -<span id="L518" class="LineNr"> 518 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L519" class="LineNr"> 519 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L518" class="LineNr"> 518 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L519" class="LineNr"> 519 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L520" class="LineNr"> 520 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L521" class="LineNr"> 521 </span> <span class="Delimiter">{</span> <span id="L522" class="LineNr"> 522 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -591,7 +590,7 @@ if ('onhashchange' in window) { <span id="L525" class="LineNr"> 525 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to - are not a list"</span> <span id="L526" class="LineNr"> 526 </span> <span class="PreProc">return</span> <span id="L527" class="LineNr"> 527 </span> <span class="Delimiter">}</span> -<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L529" class="LineNr"> 529 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L530" class="LineNr"> 530 </span> <span class="Delimiter">{</span> <span id="L531" class="LineNr"> 531 </span> <span class="PreProc">break-if-=</span> @@ -599,8 +598,8 @@ if ('onhashchange' in window) { <span id="L533" class="LineNr"> 533 </span> <span class="PreProc">return</span> <span id="L534" class="LineNr"> 534 </span> <span class="Delimiter">}</span> <span id="L535" class="LineNr"> 535 </span> <span class="muComment"># args->left->value</span> -<span id="L536" class="LineNr"> 536 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L536" class="LineNr"> 536 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L538" class="LineNr"> 538 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L539" class="LineNr"> 539 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L540" class="LineNr"> 540 </span> <span class="Delimiter">{</span> @@ -610,8 +609,8 @@ if ('onhashchange' in window) { <span id="L544" class="LineNr"> 544 </span> <span class="Delimiter">}</span> <span id="L545" class="LineNr"> 545 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L546" class="LineNr"> 546 </span> <span class="muComment"># args->right->left->value</span> -<span id="L547" class="LineNr"> 547 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L548" class="LineNr"> 548 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L547" class="LineNr"> 547 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L548" class="LineNr"> 548 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L549" class="LineNr"> 549 </span> <span class="Delimiter">{</span> <span id="L550" class="LineNr"> 550 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L551" class="LineNr"> 551 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -620,14 +619,14 @@ if ('onhashchange' in window) { <span id="L554" class="LineNr"> 554 </span> <span class="PreProc">return</span> <span id="L555" class="LineNr"> 555 </span> <span class="Delimiter">}</span> <span id="L556" class="LineNr"> 556 </span> <span class="Delimiter">{</span> -<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L558" class="LineNr"> 558 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L559" class="LineNr"> 559 </span> <span class="PreProc">break-if-=</span> <span id="L560" class="LineNr"> 560 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"- needs 2 args but got 1"</span> <span id="L561" class="LineNr"> 561 </span> <span class="PreProc">return</span> <span id="L562" class="LineNr"> 562 </span> <span class="Delimiter">}</span> -<span id="L563" class="LineNr"> 563 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L564" class="LineNr"> 564 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L563" class="LineNr"> 563 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L564" class="LineNr"> 564 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L565" class="LineNr"> 565 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L566" class="LineNr"> 566 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L567" class="LineNr"> 567 </span> <span class="Delimiter">{</span> @@ -644,8 +643,8 @@ if ('onhashchange' in window) { <span id="L578" class="LineNr"> 578 </span> <span id="L579" class="LineNr"> 579 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L579'>apply-multiply</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L580" class="LineNr"> 580 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply *"</span> -<span id="L581" class="LineNr"> 581 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L581" class="LineNr"> 581 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L583" class="LineNr"> 583 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L584" class="LineNr"> 584 </span> <span class="Delimiter">{</span> <span id="L585" class="LineNr"> 585 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -654,7 +653,7 @@ if ('onhashchange' in window) { <span id="L588" class="LineNr"> 588 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to * are not a list"</span> <span id="L589" class="LineNr"> 589 </span> <span class="PreProc">return</span> <span id="L590" class="LineNr"> 590 </span> <span class="Delimiter">}</span> -<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L592" class="LineNr"> 592 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L593" class="LineNr"> 593 </span> <span class="Delimiter">{</span> <span id="L594" class="LineNr"> 594 </span> <span class="PreProc">break-if-=</span> @@ -662,8 +661,8 @@ if ('onhashchange' in window) { <span id="L596" class="LineNr"> 596 </span> <span class="PreProc">return</span> <span id="L597" class="LineNr"> 597 </span> <span class="Delimiter">}</span> <span id="L598" class="LineNr"> 598 </span> <span class="muComment"># args->left->value</span> -<span id="L599" class="LineNr"> 599 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L600" class="LineNr"> 600 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L599" class="LineNr"> 599 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L600" class="LineNr"> 600 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L601" class="LineNr"> 601 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L602" class="LineNr"> 602 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L603" class="LineNr"> 603 </span> <span class="Delimiter">{</span> @@ -673,8 +672,8 @@ if ('onhashchange' in window) { <span id="L607" class="LineNr"> 607 </span> <span class="Delimiter">}</span> <span id="L608" class="LineNr"> 608 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L609" class="LineNr"> 609 </span> <span class="muComment"># args->right->left->value</span> -<span id="L610" class="LineNr"> 610 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L611" class="LineNr"> 611 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L610" class="LineNr"> 610 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L611" class="LineNr"> 611 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L612" class="LineNr"> 612 </span> <span class="Delimiter">{</span> <span id="L613" class="LineNr"> 613 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L614" class="LineNr"> 614 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -683,14 +682,14 @@ if ('onhashchange' in window) { <span id="L617" class="LineNr"> 617 </span> <span class="PreProc">return</span> <span id="L618" class="LineNr"> 618 </span> <span class="Delimiter">}</span> <span id="L619" class="LineNr"> 619 </span> <span class="Delimiter">{</span> -<span id="L620" class="LineNr"> 620 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L620" class="LineNr"> 620 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L621" class="LineNr"> 621 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L622" class="LineNr"> 622 </span> <span class="PreProc">break-if-=</span> <span id="L623" class="LineNr"> 623 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"* needs 2 args but got 1"</span> <span id="L624" class="LineNr"> 624 </span> <span class="PreProc">return</span> <span id="L625" class="LineNr"> 625 </span> <span class="Delimiter">}</span> -<span id="L626" class="LineNr"> 626 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L627" class="LineNr"> 627 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L626" class="LineNr"> 626 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L627" class="LineNr"> 627 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L628" class="LineNr"> 628 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L629" class="LineNr"> 629 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L630" class="LineNr"> 630 </span> <span class="Delimiter">{</span> @@ -707,8 +706,8 @@ if ('onhashchange' in window) { <span id="L641" class="LineNr"> 641 </span> <span id="L642" class="LineNr"> 642 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L642'>apply-divide</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L643" class="LineNr"> 643 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply /"</span> -<span id="L644" class="LineNr"> 644 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L645" class="LineNr"> 645 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L644" class="LineNr"> 644 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L645" class="LineNr"> 645 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L646" class="LineNr"> 646 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L647" class="LineNr"> 647 </span> <span class="Delimiter">{</span> <span id="L648" class="LineNr"> 648 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -717,7 +716,7 @@ if ('onhashchange' in window) { <span id="L651" class="LineNr"> 651 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to / are not a list"</span> <span id="L652" class="LineNr"> 652 </span> <span class="PreProc">return</span> <span id="L653" class="LineNr"> 653 </span> <span class="Delimiter">}</span> -<span id="L654" class="LineNr"> 654 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L654" class="LineNr"> 654 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L655" class="LineNr"> 655 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L656" class="LineNr"> 656 </span> <span class="Delimiter">{</span> <span id="L657" class="LineNr"> 657 </span> <span class="PreProc">break-if-=</span> @@ -725,8 +724,8 @@ if ('onhashchange' in window) { <span id="L659" class="LineNr"> 659 </span> <span class="PreProc">return</span> <span id="L660" class="LineNr"> 660 </span> <span class="Delimiter">}</span> <span id="L661" class="LineNr"> 661 </span> <span class="muComment"># args->left->value</span> -<span id="L662" class="LineNr"> 662 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L663" class="LineNr"> 663 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L662" class="LineNr"> 662 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L663" class="LineNr"> 663 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L664" class="LineNr"> 664 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L665" class="LineNr"> 665 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L666" class="LineNr"> 666 </span> <span class="Delimiter">{</span> @@ -736,8 +735,8 @@ if ('onhashchange' in window) { <span id="L670" class="LineNr"> 670 </span> <span class="Delimiter">}</span> <span id="L671" class="LineNr"> 671 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L672" class="LineNr"> 672 </span> <span class="muComment"># args->right->left->value</span> -<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L674" class="LineNr"> 674 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L674" class="LineNr"> 674 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L675" class="LineNr"> 675 </span> <span class="Delimiter">{</span> <span id="L676" class="LineNr"> 676 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L677" class="LineNr"> 677 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -746,14 +745,14 @@ if ('onhashchange' in window) { <span id="L680" class="LineNr"> 680 </span> <span class="PreProc">return</span> <span id="L681" class="LineNr"> 681 </span> <span class="Delimiter">}</span> <span id="L682" class="LineNr"> 682 </span> <span class="Delimiter">{</span> -<span id="L683" class="LineNr"> 683 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L683" class="LineNr"> 683 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L684" class="LineNr"> 684 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L685" class="LineNr"> 685 </span> <span class="PreProc">break-if-=</span> <span id="L686" class="LineNr"> 686 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"/ needs 2 args but got 1"</span> <span id="L687" class="LineNr"> 687 </span> <span class="PreProc">return</span> <span id="L688" class="LineNr"> 688 </span> <span class="Delimiter">}</span> -<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L690" class="LineNr"> 690 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L690" class="LineNr"> 690 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L691" class="LineNr"> 691 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L692" class="LineNr"> 692 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L693" class="LineNr"> 693 </span> <span class="Delimiter">{</span> @@ -770,8 +769,8 @@ if ('onhashchange' in window) { <span id="L704" class="LineNr"> 704 </span> <span id="L705" class="LineNr"> 705 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L705'>apply-remainder</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L706" class="LineNr"> 706 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply %"</span> -<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L708" class="LineNr"> 708 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L708" class="LineNr"> 708 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L709" class="LineNr"> 709 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L710" class="LineNr"> 710 </span> <span class="Delimiter">{</span> <span id="L711" class="LineNr"> 711 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -780,7 +779,7 @@ if ('onhashchange' in window) { <span id="L714" class="LineNr"> 714 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to % are not a list"</span> <span id="L715" class="LineNr"> 715 </span> <span class="PreProc">return</span> <span id="L716" class="LineNr"> 716 </span> <span class="Delimiter">}</span> -<span id="L717" class="LineNr"> 717 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L717" class="LineNr"> 717 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L718" class="LineNr"> 718 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L719" class="LineNr"> 719 </span> <span class="Delimiter">{</span> <span id="L720" class="LineNr"> 720 </span> <span class="PreProc">break-if-=</span> @@ -788,8 +787,8 @@ if ('onhashchange' in window) { <span id="L722" class="LineNr"> 722 </span> <span class="PreProc">return</span> <span id="L723" class="LineNr"> 723 </span> <span class="Delimiter">}</span> <span id="L724" class="LineNr"> 724 </span> <span class="muComment"># args->left->value</span> -<span id="L725" class="LineNr"> 725 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L726" class="LineNr"> 726 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L725" class="LineNr"> 725 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L726" class="LineNr"> 726 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L727" class="LineNr"> 727 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L728" class="LineNr"> 728 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L729" class="LineNr"> 729 </span> <span class="Delimiter">{</span> @@ -799,8 +798,8 @@ if ('onhashchange' in window) { <span id="L733" class="LineNr"> 733 </span> <span class="Delimiter">}</span> <span id="L734" class="LineNr"> 734 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L735" class="LineNr"> 735 </span> <span class="muComment"># args->right->left->value</span> -<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L737" class="LineNr"> 737 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L737" class="LineNr"> 737 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L738" class="LineNr"> 738 </span> <span class="Delimiter">{</span> <span id="L739" class="LineNr"> 739 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L740" class="LineNr"> 740 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -809,14 +808,14 @@ if ('onhashchange' in window) { <span id="L743" class="LineNr"> 743 </span> <span class="PreProc">return</span> <span id="L744" class="LineNr"> 744 </span> <span class="Delimiter">}</span> <span id="L745" class="LineNr"> 745 </span> <span class="Delimiter">{</span> -<span id="L746" class="LineNr"> 746 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L746" class="LineNr"> 746 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L747" class="LineNr"> 747 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L748" class="LineNr"> 748 </span> <span class="PreProc">break-if-=</span> <span id="L749" class="LineNr"> 749 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"% needs 2 args but got 1"</span> <span id="L750" class="LineNr"> 750 </span> <span class="PreProc">return</span> <span id="L751" class="LineNr"> 751 </span> <span class="Delimiter">}</span> -<span id="L752" class="LineNr"> 752 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L753" class="LineNr"> 753 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L752" class="LineNr"> 752 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L753" class="LineNr"> 753 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L754" class="LineNr"> 754 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L755" class="LineNr"> 755 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L756" class="LineNr"> 756 </span> <span class="Delimiter">{</span> @@ -828,7 +827,7 @@ if ('onhashchange' in window) { <span id="L762" class="LineNr"> 762 </span> <span class="muComment"># divide</span> <span id="L763" class="LineNr"> 763 </span> <span class="PreProc">var</span> quotient/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value <span id="L764" class="LineNr"> 764 </span> quotient <span class="Special"><-</span> divide *second-value -<span id="L765" class="LineNr"> 765 </span> <span class="PreProc">var</span> quotient-int/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> truncate quotient +<span id="L765" class="LineNr"> 765 </span> <span class="PreProc">var</span> quotient-int/eax: int <span class="Special"><-</span> truncate quotient <span id="L766" class="LineNr"> 766 </span> quotient <span class="Special"><-</span> convert quotient-int <span id="L767" class="LineNr"> 767 </span> <span class="PreProc">var</span> sub-result/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy quotient <span id="L768" class="LineNr"> 768 </span> sub-result <span class="Special"><-</span> multiply *second-value @@ -839,8 +838,8 @@ if ('onhashchange' in window) { <span id="L773" class="LineNr"> 773 </span> <span id="L774" class="LineNr"> 774 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L774'>apply-square-root</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L775" class="LineNr"> 775 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply sqrt"</span> -<span id="L776" class="LineNr"> 776 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L777" class="LineNr"> 777 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L776" class="LineNr"> 776 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L777" class="LineNr"> 777 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L779" class="LineNr"> 779 </span> <span class="Delimiter">{</span> <span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -849,7 +848,7 @@ if ('onhashchange' in window) { <span id="L783" class="LineNr"> 783 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to sqrt are not a list"</span> <span id="L784" class="LineNr"> 784 </span> <span class="PreProc">return</span> <span id="L785" class="LineNr"> 785 </span> <span class="Delimiter">}</span> -<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L787" class="LineNr"> 787 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L788" class="LineNr"> 788 </span> <span class="Delimiter">{</span> <span id="L789" class="LineNr"> 789 </span> <span class="PreProc">break-if-=</span> @@ -857,8 +856,8 @@ if ('onhashchange' in window) { <span id="L791" class="LineNr"> 791 </span> <span class="PreProc">return</span> <span id="L792" class="LineNr"> 792 </span> <span class="Delimiter">}</span> <span id="L793" class="LineNr"> 793 </span> <span class="muComment"># args->left->value</span> -<span id="L794" class="LineNr"> 794 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L795" class="LineNr"> 795 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L794" class="LineNr"> 794 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L795" class="LineNr"> 795 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L796" class="LineNr"> 796 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L797" class="LineNr"> 797 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L798" class="LineNr"> 798 </span> <span class="Delimiter">{</span> @@ -874,8 +873,8 @@ if ('onhashchange' in window) { <span id="L808" class="LineNr"> 808 </span> <span id="L809" class="LineNr"> 809 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L809'>apply-abs</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L810" class="LineNr"> 810 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply abs"</span> -<span id="L811" class="LineNr"> 811 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L812" class="LineNr"> 812 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L811" class="LineNr"> 811 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L812" class="LineNr"> 812 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L813" class="LineNr"> 813 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L814" class="LineNr"> 814 </span> <span class="Delimiter">{</span> <span id="L815" class="LineNr"> 815 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -884,7 +883,7 @@ if ('onhashchange' in window) { <span id="L818" class="LineNr"> 818 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='../506math.mu.html#L1'>abs</a> are not a list"</span> <span id="L819" class="LineNr"> 819 </span> <span class="PreProc">return</span> <span id="L820" class="LineNr"> 820 </span> <span class="Delimiter">}</span> -<span id="L821" class="LineNr"> 821 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L821" class="LineNr"> 821 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L822" class="LineNr"> 822 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L823" class="LineNr"> 823 </span> <span class="Delimiter">{</span> <span id="L824" class="LineNr"> 824 </span> <span class="PreProc">break-if-=</span> @@ -892,8 +891,8 @@ if ('onhashchange' in window) { <span id="L826" class="LineNr"> 826 </span> <span class="PreProc">return</span> <span id="L827" class="LineNr"> 827 </span> <span class="Delimiter">}</span> <span id="L828" class="LineNr"> 828 </span> <span class="muComment"># args->left->value</span> -<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L830" class="LineNr"> 830 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L830" class="LineNr"> 830 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L831" class="LineNr"> 831 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L832" class="LineNr"> 832 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L833" class="LineNr"> 833 </span> <span class="Delimiter">{</span> @@ -908,7 +907,7 @@ if ('onhashchange' in window) { <span id="L842" class="LineNr"> 842 </span> compare result, zero <span id="L843" class="LineNr"> 843 </span> <span class="Delimiter">{</span> <span id="L844" class="LineNr"> 844 </span> <span class="PreProc">break-if-float>=</span> -<span id="L845" class="LineNr"> 845 </span> <span class="PreProc">var</span> neg1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L845" class="LineNr"> 845 </span> <span class="PreProc">var</span> neg1/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> <span id="L846" class="LineNr"> 846 </span> <span class="PreProc">var</span> neg1-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert neg1 <span id="L847" class="LineNr"> 847 </span> result <span class="Special"><-</span> multiply neg1-f <span id="L848" class="LineNr"> 848 </span> <span class="Delimiter">}</span> @@ -917,8 +916,8 @@ if ('onhashchange' in window) { <span id="L851" class="LineNr"> 851 </span> <span id="L852" class="LineNr"> 852 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L852'>apply-sgn</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L853" class="LineNr"> 853 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply sgn"</span> -<span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L855" class="LineNr"> 855 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L855" class="LineNr"> 855 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L857" class="LineNr"> 857 </span> <span class="Delimiter">{</span> <span id="L858" class="LineNr"> 858 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -927,7 +926,7 @@ if ('onhashchange' in window) { <span id="L861" class="LineNr"> 861 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='../506math.mu.html#L10'>sgn</a> are not a list"</span> <span id="L862" class="LineNr"> 862 </span> <span class="PreProc">return</span> <span id="L863" class="LineNr"> 863 </span> <span class="Delimiter">}</span> -<span id="L864" class="LineNr"> 864 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L864" class="LineNr"> 864 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L865" class="LineNr"> 865 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L866" class="LineNr"> 866 </span> <span class="Delimiter">{</span> <span id="L867" class="LineNr"> 867 </span> <span class="PreProc">break-if-=</span> @@ -935,8 +934,8 @@ if ('onhashchange' in window) { <span id="L869" class="LineNr"> 869 </span> <span class="PreProc">return</span> <span id="L870" class="LineNr"> 870 </span> <span class="Delimiter">}</span> <span id="L871" class="LineNr"> 871 </span> <span class="muComment"># args->left->value</span> -<span id="L872" class="LineNr"> 872 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L873" class="LineNr"> 873 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L872" class="LineNr"> 872 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L873" class="LineNr"> 873 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L874" class="LineNr"> 874 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L875" class="LineNr"> 875 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L876" class="LineNr"> 876 </span> <span class="Delimiter">{</span> @@ -953,13 +952,13 @@ if ('onhashchange' in window) { <span id="L887" class="LineNr"> 887 </span> <span class="PreProc">break-if-=</span> <span id="L888" class="LineNr"> 888 </span> <span class="Delimiter">{</span> <span id="L889" class="LineNr"> 889 </span> <span class="PreProc">break-if-float></span> -<span id="L890" class="LineNr"> 890 </span> <span class="PreProc">var</span> neg1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L890" class="LineNr"> 890 </span> <span class="PreProc">var</span> neg1/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> <span id="L891" class="LineNr"> 891 </span> result <span class="Special"><-</span> convert neg1 <span id="L892" class="LineNr"> 892 </span> <span class="PreProc">break</span> $apply-sgn:core <span id="L893" class="LineNr"> 893 </span> <span class="Delimiter">}</span> <span id="L894" class="LineNr"> 894 </span> <span class="Delimiter">{</span> <span id="L895" class="LineNr"> 895 </span> <span class="PreProc">break-if-float<</span> -<span id="L896" class="LineNr"> 896 </span> <span class="PreProc">var</span> one/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L896" class="LineNr"> 896 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span id="L897" class="LineNr"> 897 </span> result <span class="Special"><-</span> convert one <span id="L898" class="LineNr"> 898 </span> <span class="PreProc">break</span> $apply-sgn:core <span id="L899" class="LineNr"> 899 </span> <span class="Delimiter">}</span> @@ -969,8 +968,8 @@ if ('onhashchange' in window) { <span id="L903" class="LineNr"> 903 </span> <span id="L904" class="LineNr"> 904 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L904'>apply-car</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L905" class="LineNr"> 905 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply car"</span> -<span id="L906" class="LineNr"> 906 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L907" class="LineNr"> 907 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L906" class="LineNr"> 906 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L907" class="LineNr"> 907 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L908" class="LineNr"> 908 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L909" class="LineNr"> 909 </span> <span class="Delimiter">{</span> <span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -979,7 +978,7 @@ if ('onhashchange' in window) { <span id="L913" class="LineNr"> 913 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='evaluate.mu.html#L1189'>car</a> are not a list"</span> <span id="L914" class="LineNr"> 914 </span> <span class="PreProc">return</span> <span id="L915" class="LineNr"> 915 </span> <span class="Delimiter">}</span> -<span id="L916" class="LineNr"> 916 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L916" class="LineNr"> 916 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L917" class="LineNr"> 917 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L918" class="LineNr"> 918 </span> <span class="Delimiter">{</span> <span id="L919" class="LineNr"> 919 </span> <span class="PreProc">break-if-=</span> @@ -988,7 +987,7 @@ if ('onhashchange' in window) { <span id="L922" class="LineNr"> 922 </span> <span class="Delimiter">}</span> <span id="L923" class="LineNr"> 923 </span> <span class="muComment"># args->left</span> <span id="L924" class="LineNr"> 924 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L925" class="LineNr"> 925 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L925" class="LineNr"> 925 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L926" class="LineNr"> 926 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L927" class="LineNr"> 927 </span> compare *first-type, <span class="Constant">0</span>/pair <span id="L928" class="LineNr"> 928 </span> <span class="Delimiter">{</span> @@ -998,21 +997,21 @@ if ('onhashchange' in window) { <span id="L932" class="LineNr"> 932 </span> <span class="Delimiter">}</span> <span id="L933" class="LineNr"> 933 </span> <span class="muComment"># nil? return nil</span> <span id="L934" class="LineNr"> 934 </span> <span class="Delimiter">{</span> -<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first +<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first <span id="L936" class="LineNr"> 936 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L937" class="LineNr"> 937 </span> <span class="PreProc">break-if-=</span> <span id="L938" class="LineNr"> 938 </span> copy-object first-ah, out <span id="L939" class="LineNr"> 939 </span> <span class="PreProc">return</span> <span id="L940" class="LineNr"> 940 </span> <span class="Delimiter">}</span> <span id="L941" class="LineNr"> 941 </span> <span class="muComment"># car</span> -<span id="L942" class="LineNr"> 942 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get first, left +<span id="L942" class="LineNr"> 942 </span> <span class="PreProc">var</span> result/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get first, left <span id="L943" class="LineNr"> 943 </span> copy-object result, out <span id="L944" class="LineNr"> 944 </span><span class="Delimiter">}</span> <span id="L945" class="LineNr"> 945 </span> <span id="L946" class="LineNr"> 946 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L946'>apply-cdr</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L947" class="LineNr"> 947 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply cdr"</span> -<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L951" class="LineNr"> 951 </span> <span class="Delimiter">{</span> <span id="L952" class="LineNr"> 952 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1021,7 +1020,7 @@ if ('onhashchange' in window) { <span id="L955" class="LineNr"> 955 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='evaluate.mu.html#L1217'>cdr</a> are not a list"</span> <span id="L956" class="LineNr"> 956 </span> <span class="PreProc">return</span> <span id="L957" class="LineNr"> 957 </span> <span class="Delimiter">}</span> -<span id="L958" class="LineNr"> 958 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L958" class="LineNr"> 958 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L959" class="LineNr"> 959 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L960" class="LineNr"> 960 </span> <span class="Delimiter">{</span> <span id="L961" class="LineNr"> 961 </span> <span class="PreProc">break-if-=</span> @@ -1030,7 +1029,7 @@ if ('onhashchange' in window) { <span id="L964" class="LineNr"> 964 </span> <span class="Delimiter">}</span> <span id="L965" class="LineNr"> 965 </span> <span class="muComment"># args->left</span> <span id="L966" class="LineNr"> 966 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L967" class="LineNr"> 967 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L967" class="LineNr"> 967 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L968" class="LineNr"> 968 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L969" class="LineNr"> 969 </span> compare *first-type, <span class="Constant">0</span>/pair <span id="L970" class="LineNr"> 970 </span> <span class="Delimiter">{</span> @@ -1040,21 +1039,21 @@ if ('onhashchange' in window) { <span id="L974" class="LineNr"> 974 </span> <span class="Delimiter">}</span> <span id="L975" class="LineNr"> 975 </span> <span class="muComment"># nil? return nil</span> <span id="L976" class="LineNr"> 976 </span> <span class="Delimiter">{</span> -<span id="L977" class="LineNr"> 977 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first +<span id="L977" class="LineNr"> 977 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first <span id="L978" class="LineNr"> 978 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L979" class="LineNr"> 979 </span> <span class="PreProc">break-if-=</span> <span id="L980" class="LineNr"> 980 </span> copy-object first-ah, out <span id="L981" class="LineNr"> 981 </span> <span class="PreProc">return</span> <span id="L982" class="LineNr"> 982 </span> <span class="Delimiter">}</span> <span id="L983" class="LineNr"> 983 </span> <span class="muComment"># cdr</span> -<span id="L984" class="LineNr"> 984 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get first, right +<span id="L984" class="LineNr"> 984 </span> <span class="PreProc">var</span> result/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get first, right <span id="L985" class="LineNr"> 985 </span> copy-object result, out <span id="L986" class="LineNr"> 986 </span><span class="Delimiter">}</span> <span id="L987" class="LineNr"> 987 </span> <span id="L988" class="LineNr"> 988 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L988'>apply-cons</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L989" class="LineNr"> 989 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply cons"</span> -<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L993" class="LineNr"> 993 </span> <span class="Delimiter">{</span> <span id="L994" class="LineNr"> 994 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1063,7 +1062,7 @@ if ('onhashchange' in window) { <span id="L997" class="LineNr"> 997 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'cons' are not a list"</span> <span id="L998" class="LineNr"> 998 </span> <span class="PreProc">return</span> <span id="L999" class="LineNr"> 999 </span> <span class="Delimiter">}</span> -<span id="L1000" class="LineNr">1000 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1000" class="LineNr">1000 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1001" class="LineNr">1001 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1002" class="LineNr">1002 </span> <span class="Delimiter">{</span> <span id="L1003" class="LineNr">1003 </span> <span class="PreProc">break-if-=</span> @@ -1073,8 +1072,8 @@ if ('onhashchange' in window) { <span id="L1007" class="LineNr">1007 </span> <span class="muComment"># args->left</span> <span id="L1008" class="LineNr">1008 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L1009" class="LineNr">1009 </span> <span class="muComment"># args->right->left</span> -<span id="L1010" class="LineNr">1010 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1011" class="LineNr">1011 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1010" class="LineNr">1010 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1011" class="LineNr">1011 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1012" class="LineNr">1012 </span> <span class="Delimiter">{</span> <span id="L1013" class="LineNr">1013 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L1014" class="LineNr">1014 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -1083,21 +1082,21 @@ if ('onhashchange' in window) { <span id="L1017" class="LineNr">1017 </span> <span class="PreProc">return</span> <span id="L1018" class="LineNr">1018 </span> <span class="Delimiter">}</span> <span id="L1019" class="LineNr">1019 </span> <span class="Delimiter">{</span> -<span id="L1020" class="LineNr">1020 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L1020" class="LineNr">1020 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L1021" class="LineNr">1021 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1022" class="LineNr">1022 </span> <span class="PreProc">break-if-=</span> <span id="L1023" class="LineNr">1023 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'cons' needs 2 args but got 1"</span> <span id="L1024" class="LineNr">1024 </span> <span class="PreProc">return</span> <span id="L1025" class="LineNr">1025 </span> <span class="Delimiter">}</span> -<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left <span id="L1027" class="LineNr">1027 </span> <span class="muComment"># cons</span> <span id="L1028" class="LineNr">1028 </span> <a href='cell.mu.html#L116'>new-pair</a> out, *first-ah, *second-ah <span id="L1029" class="LineNr">1029 </span><span class="Delimiter">}</span> <span id="L1030" class="LineNr">1030 </span> <span id="L1031" class="LineNr">1031 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1031'>apply-structurally-equal</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1032" class="LineNr">1032 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '='"</span> -<span id="L1033" class="LineNr">1033 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1033" class="LineNr">1033 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1036" class="LineNr">1036 </span> <span class="Delimiter">{</span> <span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1106,7 +1105,7 @@ if ('onhashchange' in window) { <span id="L1040" class="LineNr">1040 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '=' are not a list"</span> <span id="L1041" class="LineNr">1041 </span> <span class="PreProc">return</span> <span id="L1042" class="LineNr">1042 </span> <span class="Delimiter">}</span> -<span id="L1043" class="LineNr">1043 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1043" class="LineNr">1043 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1044" class="LineNr">1044 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1045" class="LineNr">1045 </span> <span class="Delimiter">{</span> <span id="L1046" class="LineNr">1046 </span> <span class="PreProc">break-if-=</span> @@ -1116,8 +1115,8 @@ if ('onhashchange' in window) { <span id="L1050" class="LineNr">1050 </span> <span class="muComment"># args->left</span> <span id="L1051" class="LineNr">1051 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L1052" class="LineNr">1052 </span> <span class="muComment"># args->right->left</span> -<span id="L1053" class="LineNr">1053 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1054" class="LineNr">1054 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1053" class="LineNr">1053 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1054" class="LineNr">1054 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1055" class="LineNr">1055 </span> <span class="Delimiter">{</span> <span id="L1056" class="LineNr">1056 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L1057" class="LineNr">1057 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -1126,7 +1125,7 @@ if ('onhashchange' in window) { <span id="L1060" class="LineNr">1060 </span> <span class="PreProc">return</span> <span id="L1061" class="LineNr">1061 </span> <span class="Delimiter">}</span> <span id="L1062" class="LineNr">1062 </span> <span class="Delimiter">{</span> -<span id="L1063" class="LineNr">1063 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L1063" class="LineNr">1063 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L1064" class="LineNr">1064 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1065" class="LineNr">1065 </span> <span class="PreProc">break-if-=</span> <span id="L1066" class="LineNr">1066 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'=' needs 2 args but got 1"</span> @@ -1134,10 +1133,10 @@ if ('onhashchange' in window) { <span id="L1068" class="LineNr">1068 </span> <span class="Delimiter">}</span> <span id="L1069" class="LineNr">1069 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left <span id="L1070" class="LineNr">1070 </span> <span class="muComment"># compare</span> -<span id="L1071" class="LineNr">1071 </span> <span class="PreProc">var</span> _first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1071" class="LineNr">1071 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> first, second, trace +<span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> first, second, trace <span id="L1075" class="LineNr">1075 </span> compare match?, <span class="Constant">0</span>/false <span id="L1076" class="LineNr">1076 </span> <span class="Delimiter">{</span> <span id="L1077" class="LineNr">1077 </span> <span class="PreProc">break-if-!=</span> @@ -1149,8 +1148,8 @@ if ('onhashchange' in window) { <span id="L1083" class="LineNr">1083 </span> <span id="L1084" class="LineNr">1084 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1084'>apply-not</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1085" class="LineNr">1085 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'not'"</span> -<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1088" class="LineNr">1088 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1089" class="LineNr">1089 </span> <span class="Delimiter">{</span> <span id="L1090" class="LineNr">1090 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1159,7 +1158,7 @@ if ('onhashchange' in window) { <span id="L1093" class="LineNr">1093 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'not' are not a list"</span> <span id="L1094" class="LineNr">1094 </span> <span class="PreProc">return</span> <span id="L1095" class="LineNr">1095 </span> <span class="Delimiter">}</span> -<span id="L1096" class="LineNr">1096 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1096" class="LineNr">1096 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1097" class="LineNr">1097 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1098" class="LineNr">1098 </span> <span class="Delimiter">{</span> <span id="L1099" class="LineNr">1099 </span> <span class="PreProc">break-if-=</span> @@ -1167,10 +1166,10 @@ if ('onhashchange' in window) { <span id="L1101" class="LineNr">1101 </span> <span class="PreProc">return</span> <span id="L1102" class="LineNr">1102 </span> <span class="Delimiter">}</span> <span id="L1103" class="LineNr">1103 </span> <span class="muComment"># args->left</span> -<span id="L1104" class="LineNr">1104 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1105" class="LineNr">1105 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1104" class="LineNr">1104 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1105" class="LineNr">1105 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1106" class="LineNr">1106 </span> <span class="muComment"># not</span> -<span id="L1107" class="LineNr">1107 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first +<span id="L1107" class="LineNr">1107 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first <span id="L1108" class="LineNr">1108 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1109" class="LineNr">1109 </span> <span class="Delimiter">{</span> <span id="L1110" class="LineNr">1110 </span> <span class="PreProc">break-if-!=</span> @@ -1182,8 +1181,8 @@ if ('onhashchange' in window) { <span id="L1116" class="LineNr">1116 </span> <span id="L1117" class="LineNr">1117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1117'>apply-debug</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1118" class="LineNr">1118 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'debug'"</span> -<span id="L1119" class="LineNr">1119 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1120" class="LineNr">1120 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1119" class="LineNr">1119 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1120" class="LineNr">1120 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1121" class="LineNr">1121 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1122" class="LineNr">1122 </span> <span class="Delimiter">{</span> <span id="L1123" class="LineNr">1123 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1192,7 +1191,7 @@ if ('onhashchange' in window) { <span id="L1126" class="LineNr">1126 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'debug' are not a list"</span> <span id="L1127" class="LineNr">1127 </span> <span class="PreProc">return</span> <span id="L1128" class="LineNr">1128 </span> <span class="Delimiter">}</span> -<span id="L1129" class="LineNr">1129 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1129" class="LineNr">1129 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1130" class="LineNr">1130 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1131" class="LineNr">1131 </span> <span class="Delimiter">{</span> <span id="L1132" class="LineNr">1132 </span> <span class="PreProc">break-if-=</span> @@ -1200,10 +1199,10 @@ if ('onhashchange' in window) { <span id="L1134" class="LineNr">1134 </span> <span class="PreProc">return</span> <span id="L1135" class="LineNr">1135 </span> <span class="Delimiter">}</span> <span id="L1136" class="LineNr">1136 </span> <span class="muComment"># dump args->left uglily to screen and wait for a keypress</span> -<span id="L1137" class="LineNr">1137 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1137" class="LineNr">1137 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L1138" class="LineNr">1138 </span> <a href='print.mu.html#L136'>dump-cell-from-cursor-over-full-screen</a> first-ah, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg <span id="L1139" class="LineNr">1139 </span> <span class="Delimiter">{</span> -<span id="L1140" class="LineNr">1140 </span> <span class="PreProc">var</span> foo/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/keyboard +<span id="L1140" class="LineNr">1140 </span> <span class="PreProc">var</span> foo/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/keyboard <span id="L1141" class="LineNr">1141 </span> compare foo, <span class="Constant">0</span> <span id="L1142" class="LineNr">1142 </span> <span class="PreProc">loop-if-=</span> <span id="L1143" class="LineNr">1143 </span> <span class="Delimiter">}</span> @@ -1212,8 +1211,8 @@ if ('onhashchange' in window) { <span id="L1146" class="LineNr">1146 </span> <span id="L1147" class="LineNr">1147 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1147'>apply-<</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1148" class="LineNr">1148 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '<'"</span> -<span id="L1149" class="LineNr">1149 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1150" class="LineNr">1150 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1149" class="LineNr">1149 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1150" class="LineNr">1150 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1151" class="LineNr">1151 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1152" class="LineNr">1152 </span> <span class="Delimiter">{</span> <span id="L1153" class="LineNr">1153 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1222,7 +1221,7 @@ if ('onhashchange' in window) { <span id="L1156" class="LineNr">1156 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '<' are not a list"</span> <span id="L1157" class="LineNr">1157 </span> <span class="PreProc">return</span> <span id="L1158" class="LineNr">1158 </span> <span class="Delimiter">}</span> -<span id="L1159" class="LineNr">1159 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1159" class="LineNr">1159 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1160" class="LineNr">1160 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1161" class="LineNr">1161 </span> <span class="Delimiter">{</span> <span id="L1162" class="LineNr">1162 </span> <span class="PreProc">break-if-=</span> @@ -1232,8 +1231,8 @@ if ('onhashchange' in window) { <span id="L1166" class="LineNr">1166 </span> <span class="muComment"># args->left</span> <span id="L1167" class="LineNr">1167 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L1168" class="LineNr">1168 </span> <span class="muComment"># args->right->left</span> -<span id="L1169" class="LineNr">1169 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1170" class="LineNr">1170 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1169" class="LineNr">1169 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1170" class="LineNr">1170 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1171" class="LineNr">1171 </span> <span class="Delimiter">{</span> <span id="L1172" class="LineNr">1172 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L1173" class="LineNr">1173 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -1242,7 +1241,7 @@ if ('onhashchange' in window) { <span id="L1176" class="LineNr">1176 </span> <span class="PreProc">return</span> <span id="L1177" class="LineNr">1177 </span> <span class="Delimiter">}</span> <span id="L1178" class="LineNr">1178 </span> <span class="Delimiter">{</span> -<span id="L1179" class="LineNr">1179 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L1179" class="LineNr">1179 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L1180" class="LineNr">1180 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1181" class="LineNr">1181 </span> <span class="PreProc">break-if-=</span> <span id="L1182" class="LineNr">1182 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<' needs 2 args but got 1"</span> @@ -1250,9 +1249,9 @@ if ('onhashchange' in window) { <span id="L1184" class="LineNr">1184 </span> <span class="Delimiter">}</span> <span id="L1185" class="LineNr">1185 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left <span id="L1186" class="LineNr">1186 </span> <span class="muComment"># compare</span> -<span id="L1187" class="LineNr">1187 </span> <span class="PreProc">var</span> _first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1187" class="LineNr">1187 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1188" class="LineNr">1188 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1189" class="LineNr">1189 </span> <span class="PreProc">var</span> first-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1189" class="LineNr">1189 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1190" class="LineNr">1190 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L1191" class="LineNr">1191 </span> <span class="Delimiter">{</span> <span id="L1192" class="LineNr">1192 </span> <span class="PreProc">break-if-=</span> @@ -1261,7 +1260,7 @@ if ('onhashchange' in window) { <span id="L1195" class="LineNr">1195 </span> <span class="Delimiter">}</span> <span id="L1196" class="LineNr">1196 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L1197" class="LineNr">1197 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L1198" class="LineNr">1198 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1198" class="LineNr">1198 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L1199" class="LineNr">1199 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L1200" class="LineNr">1200 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L1201" class="LineNr">1201 </span> <span class="Delimiter">{</span> @@ -1269,7 +1268,7 @@ if ('onhashchange' in window) { <span id="L1203" class="LineNr">1203 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '<' is not a number"</span> <span id="L1204" class="LineNr">1204 </span> <span class="PreProc">return</span> <span id="L1205" class="LineNr">1205 </span> <span class="Delimiter">}</span> -<span id="L1206" class="LineNr">1206 </span> <span class="PreProc">var</span> second-value/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1206" class="LineNr">1206 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data <span id="L1207" class="LineNr">1207 </span> compare first-float, *second-value <span id="L1208" class="LineNr">1208 </span> <span class="Delimiter">{</span> <span id="L1209" class="LineNr">1209 </span> <span class="PreProc">break-if-float<</span> @@ -1281,8 +1280,8 @@ if ('onhashchange' in window) { <span id="L1215" class="LineNr">1215 </span> <span id="L1216" class="LineNr">1216 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1216'>apply-></a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1217" class="LineNr">1217 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '>'"</span> -<span id="L1218" class="LineNr">1218 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1219" class="LineNr">1219 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1218" class="LineNr">1218 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1219" class="LineNr">1219 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1220" class="LineNr">1220 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1221" class="LineNr">1221 </span> <span class="Delimiter">{</span> <span id="L1222" class="LineNr">1222 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1291,7 +1290,7 @@ if ('onhashchange' in window) { <span id="L1225" class="LineNr">1225 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '>' are not a list"</span> <span id="L1226" class="LineNr">1226 </span> <span class="PreProc">return</span> <span id="L1227" class="LineNr">1227 </span> <span class="Delimiter">}</span> -<span id="L1228" class="LineNr">1228 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1228" class="LineNr">1228 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1229" class="LineNr">1229 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1230" class="LineNr">1230 </span> <span class="Delimiter">{</span> <span id="L1231" class="LineNr">1231 </span> <span class="PreProc">break-if-=</span> @@ -1301,8 +1300,8 @@ if ('onhashchange' in window) { <span id="L1235" class="LineNr">1235 </span> <span class="muComment"># args->left</span> <span id="L1236" class="LineNr">1236 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L1237" class="LineNr">1237 </span> <span class="muComment"># args->right->left</span> -<span id="L1238" class="LineNr">1238 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1239" class="LineNr">1239 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1238" class="LineNr">1238 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1239" class="LineNr">1239 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1240" class="LineNr">1240 </span> <span class="Delimiter">{</span> <span id="L1241" class="LineNr">1241 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L1242" class="LineNr">1242 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -1311,7 +1310,7 @@ if ('onhashchange' in window) { <span id="L1245" class="LineNr">1245 </span> <span class="PreProc">return</span> <span id="L1246" class="LineNr">1246 </span> <span class="Delimiter">}</span> <span id="L1247" class="LineNr">1247 </span> <span class="Delimiter">{</span> -<span id="L1248" class="LineNr">1248 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L1248" class="LineNr">1248 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L1249" class="LineNr">1249 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1250" class="LineNr">1250 </span> <span class="PreProc">break-if-=</span> <span id="L1251" class="LineNr">1251 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>' needs 2 args but got 1"</span> @@ -1319,9 +1318,9 @@ if ('onhashchange' in window) { <span id="L1253" class="LineNr">1253 </span> <span class="Delimiter">}</span> <span id="L1254" class="LineNr">1254 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left <span id="L1255" class="LineNr">1255 </span> <span class="muComment"># compare</span> -<span id="L1256" class="LineNr">1256 </span> <span class="PreProc">var</span> _first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1256" class="LineNr">1256 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1257" class="LineNr">1257 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1258" class="LineNr">1258 </span> <span class="PreProc">var</span> first-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1258" class="LineNr">1258 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1259" class="LineNr">1259 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L1260" class="LineNr">1260 </span> <span class="Delimiter">{</span> <span id="L1261" class="LineNr">1261 </span> <span class="PreProc">break-if-=</span> @@ -1330,7 +1329,7 @@ if ('onhashchange' in window) { <span id="L1264" class="LineNr">1264 </span> <span class="Delimiter">}</span> <span id="L1265" class="LineNr">1265 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L1266" class="LineNr">1266 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L1267" class="LineNr">1267 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1267" class="LineNr">1267 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L1268" class="LineNr">1268 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L1269" class="LineNr">1269 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L1270" class="LineNr">1270 </span> <span class="Delimiter">{</span> @@ -1338,7 +1337,7 @@ if ('onhashchange' in window) { <span id="L1272" class="LineNr">1272 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '>' is not a number"</span> <span id="L1273" class="LineNr">1273 </span> <span class="PreProc">return</span> <span id="L1274" class="LineNr">1274 </span> <span class="Delimiter">}</span> -<span id="L1275" class="LineNr">1275 </span> <span class="PreProc">var</span> second-value/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1275" class="LineNr">1275 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data <span id="L1276" class="LineNr">1276 </span> compare first-float, *second-value <span id="L1277" class="LineNr">1277 </span> <span class="Delimiter">{</span> <span id="L1278" class="LineNr">1278 </span> <span class="PreProc">break-if-float></span> @@ -1350,8 +1349,8 @@ if ('onhashchange' in window) { <span id="L1284" class="LineNr">1284 </span> <span id="L1285" class="LineNr">1285 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1285'>apply-<=</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1286" class="LineNr">1286 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '<='"</span> -<span id="L1287" class="LineNr">1287 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1287" class="LineNr">1287 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1289" class="LineNr">1289 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1290" class="LineNr">1290 </span> <span class="Delimiter">{</span> <span id="L1291" class="LineNr">1291 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1360,7 +1359,7 @@ if ('onhashchange' in window) { <span id="L1294" class="LineNr">1294 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '<=' are not a list"</span> <span id="L1295" class="LineNr">1295 </span> <span class="PreProc">return</span> <span id="L1296" class="LineNr">1296 </span> <span class="Delimiter">}</span> -<span id="L1297" class="LineNr">1297 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1297" class="LineNr">1297 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1298" class="LineNr">1298 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1299" class="LineNr">1299 </span> <span class="Delimiter">{</span> <span id="L1300" class="LineNr">1300 </span> <span class="PreProc">break-if-=</span> @@ -1370,8 +1369,8 @@ if ('onhashchange' in window) { <span id="L1304" class="LineNr">1304 </span> <span class="muComment"># args->left</span> <span id="L1305" class="LineNr">1305 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L1306" class="LineNr">1306 </span> <span class="muComment"># args->right->left</span> -<span id="L1307" class="LineNr">1307 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1308" class="LineNr">1308 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1307" class="LineNr">1307 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1308" class="LineNr">1308 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1309" class="LineNr">1309 </span> <span class="Delimiter">{</span> <span id="L1310" class="LineNr">1310 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L1311" class="LineNr">1311 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -1380,7 +1379,7 @@ if ('onhashchange' in window) { <span id="L1314" class="LineNr">1314 </span> <span class="PreProc">return</span> <span id="L1315" class="LineNr">1315 </span> <span class="Delimiter">}</span> <span id="L1316" class="LineNr">1316 </span> <span class="Delimiter">{</span> -<span id="L1317" class="LineNr">1317 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L1317" class="LineNr">1317 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L1318" class="LineNr">1318 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1319" class="LineNr">1319 </span> <span class="PreProc">break-if-=</span> <span id="L1320" class="LineNr">1320 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<=' needs 2 args but got 1"</span> @@ -1388,9 +1387,9 @@ if ('onhashchange' in window) { <span id="L1322" class="LineNr">1322 </span> <span class="Delimiter">}</span> <span id="L1323" class="LineNr">1323 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left <span id="L1324" class="LineNr">1324 </span> <span class="muComment"># compare</span> -<span id="L1325" class="LineNr">1325 </span> <span class="PreProc">var</span> _first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1325" class="LineNr">1325 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1326" class="LineNr">1326 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1327" class="LineNr">1327 </span> <span class="PreProc">var</span> first-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1327" class="LineNr">1327 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1328" class="LineNr">1328 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L1329" class="LineNr">1329 </span> <span class="Delimiter">{</span> <span id="L1330" class="LineNr">1330 </span> <span class="PreProc">break-if-=</span> @@ -1399,7 +1398,7 @@ if ('onhashchange' in window) { <span id="L1333" class="LineNr">1333 </span> <span class="Delimiter">}</span> <span id="L1334" class="LineNr">1334 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L1335" class="LineNr">1335 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L1336" class="LineNr">1336 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1336" class="LineNr">1336 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L1337" class="LineNr">1337 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L1338" class="LineNr">1338 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L1339" class="LineNr">1339 </span> <span class="Delimiter">{</span> @@ -1407,7 +1406,7 @@ if ('onhashchange' in window) { <span id="L1341" class="LineNr">1341 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '<=' is not a number"</span> <span id="L1342" class="LineNr">1342 </span> <span class="PreProc">return</span> <span id="L1343" class="LineNr">1343 </span> <span class="Delimiter">}</span> -<span id="L1344" class="LineNr">1344 </span> <span class="PreProc">var</span> second-value/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1344" class="LineNr">1344 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data <span id="L1345" class="LineNr">1345 </span> compare first-float, *second-value <span id="L1346" class="LineNr">1346 </span> <span class="Delimiter">{</span> <span id="L1347" class="LineNr">1347 </span> <span class="PreProc">break-if-float<=</span> @@ -1419,8 +1418,8 @@ if ('onhashchange' in window) { <span id="L1353" class="LineNr">1353 </span> <span id="L1354" class="LineNr">1354 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1354'>apply->=</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1355" class="LineNr">1355 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '>='"</span> -<span id="L1356" class="LineNr">1356 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1357" class="LineNr">1357 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1356" class="LineNr">1356 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1357" class="LineNr">1357 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1358" class="LineNr">1358 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1359" class="LineNr">1359 </span> <span class="Delimiter">{</span> <span id="L1360" class="LineNr">1360 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1429,7 +1428,7 @@ if ('onhashchange' in window) { <span id="L1363" class="LineNr">1363 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '>=' are not a list"</span> <span id="L1364" class="LineNr">1364 </span> <span class="PreProc">return</span> <span id="L1365" class="LineNr">1365 </span> <span class="Delimiter">}</span> -<span id="L1366" class="LineNr">1366 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1366" class="LineNr">1366 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1367" class="LineNr">1367 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1368" class="LineNr">1368 </span> <span class="Delimiter">{</span> <span id="L1369" class="LineNr">1369 </span> <span class="PreProc">break-if-=</span> @@ -1439,8 +1438,8 @@ if ('onhashchange' in window) { <span id="L1373" class="LineNr">1373 </span> <span class="muComment"># args->left</span> <span id="L1374" class="LineNr">1374 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L1375" class="LineNr">1375 </span> <span class="muComment"># args->right->left</span> -<span id="L1376" class="LineNr">1376 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1377" class="LineNr">1377 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1376" class="LineNr">1376 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1377" class="LineNr">1377 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1378" class="LineNr">1378 </span> <span class="Delimiter">{</span> <span id="L1379" class="LineNr">1379 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L1380" class="LineNr">1380 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -1449,7 +1448,7 @@ if ('onhashchange' in window) { <span id="L1383" class="LineNr">1383 </span> <span class="PreProc">return</span> <span id="L1384" class="LineNr">1384 </span> <span class="Delimiter">}</span> <span id="L1385" class="LineNr">1385 </span> <span class="Delimiter">{</span> -<span id="L1386" class="LineNr">1386 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L1386" class="LineNr">1386 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L1387" class="LineNr">1387 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1388" class="LineNr">1388 </span> <span class="PreProc">break-if-=</span> <span id="L1389" class="LineNr">1389 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>=' needs 2 args but got 1"</span> @@ -1457,9 +1456,9 @@ if ('onhashchange' in window) { <span id="L1391" class="LineNr">1391 </span> <span class="Delimiter">}</span> <span id="L1392" class="LineNr">1392 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left <span id="L1393" class="LineNr">1393 </span> <span class="muComment"># compare</span> -<span id="L1394" class="LineNr">1394 </span> <span class="PreProc">var</span> _first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1394" class="LineNr">1394 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1395" class="LineNr">1395 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1396" class="LineNr">1396 </span> <span class="PreProc">var</span> first-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1396" class="LineNr">1396 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1397" class="LineNr">1397 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L1398" class="LineNr">1398 </span> <span class="Delimiter">{</span> <span id="L1399" class="LineNr">1399 </span> <span class="PreProc">break-if-=</span> @@ -1468,7 +1467,7 @@ if ('onhashchange' in window) { <span id="L1402" class="LineNr">1402 </span> <span class="Delimiter">}</span> <span id="L1403" class="LineNr">1403 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data <span id="L1404" class="LineNr">1404 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L1405" class="LineNr">1405 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1405" class="LineNr">1405 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L1406" class="LineNr">1406 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L1407" class="LineNr">1407 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L1408" class="LineNr">1408 </span> <span class="Delimiter">{</span> @@ -1476,7 +1475,7 @@ if ('onhashchange' in window) { <span id="L1410" class="LineNr">1410 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '>=' is not a number"</span> <span id="L1411" class="LineNr">1411 </span> <span class="PreProc">return</span> <span id="L1412" class="LineNr">1412 </span> <span class="Delimiter">}</span> -<span id="L1413" class="LineNr">1413 </span> <span class="PreProc">var</span> second-value/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1413" class="LineNr">1413 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data <span id="L1414" class="LineNr">1414 </span> compare first-float, *second-value <span id="L1415" class="LineNr">1415 </span> <span class="Delimiter">{</span> <span id="L1416" class="LineNr">1416 </span> <span class="PreProc">break-if-float>=</span> @@ -1488,8 +1487,8 @@ if ('onhashchange' in window) { <span id="L1422" class="LineNr">1422 </span> <span id="L1423" class="LineNr">1423 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1423'>apply-print</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1424" class="LineNr">1424 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'print'"</span> -<span id="L1425" class="LineNr">1425 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1426" class="LineNr">1426 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1425" class="LineNr">1425 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1426" class="LineNr">1426 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1427" class="LineNr">1427 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1428" class="LineNr">1428 </span> <span class="Delimiter">{</span> <span id="L1429" class="LineNr">1429 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1498,7 +1497,7 @@ if ('onhashchange' in window) { <span id="L1432" class="LineNr">1432 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'print' are not a list"</span> <span id="L1433" class="LineNr">1433 </span> <span class="PreProc">return</span> <span id="L1434" class="LineNr">1434 </span> <span class="Delimiter">}</span> -<span id="L1435" class="LineNr">1435 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1435" class="LineNr">1435 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1436" class="LineNr">1436 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1437" class="LineNr">1437 </span> <span class="Delimiter">{</span> <span id="L1438" class="LineNr">1438 </span> <span class="PreProc">break-if-=</span> @@ -1506,8 +1505,8 @@ if ('onhashchange' in window) { <span id="L1440" class="LineNr">1440 </span> <span class="PreProc">return</span> <span id="L1441" class="LineNr">1441 </span> <span class="Delimiter">}</span> <span id="L1442" class="LineNr">1442 </span> <span class="muComment"># screen = args->left</span> -<span id="L1443" class="LineNr">1443 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1444" class="LineNr">1444 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1443" class="LineNr">1443 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1444" class="LineNr">1444 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1445" class="LineNr">1445 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1446" class="LineNr">1446 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1447" class="LineNr">1447 </span> <span class="Delimiter">{</span> @@ -1515,12 +1514,12 @@ if ('onhashchange' in window) { <span id="L1449" class="LineNr">1449 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'print' is not a screen"</span> <span id="L1450" class="LineNr">1450 </span> <span class="PreProc">return</span> <span id="L1451" class="LineNr">1451 </span> <span class="Delimiter">}</span> -<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1454" class="LineNr">1454 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1455" class="LineNr">1455 </span> <span class="muComment"># args->right->left</span> -<span id="L1456" class="LineNr">1456 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1457" class="LineNr">1457 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1456" class="LineNr">1456 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1457" class="LineNr">1457 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1458" class="LineNr">1458 </span> <span class="Delimiter">{</span> <span id="L1459" class="LineNr">1459 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L1460" class="LineNr">1460 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -1529,13 +1528,13 @@ if ('onhashchange' in window) { <span id="L1463" class="LineNr">1463 </span> <span class="PreProc">return</span> <span id="L1464" class="LineNr">1464 </span> <span class="Delimiter">}</span> <span id="L1465" class="LineNr">1465 </span> <span class="Delimiter">{</span> -<span id="L1466" class="LineNr">1466 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L1466" class="LineNr">1466 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L1467" class="LineNr">1467 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1468" class="LineNr">1468 </span> <span class="PreProc">break-if-=</span> <span id="L1469" class="LineNr">1469 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'print' needs 2 args but got 1"</span> <span id="L1470" class="LineNr">1470 </span> <span class="PreProc">return</span> <span id="L1471" class="LineNr">1471 </span> <span class="Delimiter">}</span> -<span id="L1472" class="LineNr">1472 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1472" class="LineNr">1472 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left <span id="L1473" class="LineNr">1473 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>) <span id="L1474" class="LineNr">1474 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L1475" class="LineNr">1475 </span> <a href='print.mu.html#L7'>print-cell</a> second-ah, stream, trace @@ -1546,8 +1545,8 @@ if ('onhashchange' in window) { <span id="L1480" class="LineNr">1480 </span> <span id="L1481" class="LineNr">1481 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1481'>apply-clear</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1482" class="LineNr">1482 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'clear'"</span> -<span id="L1483" class="LineNr">1483 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1484" class="LineNr">1484 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1483" class="LineNr">1483 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1484" class="LineNr">1484 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1485" class="LineNr">1485 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1486" class="LineNr">1486 </span> <span class="Delimiter">{</span> <span id="L1487" class="LineNr">1487 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1556,7 +1555,7 @@ if ('onhashchange' in window) { <span id="L1490" class="LineNr">1490 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'clear' are not a list"</span> <span id="L1491" class="LineNr">1491 </span> <span class="PreProc">return</span> <span id="L1492" class="LineNr">1492 </span> <span class="Delimiter">}</span> -<span id="L1493" class="LineNr">1493 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1493" class="LineNr">1493 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1494" class="LineNr">1494 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1495" class="LineNr">1495 </span> <span class="Delimiter">{</span> <span id="L1496" class="LineNr">1496 </span> <span class="PreProc">break-if-=</span> @@ -1564,8 +1563,8 @@ if ('onhashchange' in window) { <span id="L1498" class="LineNr">1498 </span> <span class="PreProc">return</span> <span id="L1499" class="LineNr">1499 </span> <span class="Delimiter">}</span> <span id="L1500" class="LineNr">1500 </span> <span class="muComment"># screen = args->left</span> -<span id="L1501" class="LineNr">1501 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1502" class="LineNr">1502 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1501" class="LineNr">1501 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1502" class="LineNr">1502 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1503" class="LineNr">1503 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1504" class="LineNr">1504 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1505" class="LineNr">1505 </span> <span class="Delimiter">{</span> @@ -1573,8 +1572,8 @@ if ('onhashchange' in window) { <span id="L1507" class="LineNr">1507 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'clear' is not a screen"</span> <span id="L1508" class="LineNr">1508 </span> <span class="PreProc">return</span> <span id="L1509" class="LineNr">1509 </span> <span class="Delimiter">}</span> -<span id="L1510" class="LineNr">1510 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1511" class="LineNr">1511 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1510" class="LineNr">1510 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1511" class="LineNr">1511 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1512" class="LineNr">1512 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1513" class="LineNr">1513 </span> <span class="muComment">#</span> <span id="L1514" class="LineNr">1514 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> @@ -1582,8 +1581,8 @@ if ('onhashchange' in window) { <span id="L1516" class="LineNr">1516 </span> <span id="L1517" class="LineNr">1517 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1517'>apply-up</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1518" class="LineNr">1518 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'up'"</span> -<span id="L1519" class="LineNr">1519 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1520" class="LineNr">1520 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1519" class="LineNr">1519 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1520" class="LineNr">1520 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1521" class="LineNr">1521 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1522" class="LineNr">1522 </span> <span class="Delimiter">{</span> <span id="L1523" class="LineNr">1523 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1592,7 +1591,7 @@ if ('onhashchange' in window) { <span id="L1526" class="LineNr">1526 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'up' are not a list"</span> <span id="L1527" class="LineNr">1527 </span> <span class="PreProc">return</span> <span id="L1528" class="LineNr">1528 </span> <span class="Delimiter">}</span> -<span id="L1529" class="LineNr">1529 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1529" class="LineNr">1529 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1530" class="LineNr">1530 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1531" class="LineNr">1531 </span> <span class="Delimiter">{</span> <span id="L1532" class="LineNr">1532 </span> <span class="PreProc">break-if-=</span> @@ -1600,8 +1599,8 @@ if ('onhashchange' in window) { <span id="L1534" class="LineNr">1534 </span> <span class="PreProc">return</span> <span id="L1535" class="LineNr">1535 </span> <span class="Delimiter">}</span> <span id="L1536" class="LineNr">1536 </span> <span class="muComment"># screen = args->left</span> -<span id="L1537" class="LineNr">1537 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1538" class="LineNr">1538 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1537" class="LineNr">1537 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1538" class="LineNr">1538 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1539" class="LineNr">1539 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1540" class="LineNr">1540 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1541" class="LineNr">1541 </span> <span class="Delimiter">{</span> @@ -1609,8 +1608,8 @@ if ('onhashchange' in window) { <span id="L1543" class="LineNr">1543 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'up' is not a screen"</span> <span id="L1544" class="LineNr">1544 </span> <span class="PreProc">return</span> <span id="L1545" class="LineNr">1545 </span> <span class="Delimiter">}</span> -<span id="L1546" class="LineNr">1546 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1547" class="LineNr">1547 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1546" class="LineNr">1546 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1547" class="LineNr">1547 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1548" class="LineNr">1548 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1549" class="LineNr">1549 </span> <span class="muComment">#</span> <span id="L1550" class="LineNr">1550 </span> <a href='../501draw-text.mu.html#L34'>move-cursor-up</a> <a href='../500fake-screen.mu.html#L14'>screen</a> @@ -1618,8 +1617,8 @@ if ('onhashchange' in window) { <span id="L1552" class="LineNr">1552 </span> <span id="L1553" class="LineNr">1553 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1553'>apply-down</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1554" class="LineNr">1554 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'down'"</span> -<span id="L1555" class="LineNr">1555 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1556" class="LineNr">1556 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1555" class="LineNr">1555 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1556" class="LineNr">1556 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1557" class="LineNr">1557 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1558" class="LineNr">1558 </span> <span class="Delimiter">{</span> <span id="L1559" class="LineNr">1559 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1628,7 +1627,7 @@ if ('onhashchange' in window) { <span id="L1562" class="LineNr">1562 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'down' are not a list"</span> <span id="L1563" class="LineNr">1563 </span> <span class="PreProc">return</span> <span id="L1564" class="LineNr">1564 </span> <span class="Delimiter">}</span> -<span id="L1565" class="LineNr">1565 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1565" class="LineNr">1565 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1566" class="LineNr">1566 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1567" class="LineNr">1567 </span> <span class="Delimiter">{</span> <span id="L1568" class="LineNr">1568 </span> <span class="PreProc">break-if-=</span> @@ -1636,8 +1635,8 @@ if ('onhashchange' in window) { <span id="L1570" class="LineNr">1570 </span> <span class="PreProc">return</span> <span id="L1571" class="LineNr">1571 </span> <span class="Delimiter">}</span> <span id="L1572" class="LineNr">1572 </span> <span class="muComment"># screen = args->left</span> -<span id="L1573" class="LineNr">1573 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1574" class="LineNr">1574 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1573" class="LineNr">1573 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1574" class="LineNr">1574 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1575" class="LineNr">1575 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1576" class="LineNr">1576 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1577" class="LineNr">1577 </span> <span class="Delimiter">{</span> @@ -1645,8 +1644,8 @@ if ('onhashchange' in window) { <span id="L1579" class="LineNr">1579 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'down' is not a screen"</span> <span id="L1580" class="LineNr">1580 </span> <span class="PreProc">return</span> <span id="L1581" class="LineNr">1581 </span> <span class="Delimiter">}</span> -<span id="L1582" class="LineNr">1582 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1583" class="LineNr">1583 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1582" class="LineNr">1582 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1583" class="LineNr">1583 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1584" class="LineNr">1584 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1585" class="LineNr">1585 </span> <span class="muComment">#</span> <span id="L1586" class="LineNr">1586 </span> <a href='../501draw-text.mu.html#L47'>move-cursor-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a> @@ -1654,8 +1653,8 @@ if ('onhashchange' in window) { <span id="L1588" class="LineNr">1588 </span> <span id="L1589" class="LineNr">1589 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1589'>apply-left</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1590" class="LineNr">1590 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'left'"</span> -<span id="L1591" class="LineNr">1591 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1592" class="LineNr">1592 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1591" class="LineNr">1591 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1592" class="LineNr">1592 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1593" class="LineNr">1593 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1594" class="LineNr">1594 </span> <span class="Delimiter">{</span> <span id="L1595" class="LineNr">1595 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1664,7 +1663,7 @@ if ('onhashchange' in window) { <span id="L1598" class="LineNr">1598 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'left' are not a list"</span> <span id="L1599" class="LineNr">1599 </span> <span class="PreProc">return</span> <span id="L1600" class="LineNr">1600 </span> <span class="Delimiter">}</span> -<span id="L1601" class="LineNr">1601 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1601" class="LineNr">1601 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1602" class="LineNr">1602 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1603" class="LineNr">1603 </span> <span class="Delimiter">{</span> <span id="L1604" class="LineNr">1604 </span> <span class="PreProc">break-if-=</span> @@ -1672,8 +1671,8 @@ if ('onhashchange' in window) { <span id="L1606" class="LineNr">1606 </span> <span class="PreProc">return</span> <span id="L1607" class="LineNr">1607 </span> <span class="Delimiter">}</span> <span id="L1608" class="LineNr">1608 </span> <span class="muComment"># screen = args->left</span> -<span id="L1609" class="LineNr">1609 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1610" class="LineNr">1610 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1609" class="LineNr">1609 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1610" class="LineNr">1610 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1611" class="LineNr">1611 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1612" class="LineNr">1612 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1613" class="LineNr">1613 </span> <span class="Delimiter">{</span> @@ -1681,8 +1680,8 @@ if ('onhashchange' in window) { <span id="L1615" class="LineNr">1615 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'left' is not a screen"</span> <span id="L1616" class="LineNr">1616 </span> <span class="PreProc">return</span> <span id="L1617" class="LineNr">1617 </span> <span class="Delimiter">}</span> -<span id="L1618" class="LineNr">1618 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1619" class="LineNr">1619 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1618" class="LineNr">1618 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1619" class="LineNr">1619 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1620" class="LineNr">1620 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1621" class="LineNr">1621 </span> <span class="muComment">#</span> <span id="L1622" class="LineNr">1622 </span> <a href='../501draw-text.mu.html#L3'>move-cursor-left</a> <a href='../500fake-screen.mu.html#L14'>screen</a> @@ -1690,8 +1689,8 @@ if ('onhashchange' in window) { <span id="L1624" class="LineNr">1624 </span> <span id="L1625" class="LineNr">1625 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1625'>apply-right</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1626" class="LineNr">1626 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'right'"</span> -<span id="L1627" class="LineNr">1627 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1628" class="LineNr">1628 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1627" class="LineNr">1627 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1628" class="LineNr">1628 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1629" class="LineNr">1629 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1630" class="LineNr">1630 </span> <span class="Delimiter">{</span> <span id="L1631" class="LineNr">1631 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1700,7 +1699,7 @@ if ('onhashchange' in window) { <span id="L1634" class="LineNr">1634 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'right' are not a list"</span> <span id="L1635" class="LineNr">1635 </span> <span class="PreProc">return</span> <span id="L1636" class="LineNr">1636 </span> <span class="Delimiter">}</span> -<span id="L1637" class="LineNr">1637 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1637" class="LineNr">1637 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1638" class="LineNr">1638 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1639" class="LineNr">1639 </span> <span class="Delimiter">{</span> <span id="L1640" class="LineNr">1640 </span> <span class="PreProc">break-if-=</span> @@ -1708,8 +1707,8 @@ if ('onhashchange' in window) { <span id="L1642" class="LineNr">1642 </span> <span class="PreProc">return</span> <span id="L1643" class="LineNr">1643 </span> <span class="Delimiter">}</span> <span id="L1644" class="LineNr">1644 </span> <span class="muComment"># screen = args->left</span> -<span id="L1645" class="LineNr">1645 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1646" class="LineNr">1646 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1645" class="LineNr">1645 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1646" class="LineNr">1646 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1647" class="LineNr">1647 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1648" class="LineNr">1648 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1649" class="LineNr">1649 </span> <span class="Delimiter">{</span> @@ -1717,8 +1716,8 @@ if ('onhashchange' in window) { <span id="L1651" class="LineNr">1651 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'right' is not a screen"</span> <span id="L1652" class="LineNr">1652 </span> <span class="PreProc">return</span> <span id="L1653" class="LineNr">1653 </span> <span class="Delimiter">}</span> -<span id="L1654" class="LineNr">1654 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1655" class="LineNr">1655 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1654" class="LineNr">1654 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1655" class="LineNr">1655 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1656" class="LineNr">1656 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1657" class="LineNr">1657 </span> <span class="muComment">#</span> <span id="L1658" class="LineNr">1658 </span> <a href='../501draw-text.mu.html#L16'>move-cursor-right</a> <a href='../500fake-screen.mu.html#L14'>screen</a> @@ -1726,8 +1725,8 @@ if ('onhashchange' in window) { <span id="L1660" class="LineNr">1660 </span> <span id="L1661" class="LineNr">1661 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1661'>apply-cr</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1662" class="LineNr">1662 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'cr'"</span> -<span id="L1663" class="LineNr">1663 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1664" class="LineNr">1664 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1663" class="LineNr">1663 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1664" class="LineNr">1664 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1665" class="LineNr">1665 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1666" class="LineNr">1666 </span> <span class="Delimiter">{</span> <span id="L1667" class="LineNr">1667 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1736,7 +1735,7 @@ if ('onhashchange' in window) { <span id="L1670" class="LineNr">1670 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'cr' are not a list"</span> <span id="L1671" class="LineNr">1671 </span> <span class="PreProc">return</span> <span id="L1672" class="LineNr">1672 </span> <span class="Delimiter">}</span> -<span id="L1673" class="LineNr">1673 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1673" class="LineNr">1673 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1674" class="LineNr">1674 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1675" class="LineNr">1675 </span> <span class="Delimiter">{</span> <span id="L1676" class="LineNr">1676 </span> <span class="PreProc">break-if-=</span> @@ -1744,8 +1743,8 @@ if ('onhashchange' in window) { <span id="L1678" class="LineNr">1678 </span> <span class="PreProc">return</span> <span id="L1679" class="LineNr">1679 </span> <span class="Delimiter">}</span> <span id="L1680" class="LineNr">1680 </span> <span class="muComment"># screen = args->left</span> -<span id="L1681" class="LineNr">1681 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1682" class="LineNr">1682 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1681" class="LineNr">1681 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1682" class="LineNr">1682 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1683" class="LineNr">1683 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1684" class="LineNr">1684 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1685" class="LineNr">1685 </span> <span class="Delimiter">{</span> @@ -1753,8 +1752,8 @@ if ('onhashchange' in window) { <span id="L1687" class="LineNr">1687 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'cr' is not a screen"</span> <span id="L1688" class="LineNr">1688 </span> <span class="PreProc">return</span> <span id="L1689" class="LineNr">1689 </span> <span class="Delimiter">}</span> -<span id="L1690" class="LineNr">1690 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1691" class="LineNr">1691 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1690" class="LineNr">1690 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1691" class="LineNr">1691 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1692" class="LineNr">1692 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1693" class="LineNr">1693 </span> <span class="muComment">#</span> <span id="L1694" class="LineNr">1694 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a> @@ -1762,8 +1761,8 @@ if ('onhashchange' in window) { <span id="L1696" class="LineNr">1696 </span> <span id="L1697" class="LineNr">1697 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1697'>apply-pixel</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1698" class="LineNr">1698 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'pixel'"</span> -<span id="L1699" class="LineNr">1699 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1700" class="LineNr">1700 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1699" class="LineNr">1699 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1700" class="LineNr">1700 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1701" class="LineNr">1701 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1702" class="LineNr">1702 </span> <span class="Delimiter">{</span> <span id="L1703" class="LineNr">1703 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1772,7 +1771,7 @@ if ('onhashchange' in window) { <span id="L1706" class="LineNr">1706 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'pixel' are not a list"</span> <span id="L1707" class="LineNr">1707 </span> <span class="PreProc">return</span> <span id="L1708" class="LineNr">1708 </span> <span class="Delimiter">}</span> -<span id="L1709" class="LineNr">1709 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1709" class="LineNr">1709 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1710" class="LineNr">1710 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1711" class="LineNr">1711 </span> <span class="Delimiter">{</span> <span id="L1712" class="LineNr">1712 </span> <span class="PreProc">break-if-=</span> @@ -1780,8 +1779,8 @@ if ('onhashchange' in window) { <span id="L1714" class="LineNr">1714 </span> <span class="PreProc">return</span> <span id="L1715" class="LineNr">1715 </span> <span class="Delimiter">}</span> <span id="L1716" class="LineNr">1716 </span> <span class="muComment"># screen = args->left</span> -<span id="L1717" class="LineNr">1717 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1718" class="LineNr">1718 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1717" class="LineNr">1717 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1718" class="LineNr">1718 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1719" class="LineNr">1719 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1720" class="LineNr">1720 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1721" class="LineNr">1721 </span> <span class="Delimiter">{</span> @@ -1789,12 +1788,12 @@ if ('onhashchange' in window) { <span id="L1723" class="LineNr">1723 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'pixel' is not a screen"</span> <span id="L1724" class="LineNr">1724 </span> <span class="PreProc">return</span> <span id="L1725" class="LineNr">1725 </span> <span class="Delimiter">}</span> -<span id="L1726" class="LineNr">1726 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1727" class="LineNr">1727 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1726" class="LineNr">1726 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1727" class="LineNr">1727 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1728" class="LineNr">1728 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1729" class="LineNr">1729 </span> <span class="muComment"># x = args->right->left->value</span> -<span id="L1730" class="LineNr">1730 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1731" class="LineNr">1731 </span> <span class="PreProc">var</span> _rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1730" class="LineNr">1730 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1731" class="LineNr">1731 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L1732" class="LineNr">1732 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest <span id="L1733" class="LineNr">1733 </span> <span class="Delimiter">{</span> <span id="L1734" class="LineNr">1734 </span> <span class="PreProc">var</span> rest-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> @@ -1804,14 +1803,14 @@ if ('onhashchange' in window) { <span id="L1738" class="LineNr">1738 </span> <span class="PreProc">return</span> <span id="L1739" class="LineNr">1739 </span> <span class="Delimiter">}</span> <span id="L1740" class="LineNr">1740 </span> <span class="Delimiter">{</span> -<span id="L1741" class="LineNr">1741 </span> <span class="PreProc">var</span> rest-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L1741" class="LineNr">1741 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L1742" class="LineNr">1742 </span> compare rest-nil?, <span class="Constant">0</span>/false <span id="L1743" class="LineNr">1743 </span> <span class="PreProc">break-if-=</span> <span id="L1744" class="LineNr">1744 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 1"</span> <span id="L1745" class="LineNr">1745 </span> <span class="PreProc">return</span> <span id="L1746" class="LineNr">1746 </span> <span class="Delimiter">}</span> -<span id="L1747" class="LineNr">1747 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1748" class="LineNr">1748 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1747" class="LineNr">1747 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1748" class="LineNr">1748 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L1749" class="LineNr">1749 </span> <span class="PreProc">var</span> second-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L1750" class="LineNr">1750 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L1751" class="LineNr">1751 </span> <span class="Delimiter">{</span> @@ -1819,11 +1818,11 @@ if ('onhashchange' in window) { <span id="L1753" class="LineNr">1753 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'pixel' is not an int (x coordinate)"</span> <span id="L1754" class="LineNr">1754 </span> <span class="PreProc">return</span> <span id="L1755" class="LineNr">1755 </span> <span class="Delimiter">}</span> -<span id="L1756" class="LineNr">1756 </span> <span class="PreProc">var</span> second-value/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1756" class="LineNr">1756 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data <span id="L1757" class="LineNr">1757 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value <span id="L1758" class="LineNr">1758 </span> <span class="muComment"># y = rest->right->left->value</span> -<span id="L1759" class="LineNr">1759 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1760" class="LineNr">1760 </span> <span class="PreProc">var</span> _rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1759" class="LineNr">1759 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1760" class="LineNr">1760 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L1761" class="LineNr">1761 </span> rest <span class="Special"><-</span> copy _rest <span id="L1762" class="LineNr">1762 </span> <span class="Delimiter">{</span> <span id="L1763" class="LineNr">1763 </span> <span class="PreProc">var</span> rest-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> @@ -1833,14 +1832,14 @@ if ('onhashchange' in window) { <span id="L1767" class="LineNr">1767 </span> <span class="PreProc">return</span> <span id="L1768" class="LineNr">1768 </span> <span class="Delimiter">}</span> <span id="L1769" class="LineNr">1769 </span> <span class="Delimiter">{</span> -<span id="L1770" class="LineNr">1770 </span> <span class="PreProc">var</span> rest-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L1770" class="LineNr">1770 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L1771" class="LineNr">1771 </span> compare rest-nil?, <span class="Constant">0</span>/false <span id="L1772" class="LineNr">1772 </span> <span class="PreProc">break-if-=</span> <span id="L1773" class="LineNr">1773 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 2"</span> <span id="L1774" class="LineNr">1774 </span> <span class="PreProc">return</span> <span id="L1775" class="LineNr">1775 </span> <span class="Delimiter">}</span> -<span id="L1776" class="LineNr">1776 </span> <span class="PreProc">var</span> third-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1777" class="LineNr">1777 </span> <span class="PreProc">var</span> third/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah +<span id="L1776" class="LineNr">1776 </span> <span class="PreProc">var</span> third-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1777" class="LineNr">1777 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah <span id="L1778" class="LineNr">1778 </span> <span class="PreProc">var</span> third-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get third, <span class="PreProc">type</span> <span id="L1779" class="LineNr">1779 </span> compare *third-type, <span class="Constant">1</span>/number <span id="L1780" class="LineNr">1780 </span> <span class="Delimiter">{</span> @@ -1848,11 +1847,11 @@ if ('onhashchange' in window) { <span id="L1782" class="LineNr">1782 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"third arg for 'pixel' is not an int (y coordinate)"</span> <span id="L1783" class="LineNr">1783 </span> <span class="PreProc">return</span> <span id="L1784" class="LineNr">1784 </span> <span class="Delimiter">}</span> -<span id="L1785" class="LineNr">1785 </span> <span class="PreProc">var</span> third-value/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get third, number-data +<span id="L1785" class="LineNr">1785 </span> <span class="PreProc">var</span> third-value/eax: (addr float) <span class="Special"><-</span> get third, number-data <span id="L1786" class="LineNr">1786 </span> <span class="PreProc">var</span> y/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert *third-value <span id="L1787" class="LineNr">1787 </span> <span class="muComment"># color = rest->right->left->value</span> -<span id="L1788" class="LineNr">1788 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1789" class="LineNr">1789 </span> <span class="PreProc">var</span> _rest/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1788" class="LineNr">1788 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1789" class="LineNr">1789 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L1790" class="LineNr">1790 </span> rest <span class="Special"><-</span> copy _rest <span id="L1791" class="LineNr">1791 </span> <span class="Delimiter">{</span> <span id="L1792" class="LineNr">1792 </span> <span class="PreProc">var</span> rest-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> @@ -1862,14 +1861,14 @@ if ('onhashchange' in window) { <span id="L1796" class="LineNr">1796 </span> <span class="PreProc">return</span> <span id="L1797" class="LineNr">1797 </span> <span class="Delimiter">}</span> <span id="L1798" class="LineNr">1798 </span> <span class="Delimiter">{</span> -<span id="L1799" class="LineNr">1799 </span> <span class="PreProc">var</span> rest-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L1799" class="LineNr">1799 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest <span id="L1800" class="LineNr">1800 </span> compare rest-nil?, <span class="Constant">0</span>/false <span id="L1801" class="LineNr">1801 </span> <span class="PreProc">break-if-=</span> <span id="L1802" class="LineNr">1802 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 3"</span> <span id="L1803" class="LineNr">1803 </span> <span class="PreProc">return</span> <span id="L1804" class="LineNr">1804 </span> <span class="Delimiter">}</span> -<span id="L1805" class="LineNr">1805 </span> <span class="PreProc">var</span> fourth-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1806" class="LineNr">1806 </span> <span class="PreProc">var</span> fourth/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah +<span id="L1805" class="LineNr">1805 </span> <span class="PreProc">var</span> fourth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1806" class="LineNr">1806 </span> <span class="PreProc">var</span> fourth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah <span id="L1807" class="LineNr">1807 </span> <span class="PreProc">var</span> fourth-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get fourth, <span class="PreProc">type</span> <span id="L1808" class="LineNr">1808 </span> compare *fourth-type, <span class="Constant">1</span>/number <span id="L1809" class="LineNr">1809 </span> <span class="Delimiter">{</span> @@ -1877,16 +1876,16 @@ if ('onhashchange' in window) { <span id="L1811" class="LineNr">1811 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fourth arg for 'pixel' is not an int (color; 0..0xff)"</span> <span id="L1812" class="LineNr">1812 </span> <span class="PreProc">return</span> <span id="L1813" class="LineNr">1813 </span> <span class="Delimiter">}</span> -<span id="L1814" class="LineNr">1814 </span> <span class="PreProc">var</span> fourth-value/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get fourth, number-data -<span id="L1815" class="LineNr">1815 </span> <span class="PreProc">var</span> color/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert *fourth-value +<span id="L1814" class="LineNr">1814 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special"><-</span> get fourth, number-data +<span id="L1815" class="LineNr">1815 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> convert *fourth-value <span id="L1816" class="LineNr">1816 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color <span id="L1817" class="LineNr">1817 </span> <span class="muComment"># return nothing</span> <span id="L1818" class="LineNr">1818 </span><span class="Delimiter">}</span> <span id="L1819" class="LineNr">1819 </span> <span id="L1820" class="LineNr">1820 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1820'>apply-wait-for-key</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1821" class="LineNr">1821 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'key'"</span> -<span id="L1822" class="LineNr">1822 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1823" class="LineNr">1823 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1822" class="LineNr">1822 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1823" class="LineNr">1823 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1824" class="LineNr">1824 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1825" class="LineNr">1825 </span> <span class="Delimiter">{</span> <span id="L1826" class="LineNr">1826 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1895,7 +1894,7 @@ if ('onhashchange' in window) { <span id="L1829" class="LineNr">1829 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'key' are not a list"</span> <span id="L1830" class="LineNr">1830 </span> <span class="PreProc">return</span> <span id="L1831" class="LineNr">1831 </span> <span class="Delimiter">}</span> -<span id="L1832" class="LineNr">1832 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1832" class="LineNr">1832 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1833" class="LineNr">1833 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1834" class="LineNr">1834 </span> <span class="Delimiter">{</span> <span id="L1835" class="LineNr">1835 </span> <span class="PreProc">break-if-=</span> @@ -1903,8 +1902,8 @@ if ('onhashchange' in window) { <span id="L1837" class="LineNr">1837 </span> <span class="PreProc">return</span> <span id="L1838" class="LineNr">1838 </span> <span class="Delimiter">}</span> <span id="L1839" class="LineNr">1839 </span> <span class="muComment"># keyboard = args->left</span> -<span id="L1840" class="LineNr">1840 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1841" class="LineNr">1841 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1840" class="LineNr">1840 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1841" class="LineNr">1841 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1842" class="LineNr">1842 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1843" class="LineNr">1843 </span> compare *first-type, <span class="Constant">6</span>/keyboard <span id="L1844" class="LineNr">1844 </span> <span class="Delimiter">{</span> @@ -1912,26 +1911,26 @@ if ('onhashchange' in window) { <span id="L1846" class="LineNr">1846 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'key' is not a keyboard"</span> <span id="L1847" class="LineNr">1847 </span> <span class="PreProc">return</span> <span id="L1848" class="LineNr">1848 </span> <span class="Delimiter">}</span> -<span id="L1849" class="LineNr">1849 </span> <span class="PreProc">var</span> keyboard-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get first, keyboard-data -<span id="L1850" class="LineNr">1850 </span> <span class="PreProc">var</span> _keyboard/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah +<span id="L1849" class="LineNr">1849 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get first, keyboard-data +<span id="L1850" class="LineNr">1850 </span> <span class="PreProc">var</span> _keyboard/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah <span id="L1851" class="LineNr">1851 </span> <span class="PreProc">var</span> keyboard/<span class="muRegEcx">ecx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _keyboard -<span id="L1852" class="LineNr">1852 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='primitives.mu.html#L1857'>wait-for-key</a> keyboard +<span id="L1852" class="LineNr">1852 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='primitives.mu.html#L1857'>wait-for-key</a> keyboard <span id="L1853" class="LineNr">1853 </span> <span class="muComment"># return key typed</span> <span id="L1854" class="LineNr">1854 </span> <a href='cell.mu.html#L84'>new-integer</a> out, result <span id="L1855" class="LineNr">1855 </span><span class="Delimiter">}</span> <span id="L1856" class="LineNr">1856 </span> -<span id="L1857" class="LineNr">1857 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1857'>wait-for-key</a></span> keyboard: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L1857" class="LineNr">1857 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1857'>wait-for-key</a></span> keyboard: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L1858" class="LineNr">1858 </span> <span class="muComment"># if keyboard is 0, use real keyboard</span> <span id="L1859" class="LineNr">1859 </span> <span class="Delimiter">{</span> <span id="L1860" class="LineNr">1860 </span> compare keyboard, <span class="Constant">0</span>/real-keyboard <span id="L1861" class="LineNr">1861 </span> <span class="PreProc">break-if-!=</span> -<span id="L1862" class="LineNr">1862 </span> <span class="PreProc">var</span> key/<span class="muRegEax">eax</span>: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/real-keyboard -<span id="L1863" class="LineNr">1863 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy key +<span id="L1862" class="LineNr">1862 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/real-keyboard +<span id="L1863" class="LineNr">1863 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy key <span id="L1864" class="LineNr">1864 </span> <span class="PreProc">return</span> result <span id="L1865" class="LineNr">1865 </span> <span class="Delimiter">}</span> <span id="L1866" class="LineNr">1866 </span> <span class="muComment"># otherwise read from fake keyboard</span> -<span id="L1867" class="LineNr">1867 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> keyboard -<span id="L1868" class="LineNr">1868 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L1867" class="LineNr">1867 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> keyboard +<span id="L1868" class="LineNr">1868 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy g <span id="L1869" class="LineNr">1869 </span> <span class="PreProc">return</span> result <span id="L1870" class="LineNr">1870 </span><span class="Delimiter">}</span> <span id="L1871" class="LineNr">1871 </span> @@ -1942,8 +1941,8 @@ if ('onhashchange' in window) { <span id="L1876" class="LineNr">1876 </span> <span id="L1877" class="LineNr">1877 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1877'>apply-write</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1878" class="LineNr">1878 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'write'"</span> -<span id="L1879" class="LineNr">1879 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1880" class="LineNr">1880 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1879" class="LineNr">1879 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1880" class="LineNr">1880 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1881" class="LineNr">1881 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1882" class="LineNr">1882 </span> <span class="Delimiter">{</span> <span id="L1883" class="LineNr">1883 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -1952,7 +1951,7 @@ if ('onhashchange' in window) { <span id="L1886" class="LineNr">1886 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'write' are not a list"</span> <span id="L1887" class="LineNr">1887 </span> <span class="PreProc">return</span> <span id="L1888" class="LineNr">1888 </span> <span class="Delimiter">}</span> -<span id="L1889" class="LineNr">1889 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1889" class="LineNr">1889 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1890" class="LineNr">1890 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1891" class="LineNr">1891 </span> <span class="Delimiter">{</span> <span id="L1892" class="LineNr">1892 </span> <span class="PreProc">break-if-=</span> @@ -1961,7 +1960,7 @@ if ('onhashchange' in window) { <span id="L1895" class="LineNr">1895 </span> <span class="Delimiter">}</span> <span id="L1896" class="LineNr">1896 </span> <span class="muComment"># stream = args->left</span> <span id="L1897" class="LineNr">1897 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1898" class="LineNr">1898 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1898" class="LineNr">1898 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1899" class="LineNr">1899 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1900" class="LineNr">1900 </span> compare *first-type, <span class="Constant">3</span>/stream <span id="L1901" class="LineNr">1901 </span> <span class="Delimiter">{</span> @@ -1969,12 +1968,12 @@ if ('onhashchange' in window) { <span id="L1903" class="LineNr">1903 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'write' is not a stream"</span> <span id="L1904" class="LineNr">1904 </span> <span class="PreProc">return</span> <span id="L1905" class="LineNr">1905 </span> <span class="Delimiter">}</span> -<span id="L1906" class="LineNr">1906 </span> <span class="PreProc">var</span> stream-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get first, text-data -<span id="L1907" class="LineNr">1907 </span> <span class="PreProc">var</span> _stream-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *stream-data-ah +<span id="L1906" class="LineNr">1906 </span> <span class="PreProc">var</span> stream-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first, text-data +<span id="L1907" class="LineNr">1907 </span> <span class="PreProc">var</span> _stream-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *stream-data-ah <span id="L1908" class="LineNr">1908 </span> <span class="PreProc">var</span> stream-data/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> copy _stream-data <span id="L1909" class="LineNr">1909 </span> <span class="muComment"># args->right->left</span> -<span id="L1910" class="LineNr">1910 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1911" class="LineNr">1911 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1910" class="LineNr">1910 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1911" class="LineNr">1911 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1912" class="LineNr">1912 </span> <span class="Delimiter">{</span> <span id="L1913" class="LineNr">1913 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> <span id="L1914" class="LineNr">1914 </span> compare *right-type, <span class="Constant">0</span>/pair @@ -1983,14 +1982,14 @@ if ('onhashchange' in window) { <span id="L1917" class="LineNr">1917 </span> <span class="PreProc">return</span> <span id="L1918" class="LineNr">1918 </span> <span class="Delimiter">}</span> <span id="L1919" class="LineNr">1919 </span> <span class="Delimiter">{</span> -<span id="L1920" class="LineNr">1920 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right +<span id="L1920" class="LineNr">1920 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right <span id="L1921" class="LineNr">1921 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L1922" class="LineNr">1922 </span> <span class="PreProc">break-if-=</span> <span id="L1923" class="LineNr">1923 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'write' needs 2 args but got 1"</span> <span id="L1924" class="LineNr">1924 </span> <span class="PreProc">return</span> <span id="L1925" class="LineNr">1925 </span> <span class="Delimiter">}</span> -<span id="L1926" class="LineNr">1926 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1927" class="LineNr">1927 </span> <span class="PreProc">var</span> second/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1926" class="LineNr">1926 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1927" class="LineNr">1927 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L1928" class="LineNr">1928 </span> <span class="PreProc">var</span> second-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> <span id="L1929" class="LineNr">1929 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L1930" class="LineNr">1930 </span> <span class="Delimiter">{</span> @@ -1998,10 +1997,10 @@ if ('onhashchange' in window) { <span id="L1932" class="LineNr">1932 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'write' is not a number/grapheme"</span> <span id="L1933" class="LineNr">1933 </span> <span class="PreProc">return</span> <span id="L1934" class="LineNr">1934 </span> <span class="Delimiter">}</span> -<span id="L1935" class="LineNr">1935 </span> <span class="PreProc">var</span> second-value/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1935" class="LineNr">1935 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data <span id="L1936" class="LineNr">1936 </span> <span class="PreProc">var</span> x-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *second-value -<span id="L1937" class="LineNr">1937 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> convert x-float -<span id="L1938" class="LineNr">1938 </span> <span class="PreProc">var</span> x-grapheme/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> copy x +<span id="L1937" class="LineNr">1937 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> convert x-float +<span id="L1938" class="LineNr">1938 </span> <span class="PreProc">var</span> x-grapheme/eax: grapheme <span class="Special"><-</span> copy x <span id="L1939" class="LineNr">1939 </span> <a href='../403unicode.mu.html#L176'>write-grapheme</a> stream-data, x-grapheme <span id="L1940" class="LineNr">1940 </span> <span class="muComment"># return the stream</span> <span id="L1941" class="LineNr">1941 </span> copy-object first-ah, out @@ -2009,8 +2008,8 @@ if ('onhashchange' in window) { <span id="L1943" class="LineNr">1943 </span> <span id="L1944" class="LineNr">1944 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1944'>apply-lines</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1945" class="LineNr">1945 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'lines'"</span> -<span id="L1946" class="LineNr">1946 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1947" class="LineNr">1947 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1946" class="LineNr">1946 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1947" class="LineNr">1947 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1948" class="LineNr">1948 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1949" class="LineNr">1949 </span> <span class="Delimiter">{</span> <span id="L1950" class="LineNr">1950 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -2019,7 +2018,7 @@ if ('onhashchange' in window) { <span id="L1953" class="LineNr">1953 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'lines' are not a list"</span> <span id="L1954" class="LineNr">1954 </span> <span class="PreProc">return</span> <span id="L1955" class="LineNr">1955 </span> <span class="Delimiter">}</span> -<span id="L1956" class="LineNr">1956 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1956" class="LineNr">1956 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L1957" class="LineNr">1957 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1958" class="LineNr">1958 </span> <span class="Delimiter">{</span> <span id="L1959" class="LineNr">1959 </span> <span class="PreProc">break-if-=</span> @@ -2027,8 +2026,8 @@ if ('onhashchange' in window) { <span id="L1961" class="LineNr">1961 </span> <span class="PreProc">return</span> <span id="L1962" class="LineNr">1962 </span> <span class="Delimiter">}</span> <span id="L1963" class="LineNr">1963 </span> <span class="muComment"># screen = args->left</span> -<span id="L1964" class="LineNr">1964 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1965" class="LineNr">1965 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1964" class="LineNr">1964 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1965" class="LineNr">1965 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1966" class="LineNr">1966 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L1967" class="LineNr">1967 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L1968" class="LineNr">1968 </span> <span class="Delimiter">{</span> @@ -2036,11 +2035,11 @@ if ('onhashchange' in window) { <span id="L1970" class="LineNr">1970 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'lines' is not a screen"</span> <span id="L1971" class="LineNr">1971 </span> <span class="PreProc">return</span> <span id="L1972" class="LineNr">1972 </span> <span class="Delimiter">}</span> -<span id="L1973" class="LineNr">1973 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1974" class="LineNr">1974 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1973" class="LineNr">1973 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1974" class="LineNr">1974 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L1975" class="LineNr">1975 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L1976" class="LineNr">1976 </span> <span class="muComment"># compute dimensions</span> -<span id="L1977" class="LineNr">1977 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L1977" class="LineNr">1977 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1978" class="LineNr">1978 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1979" class="LineNr">1979 </span> dummy, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L1980" class="LineNr">1980 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert height @@ -2053,8 +2052,8 @@ if ('onhashchange' in window) { <span id="L1987" class="LineNr">1987 </span> <span id="L1988" class="LineNr">1988 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1988'>apply-columns</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L1989" class="LineNr">1989 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'columns'"</span> -<span id="L1990" class="LineNr">1990 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1991" class="LineNr">1991 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1990" class="LineNr">1990 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1991" class="LineNr">1991 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1992" class="LineNr">1992 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1993" class="LineNr">1993 </span> <span class="Delimiter">{</span> <span id="L1994" class="LineNr">1994 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -2063,7 +2062,7 @@ if ('onhashchange' in window) { <span id="L1997" class="LineNr">1997 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'columns' are not a list"</span> <span id="L1998" class="LineNr">1998 </span> <span class="PreProc">return</span> <span id="L1999" class="LineNr">1999 </span> <span class="Delimiter">}</span> -<span id="L2000" class="LineNr">2000 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L2000" class="LineNr">2000 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L2001" class="LineNr">2001 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L2002" class="LineNr">2002 </span> <span class="Delimiter">{</span> <span id="L2003" class="LineNr">2003 </span> <span class="PreProc">break-if-=</span> @@ -2071,8 +2070,8 @@ if ('onhashchange' in window) { <span id="L2005" class="LineNr">2005 </span> <span class="PreProc">return</span> <span id="L2006" class="LineNr">2006 </span> <span class="Delimiter">}</span> <span id="L2007" class="LineNr">2007 </span> <span class="muComment"># screen = args->left</span> -<span id="L2008" class="LineNr">2008 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L2009" class="LineNr">2009 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2008" class="LineNr">2008 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2009" class="LineNr">2009 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L2010" class="LineNr">2010 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L2011" class="LineNr">2011 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L2012" class="LineNr">2012 </span> <span class="Delimiter">{</span> @@ -2080,11 +2079,11 @@ if ('onhashchange' in window) { <span id="L2014" class="LineNr">2014 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'columns' is not a screen"</span> <span id="L2015" class="LineNr">2015 </span> <span class="PreProc">return</span> <span id="L2016" class="LineNr">2016 </span> <span class="Delimiter">}</span> -<span id="L2017" class="LineNr">2017 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L2018" class="LineNr">2018 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L2017" class="LineNr">2017 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L2018" class="LineNr">2018 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L2019" class="LineNr">2019 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L2020" class="LineNr">2020 </span> <span class="muComment"># compute dimensions</span> -<span id="L2021" class="LineNr">2021 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L2021" class="LineNr">2021 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L2022" class="LineNr">2022 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L2023" class="LineNr">2023 </span> width, dummy <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L2024" class="LineNr">2024 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert width @@ -2093,8 +2092,8 @@ if ('onhashchange' in window) { <span id="L2027" class="LineNr">2027 </span> <span id="L2028" class="LineNr">2028 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2028'>apply-width</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L2029" class="LineNr">2029 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'width'"</span> -<span id="L2030" class="LineNr">2030 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L2031" class="LineNr">2031 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L2030" class="LineNr">2030 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L2031" class="LineNr">2031 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L2032" class="LineNr">2032 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L2033" class="LineNr">2033 </span> <span class="Delimiter">{</span> <span id="L2034" class="LineNr">2034 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -2103,7 +2102,7 @@ if ('onhashchange' in window) { <span id="L2037" class="LineNr">2037 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'width' are not a list"</span> <span id="L2038" class="LineNr">2038 </span> <span class="PreProc">return</span> <span id="L2039" class="LineNr">2039 </span> <span class="Delimiter">}</span> -<span id="L2040" class="LineNr">2040 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L2040" class="LineNr">2040 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L2041" class="LineNr">2041 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L2042" class="LineNr">2042 </span> <span class="Delimiter">{</span> <span id="L2043" class="LineNr">2043 </span> <span class="PreProc">break-if-=</span> @@ -2111,8 +2110,8 @@ if ('onhashchange' in window) { <span id="L2045" class="LineNr">2045 </span> <span class="PreProc">return</span> <span id="L2046" class="LineNr">2046 </span> <span class="Delimiter">}</span> <span id="L2047" class="LineNr">2047 </span> <span class="muComment"># screen = args->left</span> -<span id="L2048" class="LineNr">2048 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L2049" class="LineNr">2049 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2048" class="LineNr">2048 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2049" class="LineNr">2049 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L2050" class="LineNr">2050 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L2051" class="LineNr">2051 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L2052" class="LineNr">2052 </span> <span class="Delimiter">{</span> @@ -2120,11 +2119,11 @@ if ('onhashchange' in window) { <span id="L2054" class="LineNr">2054 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'width' is not a screen"</span> <span id="L2055" class="LineNr">2055 </span> <span class="PreProc">return</span> <span id="L2056" class="LineNr">2056 </span> <span class="Delimiter">}</span> -<span id="L2057" class="LineNr">2057 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L2058" class="LineNr">2058 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L2057" class="LineNr">2057 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L2058" class="LineNr">2058 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L2059" class="LineNr">2059 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L2060" class="LineNr">2060 </span> <span class="muComment"># compute dimensions</span> -<span id="L2061" class="LineNr">2061 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L2061" class="LineNr">2061 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L2062" class="LineNr">2062 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L2063" class="LineNr">2063 </span> width, dummy <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L2064" class="LineNr">2064 </span> width <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width @@ -2134,8 +2133,8 @@ if ('onhashchange' in window) { <span id="L2068" class="LineNr">2068 </span> <span id="L2069" class="LineNr">2069 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2069'>apply-height</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L2070" class="LineNr">2070 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'height'"</span> -<span id="L2071" class="LineNr">2071 </span> <span class="PreProc">var</span> args-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L2072" class="LineNr">2072 </span> <span class="PreProc">var</span> _args/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L2071" class="LineNr">2071 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L2072" class="LineNr">2072 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L2073" class="LineNr">2073 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L2074" class="LineNr">2074 </span> <span class="Delimiter">{</span> <span id="L2075" class="LineNr">2075 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> @@ -2144,7 +2143,7 @@ if ('onhashchange' in window) { <span id="L2078" class="LineNr">2078 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'height' are not a list"</span> <span id="L2079" class="LineNr">2079 </span> <span class="PreProc">return</span> <span id="L2080" class="LineNr">2080 </span> <span class="Delimiter">}</span> -<span id="L2081" class="LineNr">2081 </span> <span class="PreProc">var</span> empty-args?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L2081" class="LineNr">2081 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args <span id="L2082" class="LineNr">2082 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L2083" class="LineNr">2083 </span> <span class="Delimiter">{</span> <span id="L2084" class="LineNr">2084 </span> <span class="PreProc">break-if-=</span> @@ -2152,8 +2151,8 @@ if ('onhashchange' in window) { <span id="L2086" class="LineNr">2086 </span> <span class="PreProc">return</span> <span id="L2087" class="LineNr">2087 </span> <span class="Delimiter">}</span> <span id="L2088" class="LineNr">2088 </span> <span class="muComment"># screen = args->left</span> -<span id="L2089" class="LineNr">2089 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L2090" class="LineNr">2090 </span> <span class="PreProc">var</span> first/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2089" class="LineNr">2089 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2090" class="LineNr">2090 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L2091" class="LineNr">2091 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> <span id="L2092" class="LineNr">2092 </span> compare *first-type, <span class="Constant">5</span>/screen <span id="L2093" class="LineNr">2093 </span> <span class="Delimiter">{</span> @@ -2161,11 +2160,11 @@ if ('onhashchange' in window) { <span id="L2095" class="LineNr">2095 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'height' is not a screen"</span> <span id="L2096" class="LineNr">2096 </span> <span class="PreProc">return</span> <span id="L2097" class="LineNr">2097 </span> <span class="Delimiter">}</span> -<span id="L2098" class="LineNr">2098 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L2099" class="LineNr">2099 </span> <span class="PreProc">var</span> _screen/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L2098" class="LineNr">2098 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L2099" class="LineNr">2099 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah <span id="L2100" class="LineNr">2100 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen <span id="L2101" class="LineNr">2101 </span> <span class="muComment"># compute dimensions</span> -<span id="L2102" class="LineNr">2102 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L2102" class="LineNr">2102 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L2103" class="LineNr">2103 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L2104" class="LineNr">2104 </span> dummy, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L2105" class="LineNr">2105 </span> height <span class="Special"><-</span> shift-left <span class="Constant">4</span>/log2-font-height diff --git a/html/shell/print.mu.html b/html/shell/print.mu.html index 9a927129..8194b970 100644 --- a/html/shell/print.mu.html +++ b/html/shell/print.mu.html @@ -14,19 +14,18 @@ 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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.muTest { color: #5f8700; } -.LineNr { } -.muRegEdi { color: #87ffd7; } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEsi { color: #87d787; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muTest { color: #5f8700; } +.muComment { color: #005faf; } --> </style> @@ -72,12 +71,12 @@ if ('onhashchange' in window) { <span id="L8" class="LineNr"> 8 </span> <a href='../315stack-debug.subx.html#L5'>check-stack</a> <span id="L9" class="LineNr"> 9 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"print"</span>, <span class="Constant">"print"</span> <span id="L10" class="LineNr"> 10 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> in/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> in-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in +<span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> in/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in +<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> in-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in <span id="L13" class="LineNr"> 13 </span> <span class="Delimiter">{</span> <span id="L14" class="LineNr"> 14 </span> compare in-addr, <span class="Constant">0</span> <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">break-if-!=</span> -<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> overflow?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"NULL"</span> +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"NULL"</span> <span id="L17" class="LineNr"> 17 </span> compare overflow?, <span class="Constant">0</span>/false <span id="L18" class="LineNr"> 18 </span> <span class="Delimiter">{</span> <span id="L19" class="LineNr"> 19 </span> <span class="PreProc">break-if-=</span> @@ -88,10 +87,10 @@ if ('onhashchange' in window) { <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">return</span> <span id="L25" class="LineNr"> 25 </span> <span class="Delimiter">}</span> <span id="L26" class="LineNr"> 26 </span> <span class="Delimiter">{</span> -<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in-addr +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in-addr <span id="L28" class="LineNr"> 28 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">break-if-=</span> -<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> overflow?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"()"</span> +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"()"</span> <span id="L31" class="LineNr"> 31 </span> compare overflow?, <span class="Constant">0</span>/false <span id="L32" class="LineNr"> 32 </span> <span class="Delimiter">{</span> <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">break-if-=</span> @@ -132,7 +131,7 @@ if ('onhashchange' in window) { <span id="L68" class="LineNr"> 68 </span> compare *in-type, <span class="Constant">4</span>/primitive <span id="L69" class="LineNr"> 69 </span> <span class="Delimiter">{</span> <span id="L70" class="LineNr"> 70 </span> <span class="PreProc">break-if-!=</span> -<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> overflow?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"[primitive]"</span> +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"[primitive]"</span> <span id="L72" class="LineNr"> 72 </span> compare overflow?, <span class="Constant">0</span>/false <span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">break-if-=</span> @@ -146,17 +145,17 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">{</span> <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">break-if-!=</span> <span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">{</span> -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> available-space/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out <span id="L86" class="LineNr"> 86 </span> compare available-space, <span class="Constant">0x10</span> <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">break-if->=</span> -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> <span id="L89" class="LineNr"> 89 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-cell: no space for screen"</span> <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">return</span> <span id="L91" class="LineNr"> 91 </span> <span class="Delimiter">}</span> <span id="L92" class="LineNr"> 92 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"[screen "</span> -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get in-addr, screen-data -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> screen-addr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get in-addr, screen-data +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> screen-addr/eax: int <span class="Special"><-</span> copy <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L96" class="LineNr"> 96 </span> <a href='../117write-int-hex.subx.html#L92'>write-int32-hex</a> out, screen-addr <span id="L97" class="LineNr"> 97 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"]"</span> <span id="L98" class="LineNr"> 98 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -166,17 +165,17 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> <span class="Delimiter">{</span> <span id="L103" class="LineNr">103 </span> <span class="PreProc">break-if-!=</span> <span id="L104" class="LineNr">104 </span> <span class="Delimiter">{</span> -<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> available-space/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out +<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out <span id="L106" class="LineNr">106 </span> compare available-space, <span class="Constant">0x10</span> <span id="L107" class="LineNr">107 </span> <span class="PreProc">break-if->=</span> -<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> +<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> <span id="L109" class="LineNr">109 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-cell: no space for keyboard"</span> <span id="L110" class="LineNr">110 </span> <span class="PreProc">return</span> <span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> <span id="L112" class="LineNr">112 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"[keyboard "</span> -<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> keyboard-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get in-addr, keyboard-data -<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> keyboard/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah -<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> keyboard-addr/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy keyboard +<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get in-addr, keyboard-data +<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> keyboard/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah +<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> keyboard-addr/eax: int <span class="Special"><-</span> copy keyboard <span id="L116" class="LineNr">116 </span> <a href='../117write-int-hex.subx.html#L92'>write-int32-hex</a> out, keyboard-addr <span id="L117" class="LineNr">117 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"]"</span> <span id="L118" class="LineNr">118 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -192,7 +191,7 @@ if ('onhashchange' in window) { <span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L129" class="LineNr">129 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span id="L130" class="LineNr">130 </span> <a href='print.mu.html#L7'>print-cell</a> in-ah, stream, trace -<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> d1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> d1/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> d2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L133" class="LineNr">133 </span> d1, d2 <span class="Special"><-</span> <a href='../501draw-text.mu.html#L202'>draw-stream-wrapping-right-then-down</a> <span class="Constant">0</span>/screen, stream, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x30</span>/ymax, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L134" class="LineNr">134 </span><span class="Delimiter">}</span> @@ -210,23 +209,23 @@ if ('onhashchange' in window) { <span id="L146" class="LineNr">146 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L146'>print-symbol</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span> <span id="L147" class="LineNr">147 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"print"</span>, <span class="Constant">"symbol"</span> <span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get in, text-data -<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get in, text-data +<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> _data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> copy _data <span id="L152" class="LineNr">152 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> data -<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> _required-space/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../108write.subx.html#L194'>stream-size</a> data +<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> _required-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L194'>stream-size</a> data <span id="L154" class="LineNr">154 </span> <span class="PreProc">var</span> required-space/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _required-space -<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> available-space/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out +<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out <span id="L156" class="LineNr">156 </span> compare required-space, available-space <span id="L157" class="LineNr">157 </span> <span class="Delimiter">{</span> <span id="L158" class="LineNr">158 </span> <span class="PreProc">break-if-<=</span> -<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> +<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> <span id="L160" class="LineNr">160 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-symbol: no space"</span> <span id="L161" class="LineNr">161 </span> <span class="PreProc">return</span> <span id="L162" class="LineNr">162 </span> <span class="Delimiter">}</span> <span id="L163" class="LineNr">163 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> out, data <span id="L164" class="LineNr">164 </span> <span class="muComment"># trace</span> -<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L166" class="LineNr">166 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L167" class="LineNr">167 </span> <span class="PreProc">break-if-=</span> <span id="L168" class="LineNr">168 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> data @@ -240,18 +239,18 @@ if ('onhashchange' in window) { <span id="L176" class="LineNr">176 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L176'>print-stream</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span> <span id="L177" class="LineNr">177 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"print"</span>, <span class="Constant">"stream"</span> <span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get in, text-data -<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get in, text-data +<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> _data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> copy _data <span id="L182" class="LineNr">182 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> data -<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> _required-space/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../108write.subx.html#L194'>stream-size</a> data +<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> _required-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L194'>stream-size</a> data <span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> required-space/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _required-space <span id="L185" class="LineNr">185 </span> required-space <span class="Special"><-</span> add <span class="Constant">2</span> <span class="muComment"># for []</span> -<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> available-space/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out +<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out <span id="L187" class="LineNr">187 </span> compare required-space, available-space <span id="L188" class="LineNr">188 </span> <span class="Delimiter">{</span> <span id="L189" class="LineNr">189 </span> <span class="PreProc">break-if-<=</span> -<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> +<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> <span id="L191" class="LineNr">191 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-stream: no space"</span> <span id="L192" class="LineNr">192 </span> <span class="PreProc">return</span> <span id="L193" class="LineNr">193 </span> <span class="Delimiter">}</span> @@ -259,7 +258,7 @@ if ('onhashchange' in window) { <span id="L195" class="LineNr">195 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> out, data <span id="L196" class="LineNr">196 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"]"</span> <span id="L197" class="LineNr">197 </span> <span class="muComment"># trace</span> -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L199" class="LineNr">199 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L200" class="LineNr">200 </span> <span class="PreProc">break-if-=</span> <span id="L201" class="LineNr">201 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> data @@ -271,20 +270,20 @@ if ('onhashchange' in window) { <span id="L207" class="LineNr">207 </span><span class="Delimiter">}</span> <span id="L208" class="LineNr">208 </span> <span id="L209" class="LineNr">209 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L209'>print-number</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> available-space/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out +<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out <span id="L211" class="LineNr">211 </span> compare available-space, <span class="Constant">0x10</span> <span id="L212" class="LineNr">212 </span> <span class="Delimiter">{</span> <span id="L213" class="LineNr">213 </span> <span class="PreProc">break-if->=</span> -<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> +<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> <span id="L215" class="LineNr">215 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-number: no space"</span> <span id="L216" class="LineNr">216 </span> <span class="PreProc">return</span> <span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span> <span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> val/<span class="muRegEax">eax</span>: (addr float) <span class="Special"><-</span> get in, number-data +<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> val/eax: (addr float) <span class="Special"><-</span> get in, number-data <span id="L220" class="LineNr">220 </span> <a href='../412render-float-decimal.mu.html#L163'>write-float-decimal-approximate</a> out, *val, <span class="Constant">0x10</span>/precision <span id="L221" class="LineNr">221 </span> <span class="muComment"># trace</span> <span id="L222" class="LineNr">222 </span> <span class="Delimiter">{</span> -<span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L224" class="LineNr">224 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L225" class="LineNr">225 </span> <span class="PreProc">break-if-!=</span> <span id="L226" class="LineNr">226 </span> <span class="PreProc">return</span> @@ -299,49 +298,49 @@ if ('onhashchange' in window) { <span id="L235" class="LineNr">235 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L235'>print-pair</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span> <span id="L236" class="LineNr">236 </span> <span class="muComment"># if in starts with a quote, print the quote outside the expression</span> <span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> left-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left -<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> _left/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah +<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left +<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> _left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah <span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _left -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> is-quote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"'"</span> +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> is-quote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"'"</span> <span id="L242" class="LineNr">242 </span> compare is-quote?, <span class="Constant">0</span>/false <span id="L243" class="LineNr">243 </span> <span class="Delimiter">{</span> <span id="L244" class="LineNr">244 </span> <span class="PreProc">break-if-=</span> -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"'"</span> -<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"'"</span> +<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right <span id="L247" class="LineNr">247 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace <span id="L248" class="LineNr">248 </span> <span class="PreProc">return</span> <span id="L249" class="LineNr">249 </span> <span class="Delimiter">}</span> -<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> is-backquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"`"</span> +<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> is-backquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"`"</span> <span id="L251" class="LineNr">251 </span> compare is-backquote?, <span class="Constant">0</span>/false <span id="L252" class="LineNr">252 </span> <span class="Delimiter">{</span> <span id="L253" class="LineNr">253 </span> <span class="PreProc">break-if-=</span> -<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"`"</span> -<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"`"</span> +<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right <span id="L256" class="LineNr">256 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace <span id="L257" class="LineNr">257 </span> <span class="PreProc">return</span> <span id="L258" class="LineNr">258 </span> <span class="Delimiter">}</span> -<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> is-unquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">","</span> +<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> is-unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">","</span> <span id="L260" class="LineNr">260 </span> compare is-unquote?, <span class="Constant">0</span>/false <span id="L261" class="LineNr">261 </span> <span class="Delimiter">{</span> <span id="L262" class="LineNr">262 </span> <span class="PreProc">break-if-=</span> -<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">","</span> -<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">","</span> +<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right <span id="L265" class="LineNr">265 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace <span id="L266" class="LineNr">266 </span> <span class="PreProc">return</span> <span id="L267" class="LineNr">267 </span> <span class="Delimiter">}</span> -<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> is-unquote-splice?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">",@"</span> +<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> is-unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">",@"</span> <span id="L269" class="LineNr">269 </span> compare is-unquote-splice?, <span class="Constant">0</span>/false <span id="L270" class="LineNr">270 </span> <span class="Delimiter">{</span> <span id="L271" class="LineNr">271 </span> <span class="PreProc">break-if-=</span> -<span id="L272" class="LineNr">272 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">",@"</span> -<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L272" class="LineNr">272 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">",@"</span> +<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right <span id="L274" class="LineNr">274 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace <span id="L275" class="LineNr">275 </span> <span class="PreProc">return</span> <span id="L276" class="LineNr">276 </span> <span class="Delimiter">}</span> <span id="L277" class="LineNr">277 </span> <span class="muComment">#</span> <span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in <span id="L279" class="LineNr">279 </span> <span class="Delimiter">{</span> -<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> overflow?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"("</span> +<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"("</span> <span id="L281" class="LineNr">281 </span> compare overflow?, <span class="Constant">0</span>/false <span id="L282" class="LineNr">282 </span> <span class="PreProc">break-if-=</span> <span id="L283" class="LineNr">283 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space for '('"</span> @@ -352,20 +351,20 @@ if ('onhashchange' in window) { <span id="L288" class="LineNr">288 </span> <a href='print.mu.html#L7'>print-cell</a> left, out, trace <span id="L289" class="LineNr">289 </span> <span class="muComment"># errors? skip</span> <span id="L290" class="LineNr">290 </span> <span class="Delimiter">{</span> -<span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L292" class="LineNr">292 </span> compare error?, <span class="Constant">0</span>/false <span id="L293" class="LineNr">293 </span> <span class="PreProc">break-if-=</span> <span id="L294" class="LineNr">294 </span> <span class="PreProc">return</span> <span id="L295" class="LineNr">295 </span> <span class="Delimiter">}</span> <span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, right -<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> right-addr/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right +<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> right-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right <span id="L298" class="LineNr">298 </span> <span class="Delimiter">{</span> <span id="L299" class="LineNr">299 </span> compare right-addr, <span class="Constant">0</span> <span id="L300" class="LineNr">300 </span> <span class="PreProc">break-if-!=</span> <span id="L301" class="LineNr">301 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"NULL in print!"</span> <span id="L302" class="LineNr">302 </span> <span class="Delimiter">}</span> <span id="L303" class="LineNr">303 </span> <span class="Delimiter">{</span> -<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> right-nil?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right-addr +<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> right-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right-addr <span id="L305" class="LineNr">305 </span> compare right-nil?, <span class="Constant">0</span>/false <span id="L306" class="LineNr">306 </span> <span class="Delimiter">{</span> <span id="L307" class="LineNr">307 </span> <span class="PreProc">break-if-=</span> @@ -374,7 +373,7 @@ if ('onhashchange' in window) { <span id="L310" class="LineNr">310 </span> <span class="Delimiter">}</span> <span id="L311" class="LineNr">311 </span> <span class="Delimiter">}</span> <span id="L312" class="LineNr">312 </span> <span class="Delimiter">{</span> -<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> overflow?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">" "</span> +<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">" "</span> <span id="L314" class="LineNr">314 </span> compare overflow?, <span class="Constant">0</span>/false <span id="L315" class="LineNr">315 </span> <span class="PreProc">break-if-=</span> <span id="L316" class="LineNr">316 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space"</span> @@ -385,7 +384,7 @@ if ('onhashchange' in window) { <span id="L321" class="LineNr">321 </span> compare *right-type-addr, <span class="Constant">0</span>/pair <span id="L322" class="LineNr">322 </span> <span class="PreProc">break-if-=</span> <span id="L323" class="LineNr">323 </span> <span class="Delimiter">{</span> -<span id="L324" class="LineNr">324 </span> <span class="PreProc">var</span> overflow?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">". "</span> +<span id="L324" class="LineNr">324 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">". "</span> <span id="L325" class="LineNr">325 </span> compare overflow?, <span class="Constant">0</span>/false <span id="L326" class="LineNr">326 </span> <span class="PreProc">break-if-=</span> <span id="L327" class="LineNr">327 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space"</span> @@ -398,7 +397,7 @@ if ('onhashchange' in window) { <span id="L334" class="LineNr">334 </span> <span class="PreProc">loop</span> <span id="L335" class="LineNr">335 </span> <span class="Delimiter">}</span> <span id="L336" class="LineNr">336 </span> <span class="Delimiter">{</span> -<span id="L337" class="LineNr">337 </span> <span class="PreProc">var</span> overflow?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">")"</span> +<span id="L337" class="LineNr">337 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">")"</span> <span id="L338" class="LineNr">338 </span> compare overflow?, <span class="Constant">0</span>/false <span id="L339" class="LineNr">339 </span> <span class="PreProc">break-if-=</span> <span id="L340" class="LineNr">340 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space for ')'"</span> @@ -408,26 +407,26 @@ if ('onhashchange' in window) { <span id="L344" class="LineNr">344 </span> <span id="L345" class="LineNr">345 </span><span class="muComment"># Most lisps intern nil, but we don't really have globals yet, so we'll be</span> <span id="L346" class="LineNr">346 </span><span class="muComment"># less efficient for now.</span> -<span id="L347" class="LineNr">347 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L347'>nil?</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L347" class="LineNr">347 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L347'>nil?</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L348" class="LineNr">348 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in <span id="L349" class="LineNr">349 </span> <span class="muComment"># if type != pair, return false</span> -<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> +<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> <span id="L351" class="LineNr">351 </span> compare *<span class="PreProc">type</span>, <span class="Constant">0</span>/pair <span id="L352" class="LineNr">352 </span> <span class="Delimiter">{</span> <span id="L353" class="LineNr">353 </span> <span class="PreProc">break-if-=</span> <span id="L354" class="LineNr">354 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L355" class="LineNr">355 </span> <span class="Delimiter">}</span> <span id="L356" class="LineNr">356 </span> <span class="muComment"># if left != null, return false</span> -<span id="L357" class="LineNr">357 </span> <span class="PreProc">var</span> left-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left -<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> left/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah +<span id="L357" class="LineNr">357 </span> <span class="PreProc">var</span> left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left +<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah <span id="L359" class="LineNr">359 </span> compare left, <span class="Constant">0</span> <span id="L360" class="LineNr">360 </span> <span class="Delimiter">{</span> <span id="L361" class="LineNr">361 </span> <span class="PreProc">break-if-=</span> <span id="L362" class="LineNr">362 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L363" class="LineNr">363 </span> <span class="Delimiter">}</span> <span id="L364" class="LineNr">364 </span> <span class="muComment"># if right != null, return false</span> -<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> right-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> right/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L367" class="LineNr">367 </span> compare right, <span class="Constant">0</span> <span id="L368" class="LineNr">368 </span> <span class="Delimiter">{</span> <span id="L369" class="LineNr">369 </span> <span class="PreProc">break-if-=</span> diff --git a/html/shell/read.mu.html b/html/shell/read.mu.html index 87c3825e..4588fdcc 100644 --- a/html/shell/read.mu.html +++ b/html/shell/read.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; } -.muRegEdx { color: #878700; } -.muComment { color: #005faf; } -.LineNr { } -.muRegEcx { color: #af875f; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } .Special { color: #ff6060; } -.muRegEax { color: #875f00; } +.LineNr { } +.Constant { color: #008787; } +.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } -.PreProc { color: #c000c0; } +.muComment { color: #005faf; } --> </style> @@ -64,7 +63,7 @@ if ('onhashchange' in window) { <span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x400</span>) <span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> tokens/<span class="muRegEdx">edx</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address tokens-storage <span id="L5" class="LineNr"> 5 </span> <a href='tokenize.mu.html#L13'>tokenize</a> in, tokens, trace -<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L7" class="LineNr"> 7 </span> compare error?, <span class="Constant">0</span>/false <span id="L8" class="LineNr"> 8 </span> <span class="Delimiter">{</span> <span id="L9" class="LineNr"> 9 </span> <span class="PreProc">break-if-=</span> @@ -74,7 +73,7 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> parenthesized-tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x400</span>) <span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> parenthesized-tokens/<span class="muRegEcx">ecx</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address parenthesized-tokens-storage <span id="L15" class="LineNr">15 </span> <a href='parenthesize.mu.html#L15'>parenthesize</a> tokens, parenthesized-tokens, trace -<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L17" class="LineNr">17 </span> compare error?, <span class="Constant">0</span>/false <span id="L18" class="LineNr">18 </span> <span class="Delimiter">{</span> <span id="L19" class="LineNr">19 </span> <span class="PreProc">break-if-=</span> diff --git a/html/shell/sandbox.mu.html b/html/shell/sandbox.mu.html index 0ee9fe36..c7c287c8 100644 --- a/html/shell/sandbox.mu.html +++ b/html/shell/sandbox.mu.html @@ -17,18 +17,17 @@ a { color:inherit; } .LineNr { } .Delimiter { color: #c000c0; } .CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .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; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -77,28 +76,28 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr"> 11 </span> <span id="L12" class="LineNr"> 12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L12'>initialize-sandbox</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>), fake-screen-width: int, fake-screen-height: int <span class="Delimiter">{</span> <span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data +<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data <span id="L15" class="LineNr"> 15 </span> <a href='../120allocate.subx.html#L43'>allocate</a> data-ah -<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L17" class="LineNr"> 17 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> data, <span class="Constant">0x2000</span>/default-gap-buffer-size=8KB <span id="L18" class="LineNr"> 18 </span> <span class="muComment">#</span> -<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> value-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, value +<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, value <span id="L20" class="LineNr"> 20 </span> populate-stream value-ah, <span class="Constant">0x1000</span>/4KB <span id="L21" class="LineNr"> 21 </span> <span class="muComment">#</span> <span id="L22" class="LineNr"> 22 </span> <span class="Delimiter">{</span> <span id="L23" class="LineNr"> 23 </span> compare fake-screen-width, <span class="Constant">0</span> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">break-if-=</span> -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> screen-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, screen-var +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, screen-var <span id="L26" class="LineNr"> 26 </span> <a href='cell.mu.html#L154'>new-fake-screen</a> screen-ah, fake-screen-width, fake-screen-height, <span class="Constant">1</span>/enable-pixel-graphics -<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> keyboard-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var <span id="L28" class="LineNr"> 28 </span> <a href='cell.mu.html#L185'>new-fake-keyboard</a> keyboard-ah, <span class="Constant">0x10</span>/keyboard-capacity <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">}</span> <span id="L30" class="LineNr"> 30 </span> <span class="muComment">#</span> -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get self, trace +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get self, trace <span id="L32" class="LineNr"> 32 </span> <a href='../120allocate.subx.html#L43'>allocate</a> trace-ah -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L34" class="LineNr"> 34 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">4</span>/max-depth, <span class="Constant">0x8000</span>/lines, <span class="Constant">0x80</span>/visible -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> cursor-in-data?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L36" class="LineNr"> 36 </span> copy-to *cursor-in-data?, <span class="Constant">1</span>/true <span id="L37" class="LineNr"> 37 </span><span class="Delimiter">}</span> <span id="L38" class="LineNr"> 38 </span> @@ -106,33 +105,33 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr"> 40 </span> <span id="L41" class="LineNr"> 41 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L41'>initialize-sandbox-with</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>), s: (addr array byte) <span class="Delimiter">{</span> <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data <span id="L44" class="LineNr"> 44 </span> <a href='../120allocate.subx.html#L43'>allocate</a> data-ah -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L46" class="LineNr"> 46 </span> <a href='gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> data, s -<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> value-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, value +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, value <span id="L48" class="LineNr"> 48 </span> populate-stream value-ah, <span class="Constant">0x1000</span>/4KB -<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get self, trace +<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get self, trace <span id="L50" class="LineNr"> 50 </span> <a href='../120allocate.subx.html#L43'>allocate</a> trace-ah -<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L52" class="LineNr"> 52 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">3</span>/max-depth, <span class="Constant">0x8000</span>/lines, <span class="Constant">0x80</span>/visible -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> cursor-in-data?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L54" class="LineNr"> 54 </span> copy-to *cursor-in-data?, <span class="Constant">1</span>/true <span id="L55" class="LineNr"> 55 </span><span class="Delimiter">}</span> <span id="L56" class="LineNr"> 56 </span> <span id="L57" class="LineNr"> 57 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L57'>allocate-sandbox-with</a></span> _out: (addr handle <a href='sandbox.mu.html#L1'>sandbox</a>), s: (addr array byte) <span class="Delimiter">{</span> -<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr handle <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _out +<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> out/eax: (addr handle <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _out <span id="L59" class="LineNr"> 59 </span> <a href='../120allocate.subx.html#L43'>allocate</a> out -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> out-addr/<span class="muRegEax">eax</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> out-addr/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out <span id="L61" class="LineNr"> 61 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> out-addr, s <span id="L62" class="LineNr"> 62 </span><span class="Delimiter">}</span> <span id="L63" class="LineNr"> 63 </span> <span id="L64" class="LineNr"> 64 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L64'>write-sandbox</a></span> out: (addr stream byte), _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Delimiter">{</span> -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> self/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self +<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L68" class="LineNr"> 68 </span> <span class="Delimiter">{</span> -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> len/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L429'>gap-buffer-length</a> data +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> len/eax: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L429'>gap-buffer-length</a> data <span id="L70" class="LineNr"> 70 </span> compare len, <span class="Constant">0</span> <span id="L71" class="LineNr"> 71 </span> <span class="PreProc">break-if-!=</span> <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">return</span> @@ -151,10 +150,10 @@ if ('onhashchange' in window) { <span id="L85" class="LineNr"> 85 </span> subtract-from xmax, <span class="Constant">1</span>/padding-right <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self <span id="L87" class="LineNr"> 87 </span> <span class="muComment"># data</span> -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> _data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> data/<span class="muRegEdx">edx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _data -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy xmin <span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymin <span id="L93" class="LineNr"> 93 </span> y <span class="Special"><-</span> <a href='sandbox.mu.html#L171'>maybe-render-empty-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, xmin, y <span id="L94" class="LineNr"> 94 </span> y <span class="Special"><-</span> <a href='sandbox.mu.html#L337'>maybe-render-keyboard</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, xmin, y @@ -162,32 +161,32 @@ if ('onhashchange' in window) { <span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">{</span> <span id="L97" class="LineNr"> 97 </span> compare cursor-in-editor?, <span class="Constant">0</span>/false <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">break-if-=</span> -<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> cursor-in-data-a/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> cursor-in-data-a/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L100" class="LineNr"> 100 </span> cursor-in-editor? <span class="Special"><-</span> copy *cursor-in-data-a <span id="L101" class="LineNr"> 101 </span> <span class="Delimiter">}</span> <span id="L102" class="LineNr"> 102 </span> x, y <span class="Special"><-</span> <a href='gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, x, y, xmax, ymax, cursor-in-editor?, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L103" class="LineNr"> 103 </span> y <span class="Special"><-</span> increment <span id="L104" class="LineNr"> 104 </span> <span class="muComment"># trace</span> -<span id="L105" class="LineNr"> 105 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get self, trace -<span id="L106" class="LineNr"> 106 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L105" class="LineNr"> 105 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get self, trace +<span id="L106" class="LineNr"> 106 </span> <span class="PreProc">var</span> _trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L107" class="LineNr"> 107 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> copy _trace -<span id="L108" class="LineNr"> 108 </span> <span class="PreProc">var</span> cursor-in-trace?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? +<span id="L108" class="LineNr"> 108 </span> <span class="PreProc">var</span> cursor-in-trace?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? <span id="L109" class="LineNr"> 109 </span> y <span class="Special"><-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, trace, xmin, y, xmax, ymax, *cursor-in-trace? <span id="L110" class="LineNr"> 110 </span> <span class="muComment"># value</span> <span id="L111" class="LineNr"> 111 </span> $render-sandbox:value: <span class="Delimiter">{</span> <span id="L112" class="LineNr"> 112 </span> compare y, ymax <span id="L113" class="LineNr"> 113 </span> <span class="PreProc">break-if->=</span> -<span id="L114" class="LineNr"> 114 </span> <span class="PreProc">var</span> value-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, value -<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> _value/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah +<span id="L114" class="LineNr"> 114 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, value +<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> _value/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah <span id="L116" class="LineNr"> 116 </span> <span class="PreProc">var</span> value/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> copy _value <span id="L117" class="LineNr"> 117 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> value -<span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> value +<span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> value <span id="L119" class="LineNr"> 119 </span> compare done?, <span class="Constant">0</span>/false <span id="L120" class="LineNr"> 120 </span> <span class="PreProc">break-if-!=</span> -<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L122" class="LineNr"> 122 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"=> "</span>, xmin, y, xmax, ymax, xmin, y, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L123" class="LineNr"> 123 </span> <span class="PreProc">var</span> x2/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy x -<span id="L124" class="LineNr"> 124 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L111'>draw-stream-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, value, x2, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L124" class="LineNr"> 124 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L111'>draw-stream-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, value, x2, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L125" class="LineNr"> 125 </span> <span class="Delimiter">}</span> <span id="L126" class="LineNr"> 126 </span> y <span class="Special"><-</span> add <span class="Constant">2</span> <span class="muComment"># padding</span> <span id="L127" class="LineNr"> 127 </span> <a href='sandbox.mu.html#L198'>maybe-render-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, xmin, y @@ -195,21 +194,21 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr"> 129 </span> <span id="L130" class="LineNr"> 130 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L130'>render-sandbox-menu</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Delimiter">{</span> <span id="L131" class="LineNr"> 131 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L132" class="LineNr"> 132 </span> <span class="PreProc">var</span> cursor-in-data?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L132" class="LineNr"> 132 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L133" class="LineNr"> 133 </span> compare *cursor-in-data?, <span class="Constant">0</span>/false <span id="L134" class="LineNr"> 134 </span> <span class="Delimiter">{</span> <span id="L135" class="LineNr"> 135 </span> <span class="PreProc">break-if-=</span> <span id="L136" class="LineNr"> 136 </span> <a href='sandbox.mu.html#L393'>render-sandbox-edit-menu</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self <span id="L137" class="LineNr"> 137 </span> <span class="PreProc">return</span> <span id="L138" class="LineNr"> 138 </span> <span class="Delimiter">}</span> -<span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> cursor-in-trace?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? +<span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> cursor-in-trace?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? <span id="L140" class="LineNr"> 140 </span> compare *cursor-in-trace?, <span class="Constant">0</span>/false <span id="L141" class="LineNr"> 141 </span> <span class="Delimiter">{</span> <span id="L142" class="LineNr"> 142 </span> <span class="PreProc">break-if-=</span> <span id="L143" class="LineNr"> 143 </span> <a href='trace.mu.html#L885'>render-trace-menu</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L144" class="LineNr"> 144 </span> <span class="PreProc">return</span> <span id="L145" class="LineNr"> 145 </span> <span class="Delimiter">}</span> -<span id="L146" class="LineNr"> 146 </span> <span class="PreProc">var</span> cursor-in-keyboard?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? +<span id="L146" class="LineNr"> 146 </span> <span class="PreProc">var</span> cursor-in-keyboard?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? <span id="L147" class="LineNr"> 147 </span> compare *cursor-in-keyboard?, <span class="Constant">0</span>/false <span id="L148" class="LineNr"> 148 </span> <span class="Delimiter">{</span> <span id="L149" class="LineNr"> 149 </span> <span class="PreProc">break-if-=</span> @@ -221,10 +220,10 @@ if ('onhashchange' in window) { <span id="L155" class="LineNr"> 155 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L155'>clear-sandbox-output</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>), xmin: int, ymin: int, xmax: int, ymax: int <span class="Delimiter">{</span> <span id="L156" class="LineNr"> 156 </span> <span class="muComment"># render just enough of the sandbox to figure out what to erase</span> <span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data -<span id="L159" class="LineNr"> 159 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data +<span id="L159" class="LineNr"> 159 </span> <span class="PreProc">var</span> _data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L160" class="LineNr"> 160 </span> <span class="PreProc">var</span> data/<span class="muRegEdx">edx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _data -<span id="L161" class="LineNr"> 161 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L161" class="LineNr"> 161 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy xmin <span id="L162" class="LineNr"> 162 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymin <span id="L163" class="LineNr"> 163 </span> y <span class="Special"><-</span> <a href='sandbox.mu.html#L171'>maybe-render-empty-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, xmin, y <span id="L164" class="LineNr"> 164 </span> y <span class="Special"><-</span> <a href='sandbox.mu.html#L337'>maybe-render-keyboard</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, xmin, y @@ -236,8 +235,8 @@ if ('onhashchange' in window) { <span id="L170" class="LineNr"> 170 </span> <span id="L171" class="LineNr"> 171 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L171'>maybe-render-empty-screen</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>), xmin: int, ymin: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L172" class="LineNr"> 172 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L173" class="LineNr"> 173 </span> <span class="PreProc">var</span> screen-obj-cell-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, screen-var -<span id="L174" class="LineNr"> 174 </span> <span class="PreProc">var</span> screen-obj-cell/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-cell-ah +<span id="L173" class="LineNr"> 173 </span> <span class="PreProc">var</span> screen-obj-cell-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, screen-var +<span id="L174" class="LineNr"> 174 </span> <span class="PreProc">var</span> screen-obj-cell/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-cell-ah <span id="L175" class="LineNr"> 175 </span> compare screen-obj-cell, <span class="Constant">0</span> <span id="L176" class="LineNr"> 176 </span> <span class="Delimiter">{</span> <span id="L177" class="LineNr"> 177 </span> <span class="PreProc">break-if-!=</span> @@ -250,10 +249,10 @@ if ('onhashchange' in window) { <span id="L184" class="LineNr"> 184 </span> <span class="PreProc">return</span> ymin <span class="muComment"># silently give up on rendering the screen</span> <span id="L185" class="LineNr"> 185 </span> <span class="Delimiter">}</span> <span id="L186" class="LineNr"> 186 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymin -<span id="L187" class="LineNr"> 187 </span> <span class="PreProc">var</span> screen-obj-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get screen-obj-cell, screen-data -<span id="L188" class="LineNr"> 188 </span> <span class="PreProc">var</span> _screen-obj/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-ah +<span id="L187" class="LineNr"> 187 </span> <span class="PreProc">var</span> screen-obj-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get screen-obj-cell, screen-data +<span id="L188" class="LineNr"> 188 </span> <span class="PreProc">var</span> _screen-obj/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-ah <span id="L189" class="LineNr"> 189 </span> <span class="PreProc">var</span> screen-obj/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen-obj -<span id="L190" class="LineNr"> 190 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"screen: "</span>, xmin, <span class="Constant">0x99</span>/xmax, y, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L190" class="LineNr"> 190 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"screen: "</span>, xmin, <span class="Constant">0x99</span>/xmax, y, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L191" class="LineNr"> 191 </span> x <span class="Special"><-</span> copy xmin <span id="L192" class="LineNr"> 192 </span> x <span class="Special"><-</span> add <span class="Constant">2</span> <span id="L193" class="LineNr"> 193 </span> y <span class="Special"><-</span> increment @@ -263,8 +262,8 @@ if ('onhashchange' in window) { <span id="L197" class="LineNr"> 197 </span> <span id="L198" class="LineNr"> 198 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L198'>maybe-render-screen</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>), xmin: int, ymin: int <span class="Delimiter">{</span> <span id="L199" class="LineNr"> 199 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L200" class="LineNr"> 200 </span> <span class="PreProc">var</span> screen-obj-cell-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, screen-var -<span id="L201" class="LineNr"> 201 </span> <span class="PreProc">var</span> screen-obj-cell/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-cell-ah +<span id="L200" class="LineNr"> 200 </span> <span class="PreProc">var</span> screen-obj-cell-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, screen-var +<span id="L201" class="LineNr"> 201 </span> <span class="PreProc">var</span> screen-obj-cell/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-cell-ah <span id="L202" class="LineNr"> 202 </span> compare screen-obj-cell, <span class="Constant">0</span> <span id="L203" class="LineNr"> 203 </span> <span class="Delimiter">{</span> <span id="L204" class="LineNr"> 204 </span> <span class="PreProc">break-if-!=</span> @@ -276,16 +275,16 @@ if ('onhashchange' in window) { <span id="L210" class="LineNr"> 210 </span> <span class="PreProc">break-if-=</span> <span id="L211" class="LineNr"> 211 </span> <span class="PreProc">return</span> <span class="muComment"># silently give up on rendering the screen</span> <span id="L212" class="LineNr"> 212 </span> <span class="Delimiter">}</span> -<span id="L213" class="LineNr"> 213 </span> <span class="PreProc">var</span> screen-obj-ah/<span class="muRegEax">eax</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get screen-obj-cell, screen-data -<span id="L214" class="LineNr"> 214 </span> <span class="PreProc">var</span> _screen-obj/<span class="muRegEax">eax</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-ah +<span id="L213" class="LineNr"> 213 </span> <span class="PreProc">var</span> screen-obj-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get screen-obj-cell, screen-data +<span id="L214" class="LineNr"> 214 </span> <span class="PreProc">var</span> _screen-obj/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-obj-ah <span id="L215" class="LineNr"> 215 </span> <span class="PreProc">var</span> screen-obj/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen-obj <span id="L216" class="LineNr"> 216 </span> <span class="Delimiter">{</span> -<span id="L217" class="LineNr"> 217 </span> <span class="PreProc">var</span> screen-empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L294'>fake-screen-empty?</a> screen-obj +<span id="L217" class="LineNr"> 217 </span> <span class="PreProc">var</span> screen-empty?/eax: boolean <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L294'>fake-screen-empty?</a> screen-obj <span id="L218" class="LineNr"> 218 </span> compare screen-empty?, <span class="Constant">0</span>/false <span id="L219" class="LineNr"> 219 </span> <span class="PreProc">break-if-=</span> <span id="L220" class="LineNr"> 220 </span> <span class="PreProc">return</span> <span id="L221" class="LineNr"> 221 </span> <span class="Delimiter">}</span> -<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"screen: "</span>, xmin, <span class="Constant">0x99</span>/xmax, ymin, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"screen: "</span>, xmin, <span class="Constant">0x99</span>/xmax, ymin, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L223" class="LineNr"> 223 </span> x <span class="Special"><-</span> copy xmin <span id="L224" class="LineNr"> 224 </span> x <span class="Special"><-</span> add <span class="Constant">2</span> <span id="L225" class="LineNr"> 225 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymin @@ -327,7 +326,7 @@ if ('onhashchange' in window) { <span id="L261" class="LineNr"> 261 </span> <span class="muComment"># pixel data</span> <span id="L262" class="LineNr"> 262 </span> <span class="Delimiter">{</span> <span id="L263" class="LineNr"> 263 </span> <span class="muComment"># screen top left pixels x y width height</span> -<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy xmin <span id="L265" class="LineNr"> 265 </span> tmp <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width <span id="L266" class="LineNr"> 266 </span> <span class="PreProc">var</span> left: int <span id="L267" class="LineNr"> 267 </span> copy-to left, tmp @@ -335,8 +334,8 @@ if ('onhashchange' in window) { <span id="L269" class="LineNr"> 269 </span> tmp <span class="Special"><-</span> shift-left <span class="Constant">4</span>/log2-font-height <span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> top: int <span id="L271" class="LineNr"> 271 </span> copy-to top, tmp -<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> pixels-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get target-screen, pixels -<span id="L273" class="LineNr"> 273 </span> <span class="PreProc">var</span> _pixels/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *pixels-ah +<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> pixels-ah/eax: (addr handle array byte) <span class="Special"><-</span> get target-screen, pixels +<span id="L273" class="LineNr"> 273 </span> <span class="PreProc">var</span> _pixels/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *pixels-ah <span id="L274" class="LineNr"> 274 </span> <span class="PreProc">var</span> pixels/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _pixels <span id="L275" class="LineNr"> 275 </span> compare pixels, <span class="Constant">0</span> <span id="L276" class="LineNr"> 276 </span> <span class="PreProc">break-if-=</span> @@ -350,7 +349,7 @@ if ('onhashchange' in window) { <span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> width-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get target-screen, width <span id="L285" class="LineNr"> 285 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *width-addr <span id="L286" class="LineNr"> 286 </span> width <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width -<span id="L287" class="LineNr"> 287 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L287" class="LineNr"> 287 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L288" class="LineNr"> 288 </span> <span class="Delimiter">{</span> <span id="L289" class="LineNr"> 289 </span> compare x, width <span id="L290" class="LineNr"> 290 </span> <span class="PreProc">break-if->=</span> @@ -359,7 +358,7 @@ if ('onhashchange' in window) { <span id="L293" class="LineNr"> 293 </span> <span class="PreProc">var</span> color-addr/<span class="muRegEcx">ecx</span>: (addr byte) <span class="Special"><-</span> index pixels, idx <span id="L294" class="LineNr"> 294 </span> <span class="PreProc">var</span> color/<span class="muRegEcx">ecx</span>: byte <span class="Special"><-</span> copy-byte *color-addr <span id="L295" class="LineNr"> 295 </span> <span class="PreProc">var</span> color2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy color -<span id="L296" class="LineNr"> 296 </span> <span class="PreProc">var</span> x2/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy x +<span id="L296" class="LineNr"> 296 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy x <span id="L297" class="LineNr"> 297 </span> x2 <span class="Special"><-</span> add left <span id="L298" class="LineNr"> 298 </span> <span class="PreProc">var</span> y2/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy y <span id="L299" class="LineNr"> 299 </span> y2 <span class="Special"><-</span> add top @@ -374,10 +373,10 @@ if ('onhashchange' in window) { <span id="L308" class="LineNr"> 308 </span> <span class="Delimiter">}</span> <span id="L309" class="LineNr"> 309 </span><span class="Delimiter">}</span> <span id="L310" class="LineNr"> 310 </span> -<span id="L311" class="LineNr"> 311 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L311'>has-keyboard?</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L311" class="LineNr"> 311 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L311'>has-keyboard?</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L312" class="LineNr"> 312 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> keyboard-obj-cell-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var -<span id="L314" class="LineNr"> 314 </span> <span class="PreProc">var</span> keyboard-obj-cell/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-obj-cell-ah +<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> keyboard-obj-cell-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var +<span id="L314" class="LineNr"> 314 </span> <span class="PreProc">var</span> keyboard-obj-cell/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-obj-cell-ah <span id="L315" class="LineNr"> 315 </span> compare keyboard-obj-cell, <span class="Constant">0</span> <span id="L316" class="LineNr"> 316 </span> <span class="Delimiter">{</span> <span id="L317" class="LineNr"> 317 </span> <span class="PreProc">break-if-!=</span> @@ -389,8 +388,8 @@ if ('onhashchange' in window) { <span id="L323" class="LineNr"> 323 </span> <span class="PreProc">break-if-=</span> <span id="L324" class="LineNr"> 324 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L325" class="LineNr"> 325 </span> <span class="Delimiter">}</span> -<span id="L326" class="LineNr"> 326 </span> <span class="PreProc">var</span> keyboard-obj-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get keyboard-obj-cell, keyboard-data -<span id="L327" class="LineNr"> 327 </span> <span class="PreProc">var</span> _keyboard-obj/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-obj-ah +<span id="L326" class="LineNr"> 326 </span> <span class="PreProc">var</span> keyboard-obj-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get keyboard-obj-cell, keyboard-data +<span id="L327" class="LineNr"> 327 </span> <span class="PreProc">var</span> _keyboard-obj/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-obj-ah <span id="L328" class="LineNr"> 328 </span> <span class="PreProc">var</span> keyboard-obj/<span class="muRegEdx">edx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _keyboard-obj <span id="L329" class="LineNr"> 329 </span> compare keyboard-obj, <span class="Constant">0</span> <span id="L330" class="LineNr"> 330 </span> <span class="Delimiter">{</span> @@ -402,8 +401,8 @@ if ('onhashchange' in window) { <span id="L336" class="LineNr"> 336 </span> <span id="L337" class="LineNr"> 337 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L337'>maybe-render-keyboard</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>), xmin: int, ymin: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L338" class="LineNr"> 338 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> keyboard-obj-cell-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var -<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> keyboard-obj-cell/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-obj-cell-ah +<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> keyboard-obj-cell-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var +<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> keyboard-obj-cell/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-obj-cell-ah <span id="L341" class="LineNr"> 341 </span> compare keyboard-obj-cell, <span class="Constant">0</span> <span id="L342" class="LineNr"> 342 </span> <span class="Delimiter">{</span> <span id="L343" class="LineNr"> 343 </span> <span class="PreProc">break-if-!=</span> @@ -415,12 +414,12 @@ if ('onhashchange' in window) { <span id="L349" class="LineNr"> 349 </span> <span class="PreProc">break-if-=</span> <span id="L350" class="LineNr"> 350 </span> <span class="PreProc">return</span> ymin <span class="muComment"># silently give up on rendering the keyboard</span> <span id="L351" class="LineNr"> 351 </span> <span class="Delimiter">}</span> -<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> keyboard-obj-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get keyboard-obj-cell, keyboard-data -<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> _keyboard-obj/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-obj-ah +<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> keyboard-obj-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get keyboard-obj-cell, keyboard-data +<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> _keyboard-obj/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-obj-ah <span id="L354" class="LineNr"> 354 </span> <span class="PreProc">var</span> keyboard-obj/<span class="muRegEdx">edx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _keyboard-obj <span id="L355" class="LineNr"> 355 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymin <span id="L356" class="LineNr"> 356 </span> y <span class="Special"><-</span> increment <span class="muComment"># padding</span> -<span id="L357" class="LineNr"> 357 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"keyboard: "</span>, xmin, <span class="Constant">0x99</span>/xmax, y, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg +<span id="L357" class="LineNr"> 357 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"keyboard: "</span>, xmin, <span class="Constant">0x99</span>/xmax, y, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L358" class="LineNr"> 358 </span> <span class="PreProc">var</span> cursor-in-keyboard?/<span class="muRegEsi">esi</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? <span id="L359" class="LineNr"> 359 </span> y <span class="Special"><-</span> <a href='sandbox.mu.html#L364'>render-keyboard</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, keyboard-obj, x, y, *cursor-in-keyboard? <span id="L360" class="LineNr"> 360 </span> y <span class="Special"><-</span> increment <span class="muComment"># padding</span> @@ -432,7 +431,7 @@ if ('onhashchange' in window) { <span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x10</span>/keyboard-capacity <span id="L367" class="LineNr"> 367 </span> <span class="PreProc">var</span> y/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy ymin <span id="L368" class="LineNr"> 368 </span> <span class="muComment"># keyboard</span> -<span id="L369" class="LineNr"> 369 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L369" class="LineNr"> 369 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy xmin <span id="L370" class="LineNr"> 370 </span> <span class="PreProc">var</span> xmax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x <span id="L371" class="LineNr"> 371 </span> xmax <span class="Special"><-</span> add <span class="Constant">0x10</span> <span id="L372" class="LineNr"> 372 </span> <span class="PreProc">var</span> ymax/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy ymin @@ -445,19 +444,19 @@ if ('onhashchange' in window) { <span id="L379" class="LineNr"> 379 </span> <span id="L380" class="LineNr"> 380 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L380'>print-screen-cell-of-fake-screen</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _target: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), x: int, y: int <span class="Delimiter">{</span> <span id="L381" class="LineNr"> 381 </span> <span class="PreProc">var</span> target/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _target -<span id="L382" class="LineNr"> 382 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='../500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get target, data -<span id="L383" class="LineNr"> 383 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='../500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L382" class="LineNr"> 382 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='../500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> get target, data +<span id="L383" class="LineNr"> 383 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='../500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L384" class="LineNr"> 384 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L136'>screen-cell-index</a> target, x, y <span id="L385" class="LineNr"> 385 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='../500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> compute-offset data, index <span id="L386" class="LineNr"> 386 </span> <span class="PreProc">var</span> src-cell/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L27'>screen-cell</a>) <span class="Special"><-</span> index data, offset -<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> src-grapheme/<span class="muRegEax">eax</span>: (addr grapheme) <span class="Special"><-</span> get src-cell, data +<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> src-grapheme/eax: (addr grapheme) <span class="Special"><-</span> get src-cell, data <span id="L388" class="LineNr"> 388 </span> <span class="PreProc">var</span> src-color/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get src-cell, color <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">var</span> src-background-color/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get src-cell, background-color <span id="L390" class="LineNr"> 390 </span> <a href='../501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *src-grapheme, *src-color, *src-background-color <span id="L391" class="LineNr"> 391 </span><span class="Delimiter">}</span> <span id="L392" class="LineNr"> 392 </span> <span id="L393" class="LineNr"> 393 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L393'>render-sandbox-edit-menu</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Delimiter">{</span> -<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> _width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L395" class="LineNr"> 395 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L396" class="LineNr"> 396 </span> _width, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L397" class="LineNr"> 397 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _width @@ -474,8 +473,8 @@ if ('onhashchange' in window) { <span id="L408" class="LineNr"> 408 </span> <a href='../501draw-text.mu.html#L133'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" ^g "</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight <span id="L409" class="LineNr"> 409 </span> <a href='../501draw-text.mu.html#L133'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" go to "</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L410" class="LineNr"> 410 </span> $render-sandbox-edit-menu:render-ctrl-m: <span class="Delimiter">{</span> -<span id="L411" class="LineNr"> 411 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L901'>has-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L901'>has-trace?</a> self +<span id="L411" class="LineNr"> 411 </span> <span class="PreProc">var</span> self/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self +<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L901'>has-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L901'>has-trace?</a> self <span id="L413" class="LineNr"> 413 </span> compare <a href='sandbox.mu.html#L901'>has-trace?</a>, <span class="Constant">0</span>/false <span id="L414" class="LineNr"> 414 </span> <span class="Delimiter">{</span> <span id="L415" class="LineNr"> 415 </span> <span class="PreProc">break-if-=</span> @@ -497,7 +496,7 @@ if ('onhashchange' in window) { <span id="L431" class="LineNr"> 431 </span><span class="Delimiter">}</span> <span id="L432" class="LineNr"> 432 </span> <span id="L433" class="LineNr"> 433 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L433'>render-keyboard-menu</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> -<span id="L434" class="LineNr"> 434 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L434" class="LineNr"> 434 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L435" class="LineNr"> 435 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L436" class="LineNr"> 436 </span> width, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L437" class="LineNr"> 437 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy height @@ -523,7 +522,7 @@ if ('onhashchange' in window) { <span id="L457" class="LineNr"> 457 </span> compare key, <span class="Constant">0x13</span>/ctrl-s <span id="L458" class="LineNr"> 458 </span> <span class="PreProc">break-if-!=</span> <span id="L459" class="LineNr"> 459 </span> <span class="muComment"># if cursor is in trace, skip</span> -<span id="L460" class="LineNr"> 460 </span> <span class="PreProc">var</span> cursor-in-trace?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? +<span id="L460" class="LineNr"> 460 </span> <span class="PreProc">var</span> cursor-in-trace?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? <span id="L461" class="LineNr"> 461 </span> compare *cursor-in-trace?, <span class="Constant">0</span>/false <span id="L462" class="LineNr"> 462 </span> <span class="PreProc">break-if-!=</span> <span id="L463" class="LineNr"> 463 </span> <span class="muComment"># minor gotcha here: any bindings created later in this iteration won't be</span> @@ -539,26 +538,26 @@ if ('onhashchange' in window) { <span id="L473" class="LineNr"> 473 </span> <span class="PreProc">break-if-!=</span> <span id="L474" class="LineNr"> 474 </span> <span class="muComment"># if cursor in data, switch to trace or fall through to keyboard</span> <span id="L475" class="LineNr"> 475 </span> <span class="Delimiter">{</span> -<span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> cursor-in-data?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L477" class="LineNr"> 477 </span> compare *cursor-in-data?, <span class="Constant">0</span>/false <span id="L478" class="LineNr"> 478 </span> <span class="PreProc">break-if-=</span> -<span id="L479" class="LineNr"> 479 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L901'>has-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L901'>has-trace?</a> self +<span id="L479" class="LineNr"> 479 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L901'>has-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L901'>has-trace?</a> self <span id="L480" class="LineNr"> 480 </span> compare <a href='sandbox.mu.html#L901'>has-trace?</a>, <span class="Constant">0</span>/false <span id="L481" class="LineNr"> 481 </span> <span class="Delimiter">{</span> <span id="L482" class="LineNr"> 482 </span> <span class="PreProc">break-if-=</span> -<span id="L483" class="LineNr"> 483 </span> <span class="PreProc">var</span> cursor-in-data?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L483" class="LineNr"> 483 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L484" class="LineNr"> 484 </span> copy-to *cursor-in-data?, <span class="Constant">0</span>/false -<span id="L485" class="LineNr"> 485 </span> <span class="PreProc">var</span> cursor-in-trace?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? +<span id="L485" class="LineNr"> 485 </span> <span class="PreProc">var</span> cursor-in-trace?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? <span id="L486" class="LineNr"> 486 </span> copy-to *cursor-in-trace?, <span class="Constant">1</span>/false <span id="L487" class="LineNr"> 487 </span> <span class="PreProc">return</span> <span id="L488" class="LineNr"> 488 </span> <span class="Delimiter">}</span> -<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L311'>has-keyboard?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L311'>has-keyboard?</a> self +<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L311'>has-keyboard?</a>/eax: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L311'>has-keyboard?</a> self <span id="L490" class="LineNr"> 490 </span> compare <a href='sandbox.mu.html#L311'>has-keyboard?</a>, <span class="Constant">0</span>/false <span id="L491" class="LineNr"> 491 </span> <span class="Delimiter">{</span> <span id="L492" class="LineNr"> 492 </span> <span class="PreProc">break-if-=</span> -<span id="L493" class="LineNr"> 493 </span> <span class="PreProc">var</span> cursor-in-data?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L493" class="LineNr"> 493 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L494" class="LineNr"> 494 </span> copy-to *cursor-in-data?, <span class="Constant">0</span>/false -<span id="L495" class="LineNr"> 495 </span> <span class="PreProc">var</span> cursor-in-keyboard?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? +<span id="L495" class="LineNr"> 495 </span> <span class="PreProc">var</span> cursor-in-keyboard?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? <span id="L496" class="LineNr"> 496 </span> copy-to *cursor-in-keyboard?, <span class="Constant">1</span>/false <span id="L497" class="LineNr"> 497 </span> <span class="PreProc">return</span> <span id="L498" class="LineNr"> 498 </span> <span class="Delimiter">}</span> @@ -566,12 +565,12 @@ if ('onhashchange' in window) { <span id="L500" class="LineNr"> 500 </span> <span class="Delimiter">}</span> <span id="L501" class="LineNr"> 501 </span> <span class="muComment"># if cursor in trace, switch to keyboard or fall through to data</span> <span id="L502" class="LineNr"> 502 </span> <span class="Delimiter">{</span> -<span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> cursor-in-trace?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? +<span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> cursor-in-trace?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? <span id="L504" class="LineNr"> 504 </span> compare *cursor-in-trace?, <span class="Constant">0</span>/false <span id="L505" class="LineNr"> 505 </span> <span class="PreProc">break-if-=</span> <span id="L506" class="LineNr"> 506 </span> copy-to *cursor-in-trace?, <span class="Constant">0</span>/false <span id="L507" class="LineNr"> 507 </span> <span class="PreProc">var</span> cursor-target/<span class="muRegEcx">ecx</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? -<span id="L508" class="LineNr"> 508 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L311'>has-keyboard?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L311'>has-keyboard?</a> self +<span id="L508" class="LineNr"> 508 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L311'>has-keyboard?</a>/eax: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L311'>has-keyboard?</a> self <span id="L509" class="LineNr"> 509 </span> compare <a href='sandbox.mu.html#L311'>has-keyboard?</a>, <span class="Constant">0</span>/false <span id="L510" class="LineNr"> 510 </span> <span class="Delimiter">{</span> <span id="L511" class="LineNr"> 511 </span> <span class="PreProc">break-if-!=</span> @@ -582,11 +581,11 @@ if ('onhashchange' in window) { <span id="L516" class="LineNr"> 516 </span> <span class="Delimiter">}</span> <span id="L517" class="LineNr"> 517 </span> <span class="muComment"># otherwise if cursor in keyboard, switch to data</span> <span id="L518" class="LineNr"> 518 </span> <span class="Delimiter">{</span> -<span id="L519" class="LineNr"> 519 </span> <span class="PreProc">var</span> cursor-in-keyboard?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? +<span id="L519" class="LineNr"> 519 </span> <span class="PreProc">var</span> cursor-in-keyboard?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? <span id="L520" class="LineNr"> 520 </span> compare *cursor-in-keyboard?, <span class="Constant">0</span>/false <span id="L521" class="LineNr"> 521 </span> <span class="PreProc">break-if-=</span> <span id="L522" class="LineNr"> 522 </span> copy-to *cursor-in-keyboard?, <span class="Constant">0</span>/false -<span id="L523" class="LineNr"> 523 </span> <span class="PreProc">var</span> cursor-in-data?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L523" class="LineNr"> 523 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L524" class="LineNr"> 524 </span> copy-to *cursor-in-data?, <span class="Constant">1</span>/true <span id="L525" class="LineNr"> 525 </span> <span class="PreProc">return</span> <span id="L526" class="LineNr"> 526 </span> <span class="Delimiter">}</span> @@ -594,21 +593,21 @@ if ('onhashchange' in window) { <span id="L528" class="LineNr"> 528 </span> <span class="Delimiter">}</span> <span id="L529" class="LineNr"> 529 </span> <span class="muComment"># if cursor in data, send key to data</span> <span id="L530" class="LineNr"> 530 </span> <span class="Delimiter">{</span> -<span id="L531" class="LineNr"> 531 </span> <span class="PreProc">var</span> cursor-in-data?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? +<span id="L531" class="LineNr"> 531 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L532" class="LineNr"> 532 </span> compare *cursor-in-data?, <span class="Constant">0</span>/false <span id="L533" class="LineNr"> 533 </span> <span class="PreProc">break-if-=</span> -<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data -<span id="L535" class="LineNr"> 535 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get self, data +<span id="L535" class="LineNr"> 535 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L536" class="LineNr"> 536 </span> <a href='gap-buffer.mu.html#L1204'>edit-gap-buffer</a> data, key <span id="L537" class="LineNr"> 537 </span> <span class="PreProc">return</span> <span id="L538" class="LineNr"> 538 </span> <span class="Delimiter">}</span> <span id="L539" class="LineNr"> 539 </span> <span class="muComment"># if cursor in keyboard, send key to keyboard</span> <span id="L540" class="LineNr"> 540 </span> <span class="Delimiter">{</span> -<span id="L541" class="LineNr"> 541 </span> <span class="PreProc">var</span> cursor-in-keyboard?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? +<span id="L541" class="LineNr"> 541 </span> <span class="PreProc">var</span> cursor-in-keyboard?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-keyboard? <span id="L542" class="LineNr"> 542 </span> compare *cursor-in-keyboard?, <span class="Constant">0</span>/false <span id="L543" class="LineNr"> 543 </span> <span class="PreProc">break-if-=</span> -<span id="L544" class="LineNr"> 544 </span> <span class="PreProc">var</span> inner-keyboard-var-ah/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var -<span id="L545" class="LineNr"> 545 </span> <span class="PreProc">var</span> inner-keyboard-var/<span class="muRegEax">eax</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *inner-keyboard-var-ah +<span id="L544" class="LineNr"> 544 </span> <span class="PreProc">var</span> inner-keyboard-var-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var +<span id="L545" class="LineNr"> 545 </span> <span class="PreProc">var</span> inner-keyboard-var/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *inner-keyboard-var-ah <span id="L546" class="LineNr"> 546 </span> compare inner-keyboard-var, <span class="Constant">0</span> <span id="L547" class="LineNr"> 547 </span> <span class="Delimiter">{</span> <span id="L548" class="LineNr"> 548 </span> <span class="PreProc">break-if-!=</span> @@ -620,24 +619,24 @@ if ('onhashchange' in window) { <span id="L554" class="LineNr"> 554 </span> <span class="PreProc">break-if-=</span> <span id="L555" class="LineNr"> 555 </span> <span class="PreProc">return</span> <span id="L556" class="LineNr"> 556 </span> <span class="Delimiter">}</span> -<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> keyboard-ah/<span class="muRegEax">eax</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get inner-keyboard-var, keyboard-data -<span id="L558" class="LineNr"> 558 </span> <span class="PreProc">var</span> keyboard/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah +<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get inner-keyboard-var, keyboard-data +<span id="L558" class="LineNr"> 558 </span> <span class="PreProc">var</span> keyboard/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah <span id="L559" class="LineNr"> 559 </span> <a href='gap-buffer.mu.html#L1204'>edit-gap-buffer</a> keyboard, key <span id="L560" class="LineNr"> 560 </span> <span class="PreProc">return</span> <span id="L561" class="LineNr"> 561 </span> <span class="Delimiter">}</span> <span id="L562" class="LineNr"> 562 </span> <span class="muComment"># if cursor in trace, send key to trace</span> <span id="L563" class="LineNr"> 563 </span> <span class="Delimiter">{</span> -<span id="L564" class="LineNr"> 564 </span> <span class="PreProc">var</span> cursor-in-trace?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? +<span id="L564" class="LineNr"> 564 </span> <span class="PreProc">var</span> cursor-in-trace?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-trace? <span id="L565" class="LineNr"> 565 </span> compare *cursor-in-trace?, <span class="Constant">0</span>/false <span id="L566" class="LineNr"> 566 </span> <span class="PreProc">break-if-=</span> -<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get self, trace -<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get self, trace +<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L569" class="LineNr"> 569 </span> <span class="muComment"># if expanding the trace, first check if we need to run the sandbox again with a deeper trace</span> <span id="L570" class="LineNr"> 570 </span> <span class="Delimiter">{</span> <span id="L571" class="LineNr"> 571 </span> compare key, <span class="Constant">0xa</span>/newline <span id="L572" class="LineNr"> 572 </span> <span class="PreProc">break-if-!=</span> <span id="L573" class="LineNr"> 573 </span> <span class="Delimiter">{</span> -<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> need-rerun?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L1139'>cursor-too-deep?</a> trace +<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> need-rerun?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L1139'>cursor-too-deep?</a> trace <span id="L575" class="LineNr"> 575 </span> compare need-rerun?, <span class="Constant">0</span>/false <span id="L576" class="LineNr"> 576 </span> <span class="Delimiter">}</span> <span id="L577" class="LineNr"> 577 </span> <span class="PreProc">break-if-=</span> @@ -667,15 +666,15 @@ if ('onhashchange' in window) { <span id="L601" class="LineNr"> 601 </span> <span class="PreProc">var</span> eval-result-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address eval-result-h <span id="L602" class="LineNr"> 602 </span> <span class="PreProc">var</span> definitions-created-storage: (stream int <span class="Constant">0x10</span>) <span id="L603" class="LineNr"> 603 </span> <span class="PreProc">var</span> definitions-created/<span class="muRegEdx">edx</span>: (addr stream int) <span class="Special"><-</span> address definitions-created-storage -<span id="L604" class="LineNr"> 604 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get self, trace -<span id="L605" class="LineNr"> 605 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L604" class="LineNr"> 604 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get self, trace +<span id="L605" class="LineNr"> 605 </span> <span class="PreProc">var</span> _trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L606" class="LineNr"> 606 </span> <span class="PreProc">var</span> trace/<span class="muRegEbx">ebx</span>: (addr trace) <span class="Special"><-</span> copy _trace <span id="L607" class="LineNr"> 607 </span> <a href='trace.mu.html#L80'>clear-trace</a> trace -<span id="L608" class="LineNr"> 608 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, screen-var +<span id="L608" class="LineNr"> 608 </span> <span class="PreProc">var</span> tmp/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, screen-var <span id="L609" class="LineNr"> 609 </span> <span class="PreProc">var</span> inner-screen-var: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span id="L610" class="LineNr"> 610 </span> copy-to inner-screen-var, tmp <span id="L611" class="LineNr"> 611 </span> <a href='cell.mu.html#L164'>clear-screen-var</a> inner-screen-var -<span id="L612" class="LineNr"> 612 </span> <span class="PreProc">var</span> inner-keyboard-var/<span class="muRegEax">eax</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var +<span id="L612" class="LineNr"> 612 </span> <span class="PreProc">var</span> inner-keyboard-var/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get self, keyboard-var <span id="L613" class="LineNr"> 613 </span> <a href='cell.mu.html#L195'>rewind-keyboard-var</a> inner-keyboard-var <span class="muComment"># don't clear keys from before</span> <span id="L614" class="LineNr"> 614 </span> <span class="muComment">#</span> <span id="L615" class="LineNr"> 615 </span> <a href='environment.mu.html#L372'>read-and-evaluate-and-save-gap-buffer-to-globals</a> data-ah, eval-result-ah, globals, definitions-created, trace, inner-screen-var, inner-keyboard-var @@ -684,19 +683,19 @@ if ('onhashchange' in window) { <span id="L618" class="LineNr"> 618 </span> compare globals, <span class="Constant">0</span> <span id="L619" class="LineNr"> 619 </span> <span class="PreProc">break-if-=</span> <span id="L620" class="LineNr"> 620 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> definitions-created -<span id="L621" class="LineNr"> 621 </span> <span class="PreProc">var</span> no-definitions?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> definitions-created +<span id="L621" class="LineNr"> 621 </span> <span class="PreProc">var</span> no-definitions?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> definitions-created <span id="L622" class="LineNr"> 622 </span> compare no-definitions?, <span class="Constant">0</span>/false <span id="L623" class="LineNr"> 623 </span> <span class="PreProc">break-if-!=</span> <span id="L624" class="LineNr"> 624 </span> <span class="muComment"># some definitions were created; clear the gap buffer</span> -<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L626" class="LineNr"> 626 </span> <span class="PreProc">var</span> capacity/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L43'>gap-buffer-capacity</a> data <span id="L627" class="LineNr"> 627 </span> <a href='../120allocate.subx.html#L43'>allocate</a> data-ah -<span id="L628" class="LineNr"> 628 </span> <span class="PreProc">var</span> new-data/<span class="muRegEax">eax</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L628" class="LineNr"> 628 </span> <span class="PreProc">var</span> new-data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L629" class="LineNr"> 629 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> new-data, capacity <span id="L630" class="LineNr"> 630 </span> <span class="Delimiter">}</span> <span id="L631" class="LineNr"> 631 </span> <span class="muComment"># print</span> -<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> value-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, value -<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> value/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah +<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, value +<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> value/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah <span id="L634" class="LineNr"> 634 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> value <span id="L635" class="LineNr"> 635 </span> <a href='print.mu.html#L7'>print-cell</a> eval-result-ah, value, trace <span id="L636" class="LineNr"> 636 </span><span class="Delimiter">}</span> @@ -964,10 +963,10 @@ if ('onhashchange' in window) { <span id="L898" class="LineNr"> 898 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/input-2/cursor"</span> <span id="L899" class="LineNr"> 899 </span><span class="Delimiter">}</span> <span id="L900" class="LineNr"> 900 </span> -<span id="L901" class="LineNr"> 901 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L901'>has-trace?</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L901" class="LineNr"> 901 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L901'>has-trace?</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L902" class="LineNr"> 902 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L903" class="LineNr"> 903 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle trace) <span class="Special"><-</span> get self, trace -<span id="L904" class="LineNr"> 904 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L903" class="LineNr"> 903 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get self, trace +<span id="L904" class="LineNr"> 904 </span> <span class="PreProc">var</span> _trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L905" class="LineNr"> 905 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> copy _trace <span id="L906" class="LineNr"> 906 </span> compare trace, <span class="Constant">0</span> <span id="L907" class="LineNr"> 907 </span> <span class="Delimiter">{</span> diff --git a/html/shell/tokenize.mu.html b/html/shell/tokenize.mu.html index 20381132..fc39be2b 100644 --- a/html/shell/tokenize.mu.html +++ b/html/shell/tokenize.mu.html @@ -14,20 +14,19 @@ 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; } +.PreProc { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.Special { color: #ff6060; } .LineNr { } -.Delimiter { color: #c000c0; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muRegEsi { color: #005faf; } +.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Special { color: #ff6060; } -.PreProc { color: #c000c0; } +.muRegEdi { color: #00af00; } +.muRegEcx { color: #870000; } +.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } --> </style> @@ -81,20 +80,20 @@ if ('onhashchange' in window) { <span id="L16" class="LineNr"> 16 </span> <a href='gap-buffer.mu.html#L1015'>rewind-gap-buffer</a> in <span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> at-start-of-line?/<span class="muRegEdi">edi</span>: boolean <span class="Special"><-</span> copy <span class="Constant">1</span>/true <span id="L18" class="LineNr"> 18 </span> <span class="Delimiter">{</span> -<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in +<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in <span id="L20" class="LineNr"> 20 </span> compare done?, <span class="Constant">0</span>/false <span id="L21" class="LineNr"> 21 </span> <span class="PreProc">break-if-!=</span> <span id="L22" class="LineNr"> 22 </span> <span class="muComment">#</span> <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L3'>token</a>/<span class="muRegEdx">edx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address token-storage <span id="L25" class="LineNr"> 25 </span> at-start-of-line? <span class="Special"><-</span> <a href='tokenize.mu.html#L358'>next-token</a> in, <a href='tokenize.mu.html#L3'>token</a>, at-start-of-line?, trace -<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> error?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L27" class="LineNr"> 27 </span> compare error?, <span class="Constant">0</span>/false <span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">{</span> <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">break-if-=</span> <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">return</span> <span id="L31" class="LineNr"> 31 </span> <span class="Delimiter">}</span> -<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> skip?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1000'>skip-token?</a> <a href='tokenize.mu.html#L3'>token</a> +<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> skip?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L1000'>skip-token?</a> <a href='tokenize.mu.html#L3'>token</a> <span id="L33" class="LineNr"> 33 </span> compare skip?, <span class="Constant">0</span>/false <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">loop-if-!=</span> <span id="L35" class="LineNr"> 35 </span> <a href='../309stream.subx.html#L54'>write-to-stream</a> out, <a href='tokenize.mu.html#L3'>token</a> <span class="muComment"># shallow-copy text-data</span> @@ -119,15 +118,15 @@ if ('onhashchange' in window) { <span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L56" class="LineNr"> 56 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L58" class="LineNr"> 58 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L41'>test-tokenize-number</a>/before-indent-type"</span> -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L60" class="LineNr"> 60 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L41'>test-tokenize-number</a>/before-indent"</span> <span id="L61" class="LineNr"> 61 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> number?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L847'>number-token?</a> curr-token +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> number?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L847'>number-token?</a> curr-token <span id="L63" class="LineNr"> 63 </span> <a href='../502test.mu.html#L19'>check</a> number?, <span class="Constant">"F - test-tokenize-number"</span> -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> curr-token-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah <span id="L66" class="LineNr"> 66 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> curr-token-data, <span class="Constant">"123"</span>, <span class="Constant">"F - <a href='tokenize.mu.html#L41'>test-tokenize-number</a>: value"</span> <span id="L67" class="LineNr"> 67 </span><span class="Delimiter">}</span> <span id="L68" class="LineNr"> 68 </span> @@ -147,15 +146,15 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L84" class="LineNr"> 84 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L86" class="LineNr"> 86 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L69'>test-tokenize-negative-number</a>/before-indent-type"</span> -<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L88" class="LineNr"> 88 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L69'>test-tokenize-negative-number</a>/before-indent"</span> <span id="L89" class="LineNr"> 89 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> number?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L847'>number-token?</a> curr-token +<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> number?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L847'>number-token?</a> curr-token <span id="L91" class="LineNr"> 91 </span> <a href='../502test.mu.html#L19'>check</a> number?, <span class="Constant">"F - test-tokenize-negative-number"</span> -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> curr-token-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah <span id="L94" class="LineNr"> 94 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> curr-token-data, <span class="Constant">"-123"</span>, <span class="Constant">"F - <a href='tokenize.mu.html#L69'>test-tokenize-negative-number</a>: value"</span> <span id="L95" class="LineNr"> 95 </span><span class="Delimiter">}</span> <span id="L96" class="LineNr"> 96 </span> @@ -175,19 +174,19 @@ if ('onhashchange' in window) { <span id="L110" class="LineNr"> 110 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L111" class="LineNr"> 111 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L112" class="LineNr"> 112 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L113" class="LineNr"> 113 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L113" class="LineNr"> 113 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L114" class="LineNr"> 114 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L97'>test-tokenize-quote</a>/before-indent-type"</span> -<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L116" class="LineNr"> 116 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L97'>test-tokenize-quote</a>/before-indent"</span> <span id="L117" class="LineNr"> 117 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> quote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L895'>quote-token?</a> curr-token +<span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> quote?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L895'>quote-token?</a> curr-token <span id="L119" class="LineNr"> 119 </span> <a href='../502test.mu.html#L19'>check</a> quote?, <span class="Constant">"F - <a href='tokenize.mu.html#L97'>test-tokenize-quote</a>: quote"</span> <span id="L120" class="LineNr"> 120 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> open-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token +<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> open-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token <span id="L122" class="LineNr"> 122 </span> <a href='../502test.mu.html#L19'>check</a> open-paren?, <span class="Constant">"F - <a href='tokenize.mu.html#L97'>test-tokenize-quote</a>: open paren"</span> <span id="L123" class="LineNr"> 123 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token <span class="muComment"># skip a</span> <span id="L124" class="LineNr"> 124 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L125" class="LineNr"> 125 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token +<span id="L125" class="LineNr"> 125 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token <span id="L126" class="LineNr"> 126 </span> <a href='../502test.mu.html#L19'>check</a> close-paren?, <span class="Constant">"F - <a href='tokenize.mu.html#L97'>test-tokenize-quote</a>: close paren"</span> <span id="L127" class="LineNr"> 127 </span><span class="Delimiter">}</span> <span id="L128" class="LineNr"> 128 </span> @@ -207,19 +206,19 @@ if ('onhashchange' in window) { <span id="L142" class="LineNr"> 142 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L144" class="LineNr"> 144 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L146" class="LineNr"> 146 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L129'>test-tokenize-backquote</a>/before-indent-type"</span> -<span id="L147" class="LineNr"> 147 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L147" class="LineNr"> 147 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L148" class="LineNr"> 148 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L129'>test-tokenize-backquote</a>/before-indent"</span> <span id="L149" class="LineNr"> 149 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L150" class="LineNr"> 150 </span> <span class="PreProc">var</span> backquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L904'>backquote-token?</a> curr-token +<span id="L150" class="LineNr"> 150 </span> <span class="PreProc">var</span> backquote?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L904'>backquote-token?</a> curr-token <span id="L151" class="LineNr"> 151 </span> <a href='../502test.mu.html#L19'>check</a> backquote?, <span class="Constant">"F - <a href='tokenize.mu.html#L129'>test-tokenize-backquote</a>: backquote"</span> <span id="L152" class="LineNr"> 152 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L153" class="LineNr"> 153 </span> <span class="PreProc">var</span> open-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token +<span id="L153" class="LineNr"> 153 </span> <span class="PreProc">var</span> open-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token <span id="L154" class="LineNr"> 154 </span> <a href='../502test.mu.html#L19'>check</a> open-paren?, <span class="Constant">"F - <a href='tokenize.mu.html#L129'>test-tokenize-backquote</a>: open paren"</span> <span id="L155" class="LineNr"> 155 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token <span class="muComment"># skip a</span> <span id="L156" class="LineNr"> 156 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token +<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token <span id="L158" class="LineNr"> 158 </span> <a href='../502test.mu.html#L19'>check</a> close-paren?, <span class="Constant">"F - <a href='tokenize.mu.html#L129'>test-tokenize-backquote</a>: close paren"</span> <span id="L159" class="LineNr"> 159 </span><span class="Delimiter">}</span> <span id="L160" class="LineNr"> 160 </span> @@ -239,19 +238,19 @@ if ('onhashchange' in window) { <span id="L174" class="LineNr"> 174 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L175" class="LineNr"> 175 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L176" class="LineNr"> 176 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L177" class="LineNr"> 177 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L177" class="LineNr"> 177 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L178" class="LineNr"> 178 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L161'>test-tokenize-unquote</a>/before-indent-type"</span> -<span id="L179" class="LineNr"> 179 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L179" class="LineNr"> 179 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L180" class="LineNr"> 180 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L161'>test-tokenize-unquote</a>/before-indent"</span> <span id="L181" class="LineNr"> 181 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L182" class="LineNr"> 182 </span> <span class="PreProc">var</span> unquote?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L913'>unquote-token?</a> curr-token +<span id="L182" class="LineNr"> 182 </span> <span class="PreProc">var</span> unquote?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L913'>unquote-token?</a> curr-token <span id="L183" class="LineNr"> 183 </span> <a href='../502test.mu.html#L19'>check</a> unquote?, <span class="Constant">"F - <a href='tokenize.mu.html#L161'>test-tokenize-unquote</a>: unquote"</span> <span id="L184" class="LineNr"> 184 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> open-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token +<span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> open-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token <span id="L186" class="LineNr"> 186 </span> <a href='../502test.mu.html#L19'>check</a> open-paren?, <span class="Constant">"F - <a href='tokenize.mu.html#L161'>test-tokenize-unquote</a>: open paren"</span> <span id="L187" class="LineNr"> 187 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token <span class="muComment"># skip a</span> <span id="L188" class="LineNr"> 188 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L189" class="LineNr"> 189 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token +<span id="L189" class="LineNr"> 189 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token <span id="L190" class="LineNr"> 190 </span> <a href='../502test.mu.html#L19'>check</a> close-paren?, <span class="Constant">"F - <a href='tokenize.mu.html#L161'>test-tokenize-unquote</a>: close paren"</span> <span id="L191" class="LineNr"> 191 </span><span class="Delimiter">}</span> <span id="L192" class="LineNr"> 192 </span> @@ -271,12 +270,12 @@ if ('onhashchange' in window) { <span id="L206" class="LineNr"> 206 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L207" class="LineNr"> 207 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L208" class="LineNr"> 208 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L209" class="LineNr"> 209 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L209" class="LineNr"> 209 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L210" class="LineNr"> 210 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L193'>test-tokenize-unquote-splice</a>/before-indent-type"</span> -<span id="L211" class="LineNr"> 211 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L211" class="LineNr"> 211 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L212" class="LineNr"> 212 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L193'>test-tokenize-unquote-splice</a>/before-indent"</span> <span id="L213" class="LineNr"> 213 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L214" class="LineNr"> 214 </span> <span class="PreProc">var</span> unquote-splice?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L922'>unquote-splice-token?</a> curr-token +<span id="L214" class="LineNr"> 214 </span> <span class="PreProc">var</span> unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L922'>unquote-splice-token?</a> curr-token <span id="L215" class="LineNr"> 215 </span> <a href='../502test.mu.html#L19'>check</a> unquote-splice?, <span class="Constant">"F - <a href='tokenize.mu.html#L193'>test-tokenize-unquote-splice</a>: unquote-splice"</span> <span id="L216" class="LineNr"> 216 </span><span class="Delimiter">}</span> <span id="L217" class="LineNr"> 217 </span> @@ -296,20 +295,20 @@ if ('onhashchange' in window) { <span id="L231" class="LineNr"> 231 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L232" class="LineNr"> 232 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L233" class="LineNr"> 233 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L234" class="LineNr"> 234 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L234" class="LineNr"> 234 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L235" class="LineNr"> 235 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L218'>test-tokenize-dotted-list</a>/before-indent-type"</span> -<span id="L236" class="LineNr"> 236 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L236" class="LineNr"> 236 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L237" class="LineNr"> 237 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L218'>test-tokenize-dotted-list</a>/before-indent"</span> <span id="L238" class="LineNr"> 238 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L239" class="LineNr"> 239 </span> <span class="PreProc">var</span> open-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token +<span id="L239" class="LineNr"> 239 </span> <span class="PreProc">var</span> open-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L931'>open-paren-token?</a> curr-token <span id="L240" class="LineNr"> 240 </span> <a href='../502test.mu.html#L19'>check</a> open-paren?, <span class="Constant">"F - <a href='tokenize.mu.html#L218'>test-tokenize-dotted-list</a>: open paren"</span> <span id="L241" class="LineNr"> 241 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token <span class="muComment"># skip a</span> <span id="L242" class="LineNr"> 242 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L243" class="LineNr"> 243 </span> <span class="PreProc">var</span> dot?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L963'>dot-token?</a> curr-token +<span id="L243" class="LineNr"> 243 </span> <span class="PreProc">var</span> dot?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L963'>dot-token?</a> curr-token <span id="L244" class="LineNr"> 244 </span> <a href='../502test.mu.html#L19'>check</a> dot?, <span class="Constant">"F - <a href='tokenize.mu.html#L218'>test-tokenize-dotted-list</a>: dot"</span> <span id="L245" class="LineNr"> 245 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token <span class="muComment"># skip b</span> <span id="L246" class="LineNr"> 246 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> close-paren?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token +<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> close-paren?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L947'>close-paren-token?</a> curr-token <span id="L248" class="LineNr"> 248 </span> <a href='../502test.mu.html#L19'>check</a> close-paren?, <span class="Constant">"F - <a href='tokenize.mu.html#L218'>test-tokenize-dotted-list</a>: close paren"</span> <span id="L249" class="LineNr"> 249 </span><span class="Delimiter">}</span> <span id="L250" class="LineNr"> 250 </span> @@ -329,18 +328,18 @@ if ('onhashchange' in window) { <span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L265" class="LineNr"> 265 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L266" class="LineNr"> 266 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L268" class="LineNr"> 268 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L251'>test-tokenize-stream-literal</a>/before-indent-type"</span> -<span id="L269" class="LineNr"> 269 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L269" class="LineNr"> 269 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L270" class="LineNr"> 270 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L251'>test-tokenize-stream-literal</a>/before-indent"</span> <span id="L271" class="LineNr"> 271 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> stream?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L989'>stream-token?</a> curr-token +<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> stream?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L989'>stream-token?</a> curr-token <span id="L273" class="LineNr"> 273 </span> <a href='../502test.mu.html#L19'>check</a> stream?, <span class="Constant">"F - <a href='tokenize.mu.html#L251'>test-tokenize-stream-literal</a>: type"</span> -<span id="L274" class="LineNr"> 274 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data -<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah -<span id="L276" class="LineNr"> 276 </span> <span class="PreProc">var</span> data-equal?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-token-data, <span class="Constant">"abc def"</span> +<span id="L274" class="LineNr"> 274 </span> <span class="PreProc">var</span> curr-token-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data +<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah +<span id="L276" class="LineNr"> 276 </span> <span class="PreProc">var</span> data-equal?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-token-data, <span class="Constant">"abc def"</span> <span id="L277" class="LineNr"> 277 </span> <a href='../502test.mu.html#L19'>check</a> data-equal?, <span class="Constant">"F - test-tokenize-stream-literal"</span> -<span id="L278" class="LineNr"> 278 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> stream +<span id="L278" class="LineNr"> 278 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> stream <span id="L279" class="LineNr"> 279 </span> <a href='../502test.mu.html#L19'>check</a> empty?, <span class="Constant">"F - <a href='tokenize.mu.html#L251'>test-tokenize-stream-literal</a>: empty?"</span> <span id="L280" class="LineNr"> 280 </span><span class="Delimiter">}</span> <span id="L281" class="LineNr"> 281 </span> @@ -360,24 +359,24 @@ if ('onhashchange' in window) { <span id="L295" class="LineNr"> 295 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L296" class="LineNr"> 296 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L297" class="LineNr"> 297 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L298" class="LineNr"> 298 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L298" class="LineNr"> 298 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L299" class="LineNr"> 299 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L282'>test-tokenize-stream-literal-in-tree</a>/before-indent-type"</span> -<span id="L300" class="LineNr"> 300 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L300" class="LineNr"> 300 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L301" class="LineNr"> 301 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L282'>test-tokenize-stream-literal-in-tree</a>/before-indent"</span> <span id="L302" class="LineNr"> 302 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L303" class="LineNr"> 303 </span> <span class="PreProc">var</span> bracket?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L878'>bracket-token?</a> curr-token +<span id="L303" class="LineNr"> 303 </span> <span class="PreProc">var</span> bracket?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L878'>bracket-token?</a> curr-token <span id="L304" class="LineNr"> 304 </span> <a href='../502test.mu.html#L19'>check</a> bracket?, <span class="Constant">"F - <a href='tokenize.mu.html#L282'>test-tokenize-stream-literal-in-tree</a>: open paren"</span> <span id="L305" class="LineNr"> 305 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L306" class="LineNr"> 306 </span> <span class="PreProc">var</span> stream?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L989'>stream-token?</a> curr-token +<span id="L306" class="LineNr"> 306 </span> <span class="PreProc">var</span> stream?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L989'>stream-token?</a> curr-token <span id="L307" class="LineNr"> 307 </span> <a href='../502test.mu.html#L19'>check</a> stream?, <span class="Constant">"F - <a href='tokenize.mu.html#L282'>test-tokenize-stream-literal-in-tree</a>: type"</span> -<span id="L308" class="LineNr"> 308 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data -<span id="L309" class="LineNr"> 309 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah -<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> data-equal?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-token-data, <span class="Constant">"abc def"</span> +<span id="L308" class="LineNr"> 308 </span> <span class="PreProc">var</span> curr-token-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data +<span id="L309" class="LineNr"> 309 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah +<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> data-equal?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> curr-token-data, <span class="Constant">"abc def"</span> <span id="L311" class="LineNr"> 311 </span> <a href='../502test.mu.html#L19'>check</a> data-equal?, <span class="Constant">"F - test-tokenize-stream-literal-in-tree"</span> <span id="L312" class="LineNr"> 312 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> bracket?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L878'>bracket-token?</a> curr-token +<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> bracket?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L878'>bracket-token?</a> curr-token <span id="L314" class="LineNr"> 314 </span> <a href='../502test.mu.html#L19'>check</a> bracket?, <span class="Constant">"F - <a href='tokenize.mu.html#L282'>test-tokenize-stream-literal-in-tree</a>: close paren"</span> -<span id="L315" class="LineNr"> 315 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> stream +<span id="L315" class="LineNr"> 315 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> stream <span id="L316" class="LineNr"> 316 </span> <a href='../502test.mu.html#L19'>check</a> empty?, <span class="Constant">"F - <a href='tokenize.mu.html#L282'>test-tokenize-stream-literal-in-tree</a>: empty?"</span> <span id="L317" class="LineNr"> 317 </span><span class="Delimiter">}</span> <span id="L318" class="LineNr"> 318 </span> @@ -397,24 +396,24 @@ if ('onhashchange' in window) { <span id="L332" class="LineNr"> 332 </span> <span class="PreProc">var</span> curr-token-storage: <a href='tokenize.mu.html#L3'>token</a> <span id="L333" class="LineNr"> 333 </span> <span class="PreProc">var</span> curr-token/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address curr-token-storage <span id="L334" class="LineNr"> 334 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L335" class="LineNr"> 335 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L335" class="LineNr"> 335 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L336" class="LineNr"> 336 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L319'>test-tokenize-indent</a>/before-indent-type"</span> -<span id="L337" class="LineNr"> 337 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L337" class="LineNr"> 337 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L338" class="LineNr"> 338 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">0</span>/spaces, <span class="Constant">"F - <a href='tokenize.mu.html#L319'>test-tokenize-indent</a>/before-indent"</span> <span id="L339" class="LineNr"> 339 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data -<span id="L341" class="LineNr"> 341 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah +<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> curr-token-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data +<span id="L341" class="LineNr"> 341 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah <span id="L342" class="LineNr"> 342 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> curr-token-data, <span class="Constant">"abc"</span>, <span class="Constant">"F - <a href='tokenize.mu.html#L319'>test-tokenize-indent</a>/before"</span> <span id="L343" class="LineNr"> 343 </span> <span class="muComment">#</span> <span id="L344" class="LineNr"> 344 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">var</span> curr-token-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> +<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">var</span> curr-token-type/eax: (addr int) <span class="Special"><-</span> get curr-token, <span class="PreProc">type</span> <span id="L346" class="LineNr"> 346 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-type, <span class="Constant">3</span>/indent, <span class="Constant">"F - <a href='tokenize.mu.html#L319'>test-tokenize-indent</a>/type"</span> -<span id="L347" class="LineNr"> 347 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-token, number-data +<span id="L347" class="LineNr"> 347 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr int) <span class="Special"><-</span> get curr-token, number-data <span id="L348" class="LineNr"> 348 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *curr-token-data, <span class="Constant">2</span>/spaces, <span class="Constant">"F - test-tokenize-indent"</span> <span id="L349" class="LineNr"> 349 </span> <span class="muComment">#</span> <span id="L350" class="LineNr"> 350 </span> <a href='../309stream.subx.html#L104'>read-from-stream</a> stream, curr-token -<span id="L351" class="LineNr"> 351 </span> <span class="PreProc">var</span> curr-token-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data -<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> curr-token-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah +<span id="L351" class="LineNr"> 351 </span> <span class="PreProc">var</span> curr-token-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get curr-token, text-data +<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> curr-token-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-token-data-ah <span id="L353" class="LineNr"> 353 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> curr-token-data, <span class="Constant">"def"</span>, <span class="Constant">"F - <a href='tokenize.mu.html#L319'>test-tokenize-indent</a>/after"</span> <span id="L354" class="LineNr"> 354 </span><span class="Delimiter">}</span> <span id="L355" class="LineNr"> 355 </span> @@ -430,13 +429,13 @@ if ('onhashchange' in window) { <span id="L365" class="LineNr"> 365 </span> <a href='tokenize.mu.html#L680'>next-indent-token</a> in, out, trace <span class="muComment"># might not be returned</span> <span id="L366" class="LineNr"> 366 </span> <span class="Delimiter">}</span> <span id="L367" class="LineNr"> 367 </span> <a href='gap-buffer.mu.html#L1190'>skip-spaces-from-gap-buffer</a> in -<span id="L368" class="LineNr"> 368 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in +<span id="L368" class="LineNr"> 368 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in <span id="L369" class="LineNr"> 369 </span> <span class="Delimiter">{</span> <span id="L370" class="LineNr"> 370 </span> compare g, <span class="Constant">0x23</span>/comment <span id="L371" class="LineNr"> 371 </span> <span class="PreProc">break-if-!=</span> <span id="L372" class="LineNr"> 372 </span> <a href='tokenize.mu.html#L667'>skip-rest-of-line</a> in <span id="L373" class="LineNr"> 373 </span> <span class="Delimiter">}</span> -<span id="L374" class="LineNr"> 374 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in +<span id="L374" class="LineNr"> 374 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in <span id="L375" class="LineNr"> 375 </span> <span class="Delimiter">{</span> <span id="L376" class="LineNr"> 376 </span> compare g, <span class="Constant">0xa</span>/newline <span id="L377" class="LineNr"> 377 </span> <span class="PreProc">break-if-!=</span> @@ -454,7 +453,7 @@ if ('onhashchange' in window) { <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/not-at-start-of-line <span id="L390" class="LineNr"> 390 </span> <span class="Delimiter">}</span> <span id="L391" class="LineNr"> 391 </span> <span class="Delimiter">{</span> -<span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in +<span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in <span id="L393" class="LineNr"> 393 </span> compare done?, <span class="Constant">0</span>/false <span id="L394" class="LineNr"> 394 </span> <span class="PreProc">break-if-=</span> <span id="L395" class="LineNr"> 395 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"end"</span> @@ -462,16 +461,16 @@ if ('onhashchange' in window) { <span id="L397" class="LineNr"> 397 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L398" class="LineNr"> 398 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/at-start-of-line <span id="L399" class="LineNr"> 399 </span> <span class="Delimiter">}</span> -<span id="L400" class="LineNr"> 400 </span> <span class="PreProc">var</span> _g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in +<span id="L400" class="LineNr"> 400 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in <span id="L401" class="LineNr"> 401 </span> <span class="PreProc">var</span> g/<span class="muRegEcx">ecx</span>: grapheme <span class="Special"><-</span> copy _g <span id="L402" class="LineNr"> 402 </span> <span class="Delimiter">{</span> -<span id="L403" class="LineNr"> 403 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L403" class="LineNr"> 403 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L404" class="LineNr"> 404 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L405" class="LineNr"> 405 </span> <span class="PreProc">break-if-=</span> <span id="L406" class="LineNr"> 406 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) <span id="L407" class="LineNr"> 407 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L408" class="LineNr"> 408 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"next: "</span> -<span id="L409" class="LineNr"> 409 </span> <span class="PreProc">var</span> gval/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L409" class="LineNr"> 409 </span> <span class="PreProc">var</span> gval/eax: int <span class="Special"><-</span> copy g <span id="L410" class="LineNr"> 410 </span> <a href='../117write-int-hex.subx.html#L92'>write-int32-hex</a> stream, gval <span id="L411" class="LineNr"> 411 </span> trace trace, <span class="Constant">"tokenize"</span>, stream <span id="L412" class="LineNr"> 412 </span> <span class="Delimiter">}</span> @@ -480,13 +479,13 @@ if ('onhashchange' in window) { <span id="L415" class="LineNr"> 415 </span> <span class="Delimiter">{</span> <span id="L416" class="LineNr"> 416 </span> compare g, <span class="Constant">0x5b</span>/open-square-bracket <span id="L417" class="LineNr"> 417 </span> <span class="PreProc">break-if-!=</span> -<span id="L418" class="LineNr"> 418 </span> <span class="PreProc">var</span> dummy/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># skip open bracket</span> +<span id="L418" class="LineNr"> 418 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># skip open bracket</span> <span id="L419" class="LineNr"> 419 </span> <a href='tokenize.mu.html#L608'>next-stream-token</a> in, out, trace <span id="L420" class="LineNr"> 420 </span> <span class="PreProc">break</span> $next-token:case <span id="L421" class="LineNr"> 421 </span> <span class="Delimiter">}</span> <span id="L422" class="LineNr"> 422 </span> <span class="muComment"># other symbol char</span> <span id="L423" class="LineNr"> 423 </span> <span class="Delimiter">{</span> -<span id="L424" class="LineNr"> 424 </span> <span class="PreProc">var</span> symbol?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a> g +<span id="L424" class="LineNr"> 424 </span> <span class="PreProc">var</span> symbol?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a> g <span id="L425" class="LineNr"> 425 </span> compare symbol?, <span class="Constant">0</span>/false <span id="L426" class="LineNr"> 426 </span> <span class="PreProc">break-if-=</span> <span id="L427" class="LineNr"> 427 </span> <a href='tokenize.mu.html#L500'>next-symbol-token</a> in, out, trace @@ -501,10 +500,10 @@ if ('onhashchange' in window) { <span id="L436" class="LineNr"> 436 </span> <span class="Delimiter">}</span> <span id="L437" class="LineNr"> 437 </span> <span class="muComment"># other brackets are always single-char tokens</span> <span id="L438" class="LineNr"> 438 </span> <span class="Delimiter">{</span> -<span id="L439" class="LineNr"> 439 </span> <span class="PreProc">var</span> bracket?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L813'>bracket-grapheme?</a> g +<span id="L439" class="LineNr"> 439 </span> <span class="PreProc">var</span> bracket?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L813'>bracket-grapheme?</a> g <span id="L440" class="LineNr"> 440 </span> compare bracket?, <span class="Constant">0</span>/false <span id="L441" class="LineNr"> 441 </span> <span class="PreProc">break-if-=</span> -<span id="L442" class="LineNr"> 442 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in +<span id="L442" class="LineNr"> 442 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span id="L443" class="LineNr"> 443 </span> <a href='tokenize.mu.html#L646'>next-bracket-token</a> g, out, trace <span id="L444" class="LineNr"> 444 </span> <span class="PreProc">break</span> $next-token:case <span id="L445" class="LineNr"> 445 </span> <span class="Delimiter">}</span> @@ -512,7 +511,7 @@ if ('onhashchange' in window) { <span id="L447" class="LineNr"> 447 </span> <span class="Delimiter">{</span> <span id="L448" class="LineNr"> 448 </span> compare g, <span class="Constant">0x27</span>/single-quote <span id="L449" class="LineNr"> 449 </span> <span class="PreProc">break-if-!=</span> -<span id="L450" class="LineNr"> 450 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span> +<span id="L450" class="LineNr"> 450 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span> <span id="L451" class="LineNr"> 451 </span> <a href='tokenize.mu.html#L1030'>initialize-token</a> out, <span class="Constant">"'"</span> <span id="L452" class="LineNr"> 452 </span> <span class="PreProc">break</span> $next-token:case <span id="L453" class="LineNr"> 453 </span> <span class="Delimiter">}</span> @@ -520,7 +519,7 @@ if ('onhashchange' in window) { <span id="L455" class="LineNr"> 455 </span> <span class="Delimiter">{</span> <span id="L456" class="LineNr"> 456 </span> compare g, <span class="Constant">0x60</span>/backquote <span id="L457" class="LineNr"> 457 </span> <span class="PreProc">break-if-!=</span> -<span id="L458" class="LineNr"> 458 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span> +<span id="L458" class="LineNr"> 458 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span> <span id="L459" class="LineNr"> 459 </span> <a href='tokenize.mu.html#L1030'>initialize-token</a> out, <span class="Constant">"`"</span> <span id="L460" class="LineNr"> 460 </span> <span class="PreProc">break</span> $next-token:case <span id="L461" class="LineNr"> 461 </span> <span class="Delimiter">}</span> @@ -528,7 +527,7 @@ if ('onhashchange' in window) { <span id="L463" class="LineNr"> 463 </span> <span class="Delimiter">{</span> <span id="L464" class="LineNr"> 464 </span> compare g, <span class="Constant">0x2c</span>/comma <span id="L465" class="LineNr"> 465 </span> <span class="PreProc">break-if-!=</span> -<span id="L466" class="LineNr"> 466 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span> +<span id="L466" class="LineNr"> 466 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span> <span id="L467" class="LineNr"> 467 </span> <span class="muComment"># check for unquote-splice</span> <span id="L468" class="LineNr"> 468 </span> <span class="Delimiter">{</span> <span id="L469" class="LineNr"> 469 </span> g <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in @@ -543,18 +542,18 @@ if ('onhashchange' in window) { <span id="L478" class="LineNr"> 478 </span> <span class="Delimiter">}</span> <span id="L479" class="LineNr"> 479 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x40</span> <span class="Constant">0x20</span> <span id="L480" class="LineNr"> 480 </span> <span class="Delimiter">{</span> -<span id="L481" class="LineNr"> 481 </span> <span class="PreProc">var</span> foo/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L481" class="LineNr"> 481 </span> <span class="PreProc">var</span> foo/eax: int <span class="Special"><-</span> copy g <span id="L482" class="LineNr"> 482 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, foo, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg <span id="L483" class="LineNr"> 483 </span> <span class="Delimiter">}</span> <span id="L484" class="LineNr"> 484 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"unknown <a href='tokenize.mu.html#L3'>token</a> type"</span> <span id="L485" class="LineNr"> 485 </span> <span class="Delimiter">}</span> <span id="L486" class="LineNr"> 486 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L487" class="LineNr"> 487 </span> <span class="Delimiter">{</span> -<span id="L488" class="LineNr"> 488 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L488" class="LineNr"> 488 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L489" class="LineNr"> 489 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L490" class="LineNr"> 490 </span> <span class="PreProc">break-if-=</span> <span id="L491" class="LineNr"> 491 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x400</span>) <span class="muComment"># maximum possible token size (next-stream-token)</span> -<span id="L492" class="LineNr"> 492 </span> <span class="PreProc">var</span> stream/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage +<span id="L492" class="LineNr"> 492 </span> <span class="PreProc">var</span> stream/eax: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L493" class="LineNr"> 493 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"=> "</span> <span id="L494" class="LineNr"> 494 </span> <a href='tokenize.mu.html#L1044'>write-token-text-data</a> stream, out <span id="L495" class="LineNr"> 495 </span> trace trace, <span class="Constant">"tokenize"</span>, stream @@ -565,44 +564,44 @@ if ('onhashchange' in window) { <span id="L500" class="LineNr"> 500 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L500'>next-symbol-token</a></span> in: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), _out: (addr <a href='tokenize.mu.html#L3'>token</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L501" class="LineNr"> 501 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"looking for a symbol"</span> <span id="L502" class="LineNr"> 502 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _out -<span id="L504" class="LineNr"> 504 </span> <span class="PreProc">var</span> out-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get out, text-data +<span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> out/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _out +<span id="L504" class="LineNr"> 504 </span> <span class="PreProc">var</span> out-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get out, text-data <span id="L505" class="LineNr"> 505 </span> populate-stream out-data-ah, <span class="Constant">0x40</span>/max-symbol-size -<span id="L506" class="LineNr"> 506 </span> <span class="PreProc">var</span> _out-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-data-ah +<span id="L506" class="LineNr"> 506 </span> <span class="PreProc">var</span> _out-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-data-ah <span id="L507" class="LineNr"> 507 </span> <span class="PreProc">var</span> out-data/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> copy _out-data <span id="L508" class="LineNr"> 508 </span> $next-symbol-token:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L509" class="LineNr"> 509 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in +<span id="L509" class="LineNr"> 509 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in <span id="L510" class="LineNr"> 510 </span> compare done?, <span class="Constant">0</span>/false <span id="L511" class="LineNr"> 511 </span> <span class="PreProc">break-if-!=</span> -<span id="L512" class="LineNr"> 512 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in +<span id="L512" class="LineNr"> 512 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in <span id="L513" class="LineNr"> 513 </span> <span class="Delimiter">{</span> <span id="L514" class="LineNr"> 514 </span> <span class="Delimiter">{</span> -<span id="L515" class="LineNr"> 515 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L515" class="LineNr"> 515 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L516" class="LineNr"> 516 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L517" class="LineNr"> 517 </span> <span class="Delimiter">}</span> <span id="L518" class="LineNr"> 518 </span> <span class="PreProc">break-if-=</span> <span id="L519" class="LineNr"> 519 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) <span id="L520" class="LineNr"> 520 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L521" class="LineNr"> 521 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"next: "</span> -<span id="L522" class="LineNr"> 522 </span> <span class="PreProc">var</span> gval/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L522" class="LineNr"> 522 </span> <span class="PreProc">var</span> gval/eax: int <span class="Special"><-</span> copy g <span id="L523" class="LineNr"> 523 </span> <a href='../117write-int-hex.subx.html#L92'>write-int32-hex</a> stream, gval <span id="L524" class="LineNr"> 524 </span> trace trace, <span class="Constant">"tokenize"</span>, stream <span id="L525" class="LineNr"> 525 </span> <span class="Delimiter">}</span> <span id="L526" class="LineNr"> 526 </span> <span class="muComment"># if non-symbol, return</span> <span id="L527" class="LineNr"> 527 </span> <span class="Delimiter">{</span> -<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a> g +<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a> g <span id="L529" class="LineNr"> 529 </span> compare <a href='tokenize.mu.html#L738'>symbol-grapheme?</a>, <span class="Constant">0</span>/false <span id="L530" class="LineNr"> 530 </span> <span class="PreProc">break-if-!=</span> <span id="L531" class="LineNr"> 531 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"stop"</span> <span id="L532" class="LineNr"> 532 </span> <span class="PreProc">break</span> $next-symbol-token:<span class="PreProc">loop</span> <span id="L533" class="LineNr"> 533 </span> <span class="Delimiter">}</span> -<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in +<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span id="L535" class="LineNr"> 535 </span> <a href='../403unicode.mu.html#L176'>write-grapheme</a> out-data, g <span id="L536" class="LineNr"> 536 </span> <span class="PreProc">loop</span> <span id="L537" class="LineNr"> 537 </span> <span class="Delimiter">}</span> <span id="L538" class="LineNr"> 538 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L539" class="LineNr"> 539 </span> <span class="Delimiter">{</span> -<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L541" class="LineNr"> 541 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L542" class="LineNr"> 542 </span> <span class="PreProc">break-if-=</span> <span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) @@ -617,38 +616,38 @@ if ('onhashchange' in window) { <span id="L552" class="LineNr"> 552 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L552'>next-number-token</a></span> in: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), _out: (addr <a href='tokenize.mu.html#L3'>token</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L553" class="LineNr"> 553 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"looking for a number"</span> <span id="L554" class="LineNr"> 554 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L555" class="LineNr"> 555 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _out -<span id="L556" class="LineNr"> 556 </span> <span class="PreProc">var</span> out-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get out, text-data +<span id="L555" class="LineNr"> 555 </span> <span class="PreProc">var</span> out/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _out +<span id="L556" class="LineNr"> 556 </span> <span class="PreProc">var</span> out-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get out, text-data <span id="L557" class="LineNr"> 557 </span> populate-stream out-data-ah, <span class="Constant">0x40</span> -<span id="L558" class="LineNr"> 558 </span> <span class="PreProc">var</span> _out-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-data-ah +<span id="L558" class="LineNr"> 558 </span> <span class="PreProc">var</span> _out-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-data-ah <span id="L559" class="LineNr"> 559 </span> <span class="PreProc">var</span> out-data/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> copy _out-data <span id="L560" class="LineNr"> 560 </span> $next-number-token:check-minus: <span class="Delimiter">{</span> -<span id="L561" class="LineNr"> 561 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in +<span id="L561" class="LineNr"> 561 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in <span id="L562" class="LineNr"> 562 </span> compare g, <span class="Constant">0x2d</span>/minus <span id="L563" class="LineNr"> 563 </span> g <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span> <span id="L564" class="LineNr"> 564 </span> <a href='../403unicode.mu.html#L176'>write-grapheme</a> out-data, g <span id="L565" class="LineNr"> 565 </span> <span class="Delimiter">}</span> <span id="L566" class="LineNr"> 566 </span> $next-number-token:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in +<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in <span id="L568" class="LineNr"> 568 </span> compare done?, <span class="Constant">0</span>/false <span id="L569" class="LineNr"> 569 </span> <span class="PreProc">break-if-!=</span> -<span id="L570" class="LineNr"> 570 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in +<span id="L570" class="LineNr"> 570 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in <span id="L571" class="LineNr"> 571 </span> <span class="Delimiter">{</span> <span id="L572" class="LineNr"> 572 </span> <span class="Delimiter">{</span> -<span id="L573" class="LineNr"> 573 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L573" class="LineNr"> 573 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L574" class="LineNr"> 574 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L575" class="LineNr"> 575 </span> <span class="Delimiter">}</span> <span id="L576" class="LineNr"> 576 </span> <span class="PreProc">break-if-=</span> <span id="L577" class="LineNr"> 577 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) <span id="L578" class="LineNr"> 578 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L579" class="LineNr"> 579 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"next: "</span> -<span id="L580" class="LineNr"> 580 </span> <span class="PreProc">var</span> gval/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L580" class="LineNr"> 580 </span> <span class="PreProc">var</span> gval/eax: int <span class="Special"><-</span> copy g <span id="L581" class="LineNr"> 581 </span> <a href='../117write-int-hex.subx.html#L92'>write-int32-hex</a> stream, gval <span id="L582" class="LineNr"> 582 </span> trace trace, <span class="Constant">"tokenize"</span>, stream <span id="L583" class="LineNr"> 583 </span> <span class="Delimiter">}</span> <span id="L584" class="LineNr"> 584 </span> <span class="muComment"># if not symbol grapheme, return</span> <span id="L585" class="LineNr"> 585 </span> <span class="Delimiter">{</span> -<span id="L586" class="LineNr"> 586 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a> g +<span id="L586" class="LineNr"> 586 </span> <span class="PreProc">var</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L738'>symbol-grapheme?</a> g <span id="L587" class="LineNr"> 587 </span> compare <a href='tokenize.mu.html#L738'>symbol-grapheme?</a>, <span class="Constant">0</span>/false <span id="L588" class="LineNr"> 588 </span> <span class="PreProc">break-if-!=</span> <span id="L589" class="LineNr"> 589 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"stop"</span> @@ -656,14 +655,14 @@ if ('onhashchange' in window) { <span id="L591" class="LineNr"> 591 </span> <span class="Delimiter">}</span> <span id="L592" class="LineNr"> 592 </span> <span class="muComment"># if not digit grapheme, abort</span> <span id="L593" class="LineNr"> 593 </span> <span class="Delimiter">{</span> -<span id="L594" class="LineNr"> 594 </span> <span class="PreProc">var</span> digit?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L296'>decimal-digit?</a> g +<span id="L594" class="LineNr"> 594 </span> <span class="PreProc">var</span> digit?/eax: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L296'>decimal-digit?</a> g <span id="L595" class="LineNr"> 595 </span> compare digit?, <span class="Constant">0</span>/false <span id="L596" class="LineNr"> 596 </span> <span class="PreProc">break-if-!=</span> <span id="L597" class="LineNr"> 597 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"invalid number"</span> <span id="L598" class="LineNr"> 598 </span> <span class="PreProc">return</span> <span id="L599" class="LineNr"> 599 </span> <span class="Delimiter">}</span> <span id="L600" class="LineNr"> 600 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"append"</span> -<span id="L601" class="LineNr"> 601 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in +<span id="L601" class="LineNr"> 601 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span id="L602" class="LineNr"> 602 </span> <a href='../403unicode.mu.html#L176'>write-grapheme</a> out-data, g <span id="L603" class="LineNr"> 603 </span> <span class="PreProc">loop</span> <span id="L604" class="LineNr"> 604 </span> <span class="Delimiter">}</span> @@ -673,30 +672,30 @@ if ('onhashchange' in window) { <span id="L608" class="LineNr"> 608 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L608'>next-stream-token</a></span> in: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>), _out: (addr <a href='tokenize.mu.html#L3'>token</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L609" class="LineNr"> 609 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"stream"</span> <span id="L610" class="LineNr"> 610 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _out -<span id="L611" class="LineNr"> 611 </span> <span class="PreProc">var</span> out-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get out, <span class="PreProc">type</span> +<span id="L611" class="LineNr"> 611 </span> <span class="PreProc">var</span> out-type/eax: (addr int) <span class="Special"><-</span> get out, <span class="PreProc">type</span> <span id="L612" class="LineNr"> 612 </span> copy-to *out-type, <span class="Constant">1</span>/stream -<span id="L613" class="LineNr"> 613 </span> <span class="PreProc">var</span> out-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get out, text-data +<span id="L613" class="LineNr"> 613 </span> <span class="PreProc">var</span> out-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get out, text-data <span id="L614" class="LineNr"> 614 </span> <span class="muComment"># stream tokens contain whole function definitions on boot, so we always</span> <span id="L615" class="LineNr"> 615 </span> <span class="muComment"># give them plenty of space</span> <span id="L616" class="LineNr"> 616 </span> populate-stream out-data-ah, <span class="Constant">0x400</span>/max-definition-size=1KB -<span id="L617" class="LineNr"> 617 </span> <span class="PreProc">var</span> _out-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-data-ah +<span id="L617" class="LineNr"> 617 </span> <span class="PreProc">var</span> _out-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-data-ah <span id="L618" class="LineNr"> 618 </span> <span class="PreProc">var</span> out-data/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> copy _out-data <span id="L619" class="LineNr"> 619 </span> <span class="Delimiter">{</span> -<span id="L620" class="LineNr"> 620 </span> <span class="PreProc">var</span> empty?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in +<span id="L620" class="LineNr"> 620 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in <span id="L621" class="LineNr"> 621 </span> compare empty?, <span class="Constant">0</span>/false <span id="L622" class="LineNr"> 622 </span> <span class="Delimiter">{</span> <span id="L623" class="LineNr"> 623 </span> <span class="PreProc">break-if-=</span> <span id="L624" class="LineNr"> 624 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"unbalanced '['"</span> <span id="L625" class="LineNr"> 625 </span> <span class="PreProc">return</span> <span id="L626" class="LineNr"> 626 </span> <span class="Delimiter">}</span> -<span id="L627" class="LineNr"> 627 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in +<span id="L627" class="LineNr"> 627 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span id="L628" class="LineNr"> 628 </span> compare g, <span class="Constant">0x5d</span>/close-square-bracket <span id="L629" class="LineNr"> 629 </span> <span class="PreProc">break-if-=</span> <span id="L630" class="LineNr"> 630 </span> <a href='../403unicode.mu.html#L176'>write-grapheme</a> out-data, g <span id="L631" class="LineNr"> 631 </span> <span class="PreProc">loop</span> <span id="L632" class="LineNr"> 632 </span> <span class="Delimiter">}</span> <span id="L633" class="LineNr"> 633 </span> <span class="Delimiter">{</span> -<span id="L634" class="LineNr"> 634 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L634" class="LineNr"> 634 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L635" class="LineNr"> 635 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L636" class="LineNr"> 636 </span> <span class="PreProc">break-if-=</span> <span id="L637" class="LineNr"> 637 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x400</span>) <span class="muComment"># max-definition-size</span> @@ -710,14 +709,14 @@ if ('onhashchange' in window) { <span id="L645" class="LineNr"> 645 </span> <span id="L646" class="LineNr"> 646 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L646'>next-bracket-token</a></span> g: grapheme, _out: (addr <a href='tokenize.mu.html#L3'>token</a>), trace: (addr trace) <span class="Delimiter">{</span> <span id="L647" class="LineNr"> 647 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"bracket"</span> -<span id="L648" class="LineNr"> 648 </span> <span class="PreProc">var</span> out/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _out -<span id="L649" class="LineNr"> 649 </span> <span class="PreProc">var</span> out-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get out, text-data +<span id="L648" class="LineNr"> 648 </span> <span class="PreProc">var</span> out/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _out +<span id="L649" class="LineNr"> 649 </span> <span class="PreProc">var</span> out-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get out, text-data <span id="L650" class="LineNr"> 650 </span> populate-stream out-data-ah, <span class="Constant">0x40</span> -<span id="L651" class="LineNr"> 651 </span> <span class="PreProc">var</span> _out-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-data-ah +<span id="L651" class="LineNr"> 651 </span> <span class="PreProc">var</span> _out-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-data-ah <span id="L652" class="LineNr"> 652 </span> <span class="PreProc">var</span> out-data/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> copy _out-data <span id="L653" class="LineNr"> 653 </span> <a href='../403unicode.mu.html#L176'>write-grapheme</a> out-data, g <span id="L654" class="LineNr"> 654 </span> <span class="Delimiter">{</span> -<span id="L655" class="LineNr"> 655 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L655" class="LineNr"> 655 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L656" class="LineNr"> 656 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L657" class="LineNr"> 657 </span> <span class="PreProc">break-if-=</span> <span id="L658" class="LineNr"> 658 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) @@ -731,10 +730,10 @@ if ('onhashchange' in window) { <span id="L666" class="LineNr"> 666 </span> <span id="L667" class="LineNr"> 667 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L667'>skip-rest-of-line</a></span> in: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L668" class="LineNr"> 668 </span> <span class="Delimiter">{</span> -<span id="L669" class="LineNr"> 669 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in +<span id="L669" class="LineNr"> 669 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in <span id="L670" class="LineNr"> 670 </span> compare done?, <span class="Constant">0</span>/false <span id="L671" class="LineNr"> 671 </span> <span class="PreProc">break-if-!=</span> -<span id="L672" class="LineNr"> 672 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in +<span id="L672" class="LineNr"> 672 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in <span id="L673" class="LineNr"> 673 </span> compare g, <span class="Constant">0xa</span>/newline <span id="L674" class="LineNr"> 674 </span> <span class="PreProc">break-if-=</span> <span id="L675" class="LineNr"> 675 </span> g <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span> @@ -746,25 +745,25 @@ if ('onhashchange' in window) { <span id="L681" class="LineNr"> 681 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"tokenize"</span>, <span class="Constant">"indent"</span> <span id="L682" class="LineNr"> 682 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L683" class="LineNr"> 683 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _out -<span id="L684" class="LineNr"> 684 </span> <span class="PreProc">var</span> out-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get out, <span class="PreProc">type</span> +<span id="L684" class="LineNr"> 684 </span> <span class="PreProc">var</span> out-type/eax: (addr int) <span class="Special"><-</span> get out, <span class="PreProc">type</span> <span id="L685" class="LineNr"> 685 </span> copy-to *out-type, <span class="Constant">3</span>/indent <span id="L686" class="LineNr"> 686 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> get out, number-data <span id="L687" class="LineNr"> 687 </span> copy-to *dest, <span class="Constant">0</span> <span id="L688" class="LineNr"> 688 </span> <span class="Delimiter">{</span> -<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in +<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in <span id="L690" class="LineNr"> 690 </span> compare done?, <span class="Constant">0</span>/false <span id="L691" class="LineNr"> 691 </span> <span class="PreProc">break-if-!=</span> -<span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in +<span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in <span id="L693" class="LineNr"> 693 </span> <span class="Delimiter">{</span> <span id="L694" class="LineNr"> 694 </span> <span class="Delimiter">{</span> -<span id="L695" class="LineNr"> 695 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L695" class="LineNr"> 695 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L696" class="LineNr"> 696 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L697" class="LineNr"> 697 </span> <span class="Delimiter">}</span> <span id="L698" class="LineNr"> 698 </span> <span class="PreProc">break-if-=</span> <span id="L699" class="LineNr"> 699 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) <span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L701" class="LineNr"> 701 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"next: "</span> -<span id="L702" class="LineNr"> 702 </span> <span class="PreProc">var</span> gval/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy g +<span id="L702" class="LineNr"> 702 </span> <span class="PreProc">var</span> gval/eax: int <span class="Special"><-</span> copy g <span id="L703" class="LineNr"> 703 </span> <a href='../117write-int-hex.subx.html#L92'>write-int32-hex</a> stream, gval <span id="L704" class="LineNr"> 704 </span> trace trace, <span class="Constant">"tokenize"</span>, stream <span id="L705" class="LineNr"> 705 </span> <span class="Delimiter">}</span> @@ -777,7 +776,7 @@ if ('onhashchange' in window) { <span id="L712" class="LineNr"> 712 </span> <span class="Delimiter">}</span> <span id="L713" class="LineNr"> 713 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L714" class="LineNr"> 714 </span> <span class="Delimiter">{</span> -<span id="L715" class="LineNr"> 715 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L715" class="LineNr"> 715 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L716" class="LineNr"> 716 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L717" class="LineNr"> 717 </span> <span class="PreProc">break-if-=</span> <span id="L718" class="LineNr"> 718 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) @@ -800,20 +799,20 @@ if ('onhashchange' in window) { <span id="L735" class="LineNr"> 735 </span><span class="muComment"># During tokenization operators and symbols are treated identically.</span> <span id="L736" class="LineNr"> 736 </span><span class="muComment"># A later phase digs into that nuance.</span> <span id="L737" class="LineNr"> 737 </span> -<span id="L738" class="LineNr"> 738 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L738'>symbol-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L739" class="LineNr"> 739 </span> <span class="PreProc">var</span> whitespace?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L770'>whitespace-grapheme?</a> g +<span id="L738" class="LineNr"> 738 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L738'>symbol-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L739" class="LineNr"> 739 </span> <span class="PreProc">var</span> whitespace?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L770'>whitespace-grapheme?</a> g <span id="L740" class="LineNr"> 740 </span> compare whitespace?, <span class="Constant">0</span>/false <span id="L741" class="LineNr"> 741 </span> <span class="Delimiter">{</span> <span id="L742" class="LineNr"> 742 </span> <span class="PreProc">break-if-=</span> <span id="L743" class="LineNr"> 743 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L744" class="LineNr"> 744 </span> <span class="Delimiter">}</span> -<span id="L745" class="LineNr"> 745 </span> <span class="PreProc">var</span> <a href='infix.mu.html#L543'>quote-or-unquote?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L789'>quote-or-unquote-grapheme?</a> g +<span id="L745" class="LineNr"> 745 </span> <span class="PreProc">var</span> <a href='infix.mu.html#L543'>quote-or-unquote?</a>/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L789'>quote-or-unquote-grapheme?</a> g <span id="L746" class="LineNr"> 746 </span> compare <a href='infix.mu.html#L543'>quote-or-unquote?</a>, <span class="Constant">0</span>/false <span id="L747" class="LineNr"> 747 </span> <span class="Delimiter">{</span> <span id="L748" class="LineNr"> 748 </span> <span class="PreProc">break-if-=</span> <span id="L749" class="LineNr"> 749 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L750" class="LineNr"> 750 </span> <span class="Delimiter">}</span> -<span id="L751" class="LineNr"> 751 </span> <span class="PreProc">var</span> bracket?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L813'>bracket-grapheme?</a> g +<span id="L751" class="LineNr"> 751 </span> <span class="PreProc">var</span> bracket?/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L813'>bracket-grapheme?</a> g <span id="L752" class="LineNr"> 752 </span> compare bracket?, <span class="Constant">0</span>/false <span id="L753" class="LineNr"> 753 </span> <span class="Delimiter">{</span> <span id="L754" class="LineNr"> 754 </span> <span class="PreProc">break-if-=</span> @@ -832,7 +831,7 @@ if ('onhashchange' in window) { <span id="L767" class="LineNr"> 767 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L768" class="LineNr"> 768 </span><span class="Delimiter">}</span> <span id="L769" class="LineNr"> 769 </span> -<span id="L770" class="LineNr"> 770 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L770'>whitespace-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L770" class="LineNr"> 770 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L770'>whitespace-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L771" class="LineNr"> 771 </span> compare g, <span class="Constant">9</span>/tab <span id="L772" class="LineNr"> 772 </span> <span class="Delimiter">{</span> <span id="L773" class="LineNr"> 773 </span> <span class="PreProc">break-if-!=</span> @@ -851,7 +850,7 @@ if ('onhashchange' in window) { <span id="L786" class="LineNr"> 786 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L787" class="LineNr"> 787 </span><span class="Delimiter">}</span> <span id="L788" class="LineNr"> 788 </span> -<span id="L789" class="LineNr"> 789 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L789'>quote-or-unquote-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L789" class="LineNr"> 789 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L789'>quote-or-unquote-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L790" class="LineNr"> 790 </span> compare g, <span class="Constant">0x27</span>/single-quote <span id="L791" class="LineNr"> 791 </span> <span class="Delimiter">{</span> <span id="L792" class="LineNr"> 792 </span> <span class="PreProc">break-if-!=</span> @@ -875,7 +874,7 @@ if ('onhashchange' in window) { <span id="L810" class="LineNr"> 810 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L811" class="LineNr"> 811 </span><span class="Delimiter">}</span> <span id="L812" class="LineNr"> 812 </span> -<span id="L813" class="LineNr"> 813 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L813'>bracket-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L813" class="LineNr"> 813 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L813'>bracket-grapheme?</a></span> g: grapheme<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L814" class="LineNr"> 814 </span> compare g, <span class="Constant">0x28</span>/open-paren <span id="L815" class="LineNr"> 815 </span> <span class="Delimiter">{</span> <span id="L816" class="LineNr"> 816 </span> <span class="PreProc">break-if-!=</span> @@ -909,13 +908,13 @@ if ('onhashchange' in window) { <span id="L844" class="LineNr"> 844 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L845" class="LineNr"> 845 </span><span class="Delimiter">}</span> <span id="L846" class="LineNr"> 846 </span> -<span id="L847" class="LineNr"> 847 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L847'>number-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L848" class="LineNr"> 848 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L849" class="LineNr"> 849 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L850" class="LineNr"> 850 </span> <span class="PreProc">var</span> _in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L847" class="LineNr"> 847 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L847'>number-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L848" class="LineNr"> 848 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L849" class="LineNr"> 849 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L850" class="LineNr"> 850 </span> <span class="PreProc">var</span> _in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L851" class="LineNr"> 851 </span> <span class="PreProc">var</span> in-data/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _in-data <span id="L852" class="LineNr"> 852 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data +<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data <span id="L854" class="LineNr"> 854 </span> <span class="muComment"># if '-', read another</span> <span id="L855" class="LineNr"> 855 </span> <span class="Delimiter">{</span> <span id="L856" class="LineNr"> 856 </span> compare g, <span class="Constant">0x2d</span>/minus @@ -924,13 +923,13 @@ if ('onhashchange' in window) { <span id="L859" class="LineNr"> 859 </span> <span class="Delimiter">}</span> <span id="L860" class="LineNr"> 860 </span> <span class="Delimiter">{</span> <span id="L861" class="LineNr"> 861 </span> <span class="Delimiter">{</span> -<span id="L862" class="LineNr"> 862 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L296'>decimal-digit?</a> g +<span id="L862" class="LineNr"> 862 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L296'>decimal-digit?</a> g <span id="L863" class="LineNr"> 863 </span> compare result, <span class="Constant">0</span>/false <span id="L864" class="LineNr"> 864 </span> <span class="PreProc">break-if-!=</span> <span id="L865" class="LineNr"> 865 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L866" class="LineNr"> 866 </span> <span class="Delimiter">}</span> <span id="L867" class="LineNr"> 867 </span> <span class="Delimiter">{</span> -<span id="L868" class="LineNr"> 868 </span> <span class="PreProc">var</span> done?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-data +<span id="L868" class="LineNr"> 868 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-data <span id="L869" class="LineNr"> 869 </span> compare done?, <span class="Constant">0</span>/false <span id="L870" class="LineNr"> 870 </span> <span class="Delimiter">}</span> <span id="L871" class="LineNr"> 871 </span> <span class="PreProc">break-if-!=</span> @@ -940,102 +939,102 @@ if ('onhashchange' in window) { <span id="L875" class="LineNr"> 875 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L876" class="LineNr"> 876 </span><span class="Delimiter">}</span> <span id="L877" class="LineNr"> 877 </span> -<span id="L878" class="LineNr"> 878 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L878'>bracket-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L878" class="LineNr"> 878 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L878'>bracket-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self <span id="L880" class="LineNr"> 880 </span> <span class="Delimiter">{</span> -<span id="L881" class="LineNr"> 881 </span> <span class="PreProc">var</span> in-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> +<span id="L881" class="LineNr"> 881 </span> <span class="PreProc">var</span> in-type/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> <span id="L882" class="LineNr"> 882 </span> compare *in-type, <span class="Constant">1</span>/stream <span id="L883" class="LineNr"> 883 </span> <span class="PreProc">break-if-!=</span> <span id="L884" class="LineNr"> 884 </span> <span class="muComment"># streams are never paren tokens</span> <span id="L885" class="LineNr"> 885 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L886" class="LineNr"> 886 </span> <span class="Delimiter">}</span> -<span id="L887" class="LineNr"> 887 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L888" class="LineNr"> 888 </span> <span class="PreProc">var</span> in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L887" class="LineNr"> 887 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L888" class="LineNr"> 888 </span> <span class="PreProc">var</span> in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L889" class="LineNr"> 889 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L890" class="LineNr"> 890 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data -<span id="L891" class="LineNr"> 891 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L813'>bracket-grapheme?</a> g +<span id="L890" class="LineNr"> 890 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data +<span id="L891" class="LineNr"> 891 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L813'>bracket-grapheme?</a> g <span id="L892" class="LineNr"> 892 </span> <span class="PreProc">return</span> result <span id="L893" class="LineNr"> 893 </span><span class="Delimiter">}</span> <span id="L894" class="LineNr"> 894 </span> -<span id="L895" class="LineNr"> 895 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L895'>quote-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L896" class="LineNr"> 896 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L898" class="LineNr"> 898 </span> <span class="PreProc">var</span> in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L895" class="LineNr"> 895 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L895'>quote-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L896" class="LineNr"> 896 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L898" class="LineNr"> 898 </span> <span class="PreProc">var</span> in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L899" class="LineNr"> 899 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L900" class="LineNr"> 900 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, <span class="Constant">"'"</span> +<span id="L900" class="LineNr"> 900 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, <span class="Constant">"'"</span> <span id="L901" class="LineNr"> 901 </span> <span class="PreProc">return</span> result <span id="L902" class="LineNr"> 902 </span><span class="Delimiter">}</span> <span id="L903" class="LineNr"> 903 </span> -<span id="L904" class="LineNr"> 904 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L904'>backquote-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L905" class="LineNr"> 905 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L906" class="LineNr"> 906 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L907" class="LineNr"> 907 </span> <span class="PreProc">var</span> in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L904" class="LineNr"> 904 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L904'>backquote-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L905" class="LineNr"> 905 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L906" class="LineNr"> 906 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L907" class="LineNr"> 907 </span> <span class="PreProc">var</span> in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L908" class="LineNr"> 908 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L909" class="LineNr"> 909 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, <span class="Constant">"`"</span> +<span id="L909" class="LineNr"> 909 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, <span class="Constant">"`"</span> <span id="L910" class="LineNr"> 910 </span> <span class="PreProc">return</span> result <span id="L911" class="LineNr"> 911 </span><span class="Delimiter">}</span> <span id="L912" class="LineNr"> 912 </span> -<span id="L913" class="LineNr"> 913 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L913'>unquote-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L914" class="LineNr"> 914 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L916" class="LineNr"> 916 </span> <span class="PreProc">var</span> in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L913" class="LineNr"> 913 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L913'>unquote-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L914" class="LineNr"> 914 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L916" class="LineNr"> 916 </span> <span class="PreProc">var</span> in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L917" class="LineNr"> 917 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L918" class="LineNr"> 918 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, <span class="Constant">","</span> +<span id="L918" class="LineNr"> 918 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, <span class="Constant">","</span> <span id="L919" class="LineNr"> 919 </span> <span class="PreProc">return</span> result <span id="L920" class="LineNr"> 920 </span><span class="Delimiter">}</span> <span id="L921" class="LineNr"> 921 </span> -<span id="L922" class="LineNr"> 922 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L922'>unquote-splice-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L923" class="LineNr"> 923 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L924" class="LineNr"> 924 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L925" class="LineNr"> 925 </span> <span class="PreProc">var</span> in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L922" class="LineNr"> 922 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L922'>unquote-splice-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L923" class="LineNr"> 923 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L924" class="LineNr"> 924 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L925" class="LineNr"> 925 </span> <span class="PreProc">var</span> in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L926" class="LineNr"> 926 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L927" class="LineNr"> 927 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, <span class="Constant">",@"</span> +<span id="L927" class="LineNr"> 927 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> in-data, <span class="Constant">",@"</span> <span id="L928" class="LineNr"> 928 </span> <span class="PreProc">return</span> result <span id="L929" class="LineNr"> 929 </span><span class="Delimiter">}</span> <span id="L930" class="LineNr"> 930 </span> -<span id="L931" class="LineNr"> 931 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L931'>open-paren-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L932" class="LineNr"> 932 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L933" class="LineNr"> 933 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L934" class="LineNr"> 934 </span> <span class="PreProc">var</span> _in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L931" class="LineNr"> 931 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L931'>open-paren-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L932" class="LineNr"> 932 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L933" class="LineNr"> 933 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L934" class="LineNr"> 934 </span> <span class="PreProc">var</span> _in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> in-data/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _in-data <span id="L936" class="LineNr"> 936 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L937" class="LineNr"> 937 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data +<span id="L937" class="LineNr"> 937 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data <span id="L938" class="LineNr"> 938 </span> compare g, <span class="Constant">0x28</span>/open-paren <span id="L939" class="LineNr"> 939 </span> <span class="Delimiter">{</span> <span id="L940" class="LineNr"> 940 </span> <span class="PreProc">break-if-!=</span> -<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-data +<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-data <span id="L942" class="LineNr"> 942 </span> <span class="PreProc">return</span> result <span id="L943" class="LineNr"> 943 </span> <span class="Delimiter">}</span> <span id="L944" class="LineNr"> 944 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L945" class="LineNr"> 945 </span><span class="Delimiter">}</span> <span id="L946" class="LineNr"> 946 </span> -<span id="L947" class="LineNr"> 947 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L947'>close-paren-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> _in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L947" class="LineNr"> 947 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L947'>close-paren-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> _in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L951" class="LineNr"> 951 </span> <span class="PreProc">var</span> in-data/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _in-data <span id="L952" class="LineNr"> 952 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L953" class="LineNr"> 953 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data +<span id="L953" class="LineNr"> 953 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data <span id="L954" class="LineNr"> 954 </span> compare g, <span class="Constant">0x29</span>/close-paren <span id="L955" class="LineNr"> 955 </span> <span class="Delimiter">{</span> <span id="L956" class="LineNr"> 956 </span> <span class="PreProc">break-if-!=</span> -<span id="L957" class="LineNr"> 957 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-data +<span id="L957" class="LineNr"> 957 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-data <span id="L958" class="LineNr"> 958 </span> <span class="PreProc">return</span> result <span id="L959" class="LineNr"> 959 </span> <span class="Delimiter">}</span> <span id="L960" class="LineNr"> 960 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L961" class="LineNr"> 961 </span><span class="Delimiter">}</span> <span id="L962" class="LineNr"> 962 </span> -<span id="L963" class="LineNr"> 963 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L963'>dot-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L964" class="LineNr"> 964 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L965" class="LineNr"> 965 </span> <span class="PreProc">var</span> in-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L966" class="LineNr"> 966 </span> <span class="PreProc">var</span> _in-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah +<span id="L963" class="LineNr"> 963 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L963'>dot-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L964" class="LineNr"> 964 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L965" class="LineNr"> 965 </span> <span class="PreProc">var</span> in-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L966" class="LineNr"> 966 </span> <span class="PreProc">var</span> _in-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-data-ah <span id="L967" class="LineNr"> 967 </span> <span class="PreProc">var</span> in-data/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _in-data <span id="L968" class="LineNr"> 968 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> in-data -<span id="L969" class="LineNr"> 969 </span> <span class="PreProc">var</span> g/<span class="muRegEax">eax</span>: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data +<span id="L969" class="LineNr"> 969 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in-data <span id="L970" class="LineNr"> 970 </span> compare g, <span class="Constant">0x2e</span>/dot <span id="L971" class="LineNr"> 971 </span> <span class="Delimiter">{</span> <span id="L972" class="LineNr"> 972 </span> <span class="PreProc">break-if-!=</span> -<span id="L973" class="LineNr"> 973 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-data +<span id="L973" class="LineNr"> 973 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in-data <span id="L974" class="LineNr"> 974 </span> <span class="PreProc">return</span> result <span id="L975" class="LineNr"> 975 </span> <span class="Delimiter">}</span> <span id="L976" class="LineNr"> 976 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false @@ -1043,17 +1042,17 @@ if ('onhashchange' in window) { <span id="L978" class="LineNr"> 978 </span> <span id="L979" class="LineNr"> 979 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L979'>test-dot-token</a></span> <span class="Delimiter">{</span> <span id="L980" class="LineNr"> 980 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='tokenize.mu.html#L3'>token</a>) -<span id="L981" class="LineNr"> 981 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEax">eax</span>: (addr handle <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address tmp-storage +<span id="L981" class="LineNr"> 981 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> address tmp-storage <span id="L982" class="LineNr"> 982 </span> <a href='tokenize.mu.html#L1022'>allocate-token</a> tmp-ah -<span id="L983" class="LineNr"> 983 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L983" class="LineNr"> 983 </span> <span class="PreProc">var</span> tmp/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L984" class="LineNr"> 984 </span> <a href='tokenize.mu.html#L1030'>initialize-token</a> tmp, <span class="Constant">"."</span> -<span id="L985" class="LineNr"> 985 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L963'>dot-token?</a> tmp +<span id="L985" class="LineNr"> 985 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='tokenize.mu.html#L963'>dot-token?</a> tmp <span id="L986" class="LineNr"> 986 </span> <a href='../502test.mu.html#L19'>check</a> result, <span class="Constant">"F - test-dot-token"</span> <span id="L987" class="LineNr"> 987 </span><span class="Delimiter">}</span> <span id="L988" class="LineNr"> 988 </span> -<span id="L989" class="LineNr"> 989 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L989'>stream-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> in-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> +<span id="L989" class="LineNr"> 989 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L989'>stream-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> in-type/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> <span id="L992" class="LineNr"> 992 </span> compare *in-type, <span class="Constant">1</span>/stream <span id="L993" class="LineNr"> 993 </span> <span class="Delimiter">{</span> <span id="L994" class="LineNr"> 994 </span> <span class="PreProc">break-if-=</span> @@ -1062,9 +1061,9 @@ if ('onhashchange' in window) { <span id="L997" class="LineNr"> 997 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L998" class="LineNr"> 998 </span><span class="Delimiter">}</span> <span id="L999" class="LineNr"> 999 </span> -<span id="L1000" class="LineNr">1000 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1000'>skip-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L1001" class="LineNr">1001 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> in-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> +<span id="L1000" class="LineNr">1000 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1000'>skip-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L1001" class="LineNr">1001 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> in-type/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> <span id="L1003" class="LineNr">1003 </span> compare *in-type, <span class="Constant">2</span>/skip <span id="L1004" class="LineNr">1004 </span> <span class="Delimiter">{</span> <span id="L1005" class="LineNr">1005 </span> <span class="PreProc">break-if-=</span> @@ -1073,9 +1072,9 @@ if ('onhashchange' in window) { <span id="L1008" class="LineNr">1008 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L1009" class="LineNr">1009 </span><span class="Delimiter">}</span> <span id="L1010" class="LineNr">1010 </span> -<span id="L1011" class="LineNr">1011 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1011'>indent-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L1012" class="LineNr">1012 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L1013" class="LineNr">1013 </span> <span class="PreProc">var</span> in-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> +<span id="L1011" class="LineNr">1011 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1011'>indent-token?</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L1012" class="LineNr">1012 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L1013" class="LineNr">1013 </span> <span class="PreProc">var</span> in-type/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> <span id="L1014" class="LineNr">1014 </span> compare *in-type, <span class="Constant">3</span>/indent <span id="L1015" class="LineNr">1015 </span> <span class="Delimiter">{</span> <span id="L1016" class="LineNr">1016 </span> <span class="PreProc">break-if-=</span> @@ -1085,40 +1084,40 @@ if ('onhashchange' in window) { <span id="L1020" class="LineNr">1020 </span><span class="Delimiter">}</span> <span id="L1021" class="LineNr">1021 </span> <span id="L1022" class="LineNr">1022 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1022'>allocate-token</a></span> _self-ah: (addr handle <a href='tokenize.mu.html#L3'>token</a>) <span class="Delimiter">{</span> -<span id="L1023" class="LineNr">1023 </span> <span class="PreProc">var</span> self-ah/<span class="muRegEax">eax</span>: (addr handle <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self-ah +<span id="L1023" class="LineNr">1023 </span> <span class="PreProc">var</span> self-ah/eax: (addr handle <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self-ah <span id="L1024" class="LineNr">1024 </span> <a href='../120allocate.subx.html#L43'>allocate</a> self-ah -<span id="L1025" class="LineNr">1025 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *self-ah -<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L1025" class="LineNr">1025 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *self-ah +<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data <span id="L1027" class="LineNr">1027 </span> populate-stream dest-ah, <span class="Constant">0x40</span>/max-symbol-size <span id="L1028" class="LineNr">1028 </span><span class="Delimiter">}</span> <span id="L1029" class="LineNr">1029 </span> <span id="L1030" class="LineNr">1030 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1030'>initialize-token</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>), val: (addr array byte) <span class="Delimiter">{</span> -<span id="L1031" class="LineNr">1031 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L1032" class="LineNr">1032 </span> <span class="PreProc">var</span> dest-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L1031" class="LineNr">1031 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L1032" class="LineNr">1032 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data <span id="L1033" class="LineNr">1033 </span> populate-stream dest-ah, <span class="Constant">0x40</span> -<span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah +<span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> dest/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah <span id="L1035" class="LineNr">1035 </span> <a href='../108write.subx.html#L11'>write</a> dest, val <span id="L1036" class="LineNr">1036 </span><span class="Delimiter">}</span> <span id="L1037" class="LineNr">1037 </span> <span id="L1038" class="LineNr">1038 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1038'>initialize-skip-token</a></span> _self: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Delimiter">{</span> -<span id="L1039" class="LineNr">1039 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L1040" class="LineNr">1040 </span> <span class="PreProc">var</span> self-type/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> +<span id="L1039" class="LineNr">1039 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L1040" class="LineNr">1040 </span> <span class="PreProc">var</span> self-type/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> <span id="L1041" class="LineNr">1041 </span> copy-to *self-type, <span class="Constant">2</span>/skip <span id="L1042" class="LineNr">1042 </span><span class="Delimiter">}</span> <span id="L1043" class="LineNr">1043 </span> <span id="L1044" class="LineNr">1044 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1044'>write-token-text-data</a></span> out: (addr stream byte), _self: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Delimiter">{</span> -<span id="L1045" class="LineNr">1045 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self -<span id="L1046" class="LineNr">1046 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get self, text-data -<span id="L1047" class="LineNr">1047 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L1045" class="LineNr">1045 </span> <span class="PreProc">var</span> self/eax: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _self +<span id="L1046" class="LineNr">1046 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, text-data +<span id="L1047" class="LineNr">1047 </span> <span class="PreProc">var</span> data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L1048" class="LineNr">1048 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> data <span id="L1049" class="LineNr">1049 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> out, data <span id="L1050" class="LineNr">1050 </span><span class="Delimiter">}</span> <span id="L1051" class="LineNr">1051 </span> -<span id="L1052" class="LineNr">1052 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1052'>tokens-equal?</a></span> _a: (addr <a href='tokenize.mu.html#L3'>token</a>), _b: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L1052" class="LineNr">1052 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1052'>tokens-equal?</a></span> _a: (addr <a href='tokenize.mu.html#L3'>token</a>), _b: (addr <a href='tokenize.mu.html#L3'>token</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1053" class="LineNr">1053 </span> <span class="PreProc">var</span> a/<span class="muRegEdx">edx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _a <span id="L1054" class="LineNr">1054 </span> <span class="PreProc">var</span> b/<span class="muRegEbx">ebx</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _b -<span id="L1055" class="LineNr">1055 </span> <span class="PreProc">var</span> a-type-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get a, <span class="PreProc">type</span> -<span id="L1056" class="LineNr">1056 </span> <span class="PreProc">var</span> a-type/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *a-type-addr +<span id="L1055" class="LineNr">1055 </span> <span class="PreProc">var</span> a-type-addr/eax: (addr int) <span class="Special"><-</span> get a, <span class="PreProc">type</span> +<span id="L1056" class="LineNr">1056 </span> <span class="PreProc">var</span> a-type/eax: int <span class="Special"><-</span> copy *a-type-addr <span id="L1057" class="LineNr">1057 </span> <span class="PreProc">var</span> b-type-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get b, <span class="PreProc">type</span> <span id="L1058" class="LineNr">1058 </span> compare a-type, *b-type-addr <span id="L1059" class="LineNr">1059 </span> <span class="Delimiter">{</span> @@ -1135,8 +1134,8 @@ if ('onhashchange' in window) { <span id="L1070" class="LineNr">1070 </span> <span class="Delimiter">{</span> <span id="L1071" class="LineNr">1071 </span> <span class="PreProc">break-if-!=</span> <span id="L1072" class="LineNr">1072 </span> <span class="muComment"># indent tokens have no other data</span> -<span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> a-number-data-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get a, number-data -<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> a-number-data/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *a-number-data-addr +<span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> a-number-data-addr/eax: (addr int) <span class="Special"><-</span> get a, number-data +<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> a-number-data/eax: int <span class="Special"><-</span> copy *a-number-data-addr <span id="L1075" class="LineNr">1075 </span> <span class="PreProc">var</span> b-number-data-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get b, number-data <span id="L1076" class="LineNr">1076 </span> compare a-number-data, *b-number-data-addr <span id="L1077" class="LineNr">1077 </span> <span class="Delimiter">{</span> @@ -1145,26 +1144,26 @@ if ('onhashchange' in window) { <span id="L1080" class="LineNr">1080 </span> <span class="Delimiter">}</span> <span id="L1081" class="LineNr">1081 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L1082" class="LineNr">1082 </span> <span class="Delimiter">}</span> -<span id="L1083" class="LineNr">1083 </span> <span class="PreProc">var</span> b-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get b, text-data -<span id="L1084" class="LineNr">1084 </span> <span class="PreProc">var</span> _b-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-data-ah +<span id="L1083" class="LineNr">1083 </span> <span class="PreProc">var</span> b-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get b, text-data +<span id="L1084" class="LineNr">1084 </span> <span class="PreProc">var</span> _b-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-data-ah <span id="L1085" class="LineNr">1085 </span> <span class="PreProc">var</span> b-data/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> copy _b-data -<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> a-data-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get a, text-data -<span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> a-data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-data-ah -<span id="L1088" class="LineNr">1088 </span> <span class="PreProc">var</span> data-match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L211'>streams-data-equal?</a> a-data, b-data +<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> a-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get a, text-data +<span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> a-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-data-ah +<span id="L1088" class="LineNr">1088 </span> <span class="PreProc">var</span> data-match?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L211'>streams-data-equal?</a> a-data, b-data <span id="L1089" class="LineNr">1089 </span> <span class="PreProc">return</span> data-match? <span id="L1090" class="LineNr">1090 </span><span class="Delimiter">}</span> <span id="L1091" class="LineNr">1091 </span> <span id="L1092" class="LineNr">1092 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1092'>dump-token-from-cursor</a></span> _t: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Delimiter">{</span> <span id="L1093" class="LineNr">1093 </span> <span class="PreProc">var</span> t/<span class="muRegEsi">esi</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special"><-</span> copy _t -<span id="L1094" class="LineNr">1094 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get t, <span class="PreProc">type</span> +<span id="L1094" class="LineNr">1094 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get t, <span class="PreProc">type</span> <span id="L1095" class="LineNr">1095 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, *<span class="PreProc">type</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg <span id="L1096" class="LineNr">1096 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg -<span id="L1097" class="LineNr">1097 </span> <span class="PreProc">var</span> text-ah/<span class="muRegEax">eax</span>: (addr handle stream byte) <span class="Special"><-</span> get t, text-data -<span id="L1098" class="LineNr">1098 </span> <span class="PreProc">var</span> text/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *text-ah +<span id="L1097" class="LineNr">1097 </span> <span class="PreProc">var</span> text-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get t, text-data +<span id="L1098" class="LineNr">1098 </span> <span class="PreProc">var</span> text/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *text-ah <span id="L1099" class="LineNr">1099 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> text <span id="L1100" class="LineNr">1100 </span> <a href='../501draw-text.mu.html#L235'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, text, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg <span id="L1101" class="LineNr">1101 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg -<span id="L1102" class="LineNr">1102 </span> <span class="PreProc">var</span> num/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get t, number-data +<span id="L1102" class="LineNr">1102 </span> <span class="PreProc">var</span> num/eax: (addr int) <span class="Special"><-</span> get t, number-data <span id="L1103" class="LineNr">1103 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, *num, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg <span id="L1104" class="LineNr">1104 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg <span id="L1105" class="LineNr">1105 </span><span class="Delimiter">}</span> diff --git a/html/shell/trace.mu.html b/html/shell/trace.mu.html index d8ee5fa7..2d33cef6 100644 --- a/html/shell/trace.mu.html +++ b/html/shell/trace.mu.html @@ -16,19 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #87d787; } -.muRegEdi { color: #87ffd7; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEax { color: #875f00; } -.muRegEcx { color: #af875f; } -.muRegEdx { color: #878700; } -.muRegEbx { color: #8787af; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } --> </style> @@ -132,19 +131,19 @@ if ('onhashchange' in window) { <span id="L66" class="LineNr"> 66 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">}</span> <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy max-depth -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, max-depth +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> dest/eax: (addr int) <span class="Special"><-</span> get self, max-depth <span id="L70" class="LineNr"> 70 </span> copy-to *dest, src <span id="L71" class="LineNr"> 71 </span> dest <span class="Special"><-</span> get self, curr-depth <span id="L72" class="LineNr"> 72 </span> copy-to *dest, <span class="Constant">1</span> <span class="muComment"># 0 is the error depth</span> -<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data <span id="L74" class="LineNr"> 74 </span> populate trace-ah, capacity -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> visible-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, visible +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> visible-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, visible <span id="L76" class="LineNr"> 76 </span> populate visible-ah, visible-capacity <span id="L77" class="LineNr"> 77 </span> <a href='trace.mu.html#L440'>mark-lines-dirty</a> self <span id="L78" class="LineNr"> 78 </span><span class="Delimiter">}</span> <span id="L79" class="LineNr"> 79 </span> <span id="L80" class="LineNr"> 80 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L80'>clear-trace</a></span> _self: (addr trace) <span class="Delimiter">{</span> -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> copy _self +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> self/eax: (addr trace) <span class="Special"><-</span> copy _self <span id="L82" class="LineNr"> 82 </span> compare self, <span class="Constant">0</span> <span id="L83" class="LineNr"> 83 </span> <span class="Delimiter">{</span> <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">break-if-!=</span> @@ -157,24 +156,24 @@ if ('onhashchange' in window) { <span id="L91" class="LineNr"> 91 </span> <span class="muComment"># leak: nested handles within trace-lines</span> <span id="L92" class="LineNr"> 92 </span><span class="Delimiter">}</span> <span id="L93" class="LineNr"> 93 </span> -<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L94'>has-errors?</a></span> _self: (addr trace)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> copy _self +<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L94'>has-errors?</a></span> _self: (addr trace)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> self/eax: (addr trace) <span class="Special"><-</span> copy _self <span id="L96" class="LineNr"> 96 </span> compare self, <span class="Constant">0</span> <span id="L97" class="LineNr"> 97 </span> <span class="Delimiter">{</span> <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">break-if-!=</span> <span id="L99" class="LineNr"> 99 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L100" class="LineNr"> 100 </span> <span class="Delimiter">}</span> <span id="L101" class="LineNr"> 101 </span> <span class="PreProc">var</span> max/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, first-free -<span id="L102" class="LineNr"> 102 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L103" class="LineNr"> 103 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L102" class="LineNr"> 102 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L103" class="LineNr"> 103 </span> <span class="PreProc">var</span> _trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L104" class="LineNr"> 104 </span> <span class="PreProc">var</span> trace/<span class="muRegEsi">esi</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _trace <span id="L105" class="LineNr"> 105 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L106" class="LineNr"> 106 </span> <span class="Delimiter">{</span> <span id="L107" class="LineNr"> 107 </span> compare i, *max <span id="L108" class="LineNr"> 108 </span> <span class="PreProc">break-if->=</span> -<span id="L109" class="LineNr"> 109 </span> <span class="PreProc">var</span> offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i -<span id="L110" class="LineNr"> 110 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, offset -<span id="L111" class="LineNr"> 111 </span> <span class="PreProc">var</span> curr-depth-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr, depth +<span id="L109" class="LineNr"> 109 </span> <span class="PreProc">var</span> offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i +<span id="L110" class="LineNr"> 110 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, offset +<span id="L111" class="LineNr"> 111 </span> <span class="PreProc">var</span> curr-depth-a/eax: (addr int) <span class="Special"><-</span> get curr, depth <span id="L112" class="LineNr"> 112 </span> compare *curr-depth-a, <span class="Constant">0</span>/<span class="Special"><a href='trace.mu.html#L197'>error</a></span> <span id="L113" class="LineNr"> 113 </span> <span class="Delimiter">{</span> <span id="L114" class="LineNr"> 114 </span> <span class="PreProc">break-if-!=</span> @@ -186,7 +185,7 @@ if ('onhashchange' in window) { <span id="L120" class="LineNr"> 120 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L121" class="LineNr"> 121 </span><span class="Delimiter">}</span> <span id="L122" class="LineNr"> 122 </span> -<span id="L123" class="LineNr"> 123 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L123'>should-trace?</a></span> _self: (addr trace)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L123" class="LineNr"> 123 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L123'>should-trace?</a></span> _self: (addr trace)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L124" class="LineNr"> 124 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self <span id="L125" class="LineNr"> 125 </span> compare self, <span class="Constant">0</span> <span id="L126" class="LineNr"> 126 </span> <span class="Delimiter">{</span> @@ -195,7 +194,7 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr"> 129 </span> <span class="Delimiter">}</span> <span id="L130" class="LineNr"> 130 </span> <span class="PreProc">var</span> depth-a/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, curr-depth <span id="L131" class="LineNr"> 131 </span> <span class="PreProc">var</span> depth/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *depth-a -<span id="L132" class="LineNr"> 132 </span> <span class="PreProc">var</span> max-depth-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, max-depth +<span id="L132" class="LineNr"> 132 </span> <span class="PreProc">var</span> max-depth-a/eax: (addr int) <span class="Special"><-</span> get self, max-depth <span id="L133" class="LineNr"> 133 </span> compare depth, *max-depth-a <span id="L134" class="LineNr"> 134 </span> <span class="Delimiter">{</span> <span id="L135" class="LineNr"> 135 </span> <span class="PreProc">break-if->=</span> @@ -211,14 +210,14 @@ if ('onhashchange' in window) { <span id="L145" class="LineNr"> 145 </span> <span class="PreProc">break-if-!=</span> <span id="L146" class="LineNr"> 146 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L147" class="LineNr"> 147 </span> <span class="Delimiter">}</span> -<span id="L148" class="LineNr"> 148 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> self +<span id="L148" class="LineNr"> 148 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> self <span id="L149" class="LineNr"> 149 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false <span id="L150" class="LineNr"> 150 </span> <span class="Delimiter">{</span> <span id="L151" class="LineNr"> 151 </span> <span class="PreProc">break-if-!=</span> <span id="L152" class="LineNr"> 152 </span> <span class="PreProc">return</span> <span id="L153" class="LineNr"> 153 </span> <span class="Delimiter">}</span> -<span id="L154" class="LineNr"> 154 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L155" class="LineNr"> 155 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L154" class="LineNr"> 154 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L155" class="LineNr"> 155 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L156" class="LineNr"> 156 </span> <span class="PreProc">var</span> index-addr/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> get self, first-free <span id="L157" class="LineNr"> 157 </span> <span class="Delimiter">{</span> <span id="L158" class="LineNr"> 158 </span> compare *index-addr, <span class="Constant">0x8000</span>/lines @@ -227,7 +226,7 @@ if ('onhashchange' in window) { <span id="L161" class="LineNr"> 161 </span> <span class="Delimiter">}</span> <span id="L162" class="LineNr"> 162 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *index-addr <span id="L163" class="LineNr"> 163 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset data, index -<span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index data, offset +<span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index data, offset <span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> depth/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, curr-depth <span id="L166" class="LineNr"> 166 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> message <span id="L167" class="LineNr"> 167 </span> <span class="Delimiter">{</span> @@ -255,7 +254,7 @@ if ('onhashchange' in window) { <span id="L189" class="LineNr"> 189 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L190" class="LineNr"> 190 </span> <span class="Delimiter">}</span> <span id="L191" class="LineNr"> 191 </span> <span class="PreProc">var</span> data-storage: (stream byte <span class="Constant">0x100</span>) -<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> data/<span class="muRegEax">eax</span>: (addr stream byte) <span class="Special"><-</span> address data-storage +<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> data/eax: (addr stream byte) <span class="Special"><-</span> address data-storage <span id="L193" class="LineNr"> 193 </span> <a href='../108write.subx.html#L11'>write</a> data, s <span id="L194" class="LineNr"> 194 </span> trace self, label, data <span id="L195" class="LineNr"> 195 </span><span class="Delimiter">}</span> @@ -267,7 +266,7 @@ if ('onhashchange' in window) { <span id="L201" class="LineNr"> 201 </span> <span class="PreProc">break-if-!=</span> <span id="L202" class="LineNr"> 202 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L203" class="LineNr"> 203 </span> <span class="Delimiter">}</span> -<span id="L204" class="LineNr"> 204 </span> <span class="PreProc">var</span> curr-depth-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, curr-depth +<span id="L204" class="LineNr"> 204 </span> <span class="PreProc">var</span> curr-depth-a/eax: (addr int) <span class="Special"><-</span> get self, curr-depth <span id="L205" class="LineNr"> 205 </span> <span class="PreProc">var</span> save-depth/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *curr-depth-a <span id="L206" class="LineNr"> 206 </span> copy-to *curr-depth-a, <span class="Constant">0</span>/<span class="Special"><a href='trace.mu.html#L197'>error</a></span> <span id="L207" class="LineNr"> 207 </span> <a href='trace.mu.html#L185'>trace-text</a> self, <span class="Constant">"error"</span>, message @@ -281,7 +280,7 @@ if ('onhashchange' in window) { <span id="L215" class="LineNr"> 215 </span> <span class="PreProc">break-if-!=</span> <span id="L216" class="LineNr"> 216 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L217" class="LineNr"> 217 </span> <span class="Delimiter">}</span> -<span id="L218" class="LineNr"> 218 </span> <span class="PreProc">var</span> curr-depth-a/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, curr-depth +<span id="L218" class="LineNr"> 218 </span> <span class="PreProc">var</span> curr-depth-a/eax: (addr int) <span class="Special"><-</span> get self, curr-depth <span id="L219" class="LineNr"> 219 </span> <span class="PreProc">var</span> save-depth/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *curr-depth-a <span id="L220" class="LineNr"> 220 </span> copy-to *curr-depth-a, <span class="Constant">0</span>/<span class="Special"><a href='trace.mu.html#L197'>error</a></span> <span id="L221" class="LineNr"> 221 </span> trace self, <span class="Constant">"error"</span>, message @@ -291,14 +290,14 @@ if ('onhashchange' in window) { <span id="L225" class="LineNr"> 225 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L225'>initialize-trace-line</a></span> depth: int, label: (addr array byte), data: (addr stream byte), _out: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Delimiter">{</span> <span id="L226" class="LineNr"> 226 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _out <span id="L227" class="LineNr"> 227 </span> <span class="muComment"># depth</span> -<span id="L228" class="LineNr"> 228 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy depth +<span id="L228" class="LineNr"> 228 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> copy depth <span id="L229" class="LineNr"> 229 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get out, depth <span id="L230" class="LineNr"> 230 </span> copy-to *dest, src <span id="L231" class="LineNr"> 231 </span> <span class="muComment"># label</span> -<span id="L232" class="LineNr"> 232 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get out, label +<span id="L232" class="LineNr"> 232 </span> <span class="PreProc">var</span> dest/eax: (addr handle array byte) <span class="Special"><-</span> get out, label <span id="L233" class="LineNr"> 233 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> label, dest <span id="L234" class="LineNr"> 234 </span> <span class="muComment"># data</span> -<span id="L235" class="LineNr"> 235 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get out, data +<span id="L235" class="LineNr"> 235 </span> <span class="PreProc">var</span> dest/eax: (addr handle array byte) <span class="Special"><-</span> get out, data <span id="L236" class="LineNr"> 236 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> data, dest <span id="L237" class="LineNr"> 237 </span><span class="Delimiter">}</span> <span id="L238" class="LineNr"> 238 </span> @@ -309,7 +308,7 @@ if ('onhashchange' in window) { <span id="L243" class="LineNr"> 243 </span> <span class="PreProc">break-if-!=</span> <span id="L244" class="LineNr"> 244 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L245" class="LineNr"> 245 </span> <span class="Delimiter">}</span> -<span id="L246" class="LineNr"> 246 </span> <span class="PreProc">var</span> depth/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, curr-depth +<span id="L246" class="LineNr"> 246 </span> <span class="PreProc">var</span> depth/eax: (addr int) <span class="Special"><-</span> get self, curr-depth <span id="L247" class="LineNr"> 247 </span> increment *depth <span id="L248" class="LineNr"> 248 </span><span class="Delimiter">}</span> <span id="L249" class="LineNr"> 249 </span> @@ -320,21 +319,21 @@ if ('onhashchange' in window) { <span id="L254" class="LineNr"> 254 </span> <span class="PreProc">break-if-!=</span> <span id="L255" class="LineNr"> 255 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L256" class="LineNr"> 256 </span> <span class="Delimiter">}</span> -<span id="L257" class="LineNr"> 257 </span> <span class="PreProc">var</span> depth/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, curr-depth +<span id="L257" class="LineNr"> 257 </span> <span class="PreProc">var</span> depth/eax: (addr int) <span class="Special"><-</span> get self, curr-depth <span id="L258" class="LineNr"> 258 </span> decrement *depth <span id="L259" class="LineNr"> 259 </span><span class="Delimiter">}</span> <span id="L260" class="LineNr"> 260 </span> <span id="L261" class="LineNr"> 261 </span><span class="muComment">## checking traces</span> <span id="L262" class="LineNr"> 262 </span> <span id="L263" class="LineNr"> 263 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L263'>check-trace-scans-to</a></span> self: (addr trace), label: (addr array byte), data: (addr array byte), message: (addr array byte) <span class="Delimiter">{</span> -<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L268'>trace-scans-to?</a> self, label, data +<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> tmp/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L268'>trace-scans-to?</a> self, label, data <span id="L265" class="LineNr"> 265 </span> <a href='../502test.mu.html#L19'>check</a> tmp, message <span id="L266" class="LineNr"> 266 </span><span class="Delimiter">}</span> <span id="L267" class="LineNr"> 267 </span> -<span id="L268" class="LineNr"> 268 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L268'>trace-scans-to?</a></span> _self: (addr trace), label: (addr array byte), data: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L268" class="LineNr"> 268 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L268'>trace-scans-to?</a></span> _self: (addr trace), label: (addr array byte), data: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L269" class="LineNr"> 269 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> start/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, first-full -<span id="L271" class="LineNr"> 271 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L312'>trace-contains?</a> self, label, data, *start +<span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> start/eax: (addr int) <span class="Special"><-</span> get self, first-full +<span id="L271" class="LineNr"> 271 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L312'>trace-contains?</a> self, label, data, *start <span id="L272" class="LineNr"> 272 </span> <span class="PreProc">return</span> result <span id="L273" class="LineNr"> 273 </span><span class="Delimiter">}</span> <span id="L274" class="LineNr"> 274 </span> @@ -347,16 +346,16 @@ if ('onhashchange' in window) { <span id="L281" class="LineNr"> 281 </span> <a href='trace.mu.html#L185'>trace-text</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 2"</span> <span id="L282" class="LineNr"> 282 </span> <a href='trace.mu.html#L263'>check-trace-scans-to</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 1"</span>, <span class="Constant">"F - <a href='trace.mu.html#L275'>test-trace-scans-to</a>/0"</span> <span id="L283" class="LineNr"> 283 </span> <a href='trace.mu.html#L263'>check-trace-scans-to</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 2"</span>, <span class="Constant">"F - <a href='trace.mu.html#L275'>test-trace-scans-to</a>/1"</span> -<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L268'>trace-scans-to?</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 1"</span> +<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> tmp/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L268'>trace-scans-to?</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 1"</span> <span id="L285" class="LineNr"> 285 </span> <a href='../502test.mu.html#L32'>check-not</a> tmp, <span class="Constant">"F - <a href='trace.mu.html#L275'>test-trace-scans-to</a>: fail on previously encountered lines"</span> -<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L268'>trace-scans-to?</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 3"</span> +<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">var</span> tmp/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L268'>trace-scans-to?</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 3"</span> <span id="L287" class="LineNr"> 287 </span> <a href='../502test.mu.html#L32'>check-not</a> tmp, <span class="Constant">"F - <a href='trace.mu.html#L275'>test-trace-scans-to</a>: fail on missing"</span> <span id="L288" class="LineNr"> 288 </span><span class="Delimiter">}</span> <span id="L289" class="LineNr"> 289 </span> <span id="L290" class="LineNr"> 290 </span><span class="muComment"># scan trace from start</span> <span id="L291" class="LineNr"> 291 </span><span class="muComment"># resets previous scans</span> <span id="L292" class="LineNr"> 292 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L292'>check-trace-contains</a></span> self: (addr trace), label: (addr array byte), data: (addr array byte), message: (addr array byte) <span class="Delimiter">{</span> -<span id="L293" class="LineNr"> 293 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L312'>trace-contains?</a> self, label, data, <span class="Constant">0</span> +<span id="L293" class="LineNr"> 293 </span> <span class="PreProc">var</span> tmp/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L312'>trace-contains?</a> self, label, data, <span class="Constant">0</span> <span id="L294" class="LineNr"> 294 </span> <a href='../502test.mu.html#L19'>check</a> tmp, message <span id="L295" class="LineNr"> 295 </span><span class="Delimiter">}</span> <span id="L296" class="LineNr"> 296 </span> @@ -370,37 +369,37 @@ if ('onhashchange' in window) { <span id="L304" class="LineNr"> 304 </span> <a href='trace.mu.html#L292'>check-trace-contains</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 1"</span>, <span class="Constant">"F - <a href='trace.mu.html#L297'>test-trace-contains</a>/0"</span> <span id="L305" class="LineNr"> 305 </span> <a href='trace.mu.html#L292'>check-trace-contains</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 2"</span>, <span class="Constant">"F - <a href='trace.mu.html#L297'>test-trace-contains</a>/1"</span> <span id="L306" class="LineNr"> 306 </span> <a href='trace.mu.html#L292'>check-trace-contains</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 1"</span>, <span class="Constant">"F - <a href='trace.mu.html#L297'>test-trace-contains</a>: find previously encountered lines"</span> -<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> tmp/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L312'>trace-contains?</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 3"</span>, <span class="Constant">0</span>/start +<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> tmp/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L312'>trace-contains?</a> t, <span class="Constant">"label"</span>, <span class="Constant">"line 3"</span>, <span class="Constant">0</span>/start <span id="L308" class="LineNr"> 308 </span> <a href='../502test.mu.html#L32'>check-not</a> tmp, <span class="Constant">"F - <a href='trace.mu.html#L297'>test-trace-contains</a>: fail on missing"</span> <span id="L309" class="LineNr"> 309 </span><span class="Delimiter">}</span> <span id="L310" class="LineNr"> 310 </span> <span id="L311" class="LineNr"> 311 </span><span class="muComment"># this is super-inefficient, string comparing every trace line</span> -<span id="L312" class="LineNr"> 312 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L312'>trace-contains?</a></span> _self: (addr trace), label: (addr array byte), data: (addr array byte), start: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L312" class="LineNr"> 312 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L312'>trace-contains?</a></span> _self: (addr trace), label: (addr array byte), data: (addr array byte), start: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L314" class="LineNr"> 314 </span> <span class="PreProc">var</span> candidates-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L315" class="LineNr"> 315 </span> <span class="PreProc">var</span> candidates/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *candidates-ah +<span id="L314" class="LineNr"> 314 </span> <span class="PreProc">var</span> candidates-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L315" class="LineNr"> 315 </span> <span class="PreProc">var</span> candidates/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *candidates-ah <span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy start <span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> max/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, first-free <span id="L318" class="LineNr"> 318 </span> <span class="Delimiter">{</span> <span id="L319" class="LineNr"> 319 </span> compare i, *max <span id="L320" class="LineNr"> 320 </span> <span class="PreProc">break-if->=</span> <span id="L321" class="LineNr"> 321 </span> <span class="Delimiter">{</span> -<span id="L322" class="LineNr"> 322 </span> <span class="PreProc">var</span> read-until-index/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, first-full +<span id="L322" class="LineNr"> 322 </span> <span class="PreProc">var</span> read-until-index/eax: (addr int) <span class="Special"><-</span> get self, first-full <span id="L323" class="LineNr"> 323 </span> copy-to *read-until-index, i <span id="L324" class="LineNr"> 324 </span> <span class="Delimiter">}</span> <span id="L325" class="LineNr"> 325 </span> <span class="Delimiter">{</span> <span id="L326" class="LineNr"> 326 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEcx">ecx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset candidates, i <span id="L327" class="LineNr"> 327 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index candidates, curr-offset <span id="L328" class="LineNr"> 328 </span> <span class="muComment"># if curr->label does not match, return false</span> -<span id="L329" class="LineNr"> 329 </span> <span class="PreProc">var</span> curr-label-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, label -<span id="L330" class="LineNr"> 330 </span> <span class="PreProc">var</span> curr-label/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-label-ah -<span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-label, label +<span id="L329" class="LineNr"> 329 </span> <span class="PreProc">var</span> curr-label-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, label +<span id="L330" class="LineNr"> 330 </span> <span class="PreProc">var</span> curr-label/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-label-ah +<span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-label, label <span id="L332" class="LineNr"> 332 </span> compare match?, <span class="Constant">0</span>/false <span id="L333" class="LineNr"> 333 </span> <span class="PreProc">break-if-=</span> <span id="L334" class="LineNr"> 334 </span> <span class="muComment"># if curr->data does not match, return false</span> -<span id="L335" class="LineNr"> 335 </span> <span class="PreProc">var</span> curr-data-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, data -<span id="L336" class="LineNr"> 336 </span> <span class="PreProc">var</span> curr-data/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-data-ah -<span id="L337" class="LineNr"> 337 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-data, data +<span id="L335" class="LineNr"> 335 </span> <span class="PreProc">var</span> curr-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, data +<span id="L336" class="LineNr"> 336 </span> <span class="PreProc">var</span> curr-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-data-ah +<span id="L337" class="LineNr"> 337 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-data, data <span id="L338" class="LineNr"> 338 </span> compare match?, <span class="Constant">0</span>/false <span id="L339" class="LineNr"> 339 </span> <span class="PreProc">break-if-=</span> <span id="L340" class="LineNr"> 340 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true @@ -411,34 +410,34 @@ if ('onhashchange' in window) { <span id="L345" class="LineNr"> 345 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L346" class="LineNr"> 346 </span><span class="Delimiter">}</span> <span id="L347" class="LineNr"> 347 </span> -<span id="L348" class="LineNr"> 348 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L348'>trace-lines-equal?</a></span> _a: (addr <a href='trace.mu.html#L41'>trace-line</a>), _b: (addr <a href='trace.mu.html#L41'>trace-line</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L348" class="LineNr"> 348 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L348'>trace-lines-equal?</a></span> _a: (addr <a href='trace.mu.html#L41'>trace-line</a>), _b: (addr <a href='trace.mu.html#L41'>trace-line</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L349" class="LineNr"> 349 </span> <span class="PreProc">var</span> a/<span class="muRegEsi">esi</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _a <span id="L350" class="LineNr"> 350 </span> <span class="PreProc">var</span> b/<span class="muRegEdi">edi</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _b <span id="L351" class="LineNr"> 351 </span> <span class="PreProc">var</span> a-depth/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get a, depth <span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> b-depth/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get b, depth -<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> benchmark/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *b-depth +<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> benchmark/eax: int <span class="Special"><-</span> copy *b-depth <span id="L354" class="LineNr"> 354 </span> compare *a-depth, benchmark <span id="L355" class="LineNr"> 355 </span> <span class="Delimiter">{</span> <span id="L356" class="LineNr"> 356 </span> <span class="PreProc">break-if-=</span> <span id="L357" class="LineNr"> 357 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L358" class="LineNr"> 358 </span> <span class="Delimiter">}</span> -<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">var</span> a-label-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get a, label -<span id="L360" class="LineNr"> 360 </span> <span class="PreProc">var</span> _a-label/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-label-ah +<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">var</span> a-label-ah/eax: (addr handle array byte) <span class="Special"><-</span> get a, label +<span id="L360" class="LineNr"> 360 </span> <span class="PreProc">var</span> _a-label/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-label-ah <span id="L361" class="LineNr"> 361 </span> <span class="PreProc">var</span> a-label/<span class="muRegEcx">ecx</span>: (addr array byte) <span class="Special"><-</span> copy _a-label <span id="L362" class="LineNr"> 362 </span> <span class="PreProc">var</span> b-label-ah/<span class="muRegEbx">ebx</span>: (addr handle array byte) <span class="Special"><-</span> get b, label -<span id="L363" class="LineNr"> 363 </span> <span class="PreProc">var</span> b-label/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-label-ah -<span id="L364" class="LineNr"> 364 </span> <span class="PreProc">var</span> label-match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> a-label, b-label +<span id="L363" class="LineNr"> 363 </span> <span class="PreProc">var</span> b-label/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-label-ah +<span id="L364" class="LineNr"> 364 </span> <span class="PreProc">var</span> label-match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> a-label, b-label <span id="L365" class="LineNr"> 365 </span> <span class="Delimiter">{</span> <span id="L366" class="LineNr"> 366 </span> compare label-match?, <span class="Constant">0</span>/false <span id="L367" class="LineNr"> 367 </span> <span class="PreProc">break-if-!=</span> <span id="L368" class="LineNr"> 368 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L369" class="LineNr"> 369 </span> <span class="Delimiter">}</span> -<span id="L370" class="LineNr"> 370 </span> <span class="PreProc">var</span> a-data-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get a, data -<span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> _a-data/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-data-ah +<span id="L370" class="LineNr"> 370 </span> <span class="PreProc">var</span> a-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get a, data +<span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> _a-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-data-ah <span id="L372" class="LineNr"> 372 </span> <span class="PreProc">var</span> a-data/<span class="muRegEcx">ecx</span>: (addr array byte) <span class="Special"><-</span> copy _a-data <span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> b-data-ah/<span class="muRegEbx">ebx</span>: (addr handle array byte) <span class="Special"><-</span> get b, data -<span id="L374" class="LineNr"> 374 </span> <span class="PreProc">var</span> b-data/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-data-ah -<span id="L375" class="LineNr"> 375 </span> <span class="PreProc">var</span> data-match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> a-data, b-data +<span id="L374" class="LineNr"> 374 </span> <span class="PreProc">var</span> b-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-data-ah +<span id="L375" class="LineNr"> 375 </span> <span class="PreProc">var</span> data-match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> a-data, b-data <span id="L376" class="LineNr"> 376 </span> <span class="PreProc">return</span> data-match? <span id="L377" class="LineNr"> 377 </span><span class="Delimiter">}</span> <span id="L378" class="LineNr"> 378 </span> @@ -450,8 +449,8 @@ if ('onhashchange' in window) { <span id="L384" class="LineNr"> 384 </span> <span class="PreProc">break-if-!=</span> <span id="L385" class="LineNr"> 385 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L386" class="LineNr"> 386 </span> <span class="Delimiter">}</span> -<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L388" class="LineNr"> 388 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L388" class="LineNr"> 388 </span> <span class="PreProc">var</span> _trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _trace <span id="L390" class="LineNr"> 390 </span> <span class="PreProc">var</span> i/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> max-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get self, first-free @@ -477,8 +476,8 @@ if ('onhashchange' in window) { <span id="L411" class="LineNr"> 411 </span> <span class="PreProc">break-if-!=</span> <span id="L412" class="LineNr"> 412 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L413" class="LineNr"> 413 </span> <span class="Delimiter">}</span> -<span id="L414" class="LineNr"> 414 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L415" class="LineNr"> 415 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L414" class="LineNr"> 414 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L415" class="LineNr"> 415 </span> <span class="PreProc">var</span> _trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L416" class="LineNr"> 416 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _trace <span id="L417" class="LineNr"> 417 </span> <span class="PreProc">var</span> i/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L418" class="LineNr"> 418 </span> <span class="PreProc">var</span> max-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get self, first-free @@ -489,9 +488,9 @@ if ('onhashchange' in window) { <span id="L423" class="LineNr"> 423 </span> $dump-trace-with-label:iter: <span class="Delimiter">{</span> <span id="L424" class="LineNr"> 424 </span> <span class="PreProc">var</span> offset/<span class="muRegEbx">ebx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i <span id="L425" class="LineNr"> 425 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, offset -<span id="L426" class="LineNr"> 426 </span> <span class="PreProc">var</span> curr-label-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, label -<span id="L427" class="LineNr"> 427 </span> <span class="PreProc">var</span> curr-label/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-label-ah -<span id="L428" class="LineNr"> 428 </span> <span class="PreProc">var</span> show?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-label, label +<span id="L426" class="LineNr"> 426 </span> <span class="PreProc">var</span> curr-label-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, label +<span id="L427" class="LineNr"> 427 </span> <span class="PreProc">var</span> curr-label/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-label-ah +<span id="L428" class="LineNr"> 428 </span> <span class="PreProc">var</span> show?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-label, label <span id="L429" class="LineNr"> 429 </span> compare show?, <span class="Constant">0</span>/false <span id="L430" class="LineNr"> 430 </span> <span class="PreProc">break-if-=</span> <span id="L431" class="LineNr"> 431 </span> y <span class="Special"><-</span> <a href='trace.mu.html#L582'>render-trace-line</a> <span class="Constant">0</span>/screen, curr, <span class="Constant">0</span>, y, <span class="Constant">0x80</span>/width, <span class="Constant">0x30</span>/height, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg, <span class="Constant">0</span>/clip @@ -504,13 +503,13 @@ if ('onhashchange' in window) { <span id="L438" class="LineNr"> 438 </span><span class="muComment">## UI stuff</span> <span id="L439" class="LineNr"> 439 </span> <span id="L440" class="LineNr"> 440 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L440'>mark-lines-dirty</a></span> _self: (addr trace) <span class="Delimiter">{</span> -<span id="L441" class="LineNr"> 441 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> copy _self +<span id="L441" class="LineNr"> 441 </span> <span class="PreProc">var</span> self/eax: (addr trace) <span class="Special"><-</span> copy _self <span id="L442" class="LineNr"> 442 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr boolean) <span class="Special"><-</span> get self, recreate-caches? <span id="L443" class="LineNr"> 443 </span> copy-to *dest, <span class="Constant">1</span>/true <span id="L444" class="LineNr"> 444 </span><span class="Delimiter">}</span> <span id="L445" class="LineNr"> 445 </span> <span id="L446" class="LineNr"> 446 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L446'>mark-lines-clean</a></span> _self: (addr trace) <span class="Delimiter">{</span> -<span id="L447" class="LineNr"> 447 </span> <span class="PreProc">var</span> self/<span class="muRegEax">eax</span>: (addr trace) <span class="Special"><-</span> copy _self +<span id="L447" class="LineNr"> 447 </span> <span class="PreProc">var</span> self/eax: (addr trace) <span class="Special"><-</span> copy _self <span id="L448" class="LineNr"> 448 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr boolean) <span class="Special"><-</span> get self, recreate-caches? <span id="L449" class="LineNr"> 449 </span> copy-to *dest, <span class="Constant">0</span>/false <span id="L450" class="LineNr"> 450 </span><span class="Delimiter">}</span> @@ -525,12 +524,12 @@ if ('onhashchange' in window) { <span id="L459" class="LineNr"> 459 </span> <span class="Delimiter">}</span> <span id="L460" class="LineNr"> 460 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymin <span id="L461" class="LineNr"> 461 </span> <span class="muComment"># recreate caches if necessary</span> -<span id="L462" class="LineNr"> 462 </span> <span class="PreProc">var</span> recreate-caches?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, recreate-caches? +<span id="L462" class="LineNr"> 462 </span> <span class="PreProc">var</span> recreate-caches?/eax: (addr boolean) <span class="Special"><-</span> get self, recreate-caches? <span id="L463" class="LineNr"> 463 </span> compare *recreate-caches?, <span class="Constant">0</span>/false <span id="L464" class="LineNr"> 464 </span> <span class="Delimiter">{</span> <span id="L465" class="LineNr"> 465 </span> <span class="PreProc">break-if-=</span> <span id="L466" class="LineNr"> 466 </span> <span class="muComment"># cache ymin</span> -<span id="L467" class="LineNr"> 467 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top-line-y +<span id="L467" class="LineNr"> 467 </span> <span class="PreProc">var</span> dest/eax: (addr int) <span class="Special"><-</span> get self, top-line-y <span id="L468" class="LineNr"> 468 </span> copy-to *dest, y <span id="L469" class="LineNr"> 469 </span> <span class="muComment"># cache ymax</span> <span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> ymax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymax @@ -541,8 +540,8 @@ if ('onhashchange' in window) { <span id="L475" class="LineNr"> 475 </span> <a href='trace.mu.html#L446'>mark-lines-clean</a> self <span id="L476" class="LineNr"> 476 </span> <span class="Delimiter">}</span> <span id="L477" class="LineNr"> 477 </span> <a href='trace.mu.html#L672'>clamp-cursor-to-top</a> self, y -<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L479" class="LineNr"> 479 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L479" class="LineNr"> 479 </span> <span class="PreProc">var</span> _trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L480" class="LineNr"> 480 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _trace <span id="L481" class="LineNr"> 481 </span> <span class="PreProc">var</span> max-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get self, first-free <span id="L482" class="LineNr"> 482 </span> <span class="PreProc">var</span> max/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *max-addr @@ -552,7 +551,7 @@ if ('onhashchange' in window) { <span id="L486" class="LineNr"> 486 </span> <span class="PreProc">break-if-<=</span> <span id="L487" class="LineNr"> 487 </span> <span class="PreProc">var</span> max-depth/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, max-depth <span id="L488" class="LineNr"> 488 </span> <span class="Delimiter">{</span> -<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L490" class="LineNr"> 490 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L491" class="LineNr"> 491 </span> width, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L492" class="LineNr"> 492 </span> compare width, <span class="Constant">0x80</span> @@ -572,8 +571,8 @@ if ('onhashchange' in window) { <span id="L506" class="LineNr"> 506 </span> $render-trace:iter: <span class="Delimiter">{</span> <span id="L507" class="LineNr"> 507 </span> <span class="PreProc">var</span> offset/<span class="muRegEbx">ebx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i <span id="L508" class="LineNr"> 508 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, offset -<span id="L509" class="LineNr"> 509 </span> <span class="PreProc">var</span> curr-label-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, label -<span id="L510" class="LineNr"> 510 </span> <span class="PreProc">var</span> curr-label/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-label-ah +<span id="L509" class="LineNr"> 509 </span> <span class="PreProc">var</span> curr-label-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, label +<span id="L510" class="LineNr"> 510 </span> <span class="PreProc">var</span> curr-label/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-label-ah <span id="L511" class="LineNr"> 511 </span> <span class="PreProc">var</span> bg: int <span id="L512" class="LineNr"> 512 </span> copy-to bg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L513" class="LineNr"> 513 </span> <span class="PreProc">var</span> fg: int @@ -581,17 +580,17 @@ if ('onhashchange' in window) { <span id="L515" class="LineNr"> 515 </span> compare show-cursor?, <span class="Constant">0</span>/false <span id="L516" class="LineNr"> 516 </span> <span class="Delimiter">{</span> <span id="L517" class="LineNr"> 517 </span> <span class="PreProc">break-if-=</span> -<span id="L518" class="LineNr"> 518 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-y +<span id="L518" class="LineNr"> 518 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get self, cursor-y <span id="L519" class="LineNr"> 519 </span> compare *cursor-y, y <span id="L520" class="LineNr"> 520 </span> <span class="PreProc">break-if-!=</span> <span id="L521" class="LineNr"> 521 </span> copy-to bg, <span class="Constant">7</span>/trace-cursor-line-bg <span id="L522" class="LineNr"> 522 </span> copy-to fg, <span class="Constant">0x68</span>/cursor-line-fg=sober-blue -<span id="L523" class="LineNr"> 523 </span> <span class="PreProc">var</span> cursor-line-index/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-line-index +<span id="L523" class="LineNr"> 523 </span> <span class="PreProc">var</span> cursor-line-index/eax: (addr int) <span class="Special"><-</span> get self, cursor-line-index <span id="L524" class="LineNr"> 524 </span> copy-to *cursor-line-index, i <span id="L525" class="LineNr"> 525 </span> <span class="Delimiter">}</span> <span id="L526" class="LineNr"> 526 </span> <span class="muComment"># always display errors</span> <span id="L527" class="LineNr"> 527 </span> <span class="Delimiter">{</span> -<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> curr-depth/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr, depth +<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> curr-depth/eax: (addr int) <span class="Special"><-</span> get curr, depth <span id="L529" class="LineNr"> 529 </span> compare *curr-depth, <span class="Constant">0</span>/<span class="Special"><a href='trace.mu.html#L197'>error</a></span> <span id="L530" class="LineNr"> 530 </span> <span class="PreProc">break-if-!=</span> <span id="L531" class="LineNr"> 531 </span> y <span class="Special"><-</span> <a href='trace.mu.html#L582'>render-trace-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, curr, xmin, y, xmax, ymax, <span class="Constant">0xc</span>/fg=trace-error, bg, <span class="Constant">0</span>/clip @@ -599,11 +598,11 @@ if ('onhashchange' in window) { <span id="L533" class="LineNr"> 533 </span> <span class="PreProc">break</span> $render-trace:iter <span id="L534" class="LineNr"> 534 </span> <span class="Delimiter">}</span> <span id="L535" class="LineNr"> 535 </span> <span class="muComment"># display expanded lines</span> -<span id="L536" class="LineNr"> 536 </span> <span class="PreProc">var</span> display?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L617'>should-render?</a> curr +<span id="L536" class="LineNr"> 536 </span> <span class="PreProc">var</span> display?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L617'>should-render?</a> curr <span id="L537" class="LineNr"> 537 </span> <span class="Delimiter">{</span> <span id="L538" class="LineNr"> 538 </span> compare display?, <span class="Constant">0</span>/false <span id="L539" class="LineNr"> 539 </span> <span class="PreProc">break-if-=</span> -<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a> self, i +<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a> self, i <span id="L541" class="LineNr"> 541 </span> y <span class="Special"><-</span> <a href='trace.mu.html#L582'>render-trace-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, curr, xmin, y, xmax, ymax, fg, bg, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> <span id="L542" class="LineNr"> 542 </span> copy-to already-hiding-lines?, <span class="Constant">0</span>/false <span id="L543" class="LineNr"> 543 </span> <span class="PreProc">break</span> $render-trace:iter @@ -612,7 +611,7 @@ if ('onhashchange' in window) { <span id="L546" class="LineNr"> 546 </span> compare already-hiding-lines?, <span class="Constant">0</span>/false <span id="L547" class="LineNr"> 547 </span> <span class="Delimiter">{</span> <span id="L548" class="LineNr"> 548 </span> <span class="PreProc">break-if-!=</span> -<span id="L549" class="LineNr"> 549 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xmin +<span id="L549" class="LineNr"> 549 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy xmin <span id="L550" class="LineNr"> 550 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"..."</span>, xmin, ymin, xmax, ymax, x, y, fg, bg <span id="L551" class="LineNr"> 551 </span> y <span class="Special"><-</span> increment <span id="L552" class="LineNr"> 552 </span> copy-to already-hiding-lines?, <span class="Constant">1</span>/true @@ -626,16 +625,16 @@ if ('onhashchange' in window) { <span id="L560" class="LineNr"> 560 </span> <span class="PreProc">return</span> y <span id="L561" class="LineNr"> 561 </span><span class="Delimiter">}</span> <span id="L562" class="LineNr"> 562 </span> -<span id="L563" class="LineNr"> 563 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L563'>unclip-cursor-line?</a></span> _self: (addr trace), _i: int<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L563" class="LineNr"> 563 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L563'>unclip-cursor-line?</a></span> _self: (addr trace), _i: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L564" class="LineNr"> 564 </span> <span class="muComment"># if unclip? and i == *cursor-line-index, render unclipped</span> <span id="L565" class="LineNr"> 565 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> +<span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/eax: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> <span id="L567" class="LineNr"> 567 </span> compare *unclip-cursor-line?, <span class="Constant">0</span>/false <span id="L568" class="LineNr"> 568 </span> <span class="Delimiter">{</span> <span id="L569" class="LineNr"> 569 </span> <span class="PreProc">break-if-!=</span> <span id="L570" class="LineNr"> 570 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L571" class="LineNr"> 571 </span> <span class="Delimiter">}</span> -<span id="L572" class="LineNr"> 572 </span> <span class="PreProc">var</span> cursor-line-index/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-line-index +<span id="L572" class="LineNr"> 572 </span> <span class="PreProc">var</span> cursor-line-index/eax: (addr int) <span class="Special"><-</span> get self, cursor-line-index <span id="L573" class="LineNr"> 573 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _i <span id="L574" class="LineNr"> 574 </span> compare i, *cursor-line-index <span id="L575" class="LineNr"> 575 </span> <span class="Delimiter">{</span> @@ -654,7 +653,7 @@ if ('onhashchange' in window) { <span id="L588" class="LineNr"> 588 </span> compare *depth-a, <span class="Constant">0</span>/<span class="Special"><a href='trace.mu.html#L197'>error</a></span> <span id="L589" class="LineNr"> 589 </span> <span class="Delimiter">{</span> <span id="L590" class="LineNr"> 590 </span> <span class="PreProc">break-if-=</span> -<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xsave +<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy xsave <span id="L592" class="LineNr"> 592 </span> <span class="Delimiter">{</span> <span id="L593" class="LineNr"> 593 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L340'>draw-int32-decimal-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *depth-a, xmin, ymin, xmax, ymax, x, y, fg, bg <span id="L594" class="LineNr"> 594 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, xmin, ymin, xmax, ymax, x, y, fg, bg @@ -662,10 +661,10 @@ if ('onhashchange' in window) { <span id="L596" class="LineNr"> 596 </span> <span class="Delimiter">}</span> <span id="L597" class="LineNr"> 597 </span> xsave <span class="Special"><-</span> copy x <span id="L598" class="LineNr"> 598 </span> <span class="Delimiter">}</span> -<span id="L599" class="LineNr"> 599 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get self, data -<span id="L600" class="LineNr"> 600 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L599" class="LineNr"> 599 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get self, data +<span id="L600" class="LineNr"> 600 </span> <span class="PreProc">var</span> _data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L601" class="LineNr"> 601 </span> <span class="PreProc">var</span> data/<span class="muRegEbx">ebx</span>: (addr array byte) <span class="Special"><-</span> copy _data -<span id="L602" class="LineNr"> 602 </span> <span class="PreProc">var</span> x/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy xsave +<span id="L602" class="LineNr"> 602 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy xsave <span id="L603" class="LineNr"> 603 </span> compare unclip?, <span class="Constant">0</span>/false <span id="L604" class="LineNr"> 604 </span> <span class="Delimiter">{</span> <span id="L605" class="LineNr"> 605 </span> <span class="PreProc">break-if-=</span> @@ -680,9 +679,9 @@ if ('onhashchange' in window) { <span id="L614" class="LineNr"> 614 </span> <span class="PreProc">return</span> y <span id="L615" class="LineNr"> 615 </span><span class="Delimiter">}</span> <span id="L616" class="LineNr"> 616 </span> -<span id="L617" class="LineNr"> 617 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L617'>should-render?</a></span> _line: (addr <a href='trace.mu.html#L41'>trace-line</a>)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> -<span id="L618" class="LineNr"> 618 </span> <span class="PreProc">var</span> line/<span class="muRegEax">eax</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _line -<span id="L619" class="LineNr"> 619 </span> <span class="PreProc">var</span> result/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get line, visible? +<span id="L617" class="LineNr"> 617 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L617'>should-render?</a></span> _line: (addr <a href='trace.mu.html#L41'>trace-line</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L618" class="LineNr"> 618 </span> <span class="PreProc">var</span> line/eax: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _line +<span id="L619" class="LineNr"> 619 </span> <span class="PreProc">var</span> result/eax: (addr boolean) <span class="Special"><-</span> get line, visible? <span id="L620" class="LineNr"> 620 </span> <span class="PreProc">return</span> *result <span id="L621" class="LineNr"> 621 </span><span class="Delimiter">}</span> <span id="L622" class="LineNr"> 622 </span> @@ -691,8 +690,8 @@ if ('onhashchange' in window) { <span id="L625" class="LineNr"> 625 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L625'>recompute-all-visible-lines</a></span> _self: (addr trace) <span class="Delimiter">{</span> <span id="L626" class="LineNr"> 626 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self <span id="L627" class="LineNr"> 627 </span> <span class="PreProc">var</span> max-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, first-free -<span id="L628" class="LineNr"> 628 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L629" class="LineNr"> 629 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L628" class="LineNr"> 628 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L629" class="LineNr"> 629 </span> <span class="PreProc">var</span> _trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L630" class="LineNr"> 630 </span> <span class="PreProc">var</span> trace/<span class="muRegEsi">esi</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _trace <span id="L631" class="LineNr"> 631 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L632" class="LineNr"> 632 </span> <span class="Delimiter">{</span> @@ -709,8 +708,8 @@ if ('onhashchange' in window) { <span id="L643" class="LineNr"> 643 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L643'>recompute-visibility</a></span> _self: (addr trace), _line: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Delimiter">{</span> <span id="L644" class="LineNr"> 644 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self <span id="L645" class="LineNr"> 645 </span> <span class="muComment"># recompute</span> -<span id="L646" class="LineNr"> 646 </span> <span class="PreProc">var</span> candidates-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, visible -<span id="L647" class="LineNr"> 647 </span> <span class="PreProc">var</span> candidates/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *candidates-ah +<span id="L646" class="LineNr"> 646 </span> <span class="PreProc">var</span> candidates-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, visible +<span id="L647" class="LineNr"> 647 </span> <span class="PreProc">var</span> candidates/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *candidates-ah <span id="L648" class="LineNr"> 648 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L649" class="LineNr"> 649 </span> <span class="PreProc">var</span> len/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length candidates <span id="L650" class="LineNr"> 650 </span> <span class="Delimiter">{</span> @@ -719,26 +718,26 @@ if ('onhashchange' in window) { <span id="L653" class="LineNr"> 653 </span> <span class="Delimiter">{</span> <span id="L654" class="LineNr"> 654 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEcx">ecx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset candidates, i <span id="L655" class="LineNr"> 655 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index candidates, curr-offset -<span id="L656" class="LineNr"> 656 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L348'>trace-lines-equal?</a> curr, _line +<span id="L656" class="LineNr"> 656 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L348'>trace-lines-equal?</a> curr, _line <span id="L657" class="LineNr"> 657 </span> compare match?, <span class="Constant">0</span>/false <span id="L658" class="LineNr"> 658 </span> <span class="PreProc">break-if-=</span> -<span id="L659" class="LineNr"> 659 </span> <span class="PreProc">var</span> line/<span class="muRegEax">eax</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _line -<span id="L660" class="LineNr"> 660 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get line, visible? +<span id="L659" class="LineNr"> 659 </span> <span class="PreProc">var</span> line/eax: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _line +<span id="L660" class="LineNr"> 660 </span> <span class="PreProc">var</span> dest/eax: (addr boolean) <span class="Special"><-</span> get line, visible? <span id="L661" class="LineNr"> 661 </span> copy-to *dest, <span class="Constant">1</span>/true <span id="L662" class="LineNr"> 662 </span> <span class="PreProc">return</span> <span id="L663" class="LineNr"> 663 </span> <span class="Delimiter">}</span> <span id="L664" class="LineNr"> 664 </span> i <span class="Special"><-</span> increment <span id="L665" class="LineNr"> 665 </span> <span class="PreProc">loop</span> <span id="L666" class="LineNr"> 666 </span> <span class="Delimiter">}</span> -<span id="L667" class="LineNr"> 667 </span> <span class="PreProc">var</span> line/<span class="muRegEax">eax</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _line -<span id="L668" class="LineNr"> 668 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get line, visible? +<span id="L667" class="LineNr"> 667 </span> <span class="PreProc">var</span> line/eax: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _line +<span id="L668" class="LineNr"> 668 </span> <span class="PreProc">var</span> dest/eax: (addr boolean) <span class="Special"><-</span> get line, visible? <span id="L669" class="LineNr"> 669 </span> copy-to *dest, <span class="Constant">0</span>/false <span id="L670" class="LineNr"> 670 </span><span class="Delimiter">}</span> <span id="L671" class="LineNr"> 671 </span> <span id="L672" class="LineNr"> 672 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L672'>clamp-cursor-to-top</a></span> _self: (addr trace), _y: int <span class="Delimiter">{</span> <span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _y <span id="L674" class="LineNr"> 674 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-y +<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get self, cursor-y <span id="L676" class="LineNr"> 676 </span> compare *cursor-y, y <span id="L677" class="LineNr"> 677 </span> <span class="PreProc">break-if->=</span> <span id="L678" class="LineNr"> 678 </span> copy-to *cursor-y, y @@ -755,13 +754,13 @@ if ('onhashchange' in window) { <span id="L689" class="LineNr"> 689 </span> <span class="Delimiter">}</span> <span id="L690" class="LineNr"> 690 </span> y <span class="Special"><-</span> decrement <span id="L691" class="LineNr"> 691 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-y +<span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get self, cursor-y <span id="L693" class="LineNr"> 693 </span> compare *cursor-y, y <span id="L694" class="LineNr"> 694 </span> <span class="PreProc">break-if-<=</span> <span id="L695" class="LineNr"> 695 </span> copy-to *cursor-y, y <span id="L696" class="LineNr"> 696 </span> <span class="muComment"># redraw cursor-line</span> -<span id="L697" class="LineNr"> 697 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L698" class="LineNr"> 698 </span> <span class="PreProc">var</span> trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L697" class="LineNr"> 697 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L698" class="LineNr"> 698 </span> <span class="PreProc">var</span> trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L699" class="LineNr"> 699 </span> <span class="PreProc">var</span> cursor-line-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, cursor-line-index <span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> cursor-line-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-line-index-addr <span id="L701" class="LineNr"> 701 </span> <span class="PreProc">var</span> first-free/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, first-free @@ -772,14 +771,14 @@ if ('onhashchange' in window) { <span id="L706" class="LineNr"> 706 </span> <span class="Delimiter">}</span> <span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> cursor-offset/<span class="muRegEcx">ecx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, cursor-line-index <span id="L708" class="LineNr"> 708 </span> <span class="PreProc">var</span> cursor-line/<span class="muRegEcx">ecx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, cursor-offset -<span id="L709" class="LineNr"> 709 </span> <span class="PreProc">var</span> display?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L617'>should-render?</a> cursor-line +<span id="L709" class="LineNr"> 709 </span> <span class="PreProc">var</span> display?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L617'>should-render?</a> cursor-line <span id="L710" class="LineNr"> 710 </span> <span class="Delimiter">{</span> <span id="L711" class="LineNr"> 711 </span> compare display?, <span class="Constant">0</span>/false <span id="L712" class="LineNr"> 712 </span> <span class="PreProc">break-if-=</span> <span id="L713" class="LineNr"> 713 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='trace.mu.html#L582'>render-trace-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, cursor-line, xmin, y, xmax, ymax, <span class="Constant">0x38</span>/fg=trace, <span class="Constant">7</span>/cursor-line-bg, <span class="Constant">0</span>/clip <span id="L714" class="LineNr"> 714 </span> <span class="PreProc">return</span> <span id="L715" class="LineNr"> 715 </span> <span class="Delimiter">}</span> -<span id="L716" class="LineNr"> 716 </span> <span class="PreProc">var</span> dummy1/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L716" class="LineNr"> 716 </span> <span class="PreProc">var</span> dummy1/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L717" class="LineNr"> 717 </span> <span class="PreProc">var</span> dummy2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L718" class="LineNr"> 718 </span> dummy1, dummy2 <span class="Special"><-</span> <a href='../501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"..."</span>, xmin, ymin, xmax, ymax, xmin, y, <span class="Constant">9</span>/fg=trace, <span class="Constant">7</span>/cursor-line-bg <span id="L719" class="LineNr"> 719 </span><span class="Delimiter">}</span> @@ -949,7 +948,7 @@ if ('onhashchange' in window) { <span id="L883" class="LineNr"> 883 </span><span class="Delimiter">}</span> <span id="L884" class="LineNr"> 884 </span> <span id="L885" class="LineNr"> 885 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L885'>render-trace-menu</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> -<span id="L886" class="LineNr"> 886 </span> <span class="PreProc">var</span> width/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L886" class="LineNr"> 886 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L887" class="LineNr"> 887 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L888" class="LineNr"> 888 </span> width, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L889" class="LineNr"> 889 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy height @@ -976,18 +975,18 @@ if ('onhashchange' in window) { <span id="L910" class="LineNr"> 910 </span> <span class="Delimiter">{</span> <span id="L911" class="LineNr"> 911 </span> compare key, <span class="Constant">0x6a</span>/j <span id="L912" class="LineNr"> 912 </span> <span class="PreProc">break-if-!=</span> -<span id="L913" class="LineNr"> 913 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-y +<span id="L913" class="LineNr"> 913 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get self, cursor-y <span id="L914" class="LineNr"> 914 </span> increment *cursor-y -<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> +<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/eax: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> <span id="L916" class="LineNr"> 916 </span> copy-to *unclip-cursor-line?, <span class="Constant">0</span>/false <span id="L917" class="LineNr"> 917 </span> <span class="PreProc">return</span> <span id="L918" class="LineNr"> 918 </span> <span class="Delimiter">}</span> <span id="L919" class="LineNr"> 919 </span> <span class="Delimiter">{</span> <span id="L920" class="LineNr"> 920 </span> compare key, <span class="Constant">0x81</span>/down-arrow <span id="L921" class="LineNr"> 921 </span> <span class="PreProc">break-if-!=</span> -<span id="L922" class="LineNr"> 922 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-y +<span id="L922" class="LineNr"> 922 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get self, cursor-y <span id="L923" class="LineNr"> 923 </span> increment *cursor-y -<span id="L924" class="LineNr"> 924 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> +<span id="L924" class="LineNr"> 924 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/eax: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> <span id="L925" class="LineNr"> 925 </span> copy-to *unclip-cursor-line?, <span class="Constant">0</span>/false <span id="L926" class="LineNr"> 926 </span> <span class="PreProc">return</span> <span id="L927" class="LineNr"> 927 </span> <span class="Delimiter">}</span> @@ -995,18 +994,18 @@ if ('onhashchange' in window) { <span id="L929" class="LineNr"> 929 </span> <span class="Delimiter">{</span> <span id="L930" class="LineNr"> 930 </span> compare key, <span class="Constant">0x6b</span>/k <span id="L931" class="LineNr"> 931 </span> <span class="PreProc">break-if-!=</span> -<span id="L932" class="LineNr"> 932 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-y +<span id="L932" class="LineNr"> 932 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get self, cursor-y <span id="L933" class="LineNr"> 933 </span> decrement *cursor-y -<span id="L934" class="LineNr"> 934 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> +<span id="L934" class="LineNr"> 934 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/eax: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> <span id="L935" class="LineNr"> 935 </span> copy-to *unclip-cursor-line?, <span class="Constant">0</span>/false <span id="L936" class="LineNr"> 936 </span> <span class="PreProc">return</span> <span id="L937" class="LineNr"> 937 </span> <span class="Delimiter">}</span> <span id="L938" class="LineNr"> 938 </span> <span class="Delimiter">{</span> <span id="L939" class="LineNr"> 939 </span> compare key, <span class="Constant">0x82</span>/up-arrow <span id="L940" class="LineNr"> 940 </span> <span class="PreProc">break-if-!=</span> -<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-y +<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get self, cursor-y <span id="L942" class="LineNr"> 942 </span> decrement *cursor-y -<span id="L943" class="LineNr"> 943 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> +<span id="L943" class="LineNr"> 943 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/eax: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> <span id="L944" class="LineNr"> 944 </span> copy-to *unclip-cursor-line?, <span class="Constant">0</span>/false <span id="L945" class="LineNr"> 945 </span> <span class="PreProc">return</span> <span id="L946" class="LineNr"> 946 </span> <span class="Delimiter">}</span> @@ -1028,7 +1027,7 @@ if ('onhashchange' in window) { <span id="L962" class="LineNr"> 962 </span> <span class="Delimiter">{</span> <span id="L963" class="LineNr"> 963 </span> compare key, <span class="Constant">0x13</span>/ctrl-s <span id="L964" class="LineNr"> 964 </span> <span class="PreProc">break-if-!=</span> -<span id="L965" class="LineNr"> 965 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> +<span id="L965" class="LineNr"> 965 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L563'>unclip-cursor-line?</a>/eax: (addr boolean) <span class="Special"><-</span> get self, <a href='trace.mu.html#L563'>unclip-cursor-line?</a> <span id="L966" class="LineNr"> 966 </span> copy-to *unclip-cursor-line?, <span class="Constant">1</span>/true <span id="L967" class="LineNr"> 967 </span> <span class="PreProc">return</span> <span id="L968" class="LineNr"> 968 </span> <span class="Delimiter">}</span> @@ -1050,14 +1049,14 @@ if ('onhashchange' in window) { <span id="L984" class="LineNr"> 984 </span> <span id="L985" class="LineNr"> 985 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L985'>expand</a></span> _self: (addr trace) <span class="Delimiter">{</span> <span id="L986" class="LineNr"> 986 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L987" class="LineNr"> 987 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L988" class="LineNr"> 988 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L987" class="LineNr"> 987 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L988" class="LineNr"> 988 </span> <span class="PreProc">var</span> _trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L989" class="LineNr"> 989 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _trace <span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> cursor-line-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, cursor-line-index <span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> cursor-line-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-line-index-addr -<span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> cursor-line-offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, cursor-line-index +<span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> cursor-line-offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, cursor-line-index <span id="L993" class="LineNr"> 993 </span> <span class="PreProc">var</span> cursor-line/<span class="muRegEdx">edx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, cursor-line-offset -<span id="L994" class="LineNr"> 994 </span> <span class="PreProc">var</span> cursor-line-visible?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get cursor-line, visible? +<span id="L994" class="LineNr"> 994 </span> <span class="PreProc">var</span> cursor-line-visible?/eax: (addr boolean) <span class="Special"><-</span> get cursor-line, visible? <span id="L995" class="LineNr"> 995 </span> <span class="PreProc">var</span> cursor-line-depth/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get cursor-line, depth <span id="L996" class="LineNr"> 996 </span> <span class="PreProc">var</span> target-depth/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *cursor-line-depth <span id="L997" class="LineNr"> 997 </span> <span class="muComment"># if cursor-line is already visible, do nothing</span> @@ -1073,14 +1072,14 @@ if ('onhashchange' in window) { <span id="L1007" class="LineNr">1007 </span> <span class="Delimiter">{</span> <span id="L1008" class="LineNr">1008 </span> compare i, *max <span id="L1009" class="LineNr">1009 </span> <span class="PreProc">break-if->=</span> -<span id="L1010" class="LineNr">1010 </span> <span class="PreProc">var</span> curr-line-offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i +<span id="L1010" class="LineNr">1010 </span> <span class="PreProc">var</span> curr-line-offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i <span id="L1011" class="LineNr">1011 </span> <span class="PreProc">var</span> curr-line/<span class="muRegEdx">edx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, curr-line-offset -<span id="L1012" class="LineNr">1012 </span> <span class="PreProc">var</span> curr-line-depth/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-line, depth +<span id="L1012" class="LineNr">1012 </span> <span class="PreProc">var</span> curr-line-depth/eax: (addr int) <span class="Special"><-</span> get curr-line, depth <span id="L1013" class="LineNr">1013 </span> compare *curr-line-depth, target-depth <span id="L1014" class="LineNr">1014 </span> <span class="PreProc">break-if-<</span> <span id="L1015" class="LineNr">1015 </span> <span class="Delimiter">{</span> <span id="L1016" class="LineNr">1016 </span> <span class="PreProc">break-if-!=</span> -<span id="L1017" class="LineNr">1017 </span> <span class="PreProc">var</span> curr-line-visible?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get curr-line, visible? +<span id="L1017" class="LineNr">1017 </span> <span class="PreProc">var</span> curr-line-visible?/eax: (addr boolean) <span class="Special"><-</span> get curr-line, visible? <span id="L1018" class="LineNr">1018 </span> copy-to *curr-line-visible?, <span class="Constant">1</span>/true <span id="L1019" class="LineNr">1019 </span> <a href='trace.mu.html#L1092'>reveal-trace-line</a> self, curr-line <span id="L1020" class="LineNr">1020 </span> <span class="Delimiter">}</span> @@ -1091,14 +1090,14 @@ if ('onhashchange' in window) { <span id="L1025" class="LineNr">1025 </span> <span id="L1026" class="LineNr">1026 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L1026'>collapse</a></span> _self: (addr trace) <span class="Delimiter">{</span> <span id="L1027" class="LineNr">1027 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L1028" class="LineNr">1028 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L1029" class="LineNr">1029 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L1028" class="LineNr">1028 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L1029" class="LineNr">1029 </span> <span class="PreProc">var</span> _trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L1030" class="LineNr">1030 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _trace <span id="L1031" class="LineNr">1031 </span> <span class="PreProc">var</span> cursor-line-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, cursor-line-index <span id="L1032" class="LineNr">1032 </span> <span class="PreProc">var</span> cursor-line-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-line-index-addr -<span id="L1033" class="LineNr">1033 </span> <span class="PreProc">var</span> cursor-line-offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, cursor-line-index +<span id="L1033" class="LineNr">1033 </span> <span class="PreProc">var</span> cursor-line-offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, cursor-line-index <span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> cursor-line/<span class="muRegEdx">edx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, cursor-line-offset -<span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> cursor-line-visible?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get cursor-line, visible? +<span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> cursor-line-visible?/eax: (addr boolean) <span class="Special"><-</span> get cursor-line, visible? <span id="L1036" class="LineNr">1036 </span> <span class="muComment"># if cursor-line is not visible, do nothing</span> <span id="L1037" class="LineNr">1037 </span> compare *cursor-line-visible?, <span class="Constant">0</span>/false <span id="L1038" class="LineNr">1038 </span> <span class="Delimiter">{</span> @@ -1113,16 +1112,16 @@ if ('onhashchange' in window) { <span id="L1047" class="LineNr">1047 </span> $collapse:loop1: <span class="Delimiter">{</span> <span id="L1048" class="LineNr">1048 </span> compare i, <span class="Constant">0</span> <span id="L1049" class="LineNr">1049 </span> <span class="PreProc">break-if-<</span> -<span id="L1050" class="LineNr">1050 </span> <span class="PreProc">var</span> curr-line-offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i -<span id="L1051" class="LineNr">1051 </span> <span class="PreProc">var</span> curr-line/<span class="muRegEax">eax</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, curr-line-offset +<span id="L1050" class="LineNr">1050 </span> <span class="PreProc">var</span> curr-line-offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i +<span id="L1051" class="LineNr">1051 </span> <span class="PreProc">var</span> curr-line/eax: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, curr-line-offset <span id="L1052" class="LineNr">1052 </span> <span class="Delimiter">{</span> -<span id="L1053" class="LineNr">1053 </span> <span class="PreProc">var</span> curr-line-depth/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-line, depth +<span id="L1053" class="LineNr">1053 </span> <span class="PreProc">var</span> curr-line-depth/eax: (addr int) <span class="Special"><-</span> get curr-line, depth <span id="L1054" class="LineNr">1054 </span> compare *curr-line-depth, target-depth <span id="L1055" class="LineNr">1055 </span> <span class="PreProc">break-if-<</span> $collapse:loop1 <span id="L1056" class="LineNr">1056 </span> <span class="Delimiter">}</span> <span id="L1057" class="LineNr">1057 </span> <span class="muComment"># if cursor-line is visible, decrement cursor-y</span> <span id="L1058" class="LineNr">1058 </span> <span class="Delimiter">{</span> -<span id="L1059" class="LineNr">1059 </span> <span class="PreProc">var</span> curr-line-visible?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get curr-line, visible? +<span id="L1059" class="LineNr">1059 </span> <span class="PreProc">var</span> curr-line-visible?/eax: (addr boolean) <span class="Special"><-</span> get curr-line, visible? <span id="L1060" class="LineNr">1060 </span> compare *curr-line-visible?, <span class="Constant">0</span>/false <span id="L1061" class="LineNr">1061 </span> <span class="PreProc">break-if-=</span> <span id="L1062" class="LineNr">1062 </span> decrement *cursor-y @@ -1135,14 +1134,14 @@ if ('onhashchange' in window) { <span id="L1069" class="LineNr">1069 </span> $collapse:loop2: <span class="Delimiter">{</span> <span id="L1070" class="LineNr">1070 </span> compare i, *max <span id="L1071" class="LineNr">1071 </span> <span class="PreProc">break-if->=</span> -<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> curr-line-offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i +<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> curr-line-offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, i <span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> curr-line/<span class="muRegEdx">edx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, curr-line-offset -<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> curr-line-depth/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr-line, depth +<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> curr-line-depth/eax: (addr int) <span class="Special"><-</span> get curr-line, depth <span id="L1075" class="LineNr">1075 </span> compare *curr-line-depth, target-depth <span id="L1076" class="LineNr">1076 </span> <span class="PreProc">break-if-<</span> <span id="L1077" class="LineNr">1077 </span> <span class="Delimiter">{</span> <span id="L1078" class="LineNr">1078 </span> <a href='trace.mu.html#L1117'>hide-trace-line</a> self, curr-line -<span id="L1079" class="LineNr">1079 </span> <span class="PreProc">var</span> curr-line-visible?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get curr-line, visible? +<span id="L1079" class="LineNr">1079 </span> <span class="PreProc">var</span> curr-line-visible?/eax: (addr boolean) <span class="Special"><-</span> get curr-line, visible? <span id="L1080" class="LineNr">1080 </span> copy-to *curr-line-visible?, <span class="Constant">0</span>/false <span id="L1081" class="LineNr">1081 </span> <span class="Delimiter">}</span> <span id="L1082" class="LineNr">1082 </span> i <span class="Special"><-</span> increment @@ -1157,8 +1156,8 @@ if ('onhashchange' in window) { <span id="L1091" class="LineNr">1091 </span><span class="muComment"># we'll use visible? being unset as a sign of emptiness</span> <span id="L1092" class="LineNr">1092 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L1092'>reveal-trace-line</a></span> _self: (addr trace), line: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Delimiter">{</span> <span id="L1093" class="LineNr">1093 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L1094" class="LineNr">1094 </span> <span class="PreProc">var</span> visible-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, visible -<span id="L1095" class="LineNr">1095 </span> <span class="PreProc">var</span> visible/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *visible-ah +<span id="L1094" class="LineNr">1094 </span> <span class="PreProc">var</span> visible-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, visible +<span id="L1095" class="LineNr">1095 </span> <span class="PreProc">var</span> visible/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *visible-ah <span id="L1096" class="LineNr">1096 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1097" class="LineNr">1097 </span> <span class="PreProc">var</span> len/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length visible <span id="L1098" class="LineNr">1098 </span> <span class="Delimiter">{</span> @@ -1166,7 +1165,7 @@ if ('onhashchange' in window) { <span id="L1100" class="LineNr">1100 </span> <span class="PreProc">break-if->=</span> <span id="L1101" class="LineNr">1101 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEdx">edx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset visible, i <span id="L1102" class="LineNr">1102 </span> <span class="PreProc">var</span> curr/<span class="muRegEdx">edx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index visible, curr-offset -<span id="L1103" class="LineNr">1103 </span> <span class="PreProc">var</span> curr-visible?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get curr, visible? +<span id="L1103" class="LineNr">1103 </span> <span class="PreProc">var</span> curr-visible?/eax: (addr boolean) <span class="Special"><-</span> get curr, visible? <span id="L1104" class="LineNr">1104 </span> compare *curr-visible?, <span class="Constant">0</span>/false <span id="L1105" class="LineNr">1105 </span> <span class="Delimiter">{</span> <span id="L1106" class="LineNr">1106 </span> <span class="PreProc">break-if-!=</span> @@ -1182,8 +1181,8 @@ if ('onhashchange' in window) { <span id="L1116" class="LineNr">1116 </span> <span id="L1117" class="LineNr">1117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L1117'>hide-trace-line</a></span> _self: (addr trace), line: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Delimiter">{</span> <span id="L1118" class="LineNr">1118 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L1119" class="LineNr">1119 </span> <span class="PreProc">var</span> visible-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, visible -<span id="L1120" class="LineNr">1120 </span> <span class="PreProc">var</span> visible/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *visible-ah +<span id="L1119" class="LineNr">1119 </span> <span class="PreProc">var</span> visible-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, visible +<span id="L1120" class="LineNr">1120 </span> <span class="PreProc">var</span> visible/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *visible-ah <span id="L1121" class="LineNr">1121 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1122" class="LineNr">1122 </span> <span class="PreProc">var</span> len/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length visible <span id="L1123" class="LineNr">1123 </span> <span class="Delimiter">{</span> @@ -1191,7 +1190,7 @@ if ('onhashchange' in window) { <span id="L1125" class="LineNr">1125 </span> <span class="PreProc">break-if->=</span> <span id="L1126" class="LineNr">1126 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEdx">edx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset visible, i <span id="L1127" class="LineNr">1127 </span> <span class="PreProc">var</span> curr/<span class="muRegEdx">edx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index visible, curr-offset -<span id="L1128" class="LineNr">1128 </span> <span class="PreProc">var</span> found?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L348'>trace-lines-equal?</a> curr, line +<span id="L1128" class="LineNr">1128 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L348'>trace-lines-equal?</a> curr, line <span id="L1129" class="LineNr">1129 </span> compare found?, <span class="Constant">0</span>/false <span id="L1130" class="LineNr">1130 </span> <span class="Delimiter">{</span> <span id="L1131" class="LineNr">1131 </span> <span class="PreProc">break-if-=</span> @@ -1202,16 +1201,16 @@ if ('onhashchange' in window) { <span id="L1136" class="LineNr">1136 </span> <span class="Delimiter">}</span> <span id="L1137" class="LineNr">1137 </span><span class="Delimiter">}</span> <span id="L1138" class="LineNr">1138 </span> -<span id="L1139" class="LineNr">1139 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L1139'>cursor-too-deep?</a></span> _self: (addr trace)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L1139" class="LineNr">1139 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L1139'>cursor-too-deep?</a></span> _self: (addr trace)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1140" class="LineNr">1140 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L1141" class="LineNr">1141 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L1142" class="LineNr">1142 </span> <span class="PreProc">var</span> _trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L1141" class="LineNr">1141 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L1142" class="LineNr">1142 </span> <span class="PreProc">var</span> _trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L1143" class="LineNr">1143 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _trace <span id="L1144" class="LineNr">1144 </span> <span class="PreProc">var</span> cursor-line-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, cursor-line-index <span id="L1145" class="LineNr">1145 </span> <span class="PreProc">var</span> cursor-line-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *cursor-line-index-addr -<span id="L1146" class="LineNr">1146 </span> <span class="PreProc">var</span> cursor-line-offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, cursor-line-index +<span id="L1146" class="LineNr">1146 </span> <span class="PreProc">var</span> cursor-line-offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, cursor-line-index <span id="L1147" class="LineNr">1147 </span> <span class="PreProc">var</span> cursor-line/<span class="muRegEdx">edx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, cursor-line-offset -<span id="L1148" class="LineNr">1148 </span> <span class="PreProc">var</span> cursor-line-visible?/<span class="muRegEax">eax</span>: (addr boolean) <span class="Special"><-</span> get cursor-line, visible? +<span id="L1148" class="LineNr">1148 </span> <span class="PreProc">var</span> cursor-line-visible?/eax: (addr boolean) <span class="Special"><-</span> get cursor-line, visible? <span id="L1149" class="LineNr">1149 </span> <span class="PreProc">var</span> cursor-line-depth/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get cursor-line, depth <span id="L1150" class="LineNr">1150 </span> <span class="PreProc">var</span> target-depth/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *cursor-line-depth <span id="L1151" class="LineNr">1151 </span> <span class="muComment"># if cursor-line is visible, return false</span> @@ -1222,7 +1221,7 @@ if ('onhashchange' in window) { <span id="L1156" class="LineNr">1156 </span> <span class="Delimiter">}</span> <span id="L1157" class="LineNr">1157 </span> <span class="muComment"># return cursor-line-depth >= max-depth-1</span> <span id="L1158" class="LineNr">1158 </span> target-depth <span class="Special"><-</span> increment -<span id="L1159" class="LineNr">1159 </span> <span class="PreProc">var</span> max-depth-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, max-depth +<span id="L1159" class="LineNr">1159 </span> <span class="PreProc">var</span> max-depth-addr/eax: (addr int) <span class="Special"><-</span> get self, max-depth <span id="L1160" class="LineNr">1160 </span> compare target-depth, *max-depth-addr <span id="L1161" class="LineNr">1161 </span> <span class="Delimiter">{</span> <span id="L1162" class="LineNr">1162 </span> <span class="PreProc">break-if-<</span> @@ -1797,7 +1796,7 @@ if ('onhashchange' in window) { <span id="L1731" class="LineNr">1731 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor <span id="L1732" class="LineNr">1732 </span> <span class="muComment">#</span> <span id="L1733" class="LineNr">1733 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> y, <span class="Constant">1</span>, <span class="Constant">"F - <a href='trace.mu.html#L1692'>test-trace-collapse-skips-invisible-lines</a>/post-0/y"</span> -<span id="L1734" class="LineNr">1734 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get t, cursor-y +<span id="L1734" class="LineNr">1734 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get t, cursor-y <span id="L1735" class="LineNr">1735 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *cursor-y, <span class="Constant">0</span>, <span class="Constant">"F - <a href='trace.mu.html#L1692'>test-trace-collapse-skips-invisible-lines</a>/post-0/cursor-y"</span> <span id="L1736" class="LineNr">1736 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"... "</span>, <span class="Constant">"F - <a href='trace.mu.html#L1692'>test-trace-collapse-skips-invisible-lines</a>/post-0"</span> <span id="L1737" class="LineNr">1737 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0</span>/y, <span class="Constant">"||| "</span>, <span class="Constant">"F - <a href='trace.mu.html#L1692'>test-trace-collapse-skips-invisible-lines</a>/post-0/cursor"</span> @@ -1858,7 +1857,7 @@ if ('onhashchange' in window) { <span id="L1792" class="LineNr">1792 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor <span id="L1793" class="LineNr">1793 </span> <span class="muComment">#</span> <span id="L1794" class="LineNr">1794 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> y, <span class="Constant">1</span>, <span class="Constant">"F - <a href='trace.mu.html#L1742'>test-trace-collapse-two-levels</a>/post-0/y"</span> -<span id="L1795" class="LineNr">1795 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get t, cursor-y +<span id="L1795" class="LineNr">1795 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get t, cursor-y <span id="L1796" class="LineNr">1796 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *cursor-y, <span class="Constant">0</span>, <span class="Constant">"F - <a href='trace.mu.html#L1742'>test-trace-collapse-two-levels</a>/post-0/cursor-y"</span> <span id="L1797" class="LineNr">1797 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"... "</span>, <span class="Constant">"F - <a href='trace.mu.html#L1742'>test-trace-collapse-two-levels</a>/post-0"</span> <span id="L1798" class="LineNr">1798 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0</span>/y, <span class="Constant">"||| "</span>, <span class="Constant">"F - <a href='trace.mu.html#L1742'>test-trace-collapse-two-levels</a>/post-0/cursor"</span> @@ -1930,7 +1929,7 @@ if ('onhashchange' in window) { <span id="L1864" class="LineNr">1864 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">8</span>/ymax, <span class="Constant">1</span>/show-cursor <span id="L1865" class="LineNr">1865 </span> <span class="muComment">#</span> <span id="L1866" class="LineNr">1866 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> y, <span class="Constant">4</span>, <span class="Constant">"F - <a href='trace.mu.html#L1803'>test-trace-collapse-nested-level</a>/post-0/y"</span> -<span id="L1867" class="LineNr">1867 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get t, cursor-y +<span id="L1867" class="LineNr">1867 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get t, cursor-y <span id="L1868" class="LineNr">1868 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *cursor-y, <span class="Constant">2</span>, <span class="Constant">"F - <a href='trace.mu.html#L1803'>test-trace-collapse-nested-level</a>/post-0/cursor-y"</span> <span id="L1869" class="LineNr">1869 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"1 line 1 "</span>, <span class="Constant">"F - <a href='trace.mu.html#L1803'>test-trace-collapse-nested-level</a>/post-0"</span> <span id="L1870" class="LineNr">1870 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='trace.mu.html#L1803'>test-trace-collapse-nested-level</a>/post-0/cursor"</span> @@ -1946,12 +1945,12 @@ if ('onhashchange' in window) { <span id="L1880" class="LineNr">1880 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self <span id="L1881" class="LineNr">1881 </span> <span class="PreProc">var</span> screen-height-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get self, screen-height <span class="muComment"># only available after first render</span> <span id="L1882" class="LineNr">1882 </span> <span class="PreProc">var</span> lines-to-skip/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *screen-height-addr -<span id="L1883" class="LineNr">1883 </span> <span class="PreProc">var</span> top-line-y-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top-line-y +<span id="L1883" class="LineNr">1883 </span> <span class="PreProc">var</span> top-line-y-addr/eax: (addr int) <span class="Special"><-</span> get self, top-line-y <span id="L1884" class="LineNr">1884 </span> lines-to-skip <span class="Special"><-</span> subtract *top-line-y-addr <span id="L1885" class="LineNr">1885 </span> <span class="PreProc">var</span> already-hiding-lines-storage: boolean <span id="L1886" class="LineNr">1886 </span> <span class="PreProc">var</span> already-hiding-lines/<span class="muRegEdx">edx</span>: (addr boolean) <span class="Special"><-</span> address already-hiding-lines-storage <span id="L1887" class="LineNr">1887 </span> <span class="PreProc">var</span> top-line-addr/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> get self, top-line-index -<span id="L1888" class="LineNr">1888 </span> <span class="PreProc">var</span> i/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-line-addr +<span id="L1888" class="LineNr">1888 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy *top-line-addr <span id="L1889" class="LineNr">1889 </span> <span class="PreProc">var</span> max-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, first-free <span id="L1890" class="LineNr">1890 </span> <span class="Delimiter">{</span> <span id="L1891" class="LineNr">1891 </span> <span class="muComment"># if we run out of trace, return without changing anything</span> @@ -1965,7 +1964,7 @@ if ('onhashchange' in window) { <span id="L1899" class="LineNr">1899 </span> <span class="PreProc">break-if-<=</span> <span id="L1900" class="LineNr">1900 </span> <span class="muComment">#</span> <span id="L1901" class="LineNr">1901 </span> <span class="Delimiter">{</span> -<span id="L1902" class="LineNr">1902 </span> <span class="PreProc">var</span> display?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L1943'>count-line?</a> self, i, already-hiding-lines +<span id="L1902" class="LineNr">1902 </span> <span class="PreProc">var</span> display?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L1943'>count-line?</a> self, i, already-hiding-lines <span id="L1903" class="LineNr">1903 </span> compare display?, <span class="Constant">0</span>/false <span id="L1904" class="LineNr">1904 </span> <span class="PreProc">break-if-=</span> <span id="L1905" class="LineNr">1905 </span> lines-to-skip <span class="Special"><-</span> decrement @@ -1981,7 +1980,7 @@ if ('onhashchange' in window) { <span id="L1915" class="LineNr">1915 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self <span id="L1916" class="LineNr">1916 </span> <span class="PreProc">var</span> screen-height-addr/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get self, screen-height <span class="muComment"># only available after first render</span> <span id="L1917" class="LineNr">1917 </span> <span class="PreProc">var</span> lines-to-skip/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy *screen-height-addr -<span id="L1918" class="LineNr">1918 </span> <span class="PreProc">var</span> top-line-y-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top-line-y +<span id="L1918" class="LineNr">1918 </span> <span class="PreProc">var</span> top-line-y-addr/eax: (addr int) <span class="Special"><-</span> get self, top-line-y <span id="L1919" class="LineNr">1919 </span> lines-to-skip <span class="Special"><-</span> subtract *top-line-y-addr <span id="L1920" class="LineNr">1920 </span> <span class="PreProc">var</span> already-hiding-lines-storage: boolean <span id="L1921" class="LineNr">1921 </span> <span class="PreProc">var</span> already-hiding-lines/<span class="muRegEdx">edx</span>: (addr boolean) <span class="Special"><-</span> address already-hiding-lines-storage @@ -1994,7 +1993,7 @@ if ('onhashchange' in window) { <span id="L1928" class="LineNr">1928 </span> compare lines-to-skip, <span class="Constant">0</span> <span id="L1929" class="LineNr">1929 </span> <span class="PreProc">break-if-<=</span> <span id="L1930" class="LineNr">1930 </span> <span class="muComment">#</span> -<span id="L1931" class="LineNr">1931 </span> <span class="PreProc">var</span> display?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L1943'>count-line?</a> self, *top-line-addr, already-hiding-lines +<span id="L1931" class="LineNr">1931 </span> <span class="PreProc">var</span> display?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L1943'>count-line?</a> self, *top-line-addr, already-hiding-lines <span id="L1932" class="LineNr">1932 </span> compare display?, <span class="Constant">0</span>/false <span id="L1933" class="LineNr">1933 </span> <span class="Delimiter">{</span> <span id="L1934" class="LineNr">1934 </span> <span class="PreProc">break-if-=</span> @@ -2006,16 +2005,16 @@ if ('onhashchange' in window) { <span id="L1940" class="LineNr">1940 </span><span class="Delimiter">}</span> <span id="L1941" class="LineNr">1941 </span> <span id="L1942" class="LineNr">1942 </span><span class="muComment"># TODO: duplicates logic for counting lines rendered</span> -<span id="L1943" class="LineNr">1943 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L1943'>count-line?</a></span> _self: (addr trace), index: int, _already-hiding-lines?: (addr boolean)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: boolean <span class="Delimiter">{</span> +<span id="L1943" class="LineNr">1943 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L1943'>count-line?</a></span> _self: (addr trace), index: int, _already-hiding-lines?: (addr boolean)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1944" class="LineNr">1944 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L1945" class="LineNr">1945 </span> <span class="PreProc">var</span> trace-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L1946" class="LineNr">1946 </span> <span class="PreProc">var</span> trace/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L1945" class="LineNr">1945 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L1946" class="LineNr">1946 </span> <span class="PreProc">var</span> trace/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah <span id="L1947" class="LineNr">1947 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset trace, index -<span id="L1948" class="LineNr">1948 </span> <span class="PreProc">var</span> curr/<span class="muRegEax">eax</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, offset +<span id="L1948" class="LineNr">1948 </span> <span class="PreProc">var</span> curr/eax: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index trace, offset <span id="L1949" class="LineNr">1949 </span> <span class="PreProc">var</span> already-hiding-lines?/<span class="muRegEcx">ecx</span>: (addr boolean) <span class="Special"><-</span> copy _already-hiding-lines? <span id="L1950" class="LineNr">1950 </span> <span class="muComment"># count errors</span> <span id="L1951" class="LineNr">1951 </span> <span class="Delimiter">{</span> -<span id="L1952" class="LineNr">1952 </span> <span class="PreProc">var</span> curr-depth/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr, depth +<span id="L1952" class="LineNr">1952 </span> <span class="PreProc">var</span> curr-depth/eax: (addr int) <span class="Special"><-</span> get curr, depth <span id="L1953" class="LineNr">1953 </span> compare *curr-depth, <span class="Constant">0</span>/<span class="Special"><a href='trace.mu.html#L197'>error</a></span> <span id="L1954" class="LineNr">1954 </span> <span class="PreProc">break-if-!=</span> <span id="L1955" class="LineNr">1955 </span> copy-to *already-hiding-lines?, <span class="Constant">0</span>/false @@ -2023,7 +2022,7 @@ if ('onhashchange' in window) { <span id="L1957" class="LineNr">1957 </span> <span class="Delimiter">}</span> <span id="L1958" class="LineNr">1958 </span> <span class="muComment"># count visible lines</span> <span id="L1959" class="LineNr">1959 </span> <span class="Delimiter">{</span> -<span id="L1960" class="LineNr">1960 </span> <span class="PreProc">var</span> display?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='trace.mu.html#L617'>should-render?</a> curr +<span id="L1960" class="LineNr">1960 </span> <span class="PreProc">var</span> display?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L617'>should-render?</a> curr <span id="L1961" class="LineNr">1961 </span> compare display?, <span class="Constant">0</span>/false <span id="L1962" class="LineNr">1962 </span> <span class="PreProc">break-if-=</span> <span id="L1963" class="LineNr">1963 </span> copy-to *already-hiding-lines?, <span class="Constant">0</span>/false @@ -2164,19 +2163,19 @@ if ('onhashchange' in window) { <span id="L2098" class="LineNr">2098 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L2098'>save-indices</a></span> _self: (addr trace), _out: (addr <a href='trace.mu.html#L50'>trace-index-stash</a>) <span class="Delimiter">{</span> <span id="L2099" class="LineNr">2099 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self <span id="L2100" class="LineNr">2100 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr <a href='trace.mu.html#L50'>trace-index-stash</a>) <span class="Special"><-</span> copy _out -<span id="L2101" class="LineNr">2101 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L2102" class="LineNr">2102 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L2101" class="LineNr">2101 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L2102" class="LineNr">2102 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L2103" class="LineNr">2103 </span> <span class="PreProc">var</span> data/<span class="muRegEbx">ebx</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _data <span id="L2104" class="LineNr">2104 </span> <span class="muComment"># cursor</span> -<span id="L2105" class="LineNr">2105 </span> <span class="PreProc">var</span> cursor-line-index-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, cursor-line-index -<span id="L2106" class="LineNr">2106 </span> <span class="PreProc">var</span> cursor-line-index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *cursor-line-index-addr +<span id="L2105" class="LineNr">2105 </span> <span class="PreProc">var</span> cursor-line-index-addr/eax: (addr int) <span class="Special"><-</span> get self, cursor-line-index +<span id="L2106" class="LineNr">2106 </span> <span class="PreProc">var</span> cursor-line-index/eax: int <span class="Special"><-</span> copy *cursor-line-index-addr <span id="L2107" class="LineNr">2107 </span><span class="CommentedCode">#? draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, cursor-line-index, 2/fg 0/bg</span> -<span id="L2108" class="LineNr">2108 </span> <span class="PreProc">var</span> offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset data, cursor-line-index +<span id="L2108" class="LineNr">2108 </span> <span class="PreProc">var</span> offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset data, cursor-line-index <span id="L2109" class="LineNr">2109 </span> <span class="PreProc">var</span> cursor-line/<span class="muRegEcx">ecx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index data, offset -<span id="L2110" class="LineNr">2110 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get cursor-line, depth +<span id="L2110" class="LineNr">2110 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> get cursor-line, depth <span id="L2111" class="LineNr">2111 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get out, cursor-line-depth <span id="L2112" class="LineNr">2112 </span> copy-object src, dest -<span id="L2113" class="LineNr">2113 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get cursor-line, label +<span id="L2113" class="LineNr">2113 </span> <span class="PreProc">var</span> src/eax: (addr handle array byte) <span class="Special"><-</span> get cursor-line, label <span id="L2114" class="LineNr">2114 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> get out, cursor-line-label <span id="L2115" class="LineNr">2115 </span> copy-object src, dest <span id="L2116" class="LineNr">2116 </span> src <span class="Special"><-</span> get cursor-line, data @@ -2191,15 +2190,15 @@ if ('onhashchange' in window) { <span id="L2125" class="LineNr">2125 </span> dest <span class="Special"><-</span> get out, cursor-line-data <span id="L2126" class="LineNr">2126 </span> copy-object src, dest <span id="L2127" class="LineNr">2127 </span> <span class="muComment"># top of screen</span> -<span id="L2128" class="LineNr">2128 </span> <span class="PreProc">var</span> top-line-index-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get self, top-line-index -<span id="L2129" class="LineNr">2129 </span> <span class="PreProc">var</span> top-line-index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *top-line-index-addr +<span id="L2128" class="LineNr">2128 </span> <span class="PreProc">var</span> top-line-index-addr/eax: (addr int) <span class="Special"><-</span> get self, top-line-index +<span id="L2129" class="LineNr">2129 </span> <span class="PreProc">var</span> top-line-index/eax: int <span class="Special"><-</span> copy *top-line-index-addr <span id="L2130" class="LineNr">2130 </span><span class="CommentedCode">#? draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, top-line-index, 2/fg 0/bg</span> -<span id="L2131" class="LineNr">2131 </span> <span class="PreProc">var</span> offset/<span class="muRegEax">eax</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset data, top-line-index +<span id="L2131" class="LineNr">2131 </span> <span class="PreProc">var</span> offset/eax: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset data, top-line-index <span id="L2132" class="LineNr">2132 </span> <span class="PreProc">var</span> top-line/<span class="muRegEcx">ecx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index data, offset -<span id="L2133" class="LineNr">2133 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get top-line, depth +<span id="L2133" class="LineNr">2133 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> get top-line, depth <span id="L2134" class="LineNr">2134 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get out, top-line-depth <span id="L2135" class="LineNr">2135 </span> copy-object src, dest -<span id="L2136" class="LineNr">2136 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get top-line, label +<span id="L2136" class="LineNr">2136 </span> <span class="PreProc">var</span> src/eax: (addr handle array byte) <span class="Special"><-</span> get top-line, label <span id="L2137" class="LineNr">2137 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> get out, top-line-label <span id="L2138" class="LineNr">2138 </span> copy-object src, dest <span id="L2139" class="LineNr">2139 </span> src <span class="Special"><-</span> get top-line, data @@ -2210,37 +2209,37 @@ if ('onhashchange' in window) { <span id="L2144" class="LineNr">2144 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L2144'>restore-indices</a></span> _self: (addr trace), _in: (addr <a href='trace.mu.html#L50'>trace-index-stash</a>) <span class="Delimiter">{</span> <span id="L2145" class="LineNr">2145 </span> <span class="PreProc">var</span> self/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> copy _self <span id="L2146" class="LineNr">2146 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='trace.mu.html#L50'>trace-index-stash</a>) <span class="Special"><-</span> copy _in -<span id="L2147" class="LineNr">2147 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L2148" class="LineNr">2148 </span> <span class="PreProc">var</span> _data/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L2147" class="LineNr">2147 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L2148" class="LineNr">2148 </span> <span class="PreProc">var</span> _data/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L2149" class="LineNr">2149 </span> <span class="PreProc">var</span> data/<span class="muRegEbx">ebx</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> copy _data <span id="L2150" class="LineNr">2150 </span> <span class="muComment"># cursor</span> <span id="L2151" class="LineNr">2151 </span> <span class="PreProc">var</span> cursor-depth/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get in, cursor-line-depth -<span id="L2152" class="LineNr">2152 </span> <span class="PreProc">var</span> cursor-line-label-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get in, cursor-line-label -<span id="L2153" class="LineNr">2153 </span> <span class="PreProc">var</span> _cursor-line-label/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-line-label-ah +<span id="L2152" class="LineNr">2152 </span> <span class="PreProc">var</span> cursor-line-label-ah/eax: (addr handle array byte) <span class="Special"><-</span> get in, cursor-line-label +<span id="L2153" class="LineNr">2153 </span> <span class="PreProc">var</span> _cursor-line-label/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-line-label-ah <span id="L2154" class="LineNr">2154 </span> <span class="PreProc">var</span> cursor-line-label/<span class="muRegEcx">ecx</span>: (addr array byte) <span class="Special"><-</span> copy _cursor-line-label -<span id="L2155" class="LineNr">2155 </span> <span class="PreProc">var</span> cursor-line-data-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get in, cursor-line-data -<span id="L2156" class="LineNr">2156 </span> <span class="PreProc">var</span> cursor-line-data/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-line-data-ah -<span id="L2157" class="LineNr">2157 </span> <span class="PreProc">var</span> new-cursor-line-index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='trace.mu.html#L2174'>find-in-trace</a> self, *cursor-depth, cursor-line-label, cursor-line-data +<span id="L2155" class="LineNr">2155 </span> <span class="PreProc">var</span> cursor-line-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get in, cursor-line-data +<span id="L2156" class="LineNr">2156 </span> <span class="PreProc">var</span> cursor-line-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-line-data-ah +<span id="L2157" class="LineNr">2157 </span> <span class="PreProc">var</span> new-cursor-line-index/eax: int <span class="Special"><-</span> <a href='trace.mu.html#L2174'>find-in-trace</a> self, *cursor-depth, cursor-line-label, cursor-line-data <span id="L2158" class="LineNr">2158 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, cursor-line-index <span id="L2159" class="LineNr">2159 </span> copy-to *dest, new-cursor-line-index <span id="L2160" class="LineNr">2160 </span> <span class="muComment"># top of screen</span> <span id="L2161" class="LineNr">2161 </span> <span class="PreProc">var</span> top-depth/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get in, top-line-depth -<span id="L2162" class="LineNr">2162 </span> <span class="PreProc">var</span> top-line-label-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get in, top-line-label -<span id="L2163" class="LineNr">2163 </span> <span class="PreProc">var</span> _top-line-label/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *top-line-label-ah +<span id="L2162" class="LineNr">2162 </span> <span class="PreProc">var</span> top-line-label-ah/eax: (addr handle array byte) <span class="Special"><-</span> get in, top-line-label +<span id="L2163" class="LineNr">2163 </span> <span class="PreProc">var</span> _top-line-label/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *top-line-label-ah <span id="L2164" class="LineNr">2164 </span> <span class="PreProc">var</span> top-line-label/<span class="muRegEcx">ecx</span>: (addr array byte) <span class="Special"><-</span> copy _top-line-label -<span id="L2165" class="LineNr">2165 </span> <span class="PreProc">var</span> top-line-data-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get in, top-line-data -<span id="L2166" class="LineNr">2166 </span> <span class="PreProc">var</span> top-line-data/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *top-line-data-ah -<span id="L2167" class="LineNr">2167 </span> <span class="PreProc">var</span> new-top-line-index/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> <a href='trace.mu.html#L2174'>find-in-trace</a> self, *top-depth, top-line-label, top-line-data +<span id="L2165" class="LineNr">2165 </span> <span class="PreProc">var</span> top-line-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get in, top-line-data +<span id="L2166" class="LineNr">2166 </span> <span class="PreProc">var</span> top-line-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *top-line-data-ah +<span id="L2167" class="LineNr">2167 </span> <span class="PreProc">var</span> new-top-line-index/eax: int <span class="Special"><-</span> <a href='trace.mu.html#L2174'>find-in-trace</a> self, *top-depth, top-line-label, top-line-data <span id="L2168" class="LineNr">2168 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, top-line-index <span id="L2169" class="LineNr">2169 </span> copy-to *dest, new-top-line-index <span id="L2170" class="LineNr">2170 </span><span class="Delimiter">}</span> <span id="L2171" class="LineNr">2171 </span> <span id="L2172" class="LineNr">2172 </span><span class="muComment"># like trace-contains? but stateless</span> <span id="L2173" class="LineNr">2173 </span><span class="muComment"># this is super-inefficient, string comparing every trace line</span> -<span id="L2174" class="LineNr">2174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L2174'>find-in-trace</a></span> _self: (addr trace), depth: int, label: (addr array byte), data: (addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEax">eax</span>: int <span class="Delimiter">{</span> +<span id="L2174" class="LineNr">2174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='trace.mu.html#L2174'>find-in-trace</a></span> _self: (addr trace), depth: int, label: (addr array byte), data: (addr array byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L2175" class="LineNr">2175 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> copy _self -<span id="L2176" class="LineNr">2176 </span> <span class="PreProc">var</span> candidates-ah/<span class="muRegEax">eax</span>: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data -<span id="L2177" class="LineNr">2177 </span> <span class="PreProc">var</span> candidates/<span class="muRegEax">eax</span>: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *candidates-ah +<span id="L2176" class="LineNr">2176 </span> <span class="PreProc">var</span> candidates-ah/eax: (addr handle array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> get self, data +<span id="L2177" class="LineNr">2177 </span> <span class="PreProc">var</span> candidates/eax: (addr array <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *candidates-ah <span id="L2178" class="LineNr">2178 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L2179" class="LineNr">2179 </span> <span class="PreProc">var</span> max/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, first-free <span id="L2180" class="LineNr">2180 </span> <span class="Delimiter">{</span> @@ -2250,21 +2249,21 @@ if ('onhashchange' in window) { <span id="L2184" class="LineNr">2184 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEdx">edx</span>: (offset <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> compute-offset candidates, i <span id="L2185" class="LineNr">2185 </span> <span class="PreProc">var</span> curr/<span class="muRegEdx">edx</span>: (addr <a href='trace.mu.html#L41'>trace-line</a>) <span class="Special"><-</span> index candidates, curr-offset <span id="L2186" class="LineNr">2186 </span> <span class="muComment"># if curr->depth does not match, continue</span> -<span id="L2187" class="LineNr">2187 </span> <span class="PreProc">var</span> curr-depth-addr/<span class="muRegEax">eax</span>: (addr int) <span class="Special"><-</span> get curr, depth -<span id="L2188" class="LineNr">2188 </span> <span class="PreProc">var</span> curr-depth/<span class="muRegEax">eax</span>: int <span class="Special"><-</span> copy *curr-depth-addr +<span id="L2187" class="LineNr">2187 </span> <span class="PreProc">var</span> curr-depth-addr/eax: (addr int) <span class="Special"><-</span> get curr, depth +<span id="L2188" class="LineNr">2188 </span> <span class="PreProc">var</span> curr-depth/eax: int <span class="Special"><-</span> copy *curr-depth-addr <span id="L2189" class="LineNr">2189 </span> compare curr-depth, depth <span id="L2190" class="LineNr">2190 </span> <span class="PreProc">break-if-!=</span> <span id="L2191" class="LineNr">2191 </span> <span class="muComment"># if curr->label does not match, continue</span> -<span id="L2192" class="LineNr">2192 </span> <span class="PreProc">var</span> curr-label-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, label -<span id="L2193" class="LineNr">2193 </span> <span class="PreProc">var</span> curr-label/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-label-ah -<span id="L2194" class="LineNr">2194 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-label, label +<span id="L2192" class="LineNr">2192 </span> <span class="PreProc">var</span> curr-label-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, label +<span id="L2193" class="LineNr">2193 </span> <span class="PreProc">var</span> curr-label/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-label-ah +<span id="L2194" class="LineNr">2194 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-label, label <span id="L2195" class="LineNr">2195 </span> compare match?, <span class="Constant">0</span>/false <span id="L2196" class="LineNr">2196 </span> <span class="PreProc">break-if-=</span> <span id="L2197" class="LineNr">2197 </span> <span class="muComment"># if curr->data does not match, continue</span> -<span id="L2198" class="LineNr">2198 </span> <span class="PreProc">var</span> curr-data-ah/<span class="muRegEax">eax</span>: (addr handle array byte) <span class="Special"><-</span> get curr, data -<span id="L2199" class="LineNr">2199 </span> <span class="PreProc">var</span> curr-data/<span class="muRegEax">eax</span>: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-data-ah +<span id="L2198" class="LineNr">2198 </span> <span class="PreProc">var</span> curr-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, data +<span id="L2199" class="LineNr">2199 </span> <span class="PreProc">var</span> curr-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-data-ah <span id="L2200" class="LineNr">2200 </span> <span class="Delimiter">{</span> -<span id="L2201" class="LineNr">2201 </span> <span class="PreProc">var</span> match?/<span class="muRegEax">eax</span>: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-data, data +<span id="L2201" class="LineNr">2201 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> curr-data, data <span id="L2202" class="LineNr">2202 </span> compare match?, <span class="Constant">0</span>/false <span id="L2203" class="LineNr">2203 </span> <span class="Delimiter">}</span> <span id="L2204" class="LineNr">2204 </span> <span class="PreProc">break-if-=</span> |