mirror of
https://github.com/supleed2/ELEC40006-P1-CW.git
synced 2024-11-10 02:05:48 +00:00
Resolved ISA conflict
This commit is contained in:
parent
b527d5e77d
commit
64ca41b287
|
@ -217,7 +217,6 @@ string getInstructionHex(string instruction){
|
||||||
binary+="010101";
|
binary+="010101";
|
||||||
}else if(opcode=="ADO"){
|
}else if(opcode=="ADO"){
|
||||||
binary+="010110";
|
binary+="010110";
|
||||||
rs1="R0";
|
|
||||||
rs2="R0";
|
rs2="R0";
|
||||||
}else if(opcode=="SUB"){
|
}else if(opcode=="SUB"){
|
||||||
binary+="011000";
|
binary+="011000";
|
||||||
|
@ -225,7 +224,6 @@ string getInstructionHex(string instruction){
|
||||||
binary+="011001";
|
binary+="011001";
|
||||||
}else if(opcode=="SBO"){
|
}else if(opcode=="SBO"){
|
||||||
binary+="011010";
|
binary+="011010";
|
||||||
rs1="R0";
|
|
||||||
rs2="R0";
|
rs2="R0";
|
||||||
}else if(opcode=="MUL"){
|
}else if(opcode=="MUL"){
|
||||||
binary+="011100";
|
binary+="011100";
|
||||||
|
|
Loading…
Reference in a new issue