Implement a program to simulate the operation

Assignment Help Operating System
Reference no: EM13845035

The following machine description will provide the basis for this assignment. You will create a virtual machine/operating system for the machine described below that will accept programs in the target machine language. The details for this assignment are presented below following the machine description.

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.

You must develop the following SIMMAC language programs to be run on your SIMMAC machine:

1) Write three programs in the machine language of the SIMMAC that will total the numbers stored in 20 different locations and place the result in a single location.

2) Write a program in the machine language of the SIMMAC that will decrement the value stored in location 201 (must be at least 100) by one until the result is zero. Store the result in location 202.

3) Write a program in the machine language of the SIMMAC that will increment the value stored in location 301 by two until the value has been increased by 200. Store the result in location 302.

Opcode Operand

You will be responsible for turning in the system design document, source code of your version of SIMMAC (this code must be appropriately commented & readable), an executable version of your SIMMAC, and the output generated from your SIMMAC programs running on your version of SIMMAC. These items are to be placed in ZIP format and submitted to the OS Problem Set Assignment in Blackboard Assignments.

Reference no: EM13845035

Questions Cloud

Project management literature review : please i need a reliable expert to attend to this, your expert have provided poor answer which have cost me alot in the past, please assign this to good expert if you what me to retain my membership.Literature review
Calculate summary statistics of one of the variables : Calculate summary statistics of one of the variables in the sample dataset of weight and height that's provided in Doc Sharing. Calculate the mean, median, and standard deviation.
Discuss how you might use a wbs in other aspects of your job : Present your WBS in a simple indented format. Discuss how you might use a WBS in other aspects of your job responsibilities, at home, or elsewhere
Prepare a set of uml class relationship diagrams : Give an initial list of candidate classes and responsibilities and give an initial set of CRC cards -  Prepare a set of 3 UML class relationship diagrams highlighting important relations among the discovered classes.
Implement a program to simulate the operation : Design and implement a program to simulate the operation of the SIMMAC - define the notion of an interrupt handler that will process a time quantum for ea ch running job.
Summerize the main points of the article : Summerize the main points of the article. If any of the points need to be dicussed further, please elaborate more on them in a few words
Will the data be stored for at least five years : Will the data be stored for at least 5 years? Are participant recruitment and data collection steps adequately described, such that the study's risks and burdens can be discerned?
Allow employees to feel less burdened : As organizations restructure and cut back on staff, a burden is placed on the employees who remain. Imagine that you work for an organization that has just cut back on staff and you, a remaining employee, are feeling overburdened with the extra work...
Current beliefs surrounding management : Please share some of your current beliefs surrounding Management. Based on your experience and from your perspective, do you feel managers - in general - are effective in their jobs? What are your experiences with managers? Could they do or have done..

Reviews

Write a Review

Operating System Questions & Answers

  Explain deadlock-avoidance system

What is the difference between a safe state and an unsafe state in a deadlock-avoidance system?

  Specific issues of total cost of ownership

Addresses the specific issues of total cost of ownership, training, support, performance, reliability, and application availability

  Recognizes similarities-differences of two file systems

Complete two file system schemas (Visio is suggested to draw the diagram of each schema). First must be OS on your PC. (NT, Windows 2 K or XP).

  How x25 kernel provide for user-level thread implementation

Detail the considerations that are involved in selecting a target operating system to serve as a potential host for the design and implementation of a virtual machine monitor that would support a specific guest operating system.

  How long should a system be idle to benefit from hibernating

If reading or writing a cache-line of size 64 bytes to Flash requires 2.56 ?J and DRAM requires 0.5 nJ, and if idle power consumption for DRAM is 1.6 W (for 8 GB), how long should a system be idle to benefit from hibernating? Suppose a main memory..

  Assume that the passwords were eight characters

Assume that the passwords were eight characters long but that the salt length was increased to 24 bits. Again, the salts (and the corresponding algorithms) are known to all users. What would be the expected time to find all users' passwords using ..

  Finding netbios information for a remote machine

Discuss the steps that you use to trouble your DNS issue in the client side and also find NetBIOS information for a remote machine.

  Ethics with computer hackers

White Hat Cracking engage security testing by arrangement. Grey Hat Cracking seeks to identify insecure systems and inform administrators or users of vulnerabilities.

  Differences between logical and physical security

With the help of analogy to explain the differences between logical and physical security to a nontechnical person.

  Using international project management as a topic1 use

using international project management as a topic1. use three different search engines to obtain information.2. how do

  Consider a small take-out food restaurant called burrito

consider a small take-out food restaurant called burrito brothers. this very popular establishment offers a very-tasty

  Calculate effective access time of system

Assuming fetches to main memory are started in parallel with look-ups in cache, calculate the effective (average) access time of this system.

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