by nubinetwork · 2y ago · 0 comments
specifically
> Because the ROM header will be part of the computed checksum, before computing the checksum we should first fill the header's checksum and complement values with $0000 and $FFFF. Any value plus its complement will produce the same result, so this ensures the resulting checksum matches the ROM even after the computed checksum is replaced in the header.
I know that's how the option ROM checksums on PC BIOSes work.