diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-03-06 12:28:57 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-03-06 12:28:57 -0800 |
commit | 651fc300a4087f6ccaa7d17c0d581e6ddd313a48 (patch) | |
tree | c6847217382e6fb9c55bf5c722481123f8d77e97 /html/079emit.subx.html | |
parent | c1737cbaae4e0712beff129094aa73d51204f9a7 (diff) | |
download | mu-651fc300a4087f6ccaa7d17c0d581e6ddd313a48.tar.gz |
6084
Diffstat (limited to 'html/079emit.subx.html')
-rw-r--r-- | html/079emit.subx.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/079emit.subx.html b/html/079emit.subx.html index 4975046a..7b96917b 100644 --- a/html/079emit.subx.html +++ b/html/079emit.subx.html @@ -122,18 +122,18 @@ if ('onhashchange' in window) { <span id="L61" class="LineNr"> 61 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L62" class="LineNr"> 62 </span> <span class="subxS1Comment"># . return</span> <span id="L63" class="LineNr"> 63 </span> eb/jump $emit:end/disp8 -<span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># otherwise emit-hex(out, parse-hex-int(datum), width)</span> +<span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># otherwise emit-hex(out, parse-hex-int-from-slice(datum), width)</span> <span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># (Weird shit can happen here if the datum of 'word' isn't either a valid</span> <span id="L66" class="LineNr"> 66 </span> <span class="subxComment"># name or a hex number. `emit` is mostly used by translate_subx, which</span> <span id="L67" class="LineNr"> 67 </span> <span class="subxComment"># is currently designed to only receive legal SubX programs. We just</span> <span id="L68" class="LineNr"> 68 </span> <span class="subxComment"># want to make sure that valid names aren't treated as (valid) hex</span> <span id="L69" class="LineNr"> 69 </span> <span class="subxComment"># numbers.)</span> <span id="L70" class="LineNr"> 70 </span><span class="Constant">$emit:hex-int</span>: -<span id="L71" class="LineNr"> 71 </span> <span class="subxS1Comment"># . var value/eax: int = parse-hex-int(datum)</span> +<span id="L71" class="LineNr"> 71 </span> <span class="subxS1Comment"># . var value/eax: int = parse-hex-int-from-slice(datum)</span> <span id="L72" class="LineNr"> 72 </span> <span class="subxS2Comment"># . . push args</span> <span id="L73" class="LineNr"> 73 </span> 57/push-edi <span id="L74" class="LineNr"> 74 </span> <span class="subxS2Comment"># . . call</span> -<span id="L75" class="LineNr"> 75 </span> e8/call <a href='067parse-hex.subx.html#L354'>parse-hex-int</a>/disp32 +<span id="L75" class="LineNr"> 75 </span> e8/call <a href='067parse-hex.subx.html#L354'>parse-hex-int-from-slice</a>/disp32 <span id="L76" class="LineNr"> 76 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L77" class="LineNr"> 77 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span> <span id="L78" class="LineNr"> 78 </span> <span class="subxS1Comment"># . emit-hex(out, value, width)</span> |