Implementation of a multi-threading package in C language and some test-cases.
You need Edsim51 to simulate 8051 processor and SDCC to generate Edsim51-targeted files.
Edsim51
SDCC for Edsim51
ppc stands for programming project checkpoint.
Each ppc is based on the previous one.
In each ppc directory, use make command to generate .hex file.

The warning 85 can be ignored.
Click Load in Edsim51 simulator and select the generated .hex file.

Click Assm.

Now you can click Run to execute or Step to execute by one step.
You can modify the Update Freq. to change the execution speed.
If you modify the source code, then you need to use make clean to remove old .hex file and re-generate.

Feel free to email me at [email protected] or open an issue here if you have any ideas.