Programming language | My Assignment Tutor

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

QUALITY: 100% ORIGINAL PAPER – NO PLAGIARISM – CUSTOM PAPER

Leave a Reply

Your email address will not be published.