Changed lots of stuff to try to see how to make the thing faster... But with no real success...

git-svn-id: http://svn.purei.org/purei/trunk@354 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
jpd002 2008-07-20 17:26:08 +00:00
parent 09b1ada7e4
commit 1ba2aa5dde
22 changed files with 855 additions and 624 deletions

View file

@ -34,7 +34,17 @@ void CMemoryMap::InsertInstructionMap(uint32 start, uint32 end, void* pointer, u
InsertMap(m_instructionMap, start, end, pointer, key);
}
void CMemoryMap::SetWriteNotifyHandler(WriteNotifyHandlerType WriteNotifyHandler)
CMemoryMap::MEMORYMAPELEMENT* CMemoryMap::GetReadMap(uint32 address)
{
return GetMap(m_readMap, address);
}
CMemoryMap::MEMORYMAPELEMENT* CMemoryMap::GetWriteMap(uint32 address)
{
return GetMap(m_writeMap, address);
}
void CMemoryMap::SetWriteNotifyHandler(const WriteNotifyHandlerType& WriteNotifyHandler)
{
m_WriteNotifyHandler = WriteNotifyHandler;
}
@ -78,23 +88,6 @@ CMemoryMap::MEMORYMAPELEMENT* CMemoryMap::GetMap(MemoryMapListType& memoryMap, u
}
}
return NULL;
/*
MEMORYMAPELEMENT* e;
CList<MEMORYMAPELEMENT>::ITERATOR It;
It = pMap->Begin();
e = (*It);
while(e != NULL)
{
if(nAddress <= e->nEnd)
{
if(!(nAddress >= e->nStart)) return NULL;
return e;
}
It++;
e = (*It);
}
return e;
*/
}
uint8 CMemoryMap::GetByte(uint32 nAddress)