Z80 Interrupts - remove unnecessary public property

This commit is contained in:
adelikat 2020-04-29 17:21:26 -05:00
parent bee7f4f059
commit 96a85d4442
3 changed files with 5 additions and 9 deletions

View File

@ -22,15 +22,10 @@ namespace BizHawk.Emulation.Cores.Components.Z80A
public bool NonMaskableInterrupt
{
get => nonMaskableInterrupt;
set { if (value && !nonMaskableInterrupt) NonMaskableInterruptPending = true; nonMaskableInterrupt = value; }
set { if (value && !nonMaskableInterrupt) nonMaskableInterruptPending = true; nonMaskableInterrupt = value; }
}
private bool nonMaskableInterruptPending;
public bool NonMaskableInterruptPending
{
get => nonMaskableInterruptPending;
set => nonMaskableInterruptPending = value;
}
private int interruptMode;
public int InterruptMode
@ -144,7 +139,7 @@ namespace BizHawk.Emulation.Cores.Components.Z80A
IFF1 = false;
IFF2 = false;
NonMaskableInterrupt = false;
NonMaskableInterruptPending = false;
nonMaskableInterruptPending = false;
FlagI = false;
InterruptMode = 1;
}

View File

@ -80,7 +80,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
VdpAddress &= 0x3FFF;
}
void WriteRegister(int reg, byte data)
private void WriteRegister(int reg, byte data)
{
if (reg >= 8) return;
@ -106,7 +106,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
case 5: // Sprite Attribute Table Base Address
TmsSpriteAttributeBase = (Registers[5] << 7) & 0x3F80;
break;
case 6: // Sprite Pattern Generator Base Adderss
case 6: // Sprite Pattern Generator Base Address
SpritePatternGeneratorBase = (Registers[6] << 11) & 0x3800;
break;
}

View File

@ -396,6 +396,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=Mainform/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=mainmemory/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=mame/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Maskable/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Matroska/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Medna/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=mednadisc/@EntryIndexedValue">True</s:Boolean>