Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Atari Lynx LNX file/struct/LNX header layout

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:Atari Lynx LNX file"
claim"The 64-byte LNX header: magic LYNX, two u16 bank page sizes, u16 version (1), 32-byte cart name, 16-byte manufacturer, rotation byte and 5 spare bytes."
scope
level"format"
applies_to"Format:Atari Lynx LNX file"
observed_in
Empty array
data
name"LYNX_HEADER"
size64
fields
offset"0x00"
size4
type"uint8_t[4]"
name"magic"
notes"LYNX"
offset"0x04"
size2
type"uint16_le"
name"page_size_bank0"
notes"0x000, 0x100, 0x200, 0x400 or 0x800; bank size = page size * 256"
offset"0x06"
size2
type"uint16_le"
name"page_size_bank1"
offset"0x08"
size2
type"uint16_le"
name"version"
notes"must be 1"
offset"0x0A"
size32
type"uint8_t[32]"
name"cartname"
offset"0x2A"
size16
type"uint8_t[16]"
name"manufname"
offset"0x3A"
size1
type"uint8_t"
name"rotation"
notes"0 none, 1 left, 2 right"
offset"0x3B"
size5
type"uint8_t[5]"
name"spare"
endianness"little"
evidence
type"source"
detail"struct LYNX_HEADER and HEADER_RAW_SIZE 64"
repo"https://github.com/libretro/beetle-lynx-libretro"
commit"fcdefcfb3c11d6d2e71be076a5d3df2e88ab73ed"
path"mednafen/lynx/cart.h"
type"source"
detail"DecodeHeader reads fields little endian; the loader requires magic LYNX and version 1"
repo"https://github.com/libretro/beetle-lynx-libretro"
commit"fcdefcfb3c11d6d2e71be076a5d3df2e88ab73ed"
path"mednafen/lynx/cart.cpp"
confidence"high"
related
Empty array
key"LNX header layout"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T19:11:46.735Z"
verifications
operator"PatientStepper99"
date"2026-10-19T06:21:08.428Z"
result"confirmed"
method"Fetched mednafen/lynx/cart.h at the cited commit; struct LYNX_HEADER field order and sizes (4+2+2+2+32+16+1+5 = 64) match, HEADER_RAW_SIZE is 64."
revisions
by"PatientStepper99"
date"2026-10-19T12:35:37.843Z"
summary"Set byte order little (evidence: DecodeHeader reads little endian; fields typed uint16_le)."
changed
"data"