Skip to content
arm_asm_emu

arm_asm_emu

EMULATOR DATABASE

arm_asm_emu

A Game Boy / Gameboy (DMG/CGB) emulator implemented in ARM assembly, focused on correctness of CPU and timing tests with a Linux-oriented, minimal interface set.

6.0 / 10

game boy color

Download Tutorials & guides

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

Game Boy Color
SYSTEM SPOTLIGHTGame Boy ColorArtwork from the Retro Replay system database

About arm_asm_emu

A compact, hand-written ARM-assembly implementation of a Game Boy emulator — created as an exercise in low-level programming and accuracy rather than as a full-featured desktop emulator.

Highly focused CPU and timing correctness: the repository documents passing Blargg test suites (cpu_instrs and multiple timing tests). The codebase is self-contained, BSD-3-Clause licensed, and designed to build natively on ARM or via cross-compilation and to run under QEMU for testing.

The people behind arm_asm_emu / history

The repository contains active development history and a testing harness oriented around automated Blargg tests and bitmap CRC checking. It is a source-first project (assembly sources, Makefile, tests) rather than a packaged end-user emulator. Sound is explicitly not implemented and the supported runtime interfaces are minimal (null, Linux framebuffer, bitmap capture for graphics; null and Linux evdev for controls). The project is published on GitHub and distributed under BSD-3-Clause. The repository shows ongoing commits and an issues page; overall the project is best described as an open-source, developmental emulator implementation rather than a polished multi-platform player.

Screenshots

Game screenshot from a game boy color title
Game screenshot from the game boy color library. Image from Retro Replay media.

Tutorials & guides

arm_asm_emu setup guide (click to expand)

Setup note: This guide explains how to obtain, build, and run arm_asm_emu from source using the repository's Makefile. It assumes a Linux host (x86_64 or ARM) and familiarity with make, a cross-toolchain (if cross-compiling), and basic permissions for accessing /dev/fb or evdev when using native framebuffer/evdev backends.

  1. 1) Get the source: Clone the official GitHub repository (use the URL in Sources). Optionally download a release archive from the repository's Releases page if present.
  2. 2) Prerequisites: Install a toolchain: for native ARM builds use a native ARM host or an ARM cross-compiler (example: arm-none-eabi- toolchain). For running tests on non-ARM hosts, install QEMU's arm user emulation (qemu-arm). You will also need make, a POSIX shell, a C compiler for test harness glue if used, and standard build utilities (binutils/ld/objcopy as required by the Makefile).
  3. 3) Build (native or cross): From the repository root run make. To cross-compile, pass CROSS to make, for example: make CROSS=arm-none-eabi-. The Makefile is prepared to support native ARM builds or cross-compiling using the specified CROSS prefix.
  4. 4) Run tests (optional): The repository includes a test harness which runs ROMs for a set number of cycles and validates a CRC32 of the framebuffer output against expected values. On non-ARM hosts you can run: make test TEST_WRAPPER=qemu-arm to execute tests under qemu-arm (adjust wrapper to your qemu binary). The harness will save a .bmp capture if a test fails.
  5. 5) Running the emulator: The code supports minimal runtime interfaces. To run the emulator with a framebuffer backend on Linux you will typically need appropriate permissions for /dev/fb*. Alternatively the bitmap capture backend can be used to produce screen captures instead of writing to the framebuffer. Input via Linux evdev requires reading from /dev/input/event* and appropriate permissions.
  6. 6) Tips and limitations: Sound is not implemented. Expect a development-oriented environment: the emulator is assembly source with a test-first approach. If you need a GUI, audio, or broad cartridge compatibility, prefer mature emulators (SameBoy, Gearboy, GBCC, etc.) and use this project for study, experimentation, or embedded ARM-targeted uses. Do not expect included ROMs, BIOS, or commercial game content in the repository.

Software reminder: This project compiles and runs from source. You may need root or group permissions to access Linux framebuffer or evdev devices. The repository's tests require ROM images (Blargg test ROMs) which are not included; obtain them from their original authors if you plan to run the test suite.

Additional information

What arm_asm_emu supports

  • Game Boy / Game Boy Color (SM83 CPU compatibility; project targets Game Boy hardware behaviour)
  • Linux framebuffer graphics output
  • Bitmap output (capture)
  • Linux evdev input
  • Native ARM or cross-compiled builds; tests runnable under QEMU

READMEs & documentation

arm_asm_emu official project README
# arm\_asm\_emu
A Game Boy emulator written entirely in ARM assemly language.

Why assembly language? Why not.

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/cottsay/arm_asm_emu/arm_asm_emu%20CI/main?event=push&logo=github)](https://github.com/cottsay/arm_asm_emu/actions?query=workflow%3A%22arm_asm_emu+CI%22+branch%3Amain+event%3Apush)


## Cross-assembling
The Makefile is set up for both native building on an ARM platform as well as
cross-compling. Pass your favorite cross-compiling prefix to the `make`
invocation with something like `CROSS=arm-none-eabi-`.

The testing harness can also be invoked on a non-arm platform using QEMU.
Specify something like `TEST_WRAPPER=qemu-arm` during the `make test`
invocation to use QEMU when running tests.


## Testing
A test harness has been created which runs a ROM for a given number of cycles
and checks a CRC32 of the screen contents against a set value. If the value
doesn't match, a capture of the screen is saved as a `.bmp` file and the
process returns non-zero.

At present, only the Blargg tests are targeted. Here are the current passing
tests:

| cpu\_instrs        | passing            |
| ------------------ | ------------------ |
| special            | :heavy_check_mark: |
| interrupts         | :heavy_check_mark: |
| op sp,hl           | :heavy_check_mark: |
| op r,imm           | :heavy_check_mark: |
| op rp              | :heavy_check_mark: |
| ld r,r             | :heavy_check_mark: |
| jr,jp,call,ret,rst | :heavy_check_mark: |
| misc instrs        | :heavy_check_mark: |
| op r,r             | :heavy_check_mark: |
| bit ops            | :heavy_check_mark: |
| op a,(hl)          | :heavy_check_mark: |

| timing             | passing            |
| ------------------ | ------------------ |
| instr\_timing      | :heavy_check_mark: |
| mem\_timing        | :heavy_check_mark: |
| mem\_timing-2      | :heavy_check_mark: |

| misc               | passing            |
| ------------------ | ------------------ |
| oam_bug causes     | :heavy_check_mark: |
| oam_bug non_causes | :heavy_check_mark: |
| oam_bug timing_bug | :heavy_check_mark: |


## Interface

### Supported graphics interfaces
* Null
* Linux framebuffer
* Bitmap (capture)

### Supported control interfaces
* Null
* Linux evdev

### Sound
(not implemented)


## License
All code is published under the BSD-3-Clause License. See [LICENSE](LICENSE)
for more information.
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 arm_asm_emu

    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