PSModern

PSModern is a C++ reimplementation of Phantasy Star for Sega Master System on Windows, macOS, and Android with cross-platform saves and optional quality-of-life features.

README

PSModern

English | Português (Brasil)

CI Latest release License: GPL-3.0-or-later

Important

PSModern is an unofficial fan project and includes no game data. You need your own dump of the Sega Master System Phantasy Star cartridge (US Rev-A or the Brazilian Tec Toy release).

PSModern is an open-source C++ reimplementation of Phantasy Star (Sega Master System, 1987/88) for Windows, macOS, and Android with cross-platform saves. The entire game is playable from start to finish in English or Portuguese, with the same picture, sound, rules, and timing as the original cartridge — plus optional quality-of-life features that all start off.

Start screenOptionsWidescreen
PSModern start screenIn-game Options overlay in the cartridge's window styleA town in the 344x192 16:9 widescreen view

Alis choosing a battle command against Medusa, with HP and MP shown for all four party members
Fighting Medusa with the optional Enhanced interface.

Rebuilt in C++, no Z80 emulator

PSModern started by running the original cartridge on a virtual Z80 and rewriting its routines in C++ one by one, checking every change against the original. That work is complete: PSModern runs pure C++ and contains no Z80 interpreter. Your ROM is used only as a data source for graphics, maps, text, and music.

The Z80 still lives in the test suite as a referee, running beside the C++ code to verify state and cycle timing instruction by instruction. Along the way, we documented how the game works inside in plain language.

Optional features

With every option off, PSModern plays identically to the original cartridge. Turn on only what you want from the in-game Options menu (Escape or controller Y while exploring):

  • Adjustable encounters & rewards: scale random encounters (0% to 200%) and battle EXP / Meseta (100% to 400%). Setting 25% encounters and 400% EXP / Meseta gives a pace similar to the Nintendo Switch SEGA AGES easy mode. Story and fixed fights never change.
  • Dungeon automap: press M (or controller X) inside a dungeon to view the parts of the current floor you have explored, saved alongside each slot.
  • Widescreen: widens the world map, towns, and spaceship flights to 344x192 using the cartridge's own map data and tiles. Battles, menus, and dungeons stay centered in their original 256x192 frame. Choose ON for sharp integer scaling or FILL to use more of the screen with light smoothing.
  • Turn on CRT TV in Options to give the picture the phosphor grille and light spread of a colour TV tube. One switch works with Original, Enhanced and all widescreen settings.
  • Fast-forward (1x / 2x / 4x): press Tab (or RB) to speed up gameplay while keeping music and sound effects at normal tempo and pitch.
  • Enhanced interface (experimental, untested): optional UI mode (INTERFACE: ENHANCED in Options) with a proportional font, spell costs and effects, shop equipment comparisons, bag count, and EXP to the next level, using the same saves. This feature is experimental and has not been tested yet — switch back to ORIGINAL at any time.
  • Live language switching: switch between English and Portuguese during exploration without restarting (when both ROMs are added), sharing one save file across all languages.
  • SMS Power! English scripts: import the official v2.6.1 source release to unlock SMS POWER! (localized) and SMS LITERAL on either playable cartridge, sharing the same saves. Both scripts use the experimental Enhanced interface.
  • Japanese FM soundtrack: if you also own the Japanese cartridge, switch between PSG and FM on the SOUND row at any time to hear its FM music and sound effects.
  • Full control remapping: keyboard and gamepad work together, and every key and button can be remapped from the in-game Controls screen.

How to install and play

What you need

An uncompressed .sms dump of your own cartridge (unzipped). PSModern checks the file and refuses unsupported dumps with an explanation.

ReleaseSHA-1
US Rev-A07fcf297be4f4c9d92cd3f119a7ac48467e06838
Brazilian (Tec Toy)fd8dad6acb6fa75dc8e9bbaea2a7e9fd486fc2dd

Optional add-ons:

  • Japanese FM sound: register your Japanese cartridge (SHA-1 c9a40ddd217c58dddcd6b5c0fe66c3a50d3e68e4) via ADD ROM on the start screen. See Sound sources and preferences.
  • SMS Power! English scripts: open SMS POWER! TRANSLATION on the start screen and choose Download and install. For manual installation, import Source code (zip) from the official v2.6.1 release. Choose SMS POWER! or SMS LITERAL in Language.
