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); }
public void registerMemoryAccess(UInt16 address, MemReadHandler hRead, MemWriteHandler hWrite) { registerMemoryAccess(address, address, hRead, hWrite); }