Question: Your program will accept a program written in this assembly language (redirected from a file), parse the commands and load the instructions into the 100

This assignment has you create your own virtual computer with its own limited instruction set and assembly language. The prog

To simulate a real CPU, the VM has several registers: • Accumulator, which acts as a register that operations are performed u

Example Program: The following reads two values from the user and outputs the larger of the two 00 READ 9 01 READ 10 02 LOAD

15 Your Program Your program will accept a program written in this assembly language (redirected from a file), parse the comm

understands NULL, newline, and A-Z) Representing your computer The state of your computer is represented by the following dat

Your program will accept a program written in this assembly language (redirected from a file), parse the commands and load the instructions into the 100 word memory. If and only if this is successful, the loaded program will then be executed.

Need this code written in C Language 
 

This assignment has you create your own virtual computer with its own limited instruction set and assembly language. The program you write will accept as input programs written in this language, "compile" it into the computer's instruction set and execute the program.

Step by Step Solution

3.45 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

You need to start by creating your own instruction set for the computer and language for writing pro... View full answer

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 Accounting Questions!