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

  What is percentage of time processor is blocked due to dma

Consider a device of 50MBPS is operated in cycle stealing mode of DMA as and when 8byte word is available. It is transferred into the memory in 40ns.

  Oracle datatypes for the attributes

Choose Oracle datatypes for the following attributes from a normalized relation including:

  Steps add to the check list

According to your personal experience, what steps would you add to the check list and determine what steps would you leave out?

  The dining philosophers problem

Assume the Dining Philosophers problem. Explain the problems and assess what will happen if we allow the following code:a) Pick up chopstick on right, If chopstick on left is free, take it; else drop right chopstick. When done, drop both chopsticks.

  Gopher gallery consists of a shopping mall and a cart ride

gopher gallery consists of a shopping mall and a cart ride that covers the 150 acre habitat. there are m visitors and n

  Create a makefile called makefile

Create a makefile called Makefile based on all the .cpp files in the current directory

  In a table forma compare between segmentation and virtual

in a table forma compare between segmentation and virtual memory organizations in terms of the memory structure

  Enable multimedia on a website

Few multimedia can be hard to watch on a mobile device due to screen size or bandwidth limitations. Determine two articles that discuss considerations and new developments that will enable multimedia on a site

  The number of data items being manipulated

A function of n, the number of data items being manipulated. For each expression, determine the dominant term and then classify the algorithm in big-O terms.

  Are there any drawbacks to using embedded operating systems

An embedded computer system runs nearly every electronic device available today. Are there any drawbacks to using embedded operating systems

  The lamport''s clock and vector clock equations

If each process uses a different value for d in the Lamport's clock and vector clock equations, will the logical clocks and vector clocks schemes satisfy the total order relation => and the relation: a â--> b iff t^a

  How many total servers are needed

How many total servers are needed? Which roles will be combined - What edition of Windows will be used for each server

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