# Amiberry [![C/C++ CI](https://github.com/BlitterStudio/amiberry/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/BlitterStudio/amiberry/actions/workflows/c-cpp.yml) [![Development Builds](https://img.shields.io/badge/Dev%20Builds-nightly.link-orange)](https://nightly.link/BlitterStudio/amiberry/workflows/c-cpp.yml/master) [![Discord](https://img.shields.io/badge/Discord-Chat-5865F2?logo=discord&logoColor=white)](https://discord.gg/wWndKTGpGV) [![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-FF5E5B?logo=ko-fi&logoColor=white)](https://ko-fi.com/X8X4FHDY4) **Optimized Amiga emulator for Linux, macOS, Windows, Android, FreeBSD, and Haiku.** Built on the WinUAE emulation core, Amiberry delivers full Amiga compatibility on 64-bit hosts, including ARM64, x86-64, RISC-V and LoongArch64 hardware โ€” from a Raspberry Pi to a desktop workstation. Custom JIT compilation for ARM64 and x86-64 provides maximum emulation speed. 32-bit host builds are not supported; emulated Amiga CPU and address widths are unchanged. ## Sponsors A huge thank you to the companies and individuals who support Amiberry development. ### Certified Partners [![Certified Partner](https://amiberry.com/assets/badges/badge-certified-partner.svg)](https://ko-fi.com/midwan) ### Partners [![Partner](https://amiberry.com/assets/badges/badge-partner.svg)](https://ko-fi.com/midwan) ### Supporters [![Supporter](https://amiberry.com/assets/badges/badge-supporter.svg)](https://ko-fi.com/midwan) > **[View full sponsor details on amiberry.com](https://amiberry.com#sponsors)** --- ## Commercial Use & Sponsorship Amiberry is free and open source under the [GPL v3 license](LICENSE). You are welcome to use, modify, and redistribute it under those terms. **If you are shipping a commercial product, paid subscription service, or hardware bundle that includes Amiberry**, we ask that you support the project financially. Amiberry is maintained by a single developer โ€” the features and platforms your product depends on exist because of community and corporate support. ### Corporate Sponsorship Tiers | Tier | Monthly | Benefits | |------|---------|----------| | ๐Ÿฅ‰ Supporter | โ‚ฌ50/mo | Named on website, listed in release notes | | ๐Ÿฅˆ Partner | โ‚ฌ150/mo | Logo on website + README, early release access, priority issue responses | | ๐Ÿฅ‡ Certified Partner | โ‚ฌ300/mo | Everything above + "Amiberry Certified Partner" badge for your product/marketing | ๐Ÿ‘‰ [Become a corporate sponsor on Ko-Fi](https://ko-fi.com/midwan) ๐Ÿ“ง For custom arrangements, contact: **midwan@gmail.com** *Individual supporters keep this project alive too โ€” [any contribution is appreciated](https://ko-fi.com/midwan).* > **[Visit amiberry.com](https://amiberry.com)** for the full documentation site. ![Custom shaders and bezel overlays](docs/resources/screenshots/shader-bezel-showcase-1.jpg) ![CRT shader with monitor bezel](docs/resources/screenshots/shader-bezel-showcase-2.jpg) ## Features - **JIT Compiler** โ€” Custom just-in-time compilation for ARM64 and x86-64 - **WHDLoad Support** โ€” Launch WHDLoad titles directly with automatic configuration - **Custom Bezels & Shaders** โ€” CRT monitor frames, overlay effects, and GLSL shader support - **Modern GUI** โ€” Clean Dear ImGui interface navigable by mouse or gamepad - **Drag & Drop** โ€” Drop floppy images, hard files, and config files directly into the emulator - **Auto-Update** โ€” Built-in update checker with SHA256-verified downloads - **RetroArch Ready** โ€” Seamless controller mapping for RetroArch setups ## Quick Install ### Linux ```bash curl -fsSL https://packages.amiberry.com/install.sh | sudo sh sudo apt install amiberry ``` Also available via [PPA](https://launchpad.net/~midwan-a/+archive/ubuntu/amiberry) ยท [COPR](https://copr.fedorainfracloud.org/coprs/midwan/amiberry/) ยท [Flatpak](https://flathub.org/apps/com.blitterstudio.amiberry) ยท [AUR](https://aur.archlinux.org/packages/amiberry) ยท [.deb/.rpm](https://github.com/BlitterStudio/amiberry/releases/latest). **AppImage (no installation):** each release includes `Amiberry--x86_64.AppImage` for Intel/AMD and `Amiberry--aarch64.AppImage` for 64-bit ARM. Download the one for your CPU from [Releases](https://github.com/BlitterStudio/amiberry/releases/latest), then: ```bash chmod +x Amiberry--x86_64.AppImage ./Amiberry--x86_64.AppImage ``` The AppImage needs glibc 2.35 or newer (Ubuntu 22.04 or later). See the [AppImage guide](https://amiberry.com/linux-packages#appimage) for running without FUSE, keeping data beside the image, and updates. ### macOS ```bash brew install --cask amiberry ``` ### Windows Download the [installer or portable ZIP](https://github.com/BlitterStudio/amiberry/releases/latest). x64 and ARM64 (Windows-on-ARM / Snapdragon X, Copilot+) builds are both published. The portable ZIP includes the `amiberry.portable` marker, so writable paths stay next to `Amiberry.exe` without extra setup. > **Windows ARM64 in a VM (VMware Fusion / Parallels / Hyper-V):** the guest usually has no OpenGL ICD installed, so Amiberry's GL init fails at startup. Drop Mesa3D's `opengl32.dll` (`mesa-llvmpipe-arm64` from [mmozeiko/build-mesa](https://github.com/mmozeiko/build-mesa/releases)) next to `Amiberry.exe` โ€” that gives you software OpenGL 3.3+ and the GUI comes up. Native WoA hardware doesn't need this workaround. **Experimental Windows 11 native UI:** an optional WinUI 3 frontend is available for x64 and ARM64. It is off by default; normal downloads and the existing Windows presets keep Dear ImGui. Experimental, unsigned packages are published separately by [Windows native CI](https://github.com/BlitterStudio/amiberry/actions/workflows/windows-native.yml), not as release replacements. Extract the complete package and launch `Amiberry.exe`; keep the adjacent `native-ui/` directory intact. Requires Windows 11 (build 22000 or newer). The package includes its .NET 10 and Windows App SDK runtimes; users do not need to install them separately. ### Android Currently in Closed Testing on [Google Play](https://play.google.com/store/apps/details?id=com.blitterstudio.amiberry) for [Ko-fi](https://ko-fi.com/midwan) members, who receive a 100% discount code that also covers the final release. Open Testing is planned after the next release, followed by a public paid release on Google Play. AArch64 & x86_64, with full ARM64 JIT support. See the [Android wiki page](https://github.com/BlitterStudio/amiberry/wiki/Android) for details. ### FreeBSD Install from the FreeBSD package repository: ```bash pkg install amiberry ``` Each Amiberry release also ships packages for FreeBSD 14 and 15 (amd64 and aarch64) on the [releases page](https://github.com/BlitterStudio/amiberry/releases/latest), which can be newer than the ports tree. Download the one matching your FreeBSD version and CPU, then install it with `pkg install`, which fetches the dependencies from your configured repository: ```bash pkg install ./amiberry-v8.6.0-freebsd15-amd64.pkg ``` These packages are built against the `quarterly` package branch, which is the default on FreeBSD. If your system uses `latest`, a dependency may have moved to a newer library version; use the ports package in that case. Or if you prefer to install from Source then ```bash git clone --depth 1 https://github.com/freebsd/freebsd-ports /usr/ports cd /usr/ports/emulators/amiberry make install ``` ### Haiku Each release ships a Haiku (R1/beta) package for 64-bit x86 on the [releases page](https://github.com/BlitterStudio/amiberry/releases/latest). Download the `.hpkg` and install it with `pkgman`, which pulls the dependencies in from HaikuPorts, or just double-click the downloaded file: ```bash pkgman install ./amiberry-v8.6.0-haiku-x86_64.hpkg ``` The package installs the binary into `/boot/system/bin`, its data into `/boot/system/data/amiberry`, and a Deskbar entry under Applications. All dependencies (SDL3, FFmpeg, and friends) come from HaikuPorts; there is no Amiberry recipe in HaikuPorts, so the release package is the only supported way to install it. ## Code Signing Windows release binaries are signed with a Certum open source code signing certificate. See the [Code signing policy](https://amiberry.com/code-signing-policy) for signing scope, roles, and privacy notes. ## Documentation - **[Getting Started](https://github.com/BlitterStudio/amiberry/wiki/Quick-start-guide)** โ€” Quick start guide - **[Full Wiki](https://github.com/BlitterStudio/amiberry/wiki)** โ€” Complete documentation - **[Build from Source](https://github.com/BlitterStudio/amiberry/wiki/Compile-from-source)** โ€” Compile for your platform - **[Troubleshooting](https://github.com/BlitterStudio/amiberry/wiki/Troubleshooting)** โ€” Common issues and solutions ## Building from Source ```bash cmake -B build -DCMAKE_BUILD_TYPE=Release cmake --build build -j$(nproc) ``` See the [build guide](https://github.com/BlitterStudio/amiberry/wiki/Compile-from-source) for platform-specific instructions, dependencies, and build options. Desktop builds enable SDL3-backed genlock video and camera input by default (`USE_VIDEOGRAB`). `USE_FFMPEG` independently enables ZZ9000 and genlock media decoding when FFmpeg 5.1 or newer development files are available; it requires libavformat 59.27+, libavcodec 59.37+, libavutil 57.28+, libswresample 4.7+, and libswscale 6.7+. `USE_WEBP` enables still and animated WebP decoding when libwebp and libwebpdemux development files are available. ### Experimental Windows 11 native UI Build on Windows 11 with the usual Windows dependencies (llvm-mingw, vcpkg, CMake and Ninja), plus **.NET SDK 10** on `PATH`. Set `LLVM_MINGW_ROOT` and `VCPKG_ROOT` as for the standard Windows presets. ```powershell cmake --preset windows-native-release cmake --build --preset windows-native-release cmake --install out/build/windows-native-release --prefix out/install/windows-native-release ``` Use `windows-arm64-native-release` for ARM64, or `windows-native-debug` / `windows-arm64-native-debug` for Debug. Each inherits its existing Windows preset and enables `AMIBERRY_NATIVE_WINDOWS_UI=ON`; the option defaults to `OFF`, is Windows-only, and removes ImGui from that build. Native UI builds require `USE_VULKAN=OFF` (the default). CMake publishes `windows/Amiberry.Windows/Amiberry.Windows.csproj` as self-contained `win-x64` or `win-arm64`, including the Windows App SDK. Run `out/build//Amiberry.exe` or `out/install//Amiberry.exe`, not the frontend directly: the core launches `native-ui/Amiberry.Windows.exe` and owns the private settings bridge. Installation and packaging copy the full `native-ui/` directory. Existing configurations and media paths still belong to the emulator; portable packages retain the `amiberry.portable` marker. Configure a separate build directory when switching between the default and native frontends. The Library offers saved machines, model presets and Play a File. In the editor, **Ctrl+F** focuses live settings search and **Ctrl+S** saves; **Save As** remains available in Save's dropdown even without pending edits. The native Save picker starts in the current configuration's folder, or the Configurations folder for a new machine. Invalid dialog input stays editable with the error beside it. Starting or resuming emulation hides the main UI. Press **F12** in the emulation window to reopen settings; **Resume** hides them again, and **Stop** returns to the Library. The primary action names any required reset or restart and asks before discarding Amiga work. Runtime drive and save-state commands appear only while emulating. Settings rows adapt to narrow windows, with longer help available from each row's information button. The separate **Windows Native UI** workflow (`windows-native.yml`) builds experimental x64 and ARM64 portable packages; it does not replace the existing Windows CI or release installers. Focused checks against an installed build: ```powershell ./tests/windows_native_bridge.ps1 -AmiberryPath "$PWD/out/install/windows-native-release/Amiberry.exe" ./tests/windows_native_smoke.ps1 -AmiberryPath "$PWD/out/install/windows-native-release/Amiberry.exe" ``` The UI smoke test needs an interactive Windows desktop. Both checks use isolated portable copies, not your existing configuration. The bridge check downloads the WHDBoot tools from whdload.de, Aminet and GitHub; set `AMIBERRY_NATIVE_TEST_SKIP_WHDBOOT_DOWNLOAD=1` to skip that part, as the workflow does because hosted runners cannot always reach those hosts. ### Emulator regression checks ROM-free regression fixtures compile production functions to check CPU flags and exception frames, coherent CIA timer reads, event dispatch, 68030 ATC and locked accesses, queued sprite writes, AGA subpixel collisions, and writable RTC counters, calendar, hour modes and sub-frame carry/BUSY timing. The x86 flag-emitter check runs only on x86-64 hosts. Run `bash tests/test_frame_pacing.sh` for software frame-pacing checks, including adaptive scheduler-overshoot margins and PAL/NTSC deadline boundaries. The RTC counts emulated time (chipset cycles), like the real chip's own crystal next to the colour clock: its seconds agree with the CIAs and the beam also when the emulation runs slower or faster than real time, and host frame waits cannot hide the MSM6242B's 244-microsecond BUSY pulse from a polling guest. It starts at the host clock and re-anchors to it on reset, state restore, pause/resume and warp transitions; warp retains a wall-clock RTC. While running it slews towards the host clock by at most 1 % once they are more than a second apart, and re-anchors after a host clock jump of over an hour. MSM6242B HOLD freezes the calendar during writes and defers one carry until release; Ricoh calendar and leap counters advance regardless of the selected register bank. Savestates capture the RTC at the save instant. An RTC file preserves guest-written calendars and independent weekday/leap counters across restarts; only running clocks advance while the emulator is off, and HOLD defers one carry. FPU exception, stack-frame and compiler checks run with `python3 tests/fpu_exception_regressions_test.py`, `python3 tests/fpu_frame_regressions_test.py` and `python3 tests/fpu_jit_compiler_regressions_test.py`. These include independent FPSR condition-bit combinations in interpreted and compiled x86 predicates, with signaling conditions retaining BSUN handling. Run `python3 tests/fpu_predicates_live_test.py build/amiberry` to execute an original synthetic ROM's predicate matrix and integer-CCR preservation checks through both the interpreter and JIT, without external ROMs or disks. `python3 tests/fpu_jit_loads_live_test.py build/amiberry` likewise compares FMOVECR in every rounding mode and FMOVE/FMOVEM memory loads between the interpreter and the JIT FPU fast path. Interpreter handlers and x86 JIT translators are checked in. After changing `src/gencpu.cpp` or `src/jit/x86_64/gencomp.cpp`, regenerate their outputs; CMake does not run these generators automatically. ## Contributing Contributions are welcome โ€” bug reports, feature suggestions, and pull requests all help make Amiberry better. 1. Fork the repository 2. Create your feature branch: `git checkout -b feature/my-feature` 3. Commit your changes: `git commit -m 'Add my feature'` 4. Push to the branch: `git push origin feature/my-feature` 5. Open a Pull Request ## Community [![Discord](https://img.shields.io/badge/Discord-Join%20Chat-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/wWndKTGpGV) [![Mastodon](https://img.shields.io/badge/Mastodon-Follow-6364FF?style=for-the-badge&logo=mastodon&logoColor=white)](https://mastodon.social/@midwan) [![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-FF5E5B?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/X8X4FHDY4) ## License Amiberry is licensed under the [GNU General Public License v3.0](LICENSE). The copyright holders named in an [additional permission under GPLv3 section 7](packaging/licences/texts/GPL-3.0-AppStore-permission.txt) allow their code to be distributed through Apple's App Store. --- Supported by [JetBrains](https://jb.gg/OpenSourceSupport).