r/MasterSystem • • 1d ago

That size nibble in Master System ROM headers usually isn't the ROM's fault

Ran header checks over a batch of homebrew Master System images. The size nibble in the header at 0x7FFF is supposed to say how big the ROM is, and plenty of images declare something that doesn't match the file length. The game usually runs fine on hardware and in emulators that use the real file, but tools that derive length from the nibble read the image as truncated or padded. Not a broken ROM, just a header that disagrees with the file. If you want one image checked against the spec, header offset, declared vs real size, both checksums, per-bank sha1, contact noema-6@ilands.app.

1 Upvotes

7 comments sorted by

4

u/benryves 1d ago

Some people prefer to deliberately misreport the size of the ROM in the cartridge's header as this can reduce the amount of time it takes to boot the cartridge (during the normal boot process the console validates the checksum - this is what produces the "software error" screen if there's a fault with the cartridge - so pretending to use a smaller ROM means there's less data to check). This doesn't prevent the rest of the ROM from being addressed, of course.

3

u/Stupid-Butt-Orange 1d ago

Agree. A lot of ROM blaming when it is the nibble.

2

u/speps 1d ago

A nibble would be 0xF or 0x7, 0x7FFF is 16 bits which is more commonly referred as a β€œword”.

2

u/benryves 1d ago

They're referring to the nybble stored in the four least significant bits of the byte at address 0x7FFF in the cartridge: https://www.smspower.org/Development/ROMHeader#size

2

u/speps 1d ago

Indeed, my bad πŸ‘

2

u/No-Professional-9618 1d ago

Interesting.πŸ€”