Simmac language programs

Assignment Help Programming Languages
Reference no: EM13750066

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.

Reference no: EM13750066

Questions Cloud

Mission vision and value statements : How does a corporation determine what direction they will take in the marketplace? The first three elements of setting this direction are Mission Vision and Value Statements.
Gross margin is expressed : Gross margin is expressed as…
Compute the number of units sold : Naylor Company had $154,800 of net income in 2013 when the selling price per unit was $164, the variable costs per unit were $104, and the fixed costs were $570,600. Management expects per unit data and total fixed costs to remain the same in 2014. C..
Illustrate integrative learning in outlining the components : Illustrate integrative learning in outlining the components of the program, their importance and why the program should be developed. Integrate research from the course text, other academically appropriate resources, and personal experiences.
Simmac language programs : 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.
About the dividing partnership income : Determine the distribution of income and losses in the absence of a partnership agreement. Use the ratio of the partner’s original capital investment to distribute the net income. Use the stated percentage to determine the interest allowance. Distrib..
Times of rising prices : Question 1: The danger of lost buying power during times of rising prices is referred to as
Make your own top ten list that compares plato to aristotle : Make your own "Top Ten" list that compares Plato to Aristotle. In the Discussion Board, list their top three distinctions and name two contemporary personalities that you believe epitomize qualities of Plato and Aristotle.
Evaluate how your personal biases and assumptions : Evaluate how your personal biases and assumptions have affected your work in the past and how you plan to manage them in the future. Your final product will be in an MS Word document approximately 8-12 pages in length and utilizing approximately 4..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program for bucket sort containing method called sort

Columns indexed from 0 to n - 1, where n is the number of values to be sorted. Each row of the two-dimensional array is referred to as a bucket. Write a class named BucketSort containing a method called sort.

  Explain the use of xml dom

When the XMLHttpRequest object receives XML data, it parses and stores the data as an XML DOM object in the responseXML property. Why does the XML DOM used in the above example?

  Write a little man program that adds a column of input value

Write a Little Man program that adds a column of input values and produces the sum as output. An input value of zero will indicate the last value in the input stream of input values.

  Write application to use random-number to create sentences

Write an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.

  Explaining graphics as user experience on web sites

Graphics provide significant richness to the user experience on web sites. Discuss how each of these sites uses graphics in good or poor ways.

  Prepare class to include three data member

Prepare Class called Employee that includes three pieces of information as data members - first name (type string), last name (type string) and monthly salary (type float).

  Examine the boxplot

Examine the boxplot and briefly discuss the overall pattern of electricity usage for the households.

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Design the software architecture of a web auctioning site

Design the software architecture of a Web auctioning site and design a database for storing information about users, items, auctions and bids.

  Create a separate test directory

Use jUnit to write thorough unit tests for the Phone and Employee classes. Do not put test code in the src directory, instead, create a separate test directory.

  Create program which calculate distance travelled by boat

Create a program which calculate distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river.

  Writing application to accept loan amount-interest rate

Write down the application to accept a loan amount, annual interest rate, and loan period (in number of years) and displays a table with five columns.

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