KnightOS calculator (WIP)
- C 89.4%
- Assembly 5.8%
- CMake 2.7%
- Makefile 2.1%
|
|
||
|---|---|---|
| .gitignore | ||
| CMakeLists.txt | ||
| consts.h | ||
| crt0.asm | ||
| debug.h | ||
| lib.c | ||
| lib.h | ||
| LICENSE | ||
| main.c | ||
| Makefile | ||
| package.config | ||
| README.md | ||
| stack.c | ||
| stack.h | ||
Kalculator
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.
How to build ?
git clone https://github.com/aviallon/kalculator.git
cd kaclulator
knightos init
make
How to run ?
Just type this in the project directory. Make sure that you have knightos sdk installed. More informations on knightos.org
make run
Current status
- Debug functions and code
floats 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.