// 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;} } }