diff options
| author | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-04-27 21:09:27 -0400 | 
|---|---|---|
| committer | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-04-27 21:09:27 -0400 | 
| commit | b50cb7048275f5b9255dea7f3ac1362aaa09fe83 (patch) | |
| tree | 9cf8726f40232d9f8114d7963867e3b5f18b27d1 /src/id.cc | |
| parent | 4f77c3161128ff965b26f9575853c5347c0d662d (diff) | |
Bug fixes
Diffstat (limited to 'src/id.cc')
| -rw-r--r-- | src/id.cc | 7 | 
1 files changed, 6 insertions, 1 deletions
@@ -253,6 +253,7 @@ void ID::decode_I_type(signed int &s1)  		s1 = GET_MID_BITS(s1, s0b, s1b);  		break;  	default: +		this->curr_instr->operands.integer.slot_three = s3;  		s2 = GET_MID_BITS(s1, s0b, s1b);  		s1 = GET_LS_BITS(s1, s0b);  	} @@ -312,6 +313,10 @@ void ID::decode_J_type(signed int &s1)  		[[fallthrough]];  	default:  		this->status = this->read_guard(s1); -		this->curr_instr->operands.integer.slot_one = s1; +		if(this->status == OK){ +			this->curr_instr->operands.integer.slot_one = s1; +			this->curr_instr->operands.integer.slot_two = s2; +			this->curr_instr->operands.integer.slot_three = s3;	 +		}  	}  }  | 
