5 ms·
Nice, I built a version in python with curses visualization of all states. It emulates all chips ob the hardware level (chips.py) and does not need any dependen
by dangrie158 5y ago
Nice,
I built a version in python with curses visualization of all states.
It emulates all chips ob the hardware level (chips.py) and does not need any dependencies except py3.7: https://github.com/dangrie158/SAP-1/tree/master/Emulator https://github.com/dangrie158/SAP-1/tree/master/Emulator
- klelatti 5y agoThanks. This looks like an amazing (teaching / exploratory) resource. Just one question - couldn't immediately see a license file?
- lodovic 5y agoThat looks really nice, how is the speed? I did the same in C#, and implemented it up to bus and transistor level. I could execute a Fibionacci program in asm but it was horribly slow (less than 1M instructions/sec)
- sokoloff 5y agoWorth noting that the Apple ][ and C64 had a 1.023MHz clock rate with a minimum of 2 cycles per instruction, so your “horribly slow” system might be about real-time for the era. (Atari 800 had a 1.77 or 1.79MHz clock, but wasn’t regarded as wildly different.)
- scaramanga 5y agoCool! I didn't go as far as implementing the CPU, but watching his vids inspired me to write a circuit emulator, also in python: https://github.com/giannitedesco/primula https://github.com/giannitedesco/primula I used it to emulate all the various flip flops, but I was thinking of building a computer in it.