Debugger: Fixed bug/crash when disassembling internal RAM content

This commit is contained in:
Souryo 2016-06-04 16:48:20 -04:00
parent f7aa61582b
commit e383b5d39f

View file

@ -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++;