A project to implement a console using the Mbed using VGA for video output and a PS/2 keyboard for the input. The eventual goal is to also include tools for managing SD cards, and a semi-self-hosting programming environment.
Dependencies: PS2_MbedConsole fastlib SDFileSystem vga640x480g_mbedconsole lightvm mbed
MbedConsole is a cool little project to have a self-contained computer all on an Mbed. So far it has VGA and PS/2 support and can stand alone without a computer powering it. Next planned features are SD card support and a lightweight programmable VM complete with a file editor and self-hosted assembler.
You can view additional details about it at http://earlz.net/tags/mbedconsole
documentation.c@11:fede136943a9, 2012-09-28 (annotated)
- Committer:
- earlz
- Date:
- Fri Sep 28 04:03:54 2012 +0000
- Revision:
- 11:fede136943a9
- Parent:
- 5:367397a82ddc
- Child:
- 16:370b9e559f92
Finally have keyboard support, AND it plays nice with VGA
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
earlz | 5:367397a82ddc | 1 | /** This is just a documentation thing. There is no code here! |
earlz | 5:367397a82ddc | 2 | This is like this because mbed's online compiler doesn't like regular textfiles apparently. |
earlz | 5:367397a82ddc | 3 | |
earlz | 5:367397a82ddc | 4 | Built in word list: |
earlz | 5:367397a82ddc | 5 | * |
earlz | 5:367397a82ddc | 6 | + |
earlz | 5:367397a82ddc | 7 | - |
earlz | 5:367397a82ddc | 8 | / |
earlz | 5:367397a82ddc | 9 | ` -- >0 |
earlz | 5:367397a82ddc | 10 | ! -- (value address) *address <- value |
earlz | 5:367397a82ddc | 11 | ? -- (address) push *address |
earlz | 5:367397a82ddc | 12 | = -- (val1, val2) push val1==val2 |
earlz | 5:367397a82ddc | 13 | |
earlz | 5:367397a82ddc | 14 | |
earlz | 5:367397a82ddc | 15 | Variables are implemented basically as constants.. sorta |
earlz | 5:367397a82ddc | 16 | Variable FOO |
earlz | 5:367397a82ddc | 17 | makes variable foo |
earlz | 5:367397a82ddc | 18 | 10 FOO !; \in reality, FOO is just a constant to a place in memory. |
earlz | 5:367397a82ddc | 19 | FOO ? |
earlz | 5:367397a82ddc | 20 | |
earlz | 5:367397a82ddc | 21 | In this way, everything stays stack based and easy to implement, but there are still variables. |
earlz | 5:367397a82ddc | 22 | |
earlz | 5:367397a82ddc | 23 | |
earlz | 5:367397a82ddc | 24 | |
earlz | 5:367397a82ddc | 25 | **/ |