Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Z80RegisterState"/> class.
 /// </summary>
 /// <param name="generalPurposeRegisterState">State of the primary general purpose registers.</param>
 /// <param name="alternativeGeneralPurposeRegisterState">State of the alternative general purpose registers.</param>
 /// <param name="accumulatorAndFlagsRegisterState">State of the primary accumulator and flags registers.</param>
 /// <param name="alternativeAccumulatorAndFlagsRegisterState">State of the alternative accumulator and flags registers.</param>
 /// <param name="isGeneralPurposeAlternative">if set to <c>true</c> [the general purpose registers are set to their alternative values].</param>
 /// <param name="isAccumulatorAndFlagsAlternative">if set to <c>true</c> [the accumulator and flags registers are set to their alternative values].</param>
 /// <param name="ix">The IX register.</param>
 /// <param name="iy">The IY register.</param>
 /// <param name="i">The I (interrupt vector) register.</param>
 /// <param name="r">The R (memory refresh) register.</param>
 /// <param name="stackPointer">The SP (stack pointer) register.</param>
 /// <param name="programCounter">The PC (program counter) register.</param>
 /// <param name="interruptFlipFlop1">if set to <c>true</c> [interrupt flip flop 1 is set].</param>
 /// <param name="interruptFlipFlop2">if set to <c>true</c> [interrupt flip flop 2 is set].</param>
 /// <param name="interruptMode">The interrupt mode.</param>
 public Z80RegisterState(GeneralPurposeRegisterState generalPurposeRegisterState,
                         GeneralPurposeRegisterState alternativeGeneralPurposeRegisterState,
                         AccumulatorAndFlagsRegisterState accumulatorAndFlagsRegisterState,
                         AccumulatorAndFlagsRegisterState alternativeAccumulatorAndFlagsRegisterState,
                         bool isGeneralPurposeAlternative,
                         bool isAccumulatorAndFlagsAlternative,
                         ushort ix,
                         ushort iy,
                         byte i,
                         byte r,
                         ushort stackPointer,
                         ushort programCounter,
                         bool interruptFlipFlop1,
                         bool interruptFlipFlop2,
                         InterruptMode interruptMode)
     : base(
         generalPurposeRegisterState,
         accumulatorAndFlagsRegisterState,
         stackPointer,
         programCounter,
         interruptFlipFlop1,
         interruptFlipFlop2,
         interruptMode)
 {
     AlternativeGeneralPurposeRegisterState      = alternativeGeneralPurposeRegisterState;
     AlternativeAccumulatorAndFlagsRegisterState = alternativeAccumulatorAndFlagsRegisterState;
     IsGeneralPurposeAlternative      = isGeneralPurposeAlternative;
     IsAccumulatorAndFlagsAlternative = isAccumulatorAndFlagsAlternative;
     IX = ix;
     IY = iy;
     I  = i;
     R  = r;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Intel8080RegisterState"/> class.
 /// </summary>
 /// <param name="generalPurposeRegisterState">State of the primary general purpose registers.</param>
 /// <param name="accumulatorAndFlagsRegisterState">State of the primary accumulator and flags registers.</param>
 /// <param name="stackPointer">The SP (stack pointer) register.</param>
 /// <param name="programCounter">The PC (program counter) register.</param>
 /// <param name="interruptFlipFlop1">if set to <c>true</c> [interrupt flip flop 1 is set].</param>
 /// <param name="interruptFlipFlop2">if set to <c>true</c> [interrupt flip flop 2 is set].</param>
 /// <param name="interruptMode">The interrupt mode.</param>
 public Intel8080RegisterState(GeneralPurposeRegisterState generalPurposeRegisterState,
                               AccumulatorAndFlagsRegisterState accumulatorAndFlagsRegisterState,
                               ushort stackPointer,
                               ushort programCounter,
                               bool interruptFlipFlop1,
                               bool interruptFlipFlop2,
                               InterruptMode interruptMode)
 {
     GeneralPurposeRegisterState      = generalPurposeRegisterState;
     AccumulatorAndFlagsRegisterState = accumulatorAndFlagsRegisterState;
     StackPointer       = stackPointer;
     ProgramCounter     = programCounter;
     InterruptFlipFlop1 = interruptFlipFlop1;
     InterruptFlipFlop2 = interruptFlipFlop2;
     InterruptMode      = interruptMode;
 }