SMSHawK: Add Port5 variable (link cable)

-Fixes Pac Attack
This commit is contained in:
alyosha-tas 2018-03-26 14:34:47 -04:00
parent 2f35bec264
commit 1c40bbd49b
2 changed files with 4 additions and 1 deletions

View File

@ -64,6 +64,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
ser.Sync("Bios_bank", ref Bios_bank);
ser.Sync("Port01", ref Port01);
ser.Sync("Port02", ref Port02);
ser.Sync("Port05", ref Port05);
ser.Sync("Port3E", ref Port3E);
ser.Sync("Port3F", ref Port3F);
ser.Sync("Controller1SelectHigh", ref Controller1SelectHigh);

View File

@ -222,6 +222,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
private byte Port01 = 0xFF;
private byte Port02 = 0xFF;
private byte Port05 = 0x00;
private byte Port3E = 0xAF;
private byte Port3F = 0xFF;
private byte PortDE = 0x00;
@ -315,7 +316,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
case 0x02: return Port02;
case 0x03: return 0x00;
case 0x04: return 0xFF;
case 0x05: return 0x00;
case 0x05: return Port05;
case 0x06: return 0xFF;
case 0x3E: return Port3E;
default: return 0xFF;
@ -356,6 +357,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
case 0x01: Port01 = value; break;
case 0x02: Port02 = value; break;
case 0x05: Port05 = value; break;
case 0x06: PSG.StereoPanning = value; break;
case 0x3E: Port3E = value; break;
case 0x3F: Port3F = value; break;