Skip to content
Screenshot dal film Cinque poveri in automobile (1952)
Screenshot dal film Cinque poveri in automobile (1952) Image by Mario Mattoli / Mario Albertelli, via Wikimedia Commons (Public domain).

Aldo

EMULATOR DATABASE

Aldo

Aldo is an open-source MOS Technology 6502 emulator written in C (targeting C23) with a stated milestone to become a usable NES emulator and longer-term goals to support other 6502-based systems.

6.0 / 10

NES

Download Tutorials & guides

Sign in to download. Files are hosted by the emulator project.

NES
SYSTEM SPOTLIGHTNESArtwork from the Retro Replay system database

About Aldo

Aldo is designed as a modern-C 6502 implementation with both CLI and GUI components and an explicit focus on correctness: it includes unit tests, BCD and nestest verification targets and aims to be usable both as a learning 6502 project and as the basis for a 'fantasy' 6502 computer and NES implementation.

Clear, test-driven 6502 core and tooling with documented build targets for macOS and Debian/Ubuntu, an SDL3/Dear ImGui GUI layer (not yet fully platform-layered), and verification targets that reference established test suites (nestest, BCD tests).

The people behind Aldo / history

The project's primary home is a GitHub repository containing source, an MIT license, and a README describing the goals (6502 core, NES milestone, other 6502 systems). The repository includes many commits and multiple build/test targets. The README documents how to build on macOS (Xcode/Homebrew) and Debian/Ubuntu, describes CLI and GUI build paths, and lists external dependencies and test targets used for verification.

Screenshots

Screenshot dal film Cinque poveri in automobile (1952)
Screenshot dal film Cinque poveri in automobile (1952) Image by Mario Mattoli / Mario Albertelli, via Wikimedia Commons (Public domain).
The Legend of Zelda gameplay on NES
Gameplay from The Legend of Zelda on NES.

Tutorials & guides

Aldo setup guide (click to expand)

Setup note: This setup guide focuses on building and running Aldo from source for CLI and (experimental) GUI on macOS and Debian/Ubuntu Linux as documented by the project. Follow the exact commands and dependency notes below from the repository rather than general build recipes.

  1. 1) Inspect the repository: Clone the official repository and review the README and Makefile. Example: git clone https://github.com/drmonkeysee/Aldo.git. Read the README to confirm any updates to dependencies or build targets before proceeding.
  2. 2) Prepare dependencies on Debian/Ubuntu: Ensure a UTF-8 terminal locale. Install build-essential, git and ncurses headers: sudo apt update && sudo apt install -y build-essential git libncurses-dev. For GUI builds install libsdl3-dev and curl as needed per README.
  3. 3) Prepare dependencies on macOS: Install Xcode. Install Homebrew if needed and (optionally) ncurses via brew install ncurses. Follow the README steps to copy SDL3 frameworks into the ext/ folder for the macOS GUI project.
  4. 4) Build and run the CLI: From the repository root run make run to print usage. To run a program ROM or test file pass FILE=<path>: make run FILE=<file>. The CLI depends on ncurses and the build described in the README; follow the README if your environment differs.
  5. 5) Build the macOS GUI (optional): Run make ext, open the Xcode project in mac/Aldo.xcodeproj, ensure SDL3.xcframework is present in ext/, then build the Aldo target. The bundled GUI app embeds a shared lib used by the CLI within the app bundle (see README).
  6. 6) Build the Debian/Ubuntu GUI (experimental): Install libsdl3-dev and run make ext then make debug-gui as described in the README. The README warns the platform layer is not fully implemented and the GUI build is primarily useful for cross-checking compilation.
  7. 7) Run verification tests: The repository provides test targets: make test for unit tests, make nestest nesdiff to run kevtris's nestest CPU tests, and make bcdtest for BCD tests. Follow the README requirements (CinyTest, Python ≥3.12, etc.) to run these targets.
  8. 8) Notes on using NES ROMs: The project README states the current milestone is to build a NES emulator. Aldo does not include commercial game ROMs, BIOS, or firmware. If you load NES ROMs for testing, ensure you have legal rights to those ROMs and understand mapper support and compatibility are determined by the emulator's current implementation (check repository code and tests for which mappers/features are supported).

Software reminder: Follow the repository README for exact dependency versions. The project links to external test suites and libraries (ncurses, SDL3, Dear ImGui); do not assume these are bundled. Respect software licenses and do not expect commercial game ROMs or BIOS files to be included.

Additional information

What Aldo supports

  • macOS (CLI and GUI build instructions provided)
  • Linux (Debian/Ubuntu - CLI and GUI build instructions provided)
  • CLI (ncurses-based)
  • GUI (SDL3 + Dear ImGui; platform layer work-in-progress)

READMEs & documentation

Aldo official project README
# Aldo

