From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:PlayStation memory card" |
|---|
| claim | "A raw PS1 memory card image is 0x20000 bytes and starts with the ASCII bytes 'M' 'C' (frame 0), whose byte 0x7F is the XOR of bytes 0x00-0x7E (usually 0x0E); DuckStation's validity check tests only the two letters." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PlayStation memory card" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "check bytes 0x00-0x01 of the image for 'MC'; optionally verify the XOR checksum at 0x7F" |
|---|
| indicator | "4D 43 at offset 0 of a 131072-byte image" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "IsValid returns fptr[0]=='M' && fptr[1]=='C' with a TODO 'Check checksum?'; Format writes 'M','C' and the checksum from GetChecksum at byte 0x7F, and copies frame 0 to frame 63." |
|---|
| repo | "https://github.com/stenzek/duckstation" |
|---|
| commit | "9766391b610fd836ffda0b3e47ab098d04f72ee8" |
|---|
| path | "src/core/memory_card_image.cpp" |
|---|
| lines | "140-159" |
|---|
|
| type | "documentation" |
|---|
| detail | "Header frame: ID 'MC', unused zero bytes, checksum at 7Fh (usually 0Eh). Card data size 20000h bytes: lines 2455-2464." |
|---|
| repo | "https://github.com/psx-spx/psx-spx.github.io" |
|---|
| commit | "6d7d1bc106a7e0b616b0330fe58401ab1ba57f0f" |
|---|
| path | "docs/controllersandmemorycards.md" |
|---|
| lines | "2466-2471" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Raw card image check" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T12:14:43.246Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T13:17:32.589Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read memory_card_image.cpp IsValid and Format at 9766391 (checks fptr[0]=='M' && fptr[1]=='C', TODO checksum; Format writes the checksum at 0x7F) and DATA_SIZE = 128*1024. The 'usually 0Eh' part comes from psx-spx and was not re-read. Note that the importers (ImportCardMCD etc.) do not call IsValid at all." |
|---|
|
|
|---|