Exemple #1
0
 /// <summary>
 /// Gets the state of the registers in Intel 8080 format.
 /// </summary>
 /// <exception cref="NotSupportedException">The implementation must have Intel 8080 style registers. I.e. not be a Z80.</exception>
 /// <returns></returns>
 public Intel8080RegisterState GetIntel8080RegisterState()
 =>
 new Intel8080RegisterState(GeneralPurposeRegisters.GetRegisterState(),
                            AccumulatorAndFlagsRegisters.GetRegisterState(),
                            StackPointer,
                            ProgramCounter,
                            InterruptFlipFlop1,
                            InterruptFlipFlop2,
                            InterruptMode);
Exemple #2
0
 /// <summary>
 /// Gets the state of the registers in Z80 format.
 /// Non-applicable state fields are filled with 0's.
 /// </summary>
 /// <returns></returns>
 public Z80RegisterState GetZ80RegisterState()
 =>
 new Z80RegisterState(GeneralPurposeRegisters.GetRegisterState(),
                      default(GeneralPurposeRegisterState),
                      AccumulatorAndFlagsRegisters.GetRegisterState(),
                      default(AccumulatorAndFlagsRegisterState),
                      false,
                      false,
                      0,
                      0,
                      0,
                      0,
                      StackPointer,
                      ProgramCounter,
                      InterruptFlipFlop1,
                      InterruptFlipFlop2,
                      InterruptMode);