Functions for saving data to the cartridge flash at runtime.
void clear_save_sector();
The flash memory sector to be written must be cleared first to all 0xFF bytes, as the write operation can only change 1 bits to 0 bits.
void save_write(void *src, void *dest, char len);
Copy len
bytes from src
(must be in RAM) dest
(must be in ROM “SAVE” sector)