Saturn: initialize the external backup memory. (#938)

This commit is contained in:
Sergiy Dvodnenko
2024-12-09 07:03:25 +02:00
committed by GitHub
parent e20d5e85ca
commit 5418c6f09a

View File

@@ -214,7 +214,7 @@ int saturn_send_data(uint8_t* buf, int len, uint8_t index) {
return 1;
}
static char int_blank[] = {
static char save_blank[] = {
0x00, 0x42, 0x00, 0x61, 0x00, 0x63, 0x00, 0x6B, 0x00, 0x55, 0x00, 0x70, 0x00, 0x52, 0x00, 0x61,
0x00, 0x6D, 0x00, 0x20, 0x00, 0x46, 0x00, 0x6F, 0x00, 0x72, 0x00, 0x6D, 0x00, 0x61, 0x00, 0x74,
0x00, 0x42, 0x00, 0x61, 0x00, 0x63, 0x00, 0x6B, 0x00, 0x55, 0x00, 0x70, 0x00, 0x52, 0x00, 0x61,
@@ -251,9 +251,9 @@ static char int_blank[] = {
void saturn_fill_blanksave(uint8_t *buffer, uint32_t lba)
{
if (lba == 0)
if (lba == 0 || lba == 128)
{
memcpy(buffer, int_blank, 512);
memcpy(buffer, save_blank, 512);
}
else
{