diff --git a/README b/README index cf8ef14..32bd8a1 100644 --- a/README +++ b/README @@ -65,6 +65,3 @@ The output contains instruction by instruction work done in each cycle in all st Developed by NAMAN GOYAL, 2015CSB1021 EESHAAN SHARMA, 2015CSB1011 - - - diff --git a/src/Core.cpp b/src/Core.cpp index 47a2f41..4ef8529 100644 --- a/src/Core.cpp +++ b/src/Core.cpp @@ -757,11 +757,11 @@ void Core::execute() { unsigned int count = temp_B; while(count){ if (temp_aluResult>>31 == 1){ - temp_aluResult>>1; + temp_aluResult = temp_aluResult>>1; temp_aluResult = temp_aluResult | 0x80000000; } else{ - temp_aluResult>>1; + temp_aluResult = temp_aluResult>>1; } count--; @@ -773,6 +773,7 @@ void Core::execute() { temp_aluResult = temp_A | temp_B; } + // NOT implemented using 1's Complement if (temp_isNot){ cout<<"NOT operation"<