diff options
Diffstat (limited to 'html/subx/apps/hex.subx.html')
-rw-r--r-- | html/subx/apps/hex.subx.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/html/subx/apps/hex.subx.html b/html/subx/apps/hex.subx.html index de6efce9..6f15c0c9 100644 --- a/html/subx/apps/hex.subx.html +++ b/html/subx/apps/hex.subx.html @@ -118,7 +118,7 @@ if ('onhashchange' in window) { <span id="L55" class="LineNr"> 55 </span> <span class="subxComment"># return convert(Stdin, 1/stdout, 2/stderr, ed)</span> <span id="L56" class="LineNr"> 56 </span> <span class="subxS2Comment"># . . push args</span> <span id="L57" class="LineNr"> 57 </span> 50/push-EAX/ed -<span id="L58" class="LineNr"> 58 </span> 68/push <span class="SpecialChar"><a href='../065error-byte.subx.html#L97'>Stderr</a></span>/imm32 +<span id="L58" class="LineNr"> 58 </span> 68/push <span class="SpecialChar"><a href='../066error-byte.subx.html#L97'>Stderr</a></span>/imm32 <span id="L59" class="LineNr"> 59 </span> 68/push <span class="SpecialChar"><a href='../062write-byte.subx.html#L10'>Stdout</a></span>/imm32 <span id="L60" class="LineNr"> 60 </span> 68/push <span class="SpecialChar"><a href='../059read-byte.subx.html#L14'>Stdin</a></span>/imm32 <span id="L61" class="LineNr"> 61 </span> <span class="subxS2Comment"># . . call</span> @@ -194,10 +194,10 @@ if ('onhashchange' in window) { <span id="L131" class="LineNr"> 131 </span> <span class="subxComment"># pseudocode:</span> <span id="L132" class="LineNr"> 132 </span> <span class="subxComment"># EAX = scan-next-byte(in, err, ed)</span> <span id="L133" class="LineNr"> 133 </span> <span class="subxComment"># if (EAX == 0xffffffff) return</span> -<span id="L134" class="LineNr"> 134 </span> <span class="subxComment"># ECX = parse-hex-digit(EAX)</span> +<span id="L134" class="LineNr"> 134 </span> <span class="subxComment"># ECX = from-hex-char(EAX)</span> <span id="L135" class="LineNr"> 135 </span> <span class="subxComment"># EAX = scan-next-byte(in, err, ed)</span> <span id="L136" class="LineNr"> 136 </span> <span class="subxComment"># if (EAX == 0xffffffff) error("partial byte found.")</span> -<span id="L137" class="LineNr"> 137 </span> <span class="subxComment"># EAX = parse-hex-digit(EAX)</span> +<span id="L137" class="LineNr"> 137 </span> <span class="subxComment"># EAX = from-hex-char(EAX)</span> <span id="L138" class="LineNr"> 138 </span> <span class="subxComment"># EAX = (ECX << 4) | EAX</span> <span id="L139" class="LineNr"> 139 </span> <span class="subxComment"># return</span> <span id="L140" class="LineNr"> 140 </span> <span class="subxComment">#</span> @@ -218,8 +218,8 @@ if ('onhashchange' in window) { <span id="L155" class="LineNr"> 155 </span> <span class="subxComment"># if (EAX == 0xffffffff) return</span> <span id="L156" class="LineNr"> 156 </span> 81 7/subop/compare 3/mod/direct 0/rm32/EAX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xffffffff/imm32 <span class="subxComment"># compare EAX</span> <span id="L157" class="LineNr"> 157 </span> 74/jump-if-equal $convert-next-octet:end/disp8 -<span id="L158" class="LineNr"> 158 </span> <span class="subxComment"># EAX = parse-hex-digit(EAX)</span> -<span id="L159" class="LineNr"> 159 </span> e8/call <a href='../071hex.subx.html#L572'>parse-hex-digit</a>/disp32 +<span id="L158" class="LineNr"> 158 </span> <span class="subxComment"># EAX = from-hex-char(EAX)</span> +<span id="L159" class="LineNr"> 159 </span> e8/call <a href='../063hex.subx.html#L673'>from-hex-char</a>/disp32 <span id="L160" class="LineNr"> 160 </span> <span class="subxComment"># ECX = EAX</span> <span id="L161" class="LineNr"> 161 </span> 89/copy 3/mod/direct 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/EAX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy EAX to ECX</span> <span id="L162" class="LineNr"> 162 </span> <span class="subxComment"># EAX = scan-next-byte(in, err, ed)</span> @@ -241,10 +241,10 @@ if ('onhashchange' in window) { <span id="L178" class="LineNr"> 178 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EBP+12)</span> <span id="L179" class="LineNr"> 179 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EBP+16)</span> <span id="L180" class="LineNr"> 180 </span> <span class="subxS2Comment"># . . call</span> -<span id="L181" class="LineNr"> 181 </span> e8/call <a href='../065error-byte.subx.html#L30'>error-byte</a>/disp32 <span class="subxComment"># never returns</span> +<span id="L181" class="LineNr"> 181 </span> e8/call <a href='../066error-byte.subx.html#L30'>error-byte</a>/disp32 <span class="subxComment"># never returns</span> <span id="L182" class="LineNr"> 182 </span><span class="Constant">$convert-next-octet:<a href='hex.subx.html#L72'>convert</a></span>: -<span id="L183" class="LineNr"> 183 </span> <span class="subxComment"># EAX = parse-hex-digit(EAX)</span> -<span id="L184" class="LineNr"> 184 </span> e8/call <a href='../071hex.subx.html#L572'>parse-hex-digit</a>/disp32 +<span id="L183" class="LineNr"> 183 </span> <span class="subxComment"># EAX = from-hex-char(EAX)</span> +<span id="L184" class="LineNr"> 184 </span> e8/call <a href='../063hex.subx.html#L673'>from-hex-char</a>/disp32 <span id="L185" class="LineNr"> 185 </span> <span class="subxComment"># EAX = (ECX << 4) | EAX</span> <span id="L186" class="LineNr"> 186 </span> <span class="subxS1Comment"># . ECX <<= 4</span> <span id="L187" class="LineNr"> 187 </span> c1/shift 4/subop/left 3/mod/direct 1/rm32/ECX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm8 <span class="subxComment"># shift ECX left by 4 bits</span> @@ -580,7 +580,7 @@ if ('onhashchange' in window) { <span id="L517" class="LineNr"> 517 </span> <span class="subxS2Comment"># . . push args</span> <span id="L518" class="LineNr"> 518 </span> 50/push-EAX <span id="L519" class="LineNr"> 519 </span> <span class="subxS2Comment"># . . call</span> -<span id="L520" class="LineNr"> 520 </span> e8/call <a href='../071hex.subx.html#L413'>is-hex-digit?</a>/disp32 +<span id="L520" class="LineNr"> 520 </span> e8/call <a href='../063hex.subx.html#L514'>is-hex-digit?</a>/disp32 <span id="L521" class="LineNr"> 521 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L522" class="LineNr"> 522 </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="L523" class="LineNr"> 523 </span> <span class="subxS1Comment"># . compare with 'false'</span> @@ -619,7 +619,7 @@ if ('onhashchange' in window) { <span id="L556" class="LineNr"> 556 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EBP+12)</span> <span id="L557" class="LineNr"> 557 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EBP+16)</span> <span id="L558" class="LineNr"> 558 </span> <span class="subxS2Comment"># . . call</span> -<span id="L559" class="LineNr"> 559 </span> e8/call <a href='../065error-byte.subx.html#L30'>error-byte</a>/disp32 <span class="subxComment"># never returns</span> +<span id="L559" class="LineNr"> 559 </span> e8/call <a href='../066error-byte.subx.html#L30'>error-byte</a>/disp32 <span class="subxComment"># never returns</span> <span id="L560" class="LineNr"> 560 </span><span class="Constant">$scan-next-byte:end</span>: <span id="L561" class="LineNr"> 561 </span> <span class="subxS1Comment"># . restore registers</span> <span id="L562" class="LineNr"> 562 </span> <span class="subxS1Comment"># . epilog</span> |