MK14 built for windows 10 using TinyC
Paul Robson's MK14 had a version that build under Borland C++ 4.5
This builds using Tiny C
One or two bugs have been fixed.
The CPU.C did jmp 80 using E. This prevented version 1 ROM monitor from working.
memory.c now has both versions of the Monitor ROM.
I added a timer to run the SC/MP CPU in a time slice.
I added some LEDs connected to the FLAG outputs.
You can preload RAM. 0fA0 has some code to write to the flag LEDs.
R Z 0 F A 0 M
Load the clock example
mk14w_tcc.exe clock.hex
R Z 0 F 2 0 G
- R reset
- Z Abort
- M mem
- T term
- G go
Tiny C is available from https://bellard.org/tcc/ and comes with a minimum windows example
- download and unzip tcc-0.9.26-win64-bin
- download and unzip this git hub MK14_Windows_tinyC-master
- move folder MK14_Windows_tinyC-master with files to tcc folder.
- C:\Users\Redtop\Desktop\tcc-0.9.26-win64-bin\tcc\MK14_Windows_tinyC-master
- use do.bat in MK14_Windows_tinyC-master to build the code
edit do.bat to get around windows warning and as required.
http://www.dougrice.plus.com/mk14/seg_mk14.htm
http://ccgi.dougrice.plus.com/cgi-bin/wiki.pl?MK14_Notes
Understanding how the emulation works is the fun bit.
This is possible thanks to Paul Robson