mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 22:58:50 +00:00
WriteToConstRamAddress: support swap on 32 bit too
This commit is contained in:
parent
68d0a32ef9
commit
257b11366d
1 changed files with 4 additions and 1 deletions
|
@ -547,6 +547,9 @@ void EmuCodeBlock::WriteToConstRamAddress(int accessSize, Gen::X64Reg arg, u32 a
|
||||||
else
|
else
|
||||||
MOV(accessSize, MDisp(RBX, address & 0x3FFFFFFF), R(arg));
|
MOV(accessSize, MDisp(RBX, address & 0x3FFFFFFF), R(arg));
|
||||||
#else
|
#else
|
||||||
|
if (swap)
|
||||||
|
SwapAndStore(accessSize, M((void*)(Memory::base + (address & Memory::MEMVIEW32_MASK))), arg);
|
||||||
|
else
|
||||||
MOV(accessSize, M((void*)(Memory::base + (address & Memory::MEMVIEW32_MASK))), R(arg));
|
MOV(accessSize, M((void*)(Memory::base + (address & Memory::MEMVIEW32_MASK))), R(arg));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue