Пример #1
0
        internal byte ReadMemory(ushort addr)
        {
            if (addr != LastAddress)
            {
                DistinctAccessCount++;
                LastAddress = addr;
            }

            _mapper.Bit13 = addr.Bit(13);
            var temp = _mapper.ReadMemory((ushort)(addr & 0x1FFF));

            MemoryCallbacks.CallReads(addr);

            return(temp);
        }
Пример #2
0
        public byte ReadMemory(ushort addr)
        {
            if (addr != LastAddress)
            {
                DistinctAccessCount++;
                LastAddress = addr;
            }

            _mapper.Bit13 = addr.Bit(13);
            var temp = _mapper.ReadMemory((ushort)(addr & 0x1FFF));

            CoreComm.MemoryCallbackSystem.CallRead(addr);

            return(temp);
        }
Пример #3
0
        private byte ReadMemory(ushort addr)
        {
            if (addr != _lastAddress)
            {
                DistinctAccessCount++;
                _lastAddress = addr;
            }

            _mapper.Bit13 = addr.Bit(13);
            var temp = _mapper.ReadMemory((ushort)(addr & 0x1FFF));

            _tia.BusState = temp;
            MemoryCallbacks.CallReads(addr);

            return(temp);
        }
Пример #4
0
        private byte ReadMemory(ushort addr)
        {
            if (addr != _lastAddress)
            {
                DistinctAccessCount++;
                _lastAddress = addr;
            }

            _mapper.Bit13 = addr.Bit(13);
            var temp = _mapper.ReadMemory((ushort)(addr & 0x1FFF));

            _tia.BusState = temp;
            var flags = (uint)(MemoryCallbackFlags.AccessRead);

            MemoryCallbacks.CallMemoryCallbacks(addr, 0, flags, "System Bus");

            return(temp);
        }