AlleyCat-Recomp
AlleyCat-Recomp is a native Windows port of Alley Cat, rewritten in C with original speed and PC-speaker sound.
- Type: PC port
- Game: Alley Cat
- Runs on Windows
- By Syncr0ndi
- Latest release v1.0, 2026-11-21
- Source: https://github.com/Syncr0ndi/AlleyCat-Recomp
README
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.
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.EXEsupplies 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
- Download the latest release from the Releases page and unzip it anywhere.
- Start
alleycat.exe. - Select your
CAT.EXEwhen asked. The game checks it's the right file and remembers where it is inalleycat.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
| Action | Keyboard | Gamepad |
|---|---|---|
| Move / climb / jump | Arrow keys | D-pad / left stick |
| Special action (lap milk, put down a brick, go through holes) | Alt | A |
| Pause ("paws") | Esc | Start |
| Sound on / off | Ctrl+S | |
| Restart the game | Ctrl+R | |
| Back to the menu | Ctrl+M | |
| Full screen | F11 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:
- 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.
- 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.