kosarev / z80

Fast and flexible Z80/i8080 emulator with C++ and Python APIs
MIT License
63 stars 10 forks source link

Test against the die-level simulator #37

Open kosarev opened 3 years ago

kosarev commented 3 years ago

Goran Devic @gdevic, the author of https://github.com/gdevic/Z80Explorer, has just kindly told me that we have https://github.com/hoglet67/Z80Simulator -- a Linux port of a simulator originally written by Pavel Zima that makes it possible to literally execute die images of the original Z80 chip. I find both the explorer and the simulator completely mind-blowing projects, which I'm sure we can benefit from in a number of ways.

$ ./Z80_Simulator Z80
-------------------------------------------------------
----------------- Starting simulation -----------------
-------------------------------------------------------
       : C// // // // AAAA AA                      
       : LRH MR RW MI 1111 11AA AAAA AAAA DDDD DDDD
       : KSL 1F DR QQ 5432 1098 7654 3210 7654 3210
0000000: 00. .. .. .. .... .... .... .... .... .... PC:ffff IR:ffff SP:ffff WZ:ffff IX:ffff IY:ffff HL:ffff HL':ffff DE:ffff DE':ffff BC:ffff BC':ffff A:ff A':ff F:SZ5H3VNC F':SZ5H3VNC T:1...5. M:1.34. ***** OPCODE FETCH: 0000[21]
0000120: 001 01 11 00 1111 1111 1111 1111 0010 0001 PC:ffff IR:ffff SP:ffff WZ:5555 IX:5555 IY:5555 HL:5555 HL':5555 DE:5555 DE':5555 BC:5555 BC':5555 A:ff A':55 F:SZ5H3VNC F':.Z.H.V.C T:1..... M:.....
0000240: 001 01 11 00 1111 1111 1111 1111 1111 1111 PC:ffff IR:ffff SP:ffff WZ:5555 IX:5555 IY:5555 HL:5555 HL':5555 DE:5555 DE':5555 BC:5555 BC':5555 A:ff A':55 F:SZ5H3VNC F':.Z.H.V.C T:1..... M:.....
0000360: 001 01 11 00 1111 1111 1111 1111 1111 1111 PC:ffff IR:ffff SP:ffff WZ:5555 IX:5555 IY:5555 HL:5555 HL':5555 DE:5555 DE':5555 BC:5555 BC':5555 A:ff A':55 F:SZ5H3VNC F':.Z.H.V.C T:1..... M:.....
0000480: 001 01 11 00 1111 1111 1111 1111 1111 1111 PC:ffff IR:ffff SP:ffff WZ:5555 IX:5555 IY:5555 HL:5555 HL':5555 DE:5555 DE':5555 BC:5555 BC':5555 A:ff A':55 F:SZ5H3VNC F':.Z.H.V.C T:1..... M:.....
...