| 10 | const iNESFileMagic = 0x1a53454e |
| 11 | |
| 12 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected