Format:Saturn backup RAM
| Platforms | Platform:Sega Saturn |
|---|---|
| Magic | FF 42 FF 61 FF 63 FF 6B ... ("BackUpRam Format" on odd bytes) at offset 0 |
| Endianness | big |
| On this wiki | Facts · Code · Notes · Topics |
Sega Saturn backup memory (internal 32 KiB battery RAM, cartridges up to 4 MiB): data sits on odd bytes only, the volume starts with the 16-character text 'BackUpRam Format' interleaved with 0xFF, and saves are stored in fixed-size blocks (0x40 bytes internal, 0x200 or 0x400 on cartridges).
Layout
Recognition-level notes from the Yabause emulator (GPL-2.0-or-later), which emulates the BIOS backup functions in C. See the facts attached to this page for the exact lines.
- The memory is only connected to odd addresses: Yabause's write handler stores a byte at
(addr & 0xFFFF) | 1, and the internal RAM image it loads and saves is 0x10000 bytes (Fact:Saturn backup RAM/behavior/Backup RAM device parameters in the Yabause BIOS emulation). The usable size is therefore half the byte count: 0x8000 (32 KiB) for the internal device. - The volume header is the 16 ASCII characters
BackUpRam Formatwith an 0xFF byte before each character (32 bytes), repeated four times, filling 0x80 bytes (Fact:Saturn backup RAM/magic/BackUpRam Format header). Yabause formats the rest of an empty volume as byte pairs 0xFF, 0x00. - Save entries: Yabause's save lookup treats a block as the start of a save when the odd byte at offset 1 of the block has its top bit set, and compares an 11-character file name stored on every second byte starting at physical offset 9. Unverified: the full directory entry layout (comment, date, size, block list) was only partly read.
Devices
Device 0 is the internal RAM; device 1 is a RAM cartridge, present when the cartridge id byte has high nibble 0x2. Block size is 0x40 (internal), 0x200 for cartridges, or 0x400 when the cartridge id is 0x24.
Related
Platform:Sega Saturn, Format:Saturn IP.BIN boot header (its device and backup RAM info letters).
Evidence and references
Yabause bios.c, memory.c at 7e38821dbac265490f115e163c523a939acda759. Unverified: the Mednafen/Beetle Saturn save format (not read), cartridge types other than the id values in the Yabause source.
Code & repositories
- https://github.com/Yabause/yabause @
7e38821dbac265490f115e163c523a939acda759· license: GPL-2.0-or-later (declared by the contributor; GitHub's detector did not recognize a license file)
Yabause Saturn emulator (GPL-2.0-or-later): yabause/src/yabause.c quick boot, cs2.c IP parse, bios.c and memory.c backup RAM
Tested on: source read, not run · checked 2026-10-19; last activity 2024-03-09