An emulator for the PIC12F629 8-bit microcontroller written in Dart.
Takes as input a hex-encoded program just like you would program into the micro with a Pickit programmer. Example test programs here.
In my setup, it runs about 5x faster in real-time than the PIC does for a given program.
More details here.
Install Dart, then pub get
.
pub run test
will run unit tests and the 3 included PIC programs. It also has a CLI - see runner.dart
.
I have 3 test programs already compiled from C to hex in here, but if you want to create a new one, you'll need the XC8 compiler from here.