mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
Debugger: WS - Fixed "freeze" memory not working
This commit is contained in:
parent
604f1a6fc9
commit
460ea81ca3
1 changed files with 7 additions and 5 deletions
|
@ -129,14 +129,16 @@ public:
|
|||
Write<uint8_t>(seg, offset + 1, (uint8_t)(value >> 8));
|
||||
} else {
|
||||
Exec();
|
||||
_emu->ProcessMemoryWrite<CpuType::Ws, 2>(addr, value, opType);
|
||||
InternalWrite(addr, (uint8_t)value);
|
||||
InternalWrite(((seg << 4) + (uint16_t)(offset + 1)) & 0xFFFFF, value >> 8);
|
||||
if(_emu->ProcessMemoryWrite<CpuType::Ws, 2>(addr, value, opType)) {
|
||||
InternalWrite(addr, (uint8_t)value);
|
||||
InternalWrite(((seg << 4) + (uint16_t)(offset + 1)) & 0xFFFFF, value >> 8);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Exec();
|
||||
_emu->ProcessMemoryWrite<CpuType::Ws>(addr, value, opType);
|
||||
InternalWrite(addr, value);
|
||||
if(_emu->ProcessMemoryWrite<CpuType::Ws>(addr, value, opType)) {
|
||||
InternalWrite(addr, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue