A Work In Progress calculator app for KnightOS. It is coded in a subset of C (since KCC, based on SDCC, only supports a subset of C itself).
I could have done it in assembly, but this way it will be easier for a lot of people to contribute since it does not require a ton of knowledge, just "some" time and a colossal amount of patience.
git clone https://github.com/aviallon/kalculator.git
cd kaclulator
knightos init
make
Just type this in the project directory. Make sure that you have knightos sdk installed. More informations on knightos.org
make run
- Debug functions and code
-
float
s display and manipulation - Stack helper
- NPI evaluator
- Error handling
- Shunting yard algorithm for infix notation
- User input and interface
- Common functions (sin, cos, log, etc.)
- Optimisation for speed
- Upstreaming some very useful functions to KnightOS libs.