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

Write a program to perform multiplication and division, Write a program to ...

Write a program to perform multiplication and division in java? Of course Java could also do multiplication and division. Because most keyboards don't have the times and divisi

Explain what is multilevel inheritance, Explain what is Multilevel Inherita...

Explain what is Multilevel Inheritance ? The Car-Motorcycle-MotorVehicle instances showed single-level inheritance. There's nothing to stop you from going next. You can describ

How to execute class with a main() method in a package, Example:  You have...

Example:  You have a class named "Set" in a project folder "e:\myProject" and package named com.zxy.client, will you be able to compile and execute it as it is

I want solution to this question., This assignment is based on the principl...

This assignment is based on the principles of clock consistency and associated drifts in a distributed system. You have to create a simulation, running on a single machine, of a si

Java developer with spring framework prerequisite, Java developer with spri...

Java developer with spring framework prerequisite from anywhere Let me know that you have proven experience in java with spring frame work. Send some sample data and provide inf

Create a simple object based gui application, Objective: create a simple o...

Objective: create a simple object, put that object in a simple collection class, use that object and collection in a simple GUI application. Specification:  Consider a Librar

Function and array in java script, Specifications 1. readNumberOfEntri...

Specifications 1. readNumberOfEntries → This function will ask the user for a value greater than or equal to two. The function will keep asking values as long as the user prov

Socket in java networking and rmi, What Is a Socket in Java Networking and ...

What Is a Socket in Java Networking and RMI? Ans) A socket is one end-point of a two-way communication link among two programs running on the network. A socket is bound to a por

Dijkstra''s algorithm, How can I convert Dijkstra''s algorithm to do max fl...

How can I convert Dijkstra''s algorithm to do max flow instead of min flow, and how can I implement it into Ford Fulkerson algorithm?

What restrictions are placed on method overriding, What restrictions are pl...

What restrictions are placed on method overriding? Overridden methods must have the similar name, argument list, and return type. The overriding method may not limit the access

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