mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +03:00
[ARM7] Fixed unaligned 32-bit reads.
This commit is contained in:
parent
19b1a10219
commit
964f7a8429
@ -158,7 +158,7 @@ INLINE UINT32 arm7_cpu_read32(offs_t addr)
|
|||||||
|
|
||||||
if (addr & 3)
|
if (addr & 3)
|
||||||
{
|
{
|
||||||
result = program_read_dword_32le(addr);
|
result = program_read_dword_32le(addr & ~3);
|
||||||
result = (result >> (8 * (addr & 3))) | (result << (32 - (8 * (addr & 3))));
|
result = (result >> (8 * (addr & 3))) | (result << (32 - (8 * (addr & 3))));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user