summaryrefslogtreecommitdiff
path: root/src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2012-01-08 22:37:21 +0000
committerIan C <ianc@noddybox.co.uk>2012-01-08 22:37:21 +0000
commita00e548533eed5b1aead479e70a117eb05458a5f (patch)
tree9126a23a6e6e85d1cbea05dc85a6f4e03d5bfdd9 /src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs
parentdead9024c73e16a141b1381ba6e8432d44d2d567 (diff)
Added rest of ED opcodes and GPL fixed headers.
Diffstat (limited to 'src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs')
-rw-r--r--src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs b/src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs
new file mode 100644
index 0000000..fb0173a
--- /dev/null
+++ b/src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs
@@ -0,0 +1,87 @@
+// This file is part of the Noddybox.Emulation C# suite.
+//
+// Noddybox.Emulation is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Noddybox.Emulation is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Noddybox.Emulation. If not, see <http://www.gnu.org/licenses/>.
+//
+// Copyright (c) 2012 Ian Cowburn
+//
+using System;
+
+namespace Noddybox.Emulation.EightBit.Z80
+{
+ /// <summary>
+ /// Represents events from the Z80.
+ /// </summary>
+ public class Z80CpuEventArgs : EventArgs
+ {
+ /// <summary>
+ /// The opcode that was executed to trigger the event.
+ /// </summary>
+ public byte Opcode {get; set;}
+
+ /// <summary>
+ /// The current state of the accumulator.
+ /// </summary>
+ public byte A {get; set;}
+
+ /// <summary>
+ /// The current state of the flag register.
+ /// </summary>
+ public Z80Flags F {get; set;}
+
+ /// <summary>
+ /// The current state of the BC register pair.
+ /// </summary>
+ public Register16 BC {get; set;}
+
+ /// <summary>
+ /// The current state of the DE register pair.
+ /// </summary>
+ public Register16 DE {get; set;}
+
+ /// <summary>
+ /// The current state of the HL register pair.
+ /// </summary>
+ public Register16 HL {get; set;}
+
+ /// <summary>
+ /// The current state of the stack pointer.
+ /// </summary>
+ public ushort SP {get; set;}
+
+ /// <summary>
+ /// The current state of the program counter.
+ /// </summary>
+ public ushort PC {get; set;}
+
+ /// <summary>
+ /// The alternate AF' register.
+ /// </summary>
+ public Register16 AF_ {get; set;}
+
+ /// <summary>
+ /// The alternate BC' register.
+ /// </summary>
+ public Register16 BC_ {get; set;}
+
+ /// <summary>
+ /// The alternate DE' register.
+ /// </summary>
+ public Register16 DE_ {get; set;}
+
+ /// <summary>
+ /// The alternate HL' register.
+ /// </summary>
+ public Register16 HL_ {get; set;}
+ }
+}