Skip to content

Commit

Permalink
Fix high range byte for reads
Browse files Browse the repository at this point in the history
  • Loading branch information
slacrherbst committed Jul 23, 2024
1 parent d9bf4d9 commit f64ca19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rogue/interfaces/memory/Block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ void rim::Block::intStartTransaction(uint32_t type, bool forceWr, bool check, ri
if (type == rim::Read || type == rim::Verify) {
if (index < 0 || index >= var->numValues_) {
lowByte = var->lowTranByte_[0];
highByte = var->highTranByte_[0];

if ( var->numValues_ == 0 ) highByte = var->highTranByte_[0];
else highByte = var->highTranByte_[var->numValues_-1];
} else {
lowByte = var->lowTranByte_[index];
highByte = var->highTranByte_[index];
Expand Down

0 comments on commit f64ca19

Please sign in to comment.