Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a prototype of UVSim by using Visual Studio Online. AFIRM hired your company ED (Innovative EDucation) to develop a simulator called UVSim for computer

image text in transcribed
Develop a prototype of UVSim by using Visual Studio Online.
AFIRM hired your company ED (Innovative EDucation) to develop a simulator called UVSim for computer science students to learn machine language and computer architecture. Through the technique of software-based simulation the user can execute their machine-language programs the simulator. The Uvsim is a simple machine, but powerful. The Uvsim can only understand a machine language called Basic Machine Language, or BasicMLfor short. The Uvsim contains an accumulator -a register into which information is put before the Uvsim uses it in calculations or examines it in various ways. All the information in the UVSim is handled in terms of words. A word is a signed four-digit decimal number, such as 1234,-5678. The Uvsim is equipped with a 100-word memory, and these words are referenced by their location numbers 00, 01, 99. The BasicML program must be loaded into the main memory starting at location 00 before executing. Sim is also going to simulate Arithmetic Logic Unit (ALU) to let the students learn ALU architecture. The only operation the ALU can have is XOR and AND operation. The simulation need to simulate an n bit full adder. Missing Each instruction written in BasicML occupies one word of the UVSim memory (instruction are signed four-digit decimal number). We shall assume that the sign of a BasicML instruction is always plus, but the sign of a data word may be either plus or minus. Each location in the UVSim memory may contain an instruction, a data value used by a program or an unused area of memory. The first two digits of each BasicML instruction are the operation code specifying the operation to be performed. BasicML vocabulary defined as follow. i/o operation: Read a word from the keyboard inter a specific location in memory. WRITE 11 Missing Load/store operations. Load a word from a specific location in memory into the accumulator. LOAD 20 STORE 21 Missing Arithmetic operation: Add-30 Add a word from a specific location in memory to the word in the accumulator (leave the result in the accumulator) SUBTRACT 31 Missing DIVIDE 32 MULTIPLY 33 Missing Control operation BRANCH 40 Branch to a specific location in memory BRANCHNEG 41. Missing BRANCHZERO 42 Missing HALT Debugging operation: Print the memory image on the screen. MEMDUMP BREAK CONTINUE AFIRM hired your company ED (Innovative EDucation) to develop a simulator called UVSim for computer science students to learn machine language and computer architecture. Through the technique of software-based simulation the user can execute their machine-language programs the simulator. The Uvsim is a simple machine, but powerful. The Uvsim can only understand a machine language called Basic Machine Language, or BasicMLfor short. The Uvsim contains an accumulator -a register into which information is put before the Uvsim uses it in calculations or examines it in various ways. All the information in the UVSim is handled in terms of words. A word is a signed four-digit decimal number, such as 1234,-5678. The Uvsim is equipped with a 100-word memory, and these words are referenced by their location numbers 00, 01, 99. The BasicML program must be loaded into the main memory starting at location 00 before executing. Sim is also going to simulate Arithmetic Logic Unit (ALU) to let the students learn ALU architecture. The only operation the ALU can have is XOR and AND operation. The simulation need to simulate an n bit full adder. Missing Each instruction written in BasicML occupies one word of the UVSim memory (instruction are signed four-digit decimal number). We shall assume that the sign of a BasicML instruction is always plus, but the sign of a data word may be either plus or minus. Each location in the UVSim memory may contain an instruction, a data value used by a program or an unused area of memory. The first two digits of each BasicML instruction are the operation code specifying the operation to be performed. BasicML vocabulary defined as follow. i/o operation: Read a word from the keyboard inter a specific location in memory. WRITE 11 Missing Load/store operations. Load a word from a specific location in memory into the accumulator. LOAD 20 STORE 21 Missing Arithmetic operation: Add-30 Add a word from a specific location in memory to the word in the accumulator (leave the result in the accumulator) SUBTRACT 31 Missing DIVIDE 32 MULTIPLY 33 Missing Control operation BRANCH 40 Branch to a specific location in memory BRANCHNEG 41. Missing BRANCHZERO 42 Missing HALT Debugging operation: Print the memory image on the screen. MEMDUMP BREAK CONTINUE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions