diff --git a/Core/Debugger.cpp b/Core/Debugger.cpp index 823544a..0d145b6 100644 --- a/Core/Debugger.cpp +++ b/Core/Debugger.cpp @@ -465,6 +465,8 @@ AddressInfo Debugger::GetRelativeAddress(AddressInfo absAddress, CpuType cpuType MemoryMappings* mappings = nullptr; switch(cpuType) { case CpuType::Cpu: mappings = _memoryManager->GetMemoryMappings(); break; + case CpuType::Spc: break; + case CpuType::NecDsp: break; case CpuType::Sa1: mappings = _cart->GetSa1()->GetMemoryMappings(); break; case CpuType::Gsu: mappings = _cart->GetGsu()->GetMemoryMappings(); break; case CpuType::Cx4: mappings = _cart->GetCx4()->GetMemoryMappings(); break; diff --git a/Core/NecDspDebugger.cpp b/Core/NecDspDebugger.cpp index 3b03c18..e510571 100644 --- a/Core/NecDspDebugger.cpp +++ b/Core/NecDspDebugger.cpp @@ -32,7 +32,7 @@ void NecDspDebugger::Reset() void NecDspDebugger::ProcessRead(uint16_t addr, uint8_t value, MemoryOperationType type) { - AddressInfo addressInfo = { (uint32_t)addr, type == MemoryOperationType::ExecOpCode ? SnesMemoryType::DspProgramRom : SnesMemoryType::DspDataRom }; + AddressInfo addressInfo = { (int32_t)addr, type == MemoryOperationType::ExecOpCode ? SnesMemoryType::DspProgramRom : SnesMemoryType::DspDataRom }; MemoryOperationInfo operation { (uint32_t)addr, value, type }; if(type == MemoryOperationType::ExecOpCode) { diff --git a/Libretro/Makefile.common b/Libretro/Makefile.common index 9f541fc..c710729 100644 --- a/Libretro/Makefile.common +++ b/Libretro/Makefile.common @@ -80,6 +80,7 @@ SOURCES_CXX := $(LIBRETRO_DIR)/libretro.cpp \ $(CORE_DIR)/Msu1.cpp \ $(CORE_DIR)/Multitap.cpp \ $(CORE_DIR)/NecDsp.cpp \ + $(CORE_DIR)/NecDspDebugger.cpp \ $(CORE_DIR)/NecDspDisUtils.cpp \ $(CORE_DIR)/NotificationManager.cpp \ $(CORE_DIR)/NtscFilter.cpp \