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 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 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 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
- Assignment status: Already Solved By Our Experts
- (USA, AUS, UK & CA PhD. Writers)
- CLICK HERE TO GET A PROFESSIONAL WRITER TO WORK ON THIS PAPER AND OTHER SIMILAR PAPERS, GET A NON PLAGIARIZED PAPER FROM OUR EXPERTS
