MiSTer-devel / Arcade-IremM62_MiSTer

Irem62 from pace, and mist including Lode Runner, etc
9 stars 9 forks source link

Incorrect bus speed #25

Open jotego opened 3 years ago

jotego commented 3 years ago

KungFu Master schematics show that the Z80 wait signal is used to halt the CPU when accessing some bus devices. This effectively slows down the bus. The core doesn't seem to do this:

https://github.com/MiSTer-devel/Arcade-IremM62_MiSTer/blob/2dace1c981fd028eb24335bc6526d7cd276a0fb3/rtl/platform.vhd#L317

Whereas the original CPU has the WAIT line driven:

imagen

The drivers for the WAIT signal can be read -with some effort- from the schematics. The /NMI signal also seems to have a driver, although I have not tracked it. If it has a driver, the line should be connected in the original way -even if the software doesn't seem to use it- for accuracy and completeness.