nukeykt/Nuked-MD — reverse-engineered prompt
Reverse engineered prompt
Build me a cycle accurate Sega Mega Drive emulator core in C, focused on accurately recreating the real console chips rather than making a flashy front end.
It should emulate the main 68000 CPU, the Z80 sound CPU, the video display processor, FM audio, cartridge loading, controller input, IO, TMSS, save states, video output, audio output, and the bus or arbiter behavior between the chips. The goal is accuracy based on real chip behavior and decap research, especially around the FC1004 style Mega Drive hardware.
Keep it as a clean low level core that can be built with CMake. I want the code organized into separate modules for each chip or subsystem, with simple headers and C files, so someone could later plug it into a UI or test harness. Include enough basic documentation so it’s clear what’s working, what’s still incomplete, and how to build it. Use the existing public references and look up current docs online if you need to.
Want more depth? Deep Reverse