Make memory map range exclusive
MODIFY
src/io/memorymapmodel.cpp
src/io/memorymapmodel.cpp
@@ -63,11 +63,12 @@ QVariant MemoryMapModel::data(const QModelIndex &index, int role) const {
case Column::AddressRange: {
switch (role) {
case Qt::DisplayRole:
+ // Display memory range as (first @ - last @) (exclusive range).
return encodeRadixValue(memoryMapEntry->first, Radix::Hex,
ProcessorHandler::currentISA()->bytes()) +
" - " +
encodeRadixValue(
- memoryMapEntry->first + memoryMapEntry->second.size,
+ memoryMapEntry->first + memoryMapEntry->second.size - 1,
Radix::Hex, ProcessorHandler::currentISA()->bytes());
case Qt::FontRole:
return QFont(Fonts::monospace, 11);

Make memory map range exclusive #249