diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-11-09 09:23:31 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-11-09 09:23:31 -0800 |
commit | 3ff2fe607c2cb5690d201d3b83ddcc957e949b7a (patch) | |
tree | 2dd6019731bad313ecf0423d6063c9d0fa0bb77e /html/linux/102test.subx.html | |
parent | ef8fd8851a883eefd7bd55ffc31d6e00f67d50a8 (diff) | |
download | mu-3ff2fe607c2cb5690d201d3b83ddcc957e949b7a.tar.gz |
.
Diffstat (limited to 'html/linux/102test.subx.html')
-rw-r--r-- | html/linux/102test.subx.html | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/html/linux/102test.subx.html b/html/linux/102test.subx.html index 274a90c2..8a143b89 100644 --- a/html/linux/102test.subx.html +++ b/html/linux/102test.subx.html @@ -14,14 +14,15 @@ pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } +.SpecialChar { color: #d70000; } .subxComment { color: #005faf; } +.subxS1Comment { color: #0000af; } .subxS2Comment { color: #8a8a8a; } .LineNr { } +.Constant { color: #008787; } .subxFunction { color: #af5f00; text-decoration: underline; } -.subxS1Comment { color: #0000af; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.SpecialChar { color: #d70000; } -.Constant { color: #008787; } +.CommentedCode { color: #8a8a8a; } --> </style> @@ -64,19 +65,19 @@ if ('onhashchange' in window) { <span id="L5" class="LineNr"> 5 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> <span id="L6" class="LineNr"> 6 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> <span id="L7" class="LineNr"> 7 </span> -<span id="L8" class="LineNr"> 8 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># manual test</span> -<span id="L9" class="LineNr"> 9 </span> <span class="subxComment"># check-ints-equal(34, 34)</span> -<span id="L10" class="LineNr"> 10 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L11" class="LineNr"> 11 </span> 68/push <span class="Constant">"error in check-ints-equal"</span>/imm32 -<span id="L12" class="LineNr"> 12 </span> 68/push 34/imm32 -<span id="L13" class="LineNr"> 13 </span> 68/push 34/imm32 -<span id="L14" class="LineNr"> 14 </span> <span class="subxS2Comment"># . . call</span> -<span id="L15" class="LineNr"> 15 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32 -<span id="L16" class="LineNr"> 16 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L17" class="LineNr"> 17 </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> 0xc/imm32 <span class="subxComment"># add to esp</span> -<span id="L18" class="LineNr"> 18 </span> <span class="subxComment"># syscall(exit, 0)</span> -<span id="L19" class="LineNr"> 19 </span> bb/copy-to-ebx 0/imm32 -<span id="L20" class="LineNr"> 20 </span> e8/call <a href='000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L8" class="LineNr"> 8 </span><span class="CommentedCode">#? Entry: # manual test</span> +<span id="L9" class="LineNr"> 9 </span><span class="CommentedCode">#? # check-ints-equal(34, 34)</span> +<span id="L10" class="LineNr"> 10 </span><span class="CommentedCode">#? # . . push args</span> +<span id="L11" class="LineNr"> 11 </span><span class="CommentedCode">#? 68/push "error in check-ints-equal"/imm32</span> +<span id="L12" class="LineNr"> 12 </span><span class="CommentedCode">#? 68/push 34/imm32</span> +<span id="L13" class="LineNr"> 13 </span><span class="CommentedCode">#? 68/push 34/imm32</span> +<span id="L14" class="LineNr"> 14 </span><span class="CommentedCode">#? # . . call</span> +<span id="L15" class="LineNr"> 15 </span><span class="CommentedCode">#? e8/call check-ints-equal/disp32</span> +<span id="L16" class="LineNr"> 16 </span><span class="CommentedCode">#? # . . discard args</span> +<span id="L17" class="LineNr"> 17 </span><span class="CommentedCode">#? 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp</span> +<span id="L18" class="LineNr"> 18 </span><span class="CommentedCode">#? # syscall_exit(0)</span> +<span id="L19" class="LineNr"> 19 </span><span class="CommentedCode">#? bb/copy-to-ebx 0/imm32</span> +<span id="L20" class="LineNr"> 20 </span><span class="CommentedCode">#? e8/call syscall_exit/disp32</span> <span id="L21" class="LineNr"> 21 </span> <span id="L22" class="LineNr"> 22 </span><span class="subxComment"># print msg to stderr if a != b, otherwise print "."</span> <span id="L23" class="LineNr"> 23 </span><span class="subxFunction">check-ints-equal</span>: <span class="subxComment"># a: int, b: int, msg: (addr array byte)</span> |