AlleyCat-Recomp

AlleyCat-Recomp is a native Windows port of Alley Cat, rewritten in C with original speed and PC-speaker sound.

README

Alley Cat Recomp

Bill Williams' 1984 IBM PC classic Alley Cat, rewritten in C to run natively on Windows.
No DOSBox, no game files included — bring your own CAT.EXE and play.

Platform: Windows 10 | 11 Status: 1.0 License: MIT Written in C

Important

This project contains no game data. You need your own copy of the original DOS program CAT.EXE (55,067 bytes, dated 22 August 1984). Please only use a copy you are legally entitled to use. Don't ask for the game file here.


✨ Highlights

  • 🐈 The real game, natively: every routine of the original 8086 program was rewritten by hand in C and compiled to native x86-64 code. There's no DOSBox, and no emulator executes the game's instructions.
  • ✅ Proven identical: each of the 260 routines was run side by side with a machine-exact recompilation of the original and compared register for register, byte for byte: 241 million calls, zero differences.
  • 🔒 Ships nothing copyrighted: the download contains only this project's own code. Your CAT.EXE supplies the sprites, tunes and tables when the game starts, and is only ever read.
  • ⏱️ Original speed and feel: timing follows a 4.77 MHz IBM PC with CGA graphics, including the 18.2 Hz timer and the vertical retrace the game paces itself on.
  • 🔊 PC-speaker sound synthesised from the emulated 8253 timer, exactly as the game drives it.
  • 🕹️ Keyboard and gamepad: a modern controller works as the old PC joystick. You also get a resizable 4:3 window, full screen and screenshots.

🚀 Getting started

  1. Download the latest release from the Releases page and unzip it anywhere.
  2. Start alleycat.exe.
  3. Select your CAT.EXE when asked. The game checks it's the right file and remembers where it is in alleycat.ini.

You can also put CAT.EXE next to alleycat.exe, or start alleycat.exe C:\path\to\CAT.EXE.

Tip

Windows may show "Windows protected your PC" for a newly downloaded program. Click More info → Run anyway. The game isn't code-signed, which is normal for free hobby projects.

🎮 Controls

ActionKeyboardGamepad
Move / climb / jumpArrow keysD-pad / left stick
Special action (lap milk, put down a brick, go through holes)AltA
Pause ("paws")EscStart
Sound on / offCtrl+S
Restart the gameCtrl+R
Back to the menuCtrl+M
Full screenF11 or Alt+Enter
Screenshot (PNG next to the game)F12

To use the gamepad's analogue stick as the PC joystick, answer Y to the game's joystick question.

🛠️ How it works

flowchart LR
    A["CAT.EXE<br>(8086 machine code)"] --> B["Code map<br>269 routines"]
    B --> C["Static recompiler<br>(exact reference)"]
    B --> D["Hand-written C<br>30 modules"]
    C <-->|"checked call by call<br>241M calls, 0 differences"| D
    D --> E["🐈 alleycat.exe"]
    F["Your CAT.EXE<br>(sprites, tunes, tables)"] -->|"read at start"| E

Alley Cat is about 25 KB of hand-written 8086 assembly that talks straight to the hardware: CGA video memory, the 8253 timer and PC speaker, and its own keyboard interrupt handler. The port was built in two stages:

  1. Recompile: a static recompiler translated every instruction into C on an exact model of the CPU and an IBM PC. That build plays the game perfectly and serves as the reference.
  2. Rewrite: every routine was then rewritten by hand, and a checker ran both versions from the same state on thousands of autoplayed games, comparing registers, flags, memory, port I/O and interrupts after every call.

The released program is built from the hand-written C alone. The recompiled code is generated from your own CAT.EXE at build time and never committed. The release script also scans the program for any trace of the original file.

More detail: rewrite method and status · development guide

🧱 Building from source

You need Windows, Python 3, CMake, Ninja and LLVM-MinGW (clang). CMake downloads SDL2 itself. See the development guide for the steps, the checker and the test runner.

❓ FAQ

Where do I get CAT.EXE? This project can't help with that. Use a copy you're legally entitled to use, for example from your own original disk.

It says the file isn't the known CAT.EXE. Only the original 1984 IBM release (55,067 bytes) is supported. Other versions, or files changed by a cracker or packer, are refused.

Is this an emulator? No. The game's logic is native C. What remains is a small model of the 1984 hardware the game draws and plays sound through: CGA video memory, timer and speaker, and keyboard.

Why does it look so chunky? It's 320 × 200 in four colours, just like a CGA screen in 1984. That's the point. 🙂

🙏 Credits & licence

  • Alley Cat © 1983–84 Bill Williams / SynSoft, published by IBM. This is an unofficial, non-commercial fan project, not affiliated with or endorsed by the copyright holders.
  • SDL2 (zlib licence) for the window, input and audio.
  • CPU core and recompiler tools adapted from LOHT-Recomp (MIT).
  • Developed with assistance from Claude by Anthropic.

This project's own code is released under the MIT licence © 2026 Syncr0ndi. The licence covers only this project's code, not the game itself. Third-party details are in THIRD_PARTY_NOTICES.md.