Write a program in the machine language of the simmac

Assignment Help Other Engineering
Reference no: EM13845496

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 thisassignment 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 st  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), anexecutable version of your SIMMAC, and the output generated from your SIMMAC programs running on your version of SIMMAC.

Reference no: EM13845496

Questions Cloud

Assembly of model airplane has a learning curve : Assembly of a model airplane has a learning curve of 80 percent. The estimated time to assemble a second identical model airplane is 40 hours. Determine approximately how much time will be required for:
Quality revolution in operations management : Which of the following is not an event or concept associated with the quality revolution in operations management that occurred during the 1970s, 1980s and 1990s?
Examples would be avoidance or collaboration : Think about a conflict you have experienced either in the workplace or in a significant personal relationship. Describe the situation briefly and consider which response to conflict was demonstrated by either you OR the other person in the conflict. ..
Calculate the standard entropy of given reaction : Calculate the standard entropy, ΔS°rxn, of the following reaction at 25.0°C using the data in this table. The standard enthalpy of the reaction, ΔH°rxn, is -633.1 kJ·mol-1.
Write a program in the machine language of the simmac : Write a program in the machine language of the SIMMAC
Observations falls outside control limits of control chart : If you see a sample of observations falls outside the control limits of a control chart,
Project teams often face problems with communication : If you calculate the person-hours devoted to IBM's team projects, they amount to more than 180,000 hours of management time each year. Do you think this is a wise investment of IBM's human resources? Why or why not? Multicultural project teams often ..
Explain customer satisfaction and customer loyalty : Analyze the distinction between customer satisfaction and customer loyalty. Also evaluate the significance of organizational branding and other aspects of marketing described in this week's Learning Resources. Explain how they relate to customer l..
Defined benefit plan-contemplating retirement : Andy is a participant in a qualified defined benefit plan and has been covered by this plan for 25 years. He is contemplating retirement and he is aware that the plan allows for permitted disparity using the excess method. Andy's current wages are $1..

Reviews

Write a Review

Other Engineering Questions & Answers

  What are the processes for developing a new mine

What are the processes for developing a new mine in Western Australia -  Schedule production for the mine detailed below to optimize copper concentrate at minimum mining cost using a maximum of five stopes operating at a time.

  Issue that has national and global implications

Describe environmental issue that has national and Global implications. For this issue, develop a Policy Initiative for a private organisation.

  Problems related to the efficiency of a transformer

What is the kVA rating of a transformer that has a secondary winding that's delivering 10 amps at 480 VAC?

  Describe the basic elements in a distillation process

Please describe the basic elements in a distillation process and what must be controlled in a distillation tower in order to ensure proper functioning of the distillation process?

  Concerning the effects of regular internet usage

According to a recent poll published in USA TODAY, roughly 54% of U.S. men and 33% of U.S. women believe in extraterrestial aliens. Of U.S. adults, roughly 48% are men and 52% are women.

  Show a meaningful block diagram

Show a meaningful block diagram and a brief description of its architecture and summarize the key architectural features of these microcontrollers that you, as a designer, view important.

  Personal health records concept in an organisation

How is Personal Health Records utilised in other organisations and what are the risks and what experiences are gained by other companies in using Personal Health Records

  It is important to include who worked on what questions on

working with your group detail the steps needed to monitor administrate and secure the network in regard to online

  Determine the vehicles aerodynamic drag coefficient

Using the supplied 3D model of the commercial vehicle available on Moodle and solidworks flowsimulation conduct a CFD analysis to determine the vehicles aerodynamic drag coefficient.

  Problems related to unctioning reinforced concrete pipe rcp

Calculate the Stations & Elevations for all of the U/S reaches including the transitions.

  Read the scenario below and answer the following

read the scenario below and answer the following questionsyou are working on an office automation project in the

  Problem - loan services at a bank

Will hiring the second loan expert decrease the average total time a customer spends in the bank for completing his/her loan request - Human Resources Manager suggested replacing the current loan expert with a new one.

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