Gearsystem is a cross-platform Sega Master System / Game Gear / SG-1000 emulator written in C++ that runs on Windows, macOS, Linux, iOS, Raspberry Pi and RetroArch.
This is an open source project with its ongoing development made possible thanks to the support by these awesome backers.
Please, consider sponsoring and following me on Twitter for updates.
- Windows: Gearsystem-3.1.0-Windows.zip
- NOTE: You may need to install the Microsoft Visual C++ Redistributable
- macOS:
brew cask install gearsystem
- Or install manually: Gearsystem-3.1.0-macOS.zip
- Linux: Gearsystem-3.1.0-Linux.tar.xz
- NOTE: You may need to install
libsdl2
andlibglew
- NOTE: You may need to install
- iOS: Build Gearsystem with Xcode and transfer it to your device. You can open rom files from other apps like Safari or Dropbox, or use your iCloud Drive.
- RetroArch: Libretro core documentation.
- Raspberry Pi: Build Gearsystem from sources. Optimized projects are provided for Raspberry Pi 1, 2, 3 and 4.
- Sega Mark III
- Sega Master System
- Sega Game Gear
- Sega Game 1000 (SG-1000)
- Othello Multivision
- Accurate Z80 core, including undocumented opcodes and behaviour like R and MEMPTR registers.
- Multi-Mapper support: SEGA, Codemasters, Korean, MSX, SG-1000, and ROM only cartridges.
- External RAM support with save files.
- Automatic region detection: NTSC-JAP, NTSC-USA, PAL-EUR.
- Accurate VDP emulation including timing and SMS2 only 224 mode support.
- Internal database for rom detection.
- Audio emulation using SDL Audio and Sms_Snd_Emu library.
- Saves battery powered RAM cartridges to file.
- Save states.
- Compressed rom support (ZIP deflate).
- Game Genie and Pro Action Replay cheat support.
- Supported platforms: Windows, Linux, macOS, Raspberry Pi, iOS and RetroArch (libretro).
- Full debugger with disassembler, breakpoints, debug symbols, memory editor, IO inspector and and VRAM viewer including tiles, sprites, backgrounds and palettes.
- Install Microsoft Visual Studio Community 2019 or later.
- Open the Gearsystem Visual Studio solution
platforms/windows/Gearsystem.sln
and build. - You may want to use the
platforms/windows/Makefile
to build the application using MinGW.
- Install Xcode and run
xcode-select --install
in the terminal for the compiler to be available on the command line. - Run this commands to generate a Mac app bundle:
brew install sdl2
cd platforms/macos
make dist
- Ubuntu / Debian:
sudo apt-get install build-essential libsdl2-dev libglew-dev
cd platforms/linux
make
- Fedora:
sudo dnf install @development-tools gcc-c++ SDL2-devel glew-devel
cd platforms/linux
make
- Install Xcode for macOS. You need iOS 13 SDK or later.
- Build the project
platforms/ios/Gearsystem.xcodeproj
- Run it on real hardware using your iOS developer certificate. Make sure it builds on Release for better performance.
- Ubuntu / Debian:
sudo apt-get install build-essential
cd platforms/libretro
make
- Fedora:
sudo dnf install @development-tools gcc-c++
cd platforms/libretro
make
sudo apt install build-essential libsdl2-dev libglew-dev
cd platforms/raspberrypi4
make
- Install and configure SDL 2 for development:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libasound2-dev libjpeg-dev libtiff5-dev libwebp-dev automake
cd ~
wget https://www.libsdl.org/release/SDL2-2.0.12.tar.gz
tar zxvf SDL2-2.0.12.tar.gz
cd SDL2-2.0.12 && mkdir build && cd build
../configure --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl --host=armv7l-raspberry-linux-gnueabihf
make -j 4
sudo make install
- Install libconfig library dependencies for development:
sudo apt-get install libconfig++-dev
- Use
make -j 4
in theplatforms/raspberrypi3/x64/
folder to build the project. - Use
export SDL_AUDIODRIVER=ALSA
before running the emulator for the best performance. - Gearsystem generates a
gearsystem.cfg
configuration file where you can customize keyboard and gamepads. Key codes are from SDL.
Zexall Z80 instruction exerciser (from SMS Power!)
Gearsystem passes all tests in Zexall, including undocumented instructions and behaviours.
SMS VDP Test (from SMS Power!)
Gearsystem is licensed under the GNU General Public License v3.0 License, see LICENSE for more information.