예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public Z80DeviceState(Z80Cpu cpu)
 {
     if (cpu == null)
     {
         return;
     }
     AllowExtendedInstructionSet = cpu.AllowExtendedInstructionSet;
     Tacts                  = cpu.Tacts;
     Registers              = cpu.Registers;
     StateFlags             = cpu.StateFlags;
     UseGateArrayContention = cpu.UseGateArrayContention;
     IFF1          = cpu.IFF1;
     IFF2          = cpu.IFF2;
     InterruptMode = cpu.InterruptMode;
     MaskableInterruptModeEntered = cpu.MaskableInterruptModeEntered;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.EventArgs" /> class.
 /// </summary>
 public Z80EventArgs(Z80Cpu cpu)
 {
     Cpu = cpu;
 }