示例#1
0
        /// <summary>
        /// Raised when a new instruction in performed
        /// </summary>
        private void _Z80_OnFetch()
        {
            Z80Shot z80Shot = _Z80Shots.Add(_Z80);

            if (OnShotAdd != null)
            {
                OnShotAdd(z80Shot);
            }
        }
示例#2
0
        /// <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);
        }