Windows
  1. Download PSModern-<version>-windows-x64.zip from the Releases page and extract it into its own folder.
  2. Double-click psmodern.exe.

Note

Because psmodern.exe is not digitally signed, Windows SmartScreen may show an "unknown publisher" warning. Click More info and then Run anyway.

macOS (Apple silicon and Intel, macOS 11+)
  1. Download PSModern-<version>-macos-universal.zip from the Releases page, open it, and drag PSModern.app to Applications.
  2. Launch PSModern.app.

Note

The app is not notarized by Apple, so macOS blocks the first launch. Control-click PSModern.app, choose Open, then Open again. On macOS 15 or later, try to open it once, then click Open Anyway in System Settings > Privacy & Security.

Android (ARM, Android 7.0+)
  1. Download PSModern-<version>-android-arm.apk from the Releases page on your phone and install it (you may need to allow Install unknown apps for your browser or file manager).
  2. Open PSModern. Both portrait and landscape touch layouts and physical gamepads are supported.
First launch

On first launch, select your uncompressed .sms file in the file picker — PSModern remembers it from then on (Android keeps an internal copy). Pick PLAY (tap 1 on Android) on the start screen, or use ADD ROM, LANGUAGE, and CONTROLS to customize your setup.

Saves

Saves use the original cartridge .sav format (compatible with Master System emulators) alongside a .bak backup and small companion files for options and dungeon maps. All languages and platforms share the same save format.

To move saves between Windows, macOS, and Android, close PSModern on both devices, back up the destination folder, and copy the files inside shared/:

  • Windows: %APPDATA%\PSModern\shared
  • macOS: ~/Library/Application Support/PSModern/shared
  • Android: Android/data/org.psmodern.game/files/shared/

Quick controls

Keyboard and the first connected controller work at the same time. Everything can be customized on the Controls screen (from the start screen or Options).

ActionKeyboardController
MoveArrow keysD-pad or left stick
Button 1 / Button 2Z / XA / B (positional)
Pause / ResetEnter / BackspaceStart / Back
Power cycleF5-
Fast-forward (1x/2x/4x)TabRB (right shoulder)
Options menuEscapeY
Dungeon map (when Automap is on)MX
FullscreenAlt+Enter-

On a Mac keyboard, Enter, Backspace, and Alt are Return, Delete, and Option.

You can also launch from the command line (on macOS, use PSModern.app/Contents/MacOS/PSModern):

psmodern.exe "path/to/your-game.sms" --encounter-rate 25 --experience-rate 400

See the Player guide & controls for full details on remapping, options, the enhanced interface, automap rules, widescreen, saves, and command-line flags.

Building from source

Windows builds use the pinned MSYS2 UCRT64 toolchain. From a UCRT64 shell:

cmake -S . -B build-rel -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build-rel
ctest --test-dir build-rel --output-on-failure
./build-rel/psmodern.exe "path/to/your-game.sms"
  • macOS: with Xcode Command Line Tools, CMake, and Ninja, tools/package-macos.sh <output-folder> builds SDL2 and the universal PSModern.app; see macOS build for development builds and tests.
  • Android: follow the Android build guide to build the APK yourself.

Tests that need a ROM skip automatically if none is configured. See Development for ROM test paths, recordings, and lockstep verification.

Documentation

  • How the game works inside — plain-language chapters covering the Master System hardware, controls, random numbers, party, sound, dungeons, text, world map, menus, battles, interactions, scenes, and interrupts.
  • Player guide & controls — controls, options, enhanced interface, automap, widescreen, saves, and CLI flags.
  • Project status & Roadmap — current architecture, verification summary, and future ideas.
  • Project history — milestone-by-milestone log.
  • Original quirks — original cartridge oddities kept on purpose and differences between the US and Brazilian versions.
  • Design — goals and architectural decisions.

Credits, disclaimer, and license

SMS Power! translation credits: Maxim (project lead and programming), Z80 Gaiden (programming), Paul Jensen (translation and editing), Satsu (additional translation), Popfan (literal script revisions), and Frank Cifaldi (localized script editor).

PSModern is unofficial and is not affiliated with or endorsed by SEGA or Tec Toy. Phantasy Star is a trademark of SEGA.

Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). Bundled runtime libraries and their licenses are listed in the release zip's THIRD-PARTY.txt.