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

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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