summaryrefslogtreecommitdiff
path: root/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs')
-rw-r--r--src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs45
1 files changed, 20 insertions, 25 deletions
diff --git a/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs b/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs
index 676a1b1..a2e6fed 100644
--- a/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs
+++ b/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs
@@ -335,6 +335,24 @@ namespace Noddybox.Emulation.EightBit.Z80
}
/// <summary>
+ /// The current state of the IX register pair.
+ /// </summary>
+ public Register16 IX_Register
+ {
+ get { return IX; }
+ set { IX = value; }
+ }
+
+ /// <summary>
+ /// The current state of the IY register pair.
+ /// </summary>
+ public Register16 IY_Register
+ {
+ get { return IY; }
+ set { IY = value; }
+ }
+
+ /// <summary>
/// The current state of the stack pointer.
/// </summary>
public ushort StackPointer
@@ -400,7 +418,7 @@ namespace Noddybox.Emulation.EightBit.Z80
/// <summary>
/// The state of the IFF1 register.
/// </summary>
- public bool IFF1_Regsiter
+ public bool IFF1_Register
{
get { return IFF1; }
set { IFF1 = value; }
@@ -409,7 +427,7 @@ namespace Noddybox.Emulation.EightBit.Z80
/// <summary>
/// The state of the IFF2 register.
/// </summary>
- public bool IFF2_Regsiter
+ public bool IFF2_Register
{
get { return IFF2; }
set { IFF2 = value; }
@@ -490,17 +508,6 @@ namespace Noddybox.Emulation.EightBit.Z80
Z80CpuEventArgs e = new Z80CpuEventArgs
{
Opcode = opcode,
- A = this.A,
- F = this.F,
- BC = this.BC,
- DE = this.DE,
- HL = this.HL,
- SP = this.SP,
- PC = this.PC,
- AF_ = this.AF_,
- BC_ = this.BC_,
- DE_ = this.DE_,
- HL_ = this.HL_
};
switch(type)
@@ -513,18 +520,6 @@ namespace Noddybox.Emulation.EightBit.Z80
OnEDNopEvent(e);
break;
}
-
- A = e.A;
- F = e.F;
- BC = e.BC;
- DE = e.DE;
- HL = e.HL;
- SP = e.SP;
- PC = e.PC;
- AF_ = e.AF_;
- BC_ = e.BC_;
- DE_ = e.DE_;
- HL_ = e.HL_;
}
#endregion