mstan/nesrecomp — reverse-engineered prompt
Reverse engineered prompt
I want a tool that can take an NES ROM and a simple game.toml config, recompile the 6502 game code into C, then build a native desktop version of the game that runs on modern computers. It should be clear that this is not an emulator, the game logic gets translated ahead of time and the runtime only handles the NES hardware behavior like graphics, audio, memory mapping, and input.
Please make the core flow work end to end, including generating the C output, building the runner, and launching a playable game window. Support the mapper types that are already in scope here, especially 0, 1, 4, and 66. I also want the nice usability stuff from the README, like keyboard and gamepad controls with an auto generated keybinds.ini, fullscreen, save and load state, and fast forward. If possible, include the runtime text override feature so game text can be patched from JSON without editing the ROM.
Make it build cleanly on Windows first, and keep macOS and Linux in mind if the current code already supports them. Look up any current docs online if you need to.
Want more depth? Deep Reverse