Exemplo n.º 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;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.EventArgs" /> class.
 /// </summary>
 public Z80EventArgs(Z80Cpu cpu)
 {
     Cpu = cpu;
 }