mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-04-03 03:59:11 +00:00
another flipped args fix, this should help with CHIP_FASTPATH
This commit is contained in:
committed by
GitHub
parent
d75a2b144c
commit
27db4a412f
10
m68kcpu.h
10
m68kcpu.h
@@ -1446,8 +1446,8 @@ static inline void m68ki_write_16_fc(m68ki_cpu_core *state, uint address, uint f
|
||||
#ifdef CHIP_FASTPATH
|
||||
if (!state->ovl && address < 0x200000) {
|
||||
if (address & 0x01) {
|
||||
ps_write_8(value & 0xFF, address);
|
||||
ps_write_8((value >> 8) & 0xFF, address + 1);
|
||||
ps_write_8((uint32_t)address, value & 0xFF);
|
||||
ps_write_8((uint32_t)address + 1, (value >> 8) & 0xFF);
|
||||
return;
|
||||
}
|
||||
ps_write_16(address, value);
|
||||
@@ -1490,9 +1490,9 @@ static inline void m68ki_write_32_fc(m68ki_cpu_core *state, uint address, uint f
|
||||
#ifdef CHIP_FASTPATH
|
||||
if (!state->ovl && address < 0x200000) {
|
||||
if (address & 0x01) {
|
||||
ps_write_8(value & 0xFF, address);
|
||||
ps_write_16(htobe16(((value >> 8) & 0xFFFF)), address + 1);
|
||||
ps_write_8((value >> 24), address + 3);
|
||||
ps_write_8((uint32_t)address, value & 0xFF);
|
||||
ps_write_16((uint32_t)address + 1, htobe16(((value >> 8) & 0xFFFF)));
|
||||
ps_write_8((uint32_t)address + 3, (value >> 24));
|
||||
return;
|
||||
}
|
||||
ps_write_32(address, value);
|
||||
|
||||
Reference in New Issue
Block a user