Program to simulate the operation of the simmac

Assignment Help Programming Languages
Reference no: EM131205311

The given 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 the machine description are attached below.

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 multi- tasking 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.

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.

Attachment:- machine description.rar

Verified Expert

The program was developed in JAVA. The second part of the assignment was to write 3 assembly language programs for SIMMAC and execute them in a multiprocessing environment using Round-Robin Scheduling.

Reference no: EM131205311

Questions Cloud

Performance estimates for those algorithms : What are the Big-O performance estimates for those algorithms? When is a linked list a good representation of a stack or a queue?
Uneasy about the cost reports : The company’s president is uneasy about the cost reports, what can be the reason?
Explain what a data breach is : Explain what a data breach is. Include a summary of legal and criminal issues related to data breaches. Support your explanation using at least two real-life examples of data breaches. Include citations from each of this module's readings.
Which of the two views should it support : Suppose that the government is committed to providing welfare eligibility to every family below the poverty line. If this government wishes to keep total spending to a minimum, which of the two views should it support?
Program to simulate the operation of the simmac : CISC 640 - OS Problem Set - 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.
The entry to record the customer returning : Horner Auto Supply originally sold $275 of goods to a charge customer. The entry to record the customer returning $125 of these goods is debit Sales $125 and credit Accounts Receivable $125. debit Sales Returns and Allowances $150 and credit Accounts..
Consumer confidence unexpectedly rises : Suppose that consumer confidence unexpectedly rises six months before the central bank detects the change or its magnitude. What happens to inflation and output in that six-month interval? How does monetary policy return the economy to long-run eq..
Evaluate alternatives to the company self-hosting the site : Discuss what it will take to build a Web architecture, move an existing Website with minimal downtime, and provide a disaster recovery solution to ensure the site is always available.
Create an abstract for the attached essay : Create an abstract for the attached essay. - The essay topic is: "RISE OF HEALTHCARE QUALITY" . - Add more substance to each of the sections in the essay.

Reviews

heb1205311

9/22/2016 3:07:11 AM

I have completed the main work. Only the documentation remains which I will finish soon. In the mean time, I am attaching the solution without the documentation. Please execute and let me know if any corrections are required. Execute: java -jar SIMMAC.jar Example : java -jar SIMMAC.jar 10 SIMMAC_PROGRAMS/Q1_1.sim SIMMAC_PROGRAMS/Q1_2.sim (The example command takes 10 as the time quantum for the Round Robin Scheduling and two programs for execution) I will also send the screenshots along with the documentation. Please let us know if you have any kind of query.

len1205311

9/14/2016 2:45:13 AM

I would like help with a homework assignment, need to understand the logic as the assignment is prepared. These items are to be placed in ZIP format and submitted to the OS Problem Set Assignment in Blackboard Assignments.Code must compile and run from the command line without modification and Submit a ZIP file with your assignment materials.

Write a Review

Programming Languages Questions & Answers

  Write a program to operate the barriers

The entrance to the car park is on the left hand side. When a car drives into the car park there is a sensor that detects the car and this should cause the barrier to be opened to allow the car in.

  Write program to match master and transaction methods

When writing a program to match master and transaction methods, what should happen when the value of the master key is equal to the transaction key?

  Write a program to create three identical list

Write a program to create three identical list, list1, list2, and list3, of 5000 elements. The program then sorts list1using quick sort, list 2 using insertion sort.

  Add comments to the different sections.

Add comments to the different sections.

  Based on the kercher 2009 article how can management tools

q1. based on the kercher 2009 article how can management tools for microsoft windows server 2008 automate user account

  Write program to compute amount of money

Write a program that computes the amount of money the computer club will receive from the proceeds of their candy sales project.

  Write a shell script to send customized mail message to user

Write a shell script to send a customized mail message to the users listed on the command line by login (user) name, only if they are currently logged on. If no users are listed on the command line, an error message should be printed.

  Create a script that requires your visitors to accept

If the check box is not selected, display an alert dialog box information the user that he or she must accept the terms. if the user clicks the Decline link, open the Declinepage.html document.

  Pseudocode for a program to solve mathematical problem

Pseudocode for a program to solve the following problem. A student borrows $3,000 at an interest rate 2% per month on the unpaid balance.

  Calculate display the area of a rectangle (length * width)

Use the input.txt file. Have it read in the number of records to work on. Then for each record read in a character. If it is a C then read in a value and calculate and display the area of a circle (pi*r 2 ), a R then read in two values and calculate ..

  Supporting activity and security personnel

Write a 100- to 200-word short-answer response for the following: Supporting Activity: Security Personnel. Do you think that security personnel require specific skills. Should security practices by an organization be used to prevent the misuse of ..

  Write program to prompt for and accept current salary

Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases.

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