diff options
Diffstat (limited to 'html/apps/ex11.subx.html')
-rw-r--r-- | html/apps/ex11.subx.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/apps/ex11.subx.html b/html/apps/ex11.subx.html index d9c64f2a..ca69cdaa 100644 --- a/html/apps/ex11.subx.html +++ b/html/apps/ex11.subx.html @@ -89,7 +89,7 @@ if ('onhashchange' in window) { <span id="L27" class="LineNr"> 27 </span> <span id="L28" class="LineNr"> 28 </span><span class="subxComment"># compare a null-terminated ascii string with a more idiomatic length-prefixed byte array</span> <span id="L29" class="LineNr"> 29 </span><span class="subxComment"># reason for the name: the only place we should have null-terminated ascii strings is from commandline args</span> -<span id="L30" class="LineNr"> 30 </span><span class="subxFunction">kernel-string-equal?</span>: <span class="subxComment"># s : null-terminated ascii string, benchmark : length-prefixed ascii string -> eax : boolean</span> +<span id="L30" class="LineNr"> 30 </span><span class="subxFunction">kernel-string-equal?</span>: <span class="subxComment"># s: null-terminated ascii string, benchmark: length-prefixed ascii string -> eax: boolean</span> <span id="L31" class="LineNr"> 31 </span> <span class="subxComment"># pseudocode:</span> <span id="L32" class="LineNr"> 32 </span> <span class="subxComment"># n = benchmark->length</span> <span id="L33" class="LineNr"> 33 </span> <span class="subxComment"># s1 = s</span> @@ -320,7 +320,7 @@ if ('onhashchange' in window) { <span id="L258" class="LineNr">258 </span><span class="subxH1Comment"># - helpers</span> <span id="L259" class="LineNr">259 </span> <span id="L260" class="LineNr">260 </span><span class="subxComment"># print msg to stderr if a != b, otherwise print "."</span> -<span id="L261" class="LineNr">261 </span><span class="subxFunction">check-ints-equal</span>: <span class="subxComment"># (a : int, b : int, msg : (addr array byte)) -> boolean</span> +<span id="L261" class="LineNr">261 </span><span class="subxFunction">check-ints-equal</span>: <span class="subxComment"># (a: int, b: int, msg: (addr array byte)) -> boolean</span> <span id="L262" class="LineNr">262 </span> <span class="subxS1Comment"># . prologue</span> <span id="L263" class="LineNr">263 </span> 55/push-ebp <span id="L264" class="LineNr">264 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> @@ -369,7 +369,7 @@ if ('onhashchange' in window) { <span id="L307" class="LineNr">307 </span> 5d/pop-to-ebp <span id="L308" class="LineNr">308 </span> c3/return <span id="L309" class="LineNr">309 </span> -<span id="L310" class="LineNr">310 </span><span class="subxFunction">write-stderr</span>: <span class="subxComment"># s : (addr array byte) -> <void></span> +<span id="L310" class="LineNr">310 </span><span class="subxFunction">write-stderr</span>: <span class="subxComment"># s: (addr array byte) -> <void></span> <span id="L311" class="LineNr">311 </span> <span class="subxS1Comment"># . prologue</span> <span id="L312" class="LineNr">312 </span> 55/push-ebp <span id="L313" class="LineNr">313 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> |