# Sugarbox2

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/sugarbox2/

Sugarbox2 emulates Amstrad CPC.

**About this profile**

| Detail | Value |
|---|---|
| Type | libretro |
| Classification | Community fork |
| Source | [https://gitlab.com/recalbox/packages/recalbox-cores/libretro-sugarbox2](https://gitlab.com/recalbox/packages/recalbox-cores/libretro-sugarbox2) |
| Upstream | [https://github.com/Tom1975/SugarboxV2](https://github.com/Tom1975/SugarboxV2) |
| Version | v0.9, the tag at this revision |
| Revision | [recalbox/packages/recalbox-cores/libretro-sugarbox2@6b565a43a25e](https://gitlab.com/recalbox/packages/recalbox-cores/libretro-sugarbox2/-/commit/6b565a43a25e4dfb69867f7e927a707e15ea460f) |
| Built by | [recalbox](https://abdess.github.io/retrobios/platforms/recalbox/), under its core name. The libretro buildbot does not publish this build. |
| Run by | [Recalbox](https://abdess.github.io/retrobios/platforms/recalbox/) |
| Profiled | 2026-10-17 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/sugarbox2.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/sugarbox2.json) |
| Cores | sugarbox2 |
| Systems | [Amstrad CPC](https://abdess.github.io/retrobios/systems/amstrad/#cpc) |

**Technical notes**

Libretro core by Recalbox wrapping Tom1975's SugarboxV2 (CPC 464, 664, 6128, 464+, 6128+ and GX-4000). Recalbox 10.1.1 builds tag v1.5 from a token-gated copy of this repository, and the public repository carries v0.9 only, which is the revision read here. The core Recalbox ships was read against it: sugarbox2_libretro.so from the 10.1.1 x86_64 image (image sha1 b3d80ff00d46000de73c470c73b0ffa81f23c600, core sha256 eda2d57f9b556c66db95d2b4b755e501c6645de6b9dfc46d901f1f93a1f39c5e) holds the 59 compressed blobs of RomData.cpp byte for byte, reports library_version 0.1, and opens the same paths. Its on-screen keyboard is placed by SetOrigin where v0.9 has SetViewport.

Every ROM is compiled into the core as a zlib stream: OS and BASIC for each model and language, AMSDOS, the Plus cartridge plus_en.cpr, the CP/M Plus, FutureOS, SymbOS and utility expansion ROMs, 57 blobs in all (ref: [`libretro/RomData.h:1-15`](https://gitlab.com/recalbox/packages/recalbox-cores/libretro-sugarbox2/-/blob/6b565a43a25e4dfb69867f7e927a707e15ea460f/libretro/RomData.h#L1-15)). rom_uncompress() inflates them when the machine is built (ref: [`libretro/LibretroCore.cpp:1098-1107`](https://gitlab.com/recalbox/packages/recalbox-cores/libretro-sugarbox2/-/blob/6b565a43a25e4dfb69867f7e927a707e15ea460f/libretro/LibretroCore.cpp#L1098-1107)) and they are handed to the memory map directly, never through a path (ref: [`libretro/LibretroCore.cpp:1173-1174`](https://gitlab.com/recalbox/packages/recalbox-cores/libretro-sugarbox2/-/blob/6b565a43a25e4dfb69867f7e927a707e15ea460f/libretro/LibretroCore.cpp#L1173-1174)).

The keyboard map files the engine reads are written from embedded data into the save directory, only when missing: CONF/KeyboardMaps.ini and Keyboards/101_keyboard_linux (ref: [`libretro/LibretroCore.cpp:1477-1502`](https://gitlab.com/recalbox/packages/recalbox-cores/libretro-sugarbox2/-/blob/6b565a43a25e4dfb69867f7e927a707e15ea460f/libretro/LibretroCore.cpp#L1477-1502), [`2169-2173`](https://gitlab.com/recalbox/packages/recalbox-cores/libretro-sugarbox2/-/blob/6b565a43a25e4dfb69867f7e927a707e15ea460f/libretro/LibretroCore.cpp#L2169-2173)).

No BIOS or firmware files required.

all CPC, Plus and GX-4000 ROMs compiled into the core as zlib blobs, and keyboard maps written by the core into the save directory

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
