The stock Action Replay firmware for the Sega Saturn doesn't play nice with a Satiator cartridge: you can't boot into the Satiator menu. This repo contains a patch to the AR firmware to make it behave. It's based on the AR 2.02C firmware. This is a modified version that boots the Satiator Rings replacement menu.
- Install Satiator Rings v3.0+ on your SD card using the Satiator Rings Config Tool.
- Copy
ar_patched-satiator-rings.bin
andboot.desc
to the root your Satiator SD card - Remove the AR cart from your Saturn
- Boot into the Satiator menu (version 53 or higher)
- Press B to exit to the main menu
- Select Action Replay tools
- Insert your AR cart. Do this straight, not at an angle, and you won't have a problem.
- Back up your current AR firmware (if you haven't already)
- Flash the new
.bin
file to the cartridge
If a Satiator is present, it will boot to the Satiator-Rings menu instead of to the AR menu.
If you hold A on startup, it will boot to the AR menu instead.
If there's no Satiator installed, it will behave like a stock AR cart.
Simply run make
.
The Makefile assumes that a SuperH GCC is available as sh-none-elf-gcc
.
Ensure this is on your PATH
and if necessary adjust the CROSS_COMPILE
variable to suit your compiler.
Python 3 is required to apply the built patch to the binary.
At the time of writing, the release versions are built with GCC version 9.2.0.
For building on Windows some changes may be needed to the Makefile.
For example, dd
is not typically available - this could be replaced with more Python.
Patches welcome.
The original AR firmware starts executing at offset 0xf00 (at the end of the IP). The first thing it does is copy itself into low work RAM, and then jumps into the loaded copy.
The patch building process does the following things:
- Compile startup hook code into an unused spot in the ROM - defined as
cart_main
inarpatch.ld
. The hook code does Satiator detection, booting, etc.; seeinit.c
. - Save a copy of the original cart's startup code at 0xf00 (as
ar_original_trampoline.bin
). - Build a new trampoline to go at 0xf00 - defined as
cart_header
inarpatch.ld
. This trampoline copies the hook to low work RAM (work_low
) and jumps into it it.
The hook code decides whether to do a Satiator boot or AR boot.
For an AR boot, it copies everything to low work RAM, just like the original trampoline, and then jumps in.
The reason for stashing the original trampoline is that the main AR code will crash if it's not copied into low work RAM along with everything else,
so we need to restore it before jumping into the AR code.
See boot_ar()
in rom.c
.