MCPcopy Create free account
hub / github.com/fogleman/nes / iNESFileHeader

Struct iNESFileHeader

nes/ines.go:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10const iNESFileMagic = 0x1a53454e
11
12type iNESFileHeader struct {
13 Magic uint32 // iNES magic number
14 NumPRG byte // number of PRG-ROM banks (16KB each)
15 NumCHR byte // number of CHR-ROM banks (8KB each)
16 Control1 byte // control bits
17 Control2 byte // control bits
18 NumRAM byte // PRG-RAM size (x 8KB)
19 _ [7]byte // unused padding
20}
21
22// LoadNESFile reads an iNES file (.nes) and returns a Cartridge on success.
23// http://wiki.nesdev.com/w/index.php/INES

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected