Write a java program that simulates a small cpu vm

Assignment Help JAVA Programming
Reference no: EM13843152

Question: Write a Java program that simulates a small CPU VM. The program dose not need a GUI. just displaying to the terminal, and outputting to a text file. I have enclose the described of the program and the file it will need to read. If you are able to help let me know thank you.

Project Description

Design and implement a program to simulate the operation of the SIMMAC based on the descriptions above.

Add a HALT instruction that dumps the contents of all registers and memory and then prints an "End of Job" message.

Your project must implement multi-tasking in a single queue using a round-robin scheduling discipline. You will implement process entities (jobs) that will allow your machine to run several SIMMAC machine-language programs. In order to do this you will define a Process Control Block (PCB) data structure that will be created for each job in your system. For this assignment assume each SIMMAC instruction is equivalent to one clock cycle. Additionally the time quantum value for round-robin scheduling is an integer multiple of a clock cycle.

The quantum value is to be set on the command line or prompted for during initialization. You will define the notion of an interrupt handler that will process a time quantum for each running job. On each job switch, you will print some state information such as which job will be loaded and the current state of the job queues.

Your version of SIMMAC will then run multiple SIMMAC machine language programs simultaneously. These programs will test the ability of your SIMMAC to handle multitasking and scheduling. You must design your system such that all SIMMAC machine programs are loaded from text files.

The SIMMAC must be designed to take command line arguments or to prompt for input files in addition to the previously specified items. By this mechanism, all SIMMAC language programs will be loaded. Since there is the LDI command, all data can be loaded into SIMMAC memory using SIMMAC programming statements.

Reference no: EM13843152

Questions Cloud

Assuming no existing inventories or scheduled receipts : What is the lead time (in weeks) to respond to a customer order for product A, based on the BOM shown, assuming no existing inventories or scheduled receipts?
Strategic frame assessment : Review "How Do We Describe a Firm's Strategy?" Write an executive memo for your project firm, Proctor & Gamble's Organization 2005. Communicate the findings from your preliminary analysis of the organization's strategy. Identify and analyze the firm'..
Cost of dell computer reflects inventory costs : What percentage of cost of a Dell computer reflects inventory costs? Assume Dell’s yearly inventory cost is 40 percent to account for the cost of capital for financing the inventory, the warehouse space, and the cost of obsolescence.
Corporations will less likely to act in socially responsible : Explain why you agree or disagree with the following proposition: "Corporations will be less likely to act in socially responsible ways if there is either too much, or too little competition."
Write a java program that simulates a small cpu vm : Design and implement a program to simulate the operation of the SIMMAC based - dumps the contents of all registers and memory and then prints an "End of Job" message.
Implementing logistics measurement system : Discuss some of the key considerations for a logistics manager who is designing and implementing a logistics measurement system in his or her organization.
Most beneficial to logistics management : What advances in telecommunications technology do you view as being most beneficial to logistics management? Why?
Analyzing resources and capabilities of the firm : Analyze the key resources and core capabilities of Proctor and Gamble Organization 2005. Identify the functional areas of the firm's organization or the activities in the value chain where the key resources and core capabilities reside (Classifying C..
Summarize the goals of the tobacco industry research : Watch the "Cozy Killer: The History of Cigarettes" video. (http://digital.films.com/PortalViewVideo.aspx?xtid=36094). Summarize the goals of the tobacco industry's research. Discuss the advantages and limitations of replication in the tobacco industr..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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