A [MOS Technology 6502](https://en.wikipedia.org/wiki/MOS_Technology_6502) emulator written in C, targeting the C23 standard and using (most) of the guidelines of Modern C.

The current milestone is to build a [NES](https://en.wikipedia.org/wiki/Nintendo_Entertainment_System) emulator, but the long-term goal is for Aldo to be a "fantasy" 6502 computer (similar to [PICO-8's](https://www.lexaloffle.com/pico-8.php) "fantasy console" concept), as well as being able to emulate other 6502 systems beyond the NES, such as the [Commodore 64](https://en.wikipedia.org/wiki/Commodore_64) or [Apple II](https://en.wikipedia.org/wiki/Apple_II).

## Build

At some point I may look into replacing this with [CMake](https://cmake.org) but at the moment the build is pretty simple.

### macOS CLI

The Homebrew and ncurses steps get you the latest version of ncurses and are optional. The OS-shipped version works just as well and will be used automatically if the brew version is not installed.

1. Install Xcode
2. Install [Homebrew](https://brew.sh)
3. `brew install ncurses`
4. `make run` to print usage
5. `make run FILE=<file>` to load a program ROM

### macOS GUI

1. Install Xcode
2. Run `make ext`
3. Open ext/ folder
4. Mount SDL3 dmg file
5. Copy SDL3.xcframework to ext/ folder
6. Open mac/Aldo.xcodeproj
7. Build and Run "Aldo" target

The GUI app will include a build of the CLI binary in **Aldo.app/Contents/MacOS/Cli**. Unlike the make target, this build will always link to the OS ncurses libraries. In addition, the GUI and CLI executables depend on a shared library embedded in the app bundle rather than statically linking everything. This means the linking and runtime characteristics of the CLI differ somewhat from the make build. Specifically, the bundled CLI binary cannot be moved to another folder or it won't find **libaldo** at load time. If you want a friendlier path for the CLI you can create a soft-link to it in your location of choice, for example:

```sh
ln -s /Applications/Aldo.app/Contents/MacOS/Cli/aldoc /usr/local/bin/aldoc
```

### Debian/Ubuntu CLI

1. Run `locale` to verify your terminal is using a UTF-8 locale (`C.UTF-8` will work)
2. `[sudo] apt update`
3. `[sudo] apt install -y build-essential git libncurses-dev`
4. `make run` to print usage
5. `make run FILE=<file>` to load a program ROM

### Debian/Ubuntu GUI

This build is best done with GCC-12+ as earlier versions have some bugs around how C++ concepts are applied. Follow steps 1-3 of the CLI build above. Then:

4. `[sudo] apt install -y curl libsdl3-dev`
5. Run `make ext`
6. `make debug-gui`

This will _build_ a binary but the platform layer is not yet implemented, so running it will print a diagnostic and exit immediately. At the moment this build is only good for cross-checking compilation between Clang and GCC.

## Test

The Makefile also provides a verification target.

### macOS

1. Follow the [CinyTest build/install instructions](https://github.com/drmonkeysee/CinyTest#build-cinytest)
2. Install [Python3](https://www.python.org) (in order of recommended options)
	- manage installs via [pyenv](https://github.com/pyenv/pyenv) `brew install pyenv` and install any Python version >= 3.12
	- OR directly `brew install Python@3.12` (any version >= 3.12)
	- OR install from the official site linked above
3. `make check`

### Debian/Ubuntu

1. Follow the [CinyTest build/install instructions](https://github.com/drmonkeysee/CinyTest#build-cinytest)
2. Install additional dependencies `[sudo] apt install -y bsdextrautils curl python3`
3. `make check`

The verification target is made up of these test targets:

- `make test`: Aldo unit tests, written using [CinyTest](https://github.com/drmonkeysee/CinyTest)
- `make nestest nesdiff`: kevtris's [nestest CPU tests](https://wiki.nesdev.org/w/index.php?title=Emulator_tests)
- `make bcdtest`: Bruce Clark's [Binary-coded Decimal tests](http://6502.org/tutorials/decimal_mode.html); additional details in [BCDTEST.md](test/BCDTEST.md)

Additionally, the macOS Xcode project's **Dev** target can run the Aldo unit tests. This is equivalent to the `make test` target.

## External Dependencies

Dependencies needed to build and run Aldo components.

### CLI/Test

- [ncurses](https://invisible-island.net/ncurses/man/)
- [Python3](https://www.python.org)
- [CinyTest](https://github.com/drmonkeysee/CinyTest)

### GUI

- [SDL3](https://www.libsdl.org) (Simple Directmedia Layer)
- [Dear ImGui](https://github.com/ocornut/imgui)

## Resources

- [Nesdev Wiki](https://www.nesdev.org/wiki/Nesdev_Wiki)
- [One Lone Coder](https://www.youtube.com/c/javidx9)
- [6502.org](http://6502.org)
- [Programming the 6502, 4th Edition](https://archive.org/details/Programming_the_6502_OCR)
- [Easy 6502](https://skilldrick.github.io/easy6502/)
- [Visual 6502](http://visual6502.org)
- [Ben Eater](https://eater.net)
- [Modern C](https://modernc.gforge.inria.fr)
Download original README

Original project README source

Release log

Selected releases and changes, with coverage from our weekly emulation roundup.

    Sources & further reading

    FROM THE COMMUNITY

    Player reviews

    0 reviews
    6.0/ 10

    Overall rating

    Provisional site rating and approved member scores, each counted once.

    Starting site scores are provisional editorial scores. Established mainstream projects receive a higher starting score; other imported entries begin at a neutral 6/10 pending individual review. Member scores change the average after approval.

    Your take on Aldo

    Spam has been overwhelming. To help us approve your review, sign up and introduce yourself in the Introductions forum so we know you’re not a bot.

    Sign in with your Retro Replay account to rate this project and share your experience.

    Sign in to review