[Core/MS] simplified latest Korean x-in-1 mappers implementation

This commit is contained in:
ekeeke 2023-04-07 09:06:42 +02:00
parent 4a07f8a9f6
commit 1db51e2c5f

View File

@ -1542,31 +1542,17 @@ static void write_mapper_multi_2x16k_v1(unsigned int address, unsigned char data
/* save mapper configuration to unused register */ /* save mapper configuration to unused register */
slot.fcr[0] = (data >> 5) & 0x03; slot.fcr[0] = (data >> 5) & 0x03;
switch (slot.fcr[0]) if (slot.fcr[0] & 0x02)
{ {
case 0x00: data &= 0x1e;
{ mapper_16k_w(1,data);
data &= 0x1f; mapper_16k_w(2,data+1);
mapper_16k_w(1,0x00); }
mapper_16k_w(2,data); else
break; {
} data &= 0x1f;
mapper_16k_w(1,0x00);
case 0x01: mapper_16k_w(2,data);
{
data &= 0x1f;
mapper_16k_w(1,0x00);
mapper_16k_w(2,data);
break;
}
default:
{
data &= 0x1e;
mapper_16k_w(1,data);
mapper_16k_w(2,data+1);
break;
}
} }
} }
@ -1598,14 +1584,6 @@ static void write_mapper_multi_2x16k_v2(unsigned int address, unsigned char data
return; return;
} }
case 0x02:
{
data &= 0x3f;
mapper_16k_w(1,0x20);
mapper_16k_w(2,data);
return;
}
default: default:
{ {
data &= 0x3f; data &= 0x3f;