Implement design in the java programming language, JAVA Programming

Assignment Help:

Implement your design in the Java programming language. Your main program file must be called MIPSim.java.

Your simulator should implement the MIPS instruction set with the restrictions mentioned in the introduction. The test cases provided to you will exercise instructions of different formats, but not all instructions of each class. It would be wise to start by implementing just those instructions needed for the simple test cases, building up to a more complete set of instructions later. New examples may be provided nearer the submission deadline.

You may find it beneficial to split the work so that one partner concentrates on disassembly and monitoring output while the other partner concentrates on implementation of instructions. It would be wise to define interfaces for appropriate classes so that development can take place independently.

Your simulator should respond to commands on the standard input as follows. Only the first two characters are significant so commands could be shortened or even misspelt after the first two characters:

load "filename"

Reads in a MIPS program in file filename. Note: the filename must be enclosed in quotation marks. Each line of the file contains a 32-bit computer word expressed as eight hexadecimal characters. White space and text after the character ";" to end of line should be ignored. Blank lines should be ignored.

Any previously loaded program should be cleared. All registers are set to 0. The program counter is set to instruction 0. The memory of the simulated processor should be loaded with successive words starting at location 0.

dump

Prints a disassembled version of the program after a load command.

run [n]

Executes MIPS instructions using the current program counter until an exit syscall instruction is encountered, or, if a count is provided, n instructions have been executed. If no count is provided, the simulator should execute no more than 10,000 instructions before suspending the simulation in order to avoid loops.

step [n]

Executes a single MIPS instruction using the current program counter, or up to n instructions if a count is given. Prints a disassembled version of each instruction executed and displays the contents of non-zero registers once all instructions have been executed.


Related Discussions:- Implement design in the java programming language

Develop an employee application, Employee application Project Descriptio...

Employee application Project Description: Subsequent Technology should be used 1) UI (jsp, jstl ,html, etc) 2) Framework (Spring MVC and hibernate) 3) Database (MYSQ

Write names of the dos attacks phases, Write names of the DoS attack's phas...

Write names of the DoS attack's phases? DoS (Denail of service): DoS attach has in total 3 kinds of phases and below they are listed: 1. Search 2. Arm 3. Attack

#, Consider the following code? What input is needed for x in order for the...

Consider the following code? What input is needed for x in order for the sum variable that is output at the end of the code to be 12 ? (In other words: what do I need to make X be

I want prosport savings plans, I want ProSport Savings Plans Project Des...

I want ProSport Savings Plans Project Description: To prepare an application on iPhone, Mac, iPad and Android, which does the subsequent:- Provides a calculation of the am

List down the analytical engine''s elements name, List down the Analytical ...

List down the Analytical Engine's elements name An analytical engine elements are as follows: Input Memory Processor Output.

State about the garbage collection, Explain garbage collection. Java us...

Explain garbage collection. Java uses garbage collection to free the memory. By cleaning those objects which is no longer reference by any of the program. Step involve in clean

Write a java adb client, Write a Java ADB client to perform the following- ...

Write a Java ADB client to perform the following- The client will read the contents of the file - invoice.txt. The first line of the file will display the type of the currency. The

Windows registry, need a java program that can read and display the values ...

need a java program that can read and display the values from a windows registry

How we can changing the implementation, How we can changing the Implementat...

How we can changing the Implementation ? Suppose the Car class requires to be used in a simulation of New York City traffic in that each actual car on the street is represente

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd