diff options
Diffstat (limited to 'html/ex3.mu.html')
-rw-r--r-- | html/ex3.mu.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/html/ex3.mu.html b/html/ex3.mu.html index 77e4d705..b7217423 100644 --- a/html/ex3.mu.html +++ b/html/ex3.mu.html @@ -7,11 +7,11 @@ <meta name="plugin-version" content="vim8.1_v1"> <meta name="syntax" content="none"> <meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> -<meta name="colorscheme" content="minimal-light"> +<meta name="colorscheme" content="minimal-dark"> <style type="text/css"> <!-- -pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #c6c6c6; } -body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; } +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #a8a8a8; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #a8a8a8; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } @@ -60,16 +60,16 @@ if ('onhashchange' in window) { <span id="L2" class="LineNr"> 2 </span><span class="muComment"># and in raster order.</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># To build a disk image:</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># ./translate ex3.mu # emits disk.img</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># ./translate ex3.mu # emits code.img</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># To run:</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># qemu-system-i386 disk.img</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># Or:</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads disk.img</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> <span id="L10" class="LineNr">10 </span><span class="muComment">#</span> <span id="L11" class="LineNr">11 </span><span class="muComment"># Expected output: a new green pixel starting from the top left corner of the</span> <span id="L12" class="LineNr">12 </span><span class="muComment"># screen every time you press a key (letter or digit)</span> <span id="L13" class="LineNr">13 </span> -<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.mu.html#L14'>main</a></span> <a href='500text-screen.mu.html#L9'>screen</a>: (addr <a href='500text-screen.mu.html#L9'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.mu.html#L14'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/<span class="Constant">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> y/<span class="Constant">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> |