mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
git-svn-id: http://svn.purei.org/purei/trunk@321 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
parent
cef8504b7f
commit
389ec6f042
11 changed files with 441 additions and 43 deletions
|
@ -203,7 +203,10 @@ void CMemoryMap_LSBF::SetHalf(uint32 nAddress, uint16 nValue)
|
|||
switch(e->nType)
|
||||
{
|
||||
case MEMORYMAP_TYPE_MEMORY:
|
||||
*(uint16*)&((uint8*)e->pPointer)[nAddress - e->nStart] = nValue;
|
||||
*reinterpret_cast<uint16*>(&reinterpret_cast<uint8*>(e->pPointer)[nAddress - e->nStart]) = nValue;
|
||||
break;
|
||||
case MEMORYMAP_TYPE_FUNCTION:
|
||||
e->handler(nAddress, nValue);
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue