New PIC Emulator written in C (By me)
I have chosen for my Bachelor Senior Project to write a PIC16 Emulator (And assembler) from scratch using C, and it was successful after 8 months of constant work; it can run almost any basic PIC16 assembly code written for P16F84A (The only emulated model at the moment).
I am releasing the project as an open-source project to the public for people to benefit from and contribute to.Project's GIT repository: https://codeberg.org/MJaoune/pic-emulator
It doesn't need any dependencies, just build it using "make" and you are good to go. You can test one of the PIC16 assembly source files located in "test_files/" directory, or test your own PIC16 program (More info in README.md).
I have written the project with scalability in mind, it has the ability to support other PIC architectures than just PIC16, and also adding support to other PIC16 models is fairly easy for any good C programmer with emulation experience (Just a matter of copy-paste).Features:
- Written in C from scratch without any dependencies.
- Currently supports 3 directives: EQU, ORG and #include.
- Supports macros.
- Currently compiles PIC16 assembly code and emulates P16F84A.
- Can support other PIC models and architectures.
- Emulates timers and EEPROM.
- Emulates interrupts.
- It is open-source.
- Lightweight (Good alternative if you don't like MPLAB for being bulky).
- Cross-platform (Compiles on any OS for any OS).P.S. You might find some bugs when using the program since it is still in Alpha, please report them in the GIT repository on CodeBerg, or perhaps fix them and create a Pull Request (That would be appreciated).