Build a MARIE simulator based on the C++ code given in class. Keep it simple, use separate integers for the opcode and its operand (address field). #include using namespace std; // INSTRUCTION SET (or...

Build a MARIE simulator based on the C++ code given in class. Keep it simple, use separate integers for the opcode and its operand (address field). #include using namespace std; // INSTRUCTION SET (or a super simple programming language // instruction = machine code <,num> const int CLR = 0; // CLR:acc = 0 const int ADD = 1; // add num: acc = acc + num const int MUL = 2; // mul num: acc = acc * num const int OUTPUT = 3; // cout #include #include using namespace std; // INSTRUCTION SET (or a super simple programming language // instruction = machine code <,num> const int CLR = 0; // acc = 0 const int ADD = 1; // acc = acc + num const int MUL = 2; // acc = acc * num const int OUTPUT = 3; // cout } // bottom of switch return 0;} #include #include using namespace std; // INSTRUCTION SET (or a super simple programming language // instruction = machine code <,num> const int CLR = 0; // acc = 0 const int ADD = 1; // acc = acc + num const int MUL = 2; // acc = acc * num const int OUTPUT = 3; // cout
May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here