diff options
Diffstat (limited to 'html/mu-init-test.subx.html')
-rw-r--r-- | html/mu-init-test.subx.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/html/mu-init-test.subx.html b/html/mu-init-test.subx.html index e0475d7b..025b5f71 100644 --- a/html/mu-init-test.subx.html +++ b/html/mu-init-test.subx.html @@ -15,10 +15,10 @@ body { font-size:12pt; font-family: monospace; color: #000000; background-color: a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } +.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.SpecialChar { color: #d70000; } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } --> </style> @@ -58,10 +58,10 @@ if ('onhashchange' in window) { <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Just a test stub for mu-init.subx</span> <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># Try it out like this:</span> -<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ ./translate_subx init.linux 0*.subx mu-init.subx mu-init-test.subx</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ ./translate_subx init.linux [0-9]*.subx mu-init.subx mu-init-test.subx</span> <span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ ./a.elf # should run all tests</span> <span id="L6" class="LineNr"> 6 </span> -<span id="L7" class="LineNr"> 7 </span><span class="subxFunction">main</span>: <span class="subxComment"># args: (address array kernel-string) -> result/ebx: int</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxFunction">main</span>: <span class="subxComment"># args: (addr array (addr array byte)) -> result/ebx: int</span> <span id="L8" class="LineNr"> 8 </span> <span class="subxS1Comment"># . prologue</span> <span id="L9" class="LineNr"> 9 </span> 55/push-ebp <span id="L10" class="LineNr">10 </span> 89/<- %ebp 4/r32/esp @@ -72,10 +72,10 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr">15 </span> 8b/-> *(ebp+8) 6/r32/esi <span id="L16" class="LineNr">16 </span> { <span id="L17" class="LineNr">17 </span> <span class="subxComment"># if (argc <= 1) break</span> -<span id="L18" class="LineNr">18 </span> 81 7/subop/compare *esi 1/imm32 +<span id="L18" class="LineNr">18 </span> 81 7/subop/compare *esi 4/imm32 <span id="L19" class="LineNr">19 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 <span id="L20" class="LineNr">20 </span> <span class="subxComment"># if (argv[1] != "test") break</span> -<span id="L21" class="LineNr">21 </span> (<a href='052kernel-string-equal.subx.html#L33'>kernel-string-equal?</a> *(esi+8) <span class="Constant">"test"</span>) <span class="subxComment"># => eax</span> +<span id="L21" class="LineNr">21 </span> (<a href='054string-equal.subx.html#L16'>string-equal?</a> *(esi+8) <span class="Constant">"test"</span>) <span class="subxComment"># => eax</span> <span id="L22" class="LineNr">22 </span> 3d/compare-eax-and 0/imm32 <span id="L23" class="LineNr">23 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 <span id="L24" class="LineNr">24 </span> <span class="subxComment">#</span> |