示例#1
0
        public void registerMemoryAccess(UInt16 addrStart, UInt16 addrEnd, MemReadHandler hRead, MemWriteHandler hWrite)
        {
            m_MemAccIndex++;

            MemoryAccess ma = new MemoryAccess();

            ma.addrStart = addrStart;
            ma.addrEnd   = addrEnd;
            ma.doRead    = hRead;
            ma.doWrite   = hWrite;

            for (int i = addrStart; i <= addrEnd; i++)
            {
                m_ramIndirect[i] = m_MemAccIndex;
            }

            m_MemAcc.Add(m_MemAccIndex, ma);
        }
示例#2
0
 public void registerMemoryAccess(UInt16 address, MemReadHandler hRead, MemWriteHandler hWrite)
 {
     registerMemoryAccess(address, address, hRead, hWrite);
 }