mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
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:
parent
09b1ada7e4
commit
1ba2aa5dde
22 changed files with 855 additions and 624 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue