From 695f9bf8d0a7d0a871b8ab75270ceb29715d9be3 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 25 Jul 2019 00:08:23 -0700 Subject: 5468 --- html/subx/examples/ex3.subx.html | 58 +++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 27 deletions(-) (limited to 'html/subx/examples/ex3.subx.html') diff --git a/html/subx/examples/ex3.subx.html b/html/subx/examples/ex3.subx.html index 096ff79c..8c0f1642 100644 --- a/html/subx/examples/ex3.subx.html +++ b/html/subx/examples/ex3.subx.html @@ -3,8 +3,8 @@ Mu - subx/examples/ex3.subx - - + + @@ -15,11 +15,12 @@ body { font-size:12pt; font-family: monospace; color: #000000; background-color: a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxS2Comment { color: #8a8a8a; } -.LineNr { } .subxS1Comment { color: #0000af; } +.LineNr { } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .Normal { color: #000000; background-color: #c6c6c6; padding-bottom: 1px; } +.subxS2Comment { color: #8a8a8a; } --> @@ -36,7 +37,7 @@ function JumpToLine() if (lineNum.indexOf('L') == -1) { lineNum = 'L'+lineNum; } - lineElem = document.getElementById(lineNum); + var lineElem = document.getElementById(lineNum); /* Always jump to new location even if the line was hidden inside a fold, or * we corrected the raw number to a line ID. */ @@ -69,28 +70,31 @@ if ('onhashchange' in window) { 12 # . op subop mod rm32 base index scale r32 13 # . 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 14 -15 # result: EBX = 0 -16 bb/copy-to-EBX 0/imm32 -17 # counter: ECX = 1 -18 b9/copy-to-ECX 1/imm32 -19 -20 $loop: -21 # if (counter > 10) break -22 81 7/subop/compare 3/mod/direct 1/rm32/ECX . . . . . 0xa/imm32 # compare ECX -23 7f/jump-if-greater $exit/disp8 -24 # result += counter -25 01/add 3/mod/direct 3/rm32/EBX . . . 1/r32/ECX . . # add ECX to EBX -26 # ++counter -27 41/increment-ECX -28 # loop -29 eb/jump $loop/disp8 -30 -31 $exit: -32 # syscall(exit, EBX) -33 b8/copy-to-EAX 1/imm32/exit -34 cd/syscall 0x80/imm8 -35 -36 # . . vim:nowrap:textwidth=0 +15 Entry: +16 # result: EBX = 0 +17 bb/copy-to-EBX 0/imm32 +18 # counter: ECX = 1 +19 b9/copy-to-ECX 1/imm32 +20 +21 $loop: +22 # if (counter > 10) break +23 81 7/subop/compare 3/mod/direct 1/rm32/ECX . . . . . 0xa/imm32 # compare ECX +24 7f/jump-if-greater $exit/disp8 +25 # result += counter +26 01/add 3/mod/direct 3/rm32/EBX . . . 1/r32/ECX . . # add ECX to EBX +27 # ++counter +28 41/increment-ECX +29 # loop +30 eb/jump $loop/disp8 +31 +32 $exit: +33 # syscall(exit, EBX) +34 b8/copy-to-EAX 1/imm32/exit +35 cd/syscall 0x80/imm8 +36 +37 == data 0x0a000000 +38 +39 # . . vim:nowrap:textwidth=0 -- cgit 1.4.1-2-gfad0