English · Português (BR)
Top Gear 3000: Recompiled is an early-stage native PC port (Linux and Windows x86-64) of the SNES game Top Gear 3000, built on top of the readable, verified C game logic from tg3000-decomp and using SDL3 for windowing, input, and audio.
This repository and its releases do not contain game assets. The original game is required to run this project.
You must provide your own legally obtained copy of Top Gear 3000 (USA):
- Exact size:
1,048,576bytes (no copier header) - SHA-1:
058aadf1ee719cb9e0c7333e665797f990a6381d - Place it at
input/TG3000.sfc(git-ignored) or pass its path on the command line. - The DSP-4 firmware (
dsp4.rom) is not needed.
- Status
- Not Even 1% Emulator
- System Requirements
- Planned
- FAQ
- Settings
- Building
- Project Layout
- Contributing
- Libraries Used and Special Thanks
- Legal
The project is currently at step 4 of 4 (pre-alpha). The game is not playable yet and no releases exist yet. Today, the executable builds on Linux and Windows x86-64, verifies your ROM (size and SHA-1), and runs a few of the game's screens from the decomp's C at the console's frame rate, with keyboard and gamepad input wired in (not yet usable: nothing is shown). The first screens are drawn natively, identical to the original pixel for pixel: the title card, the password display, the main options menu (with its glowing cursor), the password entry and the VS screen. Other screens stay black for now. No saves, settings file (one command-line setting, see Settings), mods, widescreen, or gameplay exist yet.
| Step | Milestone | State |
|---|---|---|
| 1 | Skeleton (CMake, SDL3 fetch, ROM SHA-1 check, empty window, CI) | ✅ Done |
| 2 | Platform layer (frame loop, input; design) | ✅ Done |
| 3 | Sound interface (design; every set's music, the menus' effects, and the race's engine, effects and echo play natively) | ⏳ In progress |
| 4 | First native menus (title card, password, options menu, VS screen done, pixel-exact) | ⏳ In progress |
The shipped game contains no model of the SNES CPU (65816), video chip (PPU), sound processor (SPC700/S-DSP), or DSP-4 coprocessor.
- Game logic: comes from the readable C in tg3000-decomp, where every ported routine is proven against the original ROM in a differential test.
- Video and sound: rewritten natively, drawing each screen and playing audio directly from the game-level data the logic builds in memory (tile maps, sprite lists, palettes, per-line road tables).
- DSP-4: coprocessor commands become native C functions.
The litmus test: if the video or sound code could display or play another SNES game given its memory, it is an emulator and is not allowed here.
- OS: Windows 10 or later (x86-64) or Linux (x86-64)
- Hardware: nothing exotic — the port uses SDL3 for windowing, input, and audio.
The items below are goals, not promises — none of them are implemented yet:
- Native video renderer drawn per screen from game data in memory
- The race's sound in a running race (the native player plays the race sets already, checked against the original's recorded messages; the port cannot run a race yet)
- Native DSP-4 math functions
- Configurable keyboard and controller mapping
- Prebuilt releases for Linux and Windows x86-64
No — despite the name. "Recompiled" names the kind of native PC port. Nothing is statically recompiled from the ROM; the game logic is hand-written, readable C from tg3000-decomp verified routine by routine against the original.
This repository consumes tg3000-decomp as a read-only git submodule pinned at a named commit in extern/tg3000-decomp/.
No. There is no 65816 CPU, PPU, SPC700/S-DSP, or DSP-4 emulation in the port. See Not Even 1% Emulator.
The decompilation C code uses GCC/Clang builtins (such as __builtin_trap()). Use GCC or Clang (on Windows, MinGW-w64 UCRT via MSYS2 or WinLibs).
No. dsp4.rom is never needed because DSP-4 commands will be implemented as native C functions.
Settings are command-line options for now (there is no settings file yet).
-
--race-refreshes 2|3: screen refreshes per race step. On the console the race runs slower than the screen: each step of the race takes 2 to 4 screen refreshes, depending on how much the console has to compute (2 in light scenes, 3 in most of the race), and the game moves everything by the number of refreshes the step took.2(default): the game as written, without the console's slowdown (its light-scene rate, about 30 pictures a second).3: the console's heavy-scene rate (about 20 pictures a second), closer to how the original feels.
Other values are refused (1 would need changes to the game's logic). Drawing at 60 pictures a second between steps is planned for later. The race cannot be played yet.
No prebuilt releases exist yet. Quick start (Linux or Windows MSYS2 UCRT64):
git clone --recursive https://github.com/MaChInEgUn3/TopGear3000-Recompiled.git
cd TopGear3000-Recompiled
cmake -P tools/fetch_deps.cmake
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build && ctest --test-dir build --output-on-failureSee BUILDING.md for full prerequisites, Ubuntu 20.04 notes, Windows toolchain setup, system SDL3 usage, and test commands.
extern/tg3000-decomp/ read-only submodule with verified C game logic
port/ native PC port code (main.c, rom.c, sha1.c)
port/platform/ the port's side of the game's platform calls (frame loop, input)
tools/ helper CMake scripts (fetch_deps.cmake)
docs/ decisions (DECISIONS.md) and accepted design proposals (proposals/)
deps/ fetched dependencies (SDL3, git-ignored)
input/ default user ROM location (TG3000.sfc, git-ignored)
build/ out-of-source build directory (git-ignored)
Pull requests are welcome. Never include ROM data, extracted assets, firmware, or screenshots in commits or PRs.
Changes to the game logic itself belong in tg3000-decomp, not here.
- SDL3 (zlib license) for cross-platform windowing, input, and audio
- tg3000-decomp (GPL-3.0-or-later) for the verified C decompilation of the game logic
Licensed under GPL-3.0-or-later — see LICENSE.
Top Gear 3000 is © 1994 Kemco / Gremlin Graphics. This is an unofficial fan project, not affiliated with or endorsed by them or Nintendo.