From a00e548533eed5b1aead479e70a117eb05458a5f Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 8 Jan 2012 22:37:21 +0000 Subject: Added rest of ED opcodes and GPL fixed headers. --- .../Z80CpuEventArgs.cs | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs (limited to 'src/Noddybox.Emulation.EightBit.Z80/Z80CpuEventArgs.cs') 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 . +// +// Copyright (c) 2012 Ian Cowburn +// +using System; + +namespace Noddybox.Emulation.EightBit.Z80 +{ + /// + /// Represents events from the Z80. + /// + public class Z80CpuEventArgs : EventArgs + { + /// + /// The opcode that was executed to trigger the event. + /// + public byte Opcode {get; set;} + + /// + /// The current state of the accumulator. + /// + public byte A {get; set;} + + /// + /// The current state of the flag register. + /// + public Z80Flags F {get; set;} + + /// + /// The current state of the BC register pair. + /// + public Register16 BC {get; set;} + + /// + /// The current state of the DE register pair. + /// + public Register16 DE {get; set;} + + /// + /// The current state of the HL register pair. + /// + public Register16 HL {get; set;} + + /// + /// The current state of the stack pointer. + /// + public ushort SP {get; set;} + + /// + /// The current state of the program counter. + /// + public ushort PC {get; set;} + + /// + /// The alternate AF' register. + /// + public Register16 AF_ {get; set;} + + /// + /// The alternate BC' register. + /// + public Register16 BC_ {get; set;} + + /// + /// The alternate DE' register. + /// + public Register16 DE_ {get; set;} + + /// + /// The alternate HL' register. + /// + public Register16 HL_ {get; set;} + } +} -- cgit v1.2.3