Design a program to simulate the operation of the simmac

Assignment Help Operating System
Reference no: EM131500942

OS Problem Set -

Introduction

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.

MICROPROGRAMMING/MACHINE DISCRIPTION

The following is a description of a machine called SIMMAC that contains the following:

512 32-bit words of memory (memory is word addressable).

Each Instruction consists of a 16-bit opcode and a 16-bit operand.

An ALU for performing mathematical operations.

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.

Attachment:- Assignment File.rar

Verified Expert

The task consisted of writing 3 programs. The instruction set to be used to write the programs was mentioned by the client. I designed the algorithm for the program and wrote the program. The assumptions made are stated in the assignment.

Reference no: EM131500942

Questions Cloud

Would the yield to maturity have been the most likely return : Would the yield to maturity have been the most likely return, or would the yield to call have been most likely?
Explain why banks are inherently unstable : Explain why banks are inherently unstable
A perpetuity has an original face value : A perpetuity has an original face value of $1,000.00 and original yield of 6%.
What is cost of common equity : Summerdahl Resorts' common stock is currently trading at $27.00 per share. What is the cost of common equity?
Design a program to simulate the operation of the simmac : CISC 640 OS Problem Set. Design and implement a program to simulate the operation of the SIMMAC based on the descriptions above
Bonds in his portfolio that both have face value : An investor has two bonds in his portfolio that both have a face value of $1,000 and pay a 9% annual coupon.
What is the lemons problem : What is the “lemons” problem? How does it apply to existing loans that one bank might try to sell to another?
Cash flows for capital budgeting projects : The process of estimating cash flows for capital budgeting projects is very subjective and relies upon the discretion of those involved.
What is nominal yield to call-nominal yield to maturity : A firm's bonds have a maturity of 10 years with a $1,000 face value, have an 8% semiannual coupon, What is their nominal yield to maturity?

Reviews

inf1500942

6/14/2017 5:10:20 AM

Please assign this to someone who can complete this entire project. Thanks in advance 1. The system design document 2. Source code of the version of SIMMAC (this code must be appropriately commented & readable) 3. An executable version of your SIMMAC 4. The output generated from your SIMMAC programs running on your version of SIMMAC.

len1500942

5/19/2017 12:25:46 AM

Subject: Operating System. Each line of any SIMMAC program must have the following format: 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.

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