/// <summary> /// Creates and add a new Z80 snapshot /// </summary> /// <param name="Z80">Z80 to take a snapshot on</param> /// <returns>The just created Z80 snapshot</returns> public Z80Shot Add(uP Z80) { Z80Shot z80Shot = new Z80Shot(Z80); _InnerCollection.Add(z80Shot); TrimCollection(); return(z80Shot); }
/// <summary> /// Create a new instance. The trace will be based on Z80 specified. During class creation /// The event OnFetch is catched to perform automatic snapshots /// </summary> /// <param name="Z80">Z80 to trace</param> public Z80HistoryTracer(uP Z80) : this() { this.Z80 = Z80; }
/// <summary> /// Creates a new Z80 shot based on uP status and memory specified /// </summary> /// <param name="Z80">Z80 system to shot</param> public Z80Shot(uP Z80) { _Status = Z80.Status.Clone(); _SPMemory = new MemoryShot(Z80.Memory, _Status.SP, 2); _PCMemory = new MemoryShot(Z80.Memory, _Status.PC, 10); }