diff options
Diffstat (limited to 'qtmips_gui/memorymodel.cpp')
-rw-r--r-- | qtmips_gui/memorymodel.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/qtmips_gui/memorymodel.cpp b/qtmips_gui/memorymodel.cpp index 597b88f..b88c5b7 100644 --- a/qtmips_gui/memorymodel.cpp +++ b/qtmips_gui/memorymodel.cpp @@ -199,11 +199,7 @@ void MemoryModel::check_for_updates() { update_all(); } -bool MemoryModel::adjustRowAndOffset(int &row, int optimal_row, std::uint32_t address) { - if (optimal_row < rowCount() / 8) - optimal_row = rowCount() / 8; - if (optimal_row >= rowCount() - rowCount() / 8) - optimal_row = rowCount() - rowCount() / 8; +bool MemoryModel::adjustRowAndOffset(int &row, std::uint32_t address) { row = rowCount() / 2; address -= address % cellSizeBytes(); std::uint32_t row_bytes = cells_per_row * cellSizeBytes(); |