Implement design in the java programming language, JAVA Programming

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

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.


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.

Posted Date: 4/13/2013 12:59:19 AM | Location : United States

Related Discussions:- Implement design in the java programming language, Assignment Help, Ask Question on Implement design in the java programming language, Get Answer, Expert's Help, Implement design in the java programming language Discussions

Write discussion on Implement design in the java programming language
Your posts are moderated
Related Questions
I want someone to fix some bugs in a java app Project Description: I have a small app in java, but it has some issues, the app is running. But we need to make it work more st

List the unexpected quotients in java? 2/3 = 0 3/2 = 1 1/0 = ArithmeticException 0/0 = ArithmeticException 1.0/0.0 = Inf 1.0/0 = Inf 0.0/0.0 = NaN -1.0/0.0

Describe The ? operator in Java langauge? The conditional operator just works for assigning a value to a variable, using a value within a method invocation, or in a few other w

Develop a Graphical Display Framework Project Description: The intent of this project is to prepare a web based graphical display framework that will display many data points

Define Array ? Indexed collections of variable of similar data types or we can say a Set of organized variables of similar type.

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?

State about the JVM? JVM is the acronym which stands for 'Java virtual machine'. JVM provides execution environment. JVM isn't platform independent. JVM is Java

what are the steps of object oriented programming language?

Write a program to add of doubles in java? Doubles are treated much the similar way, but now you obtain to use decimal points in the numbers. This is a same program which does

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