summary refs log tree commit diff stats
ModeNameSize
-rw-r--r--.flake844log stats plain blame
d---------.github97log stats plain
-rw-r--r--.gitignore143log stats plain blame
-rw-r--r--.pylintrc350log stats plain blame
-rw-r--r--.travis.yml157log stats plain blame
-rw-r--r--AUTHORS1541log stats plain blame
-rw-r--r--CHANGELOG.md19321log stats plain blame
-rw-r--r--CONTRIBUTING.md758log stats plain blame
-rw-r--r--HACKING.md8353log stats plain blame
-rw-r--r--LICENSE35147log stats plain blame
-rw-r--r--Makefile4011log stats plain blame
-rw-r--r--README.md4039log stats plain blame
d---------doc393log stats plain
d---------examples756log stats plain
-rwxr-xr-xranger.py1266log stats plain blame
d---------ranger299log stats plain
-rwxr-xr-xsetup.py4811log stats plain blame
d---------tests126log stats plain
lass="mh">#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; } .LineNr { } .Constant { color: #008787; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } --> </style> <script type='text/javascript'> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ function JumpToLine() { var lineNum; lineNum = window.location.hash; lineNum = lineNum.substr(1); /* strip off '#' */ if (lineNum.indexOf('L') == -1) { lineNum = 'L'+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. */ if (lineElem) { lineElem.scrollIntoView(true); } return true; } if ('onhashchange' in window) { window.onhashchange = JumpToLine; } --> </script> </head> <body onload='JumpToLine();'> <a href='https://github.com/akkartik/mu/blob/main/ex4.mu'>https://github.com/akkartik/mu/blob/main/ex4.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Draw a character using the built-in font (GNU unifont)</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate ex4.mu # emits code.img</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> <span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> <span id="L10" class="LineNr">10 </span><span class="muComment"># Expected output: letter 'A' in green near the top-left corner of screen</span> <span id="L11" class="LineNr">11 </span> <span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex4.mu.html#L12'>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="L13" class="LineNr">13 </span> <a href='500fake-screen.mu.html#L114'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x41</span>/A, <span class="Constant">2</span>/row, <span class="Constant">1</span>/col, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg <span id="L14" class="LineNr">14 </span><span class="Delimiter">}</span> </pre> </body> </html> <!-- vim: set foldmethod=manual : -->