Пример #1
0
        /// <summary>
        /// Gets the EAR bit read from the tape
        /// </summary>
        /// <param name="cpuTicks"></param>
        /// <returns></returns>
        public bool GetEarBit(long cpuTicks)
        {
            if (_currentMode != TapeOperationMode.Load)
            {
                return(true);
            }
            var earBit = _tapePlayer?.GetEarBit(cpuTicks) ?? true;

            _beeperDevice.ProcessEarBitValue(true, earBit);
            return(earBit);
        }
Пример #2
0
        /// <summary>
        /// Gets the EAR bit read from the tape
        /// </summary>
        /// <param name="cpuTicks"></param>
        /// <returns></returns>
        public bool GetEarBit(long cpuTicks)
        {
            if (!IsInLoadMode)
            {
                return(true);
            }
            var earBit = _tapePlayer?.GetEarBit(cpuTicks) ?? true;

            _beeperDevice.ProcessEarBitValue(true, earBit);
            return(earBit);
        }