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

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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