summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-10 14:59:22 -0400
committerbd <bdunahu@operationnull.com>2025-05-10 14:59:22 -0400
commitb384a584f5feaa05b77d7979cce9dad500bd1e2e (patch)
treeadc16491b2ebc8ddf0fc16e00aed2d53d9dc3d82 /src
parent2aabad6ed432831d6686700118cd189cb157e5cc (diff)
Fix new bug where s3 was not assigned with r type
Diffstat (limited to 'src')
-rw-r--r--src/id.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/id.cc b/src/id.cc
index e0e16c4..ebf6db6 100644
--- a/src/id.cc
+++ b/src/id.cc
@@ -158,8 +158,8 @@ void ID::decode_R_type(signed int &s1)
break;
default:
if (this->status == OK) {
- this->write_guard<signed int>(s3);
- this->curr_instr->operands.integer.slot_three = s3;
+ this->curr_instr->operands.integer.slot_three =
+ this->write_guard<signed int>(s3);
}
}
}