harbaum / galagino

A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32
315 stars 21 forks source link

Emulate Donkey Kong audio CPU #11

Closed harbaum closed 1 year ago

harbaum commented 1 year ago

Currently Donkey Kong uses sampled audio and it's an ugly endeavor to find/create/convert matching sound bits . But on the real arcade machine most of the audio is actually generated by a program running in a intel 8049 compatible CPU.

Emulating the audio CPU itself would make Donkey Kong audio be "correct". At least for those sounds generated by the audio CPU. This means we have to implement a 8048 emulator as none matching this project seem to exist.

harbaum commented 1 year ago

The 8048 derived audio CPU in donkey kong runs at twice the clock as the main z80 cpu. The single main z80 of donkey kong is no problem at all for the esp32. The combination of the main z80 @ 3Mhz together with the 8048 @ 6Mhz is definitely more challenging.

harbaum commented 1 year ago

Done