From e383b5d39fd8cdd756963565c88cf0d397745b96 Mon Sep 17 00:00:00 2001 From: Souryo Date: Sat, 4 Jun 2016 16:48:20 -0400 Subject: [PATCH] Debugger: Fixed bug/crash when disassembling internal RAM content --- Core/Disassembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Disassembler.cpp b/Core/Disassembler.cpp index f7ed8256..230c4e1c 100644 --- a/Core/Disassembler.cpp +++ b/Core/Disassembler.cpp @@ -201,7 +201,7 @@ string Disassembler::GetCode(uint32_t startAddr, uint32_t endAddr, uint16_t memo if(byteCount == 0) { output << std::hex << std::uppercase << memoryAddr << ":" << addr << "::" << ".db"; } - output << std::hex << " $" << std::setfill('0') << std::setw(2) << (short)source[addr]; + output << std::hex << " $" << std::setfill('0') << std::setw(2) << (short)source[addr&mask]; byteCount++; addr++;