about summary refs log tree commit diff stats
path: root/baremetal/400.mu
Commit message (Collapse)AuthorAgeFilesLines
* 7842 - new directory organizationKartik K. Agaram2021-03-031-82/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Baremetal is now the default build target and therefore has its sources at the top-level. Baremetal programs build using the phase-2 Mu toolchain that requires a Linux kernel. This phase-2 codebase which used to be at the top-level is now under the linux/ directory. Finally, the phase-2 toolchain, while self-hosting, has a way to bootstrap from a C implementation, which is now stored in linux/bootstrap. The bootstrap C implementation uses some literate programming tools that are now in linux/bootstrap/tools. So the whole thing has gotten inverted. Each directory should build one artifact and include the main sources (along with standard library). Tools used for building it are relegated to sub-directories, even though those tools are often useful in their own right, and have had lots of interesting programs written using them. A couple of things have gotten dropped in this process: - I had old ways to run on just a Linux kernel, or with a Soso kernel. No more. - I had some old tooling for running a single test at the cursor. I haven't used that lately. Maybe I'll bring it back one day. The reorg isn't done yet. Still to do: - redo documentation everywhere. All the README files, all other markdown, particularly vocabulary.md. - clean up how-to-run comments at the start of programs everywhere - rethink what to do with the html/ directory. Do we even want to keep supporting it? In spite of these shortcomings, all the scripts at the top-level, linux/ and linux/bootstrap are working. The names of the scripts also feel reasonable. This is a good milestone to take stock at.
* 7802Kartik K. Agaram2021-02-241-0/+1
| | | | Better tracing of the tokenization phase.
* 7750Kartik K. Agaram2021-02-151-0/+2
|
* 7726Kartik K. Agaram2021-02-111-0/+4
|
* 7724 - baremetal: rendering array valuesKartik K. Agaram2021-02-111-0/+4
|
* 7723 - baremetal: rendering string valuesKartik K. Agaram2021-02-111-0/+10
|
* 7719 - baremetal: print floatsKartik K. Agaram2021-02-111-0/+2
|
* 7548 - baremetal: better cursor managementKartik Agaram2021-01-231-1/+2
|
* 7547 - baremetal: rpn calculatorKartik Agaram2021-01-221-0/+17
| | | | | | | | Still in progress. Known bugs: * Cursor management is broken. Every line currently seems to leave behind a shadow cursor. * No shift-key support yet, which means no addition or multiplication. (This app doesn't have division yet.)
* 7542 - baremetal: support cursor on a graphemeKartik Agaram2021-01-221-1/+1
| | | | | | | | | | | | | | | So far we've drawn a space implicitly at the cursor. Now I allow drawing an arbitrary grapheme when drawing the cursor. But the caller has to specify what to draw. (The alternative would be for layer 103 to track every single grapheme on screen along with its color and any other future attributes, just to be able to paint and unpaint the background for a single character.) I've modified existing helpers for drawing multiple graphemes to always clear the final cursor position after they finish drawing. That seems reasonable for terminal-like applications. Applications that need to control the screen in a more random-access manner will need to track the grapheme at the cursor for themselves.
* 7537 - baremetal: start of cursor supportKartik Agaram2021-01-191-1/+1
|
* 7530 - baremetal: print ints to screenKartik Agaram2021-01-161-1/+13
|
* 7528 - heap allocatorKartik Agaram2021-01-161-0/+9
|
* 7521 - new plan for testsKartik Agaram2021-01-151-4/+4
| | | | | | | | | | It's not really manageable to make the fake screen pixel-oriented. Feels excessive to compare things pixel by pixel when we will mostly be writing text to screen. It'll also make expected screen assertions more difficult to manage. So I'm not sure how to make assertions about pixels for now. Instead we'll introduce fake screens at draw-grapheme.
* 7519 - baremetal: run all tests on bootKartik Agaram2021-01-131-0/+4
|
* 7517Kartik Agaram2021-01-131-1/+6
|
* 7508Kartik Agaram2021-01-131-0/+1
| | | | | | This is the right way to be direction-independent. Don't save the cursor when drawing a single grapheme. Where the next char goes is just a property of the direction-oriented primitives.
* 7507 - baremetal: drawing text down then rightKartik Agaram2021-01-121-0/+1
|
* 7500 - baremetal: bounds-check screen space before drawingKartik Agaram2021-01-121-1/+2
|
* 7492Kartik Agaram2021-01-091-0/+5
| | | | Port some support for unicode to baremetal.
* 7490 - baremetal: draw a grapheme to screenKartik Agaram2021-01-091-0/+1
|
* 7486 - primitive for reading keysKartik Agaram2021-01-091-0/+1
| | | | | It also clears keys after reading them, allowing us to read more than 16 keys.
* 7469 - first working baremetal Mu programKartik Agaram2020-12-291-0/+1
It doesn't _quite_ do what it should, so this is more precisely the first _buggy_ baremetal Mu program. But the tooling works, at least.