discuss both original and modern hardware for the bbc micro/electron
3 posts • Page 1 of 1
Sometimes I get the Bad sum error on MMFS 1.41. Not every time and not always at the same place. What are the main causes of this? Using Ramtop hardware on Electron btw
A small part of the MMFS workspace (15 bytes) is protected by a CRC, because it contains critical information, such as the start sector of the BEEB.MMB file. If this were corrupted, other files on the SSD might be damaged.
A Bad Sum error occurs when the CRC check on this region fails, because something other than MMFS has written to this region.
(In ESWMMFS, I think this region is at &B7E0 to &B7EE)
One possible cause is a game whose rendering code is buggy, and sometimes writes to the the ROM area above the screen memory.
Thanks Dave. It's my own code that this is happening with. But not very often and I can't reproduce the Bad sum error even on consecutive runs of my program. Will have to investigate further. I thought maybe there could be other causes triggering this error.