From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Atari Lynx LNX file" |
|---|
| claim | "An Atari Lynx .lnx file starts with the ASCII magic LYNX (4 bytes), then little-endian u16 page sizes of bank 0 at 4 and bank 1 at 6, and a little-endian u16 version at offset 8 that the Mednafen/Handy reader requires to be 1." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Atari Lynx LNX file" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "4C 59 4E 58" |
|---|
| offset | "0x0" |
|---|
| meaning | "LNX header magic; the reader treats a file as headerless raw ROM when the magic is absent OR the u16 LE version at 8 is not 1 (so the magic alone does not make this reader accept the file)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "CCart::DecodeHeader reads magic[4], u16 LE page_size_bank0 (4), bank1 (6), version (8); CCart::CCart: magic != LYNX or version != 1 -> header_size 0, 'NO HEADER' raw ROM, else gamesize -= header size" |
|---|
| repo | "https://github.com/libretro/beetle-lynx-libretro" |
|---|
| commit | "fcdefcfb3c11d6d2e71be076a5d3df2e88ab73ed" |
|---|
| path | "mednafen/lynx/cart.cpp" |
|---|
| lines | "168-182, 220-235" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "LYNX magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T19:11:46.803Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:51:44.427Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched mednafen/lynx/cart.cpp at fcdefcfb: DecodeHeader reads magic[4], u16le page sizes at 4 and 6, u16le version at 8; CCart sanity check requires LYNX and version==1, otherwise header_size 0 and 'NO HEADER' raw ROM." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T11:28:11.075Z" |
|---|
| summary | "Reader also requires version==1 (u16 little-endian at 8); a file with LYNX but another version is loaded as headerless ROM" |
|---|
| changed | | "claim" |
| "data" |
| "evidence replaced" |
|
|---|
|
|
|---|