Format:PlayStation memory card
| Platforms | Platform:PlayStation |
|---|---|
| Magic | "MC" at 0x0 of a raw card image |
| Extensions | .mcd .mcr .mc .srm .psm .ps .ddf .mem .vgs .psx .gme |
| Endianness | little |
| On this wiki | Facts · Code · Notes · Topics |
The 128 KB save file system of the original PlayStation Memory Card: 16 blocks of 8 KB split into 128-byte frames, a directory in block 0 (header frame 'MC', 15 directory frames with an XOR checksum), and saves that start with an 'SC' title frame and 1-3 icon frames; emulators store it raw (.mcd, .mcr and others) or with a small header (.mem 'VgsM', .psx 'PSV', .gme).
Overview
A PS1 Memory Card holds 0x20000 bytes (128 KB) in 16 blocks of 0x2000 bytes; each block has 64 frames (the documentation also calls them sectors) of 0x80 bytes. Block 0 is the directory; blocks 1-15 hold save files, each file one or more blocks. A raw image is simply the 0x20000 bytes in order (see Format:PlayStation memory card#Image containers). The BIOS reaches the card through the B(4Ah)-B(50h) card functions and the dev_card_* driver (Platform:PlayStation/BIOS calls).
Block 0: directory
| Frames | Content |
|---|---|
| 0 | header frame: MC, zeros, byte 0x7F = XOR of bytes 0x00-0x7E (usually 0x0E)
|
| 1-15 | one directory frame per block 1-15 (see the struct fact) |
| 16-35 | broken sector list (u32 sector number block*64+frame, 0xFFFFFFFF = none) |
| 36-55 | replacement data for the broken sectors listed in frames 16-35 |
| 56-62 | unused |
| 63 | write test frame, normally a copy of frame 0 |
Every directory and broken-sector frame ends with an XOR checksum byte at 0x7F computed over the first 0x7F bytes. File size and file name are stored only in the first directory entry of a file (state 0x51 or 0xA1); the entries of later blocks have them zeroed, and each entry links to the next block of the file by block number minus one (0xFFFF for the last).
Save file layout
The first frame of the first block is the title frame (SC, icon flag 0x11/0x12/0x13 = 1/2/3 icon frames, 64 bytes of Shift-JIS title, 16-entry 16-bit CLUT at 0x60); the next 1-3 frames are 16x16 4-bit icon bitmaps; the game's data follows. Further blocks of a file are plain data. Save file names conventionally start with BI/BE/BA (Japan/Europe/America) and the game code, e.g. BA + SLUS-00067 + up to 8 more characters.
Image containers
Raw images without a header are used by many tools; wrapped forms are recognised by size, extension and signature: .mem/.vgs (Connectix Virtual Game Station) is a 64-byte header starting VgsM plus the card; .psx (PlayStation Magazine) is a 256-byte header starting PSV plus the card; .gme (DexDrive) has a 0xF40-byte header. See the facts for what DuckStation checks.
Code & repositories
- https://github.com/psx-spx/psx-spx.github.io @
6d7d1bc106a7e0b616b0330fe58401ab1ba57f0f· license: none
psx-spx: the PlayStation hardware and file format documentation (docs/kernelbios.md for BIOS A/B/C tables and Exec, docs/cdromfileformats.md for PS-X EXE, SYSTEM.CNF and CPE, docs/controllersandmemorycards.md for the memory card format). No license file was found in the repository root; only facts are cited, no text copied.
Tested on: source read, not run: documentation read, nothing run · checked 2026-10-19; last activity 2026-10-19; no license: not reusable - https://github.com/stenzek/duckstation @
9766391b610fd836ffda0b3e47ab098d04f72ee8· license: CC-BY-NC-ND-4.0 (declared by the contributor; GitHub's detector did not recognize LICENSE)
DuckStation PS1 emulator (CC BY-NC-ND 4.0 per its SPDX headers: facts only, never copy code): src/core/bios.cpp and bios.h (PS-EXE header and region marker), bios_types.h (thread control block), system.cpp (SYSTEM.CNF BOOT parsing), memory_card_image.cpp (memory card format and import).
Tested on: source read, not run: source read, not run or built · checked 2026-10-19; last activity 2026-10-19; Note: the latest release ships binaries; the wiki links only the source, never the binaries
Pitfalls
- A formatter that fills frames differently is still valid: psx-spx says unused frames are usually 0xFF-filled, while DuckStation's formatter writes zeros there; do not treat either as corruption.
- DuckStation's validity check only tests the two bytes
MCof frame 0, not the checksum (its source has a TODO for it). - Unverified: PS2 cards used with PS1 games store PS1 saves in a PS2 file system, see Format:PS2 memory card image; not read here.
Evidence & references
- psx-spx docs/controllersandmemorycards.md, section 'Memory Card Data Format' and 'Memory Card Images' (no license file found in the repository root; facts only).
- DuckStation src/core/memory_card_image.cpp (CC-BY-NC-ND-4.0: facts only).