3 ms·
A new cycle-stepped Z80 emulator
- hsnewman 5y agoTLDR: Whats the difference between this and simh?
- flohofwoe 5y agoI don't know too much about the simh project, but at least the Z80 emulator in "simh/altairz80_cpu.c" appears to use the "traditional" instruction-stepped approach with one switch-case branch per opcode: https://github.com/simh/simh/blob/3621db4e6a5469ba0570fb422c55e2b85765c0d2/AltairZ80/altairz80_cpu.c#L2310-L2331 https://github.com/simh/simh/blob/3621db4e6a5469ba0570fb422c...
- jepler 5y agoVery detailed, I love these kinds of write-ups.
- tekknolagi 5y agoHave you considered writing a GB emulator in this style?
- flohofwoe 5y agoNo, I mostly focused on 8-bit home computers so far, and only ventured into other areas when I had some sort of "relationship" with those machines (like the Bombjack or Pengo arcade machines). I never owned a (classic) Gameboy, so... :)
- tekknolagi 5y agoMakes sense. I only ask because Z80 and GB are similar