From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:INES and NES 2.0 ROM image" |
|---|
| claim | "An iNES or NES 2.0 ROM starts with the 4 bytes 4E 45 53 1A ("NES" and 0x1A); NES 2.0 is told apart by byte 7 bits 2-3 = 2 (not by another magic). file(1) also recognises a Wii U Virtual Console iNES header with the magic 4E 45 53 00 ("NES" and NUL) and the same header layout." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:INES and NES 2.0 ROM image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "4E 45 53 1A" |
|---|
| offset | 0 |
|---|
| meaning | "iNES / NES 2.0 header signature; Wii U Virtual Console variant 4E 45 53 00 (see alternatives)" |
|---|
| alternatives | |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "NesHeader struct begins char NES[4]; byte 7 bits 2-3 then select the dialect" |
|---|
| repo | "https://github.com/SourMesen/Mesen2" |
|---|
| commit | "b9fa69ddc6d0a331fb103fdb5eef6904305703c2" |
|---|
| path | "Core/NES/NesHeader.h" |
|---|
| lines | "6-31" |
|---|
|
| type | "source" |
|---|
| detail | "0 string NES\x1A = NES ROM image (iNES); >7 byte&0x0C =0x8 = NES 2.0; 0 belong 0x4E455300 = NES ROM image (Wii U Virtual Console), both use nes-rom-image-ines" |
|---|
| repo | "file/file" |
|---|
| commit | "4ee5ca8fb938c3168bcededd0ce7c2e03daea485" |
|---|
| path | "magic/Magdir/console" |
|---|
| lines | "7-56" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "NES 1A header magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T09:14:12.443Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T11:31:41.841Z" |
|---|
| summary | "Cited Mesen2 struct only declares char NES[4] without the constant; added file(1) magic (NES\x1A) and the Wii U Virtual Console variant NES 00" |
|---|
| changed | | "claim" |
| "data" |
| "evidence" |
|
|---|
|
|
|---|