Question: #include #include using namespace std; EightBitALU::EightBitALU ( ) { / / zero out operands for ( int i = 0 ; i < 8 ;

#include
#include
using namespace std;
EightBitALU::EightBitALU(){
// zero out operands
for (int i =0; i <8; i++){
operand1[i]= operand2[i]= false;
}
// zero out flags too
N = Z = C = V = false;
}
bool EightBitALU::getN() const { return N; }
bool EightBitALU::getZ() const { return Z; }
bool EightBitALU::getC() const { return C; }
bool EightBitALU::getV() const { return V; }
void EightBitALU::loadOperand1(const bool x[8]){
// FI\Epsilon : copy x into operand1
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!