Debugger: Fixed crash when displaying CPU/SA-1 instructions in the debugger for another cpu type (e.g CX4)
This commit is contained in:
parent
d4a9ed3677
commit
2abf39cda5
1 changed files with 2 additions and 2 deletions
|
@ -517,13 +517,13 @@ bool Disassembler::GetLineData(CpuType type, uint32_t lineIndex, CodeLineData &d
|
|||
state.K = (result.CpuAddress >> 16);
|
||||
|
||||
if(!disInfo.IsInitialized()) {
|
||||
disInfo = DisassemblyInfo(src.Data + result.Address.Address, state.PS, type);
|
||||
disInfo = DisassemblyInfo(src.Data + result.Address.Address, state.PS, lineCpuType);
|
||||
} else {
|
||||
data.Flags |= (result.Address.Type != SnesMemoryType::PrgRom || _cdl->IsCode(data.AbsoluteAddress)) ? LineFlags::VerifiedCode : LineFlags::UnexecutedCode;
|
||||
}
|
||||
|
||||
data.OpSize = disInfo.GetOpSize();
|
||||
data.EffectiveAddress = disInfo.GetEffectiveAddress(_console, &state, type);
|
||||
data.EffectiveAddress = disInfo.GetEffectiveAddress(_console, &state, lineCpuType);
|
||||
|
||||
if(data.EffectiveAddress >= 0) {
|
||||
data.Value = disInfo.GetMemoryValue(data.EffectiveAddress, _memoryDumper, memType, data.ValueSize);
|
||||
|
|
Loading…
Add table
Reference in a new issue