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

  The professional societies in engineering issues

What are the professional societies in engineering and what do they offer their members?

  State multiprogramming and multiprocessing for same problems

It is stated that multiprogramming and multiprocessing present the same problems, with respect to concurrency. This is true as far as it goes. However, cite two differences in terms of concurrency between multiprogramming and multiprocessing.

  What is the diameter of the water tower

What is the diameter of the water tower?

  Write procedures to manipulate queues

Write a procedure (make-queue) that produces independent first-in-first-out queue objects, using a message-passing style.

  New keynesian model with technology shocks consider a new

new keynesian model with technology shocks consider a new keynesian economy with equilibrium conditions given bywhere

  Radio frequency identification

Topic is on RFID (Radio Frequency Identification) RFID Privacy and Security

  Games of all kinds are the result of a process that

you will explore a game through the lens set up by the weekly material.games of all kinds are the result of a process

  Aviation project

Preparation is the key to giving an effective presentation and to controlling your nervousness. Know your topic well. You will be the expert on the topic in the classroom

  The completion of this assignment will entail the design of

the completion of this assignment will entail the design of the structural fire protection for a simple warehouse

  Solve a spreadsheet model for the problem

Mathematically formulate a linear programming model for the problem and formulate and solve a spreadsheet model for the problem.

  A medical infusion pump operates in the following mannerthe

a medical infusion pump operates in the following mannerthe user selects the infusion rate between 00.0 and 99.9 ml per

  Draw a plan of a typical strip mine

Draw a plan of a typical strip mine showing all operational features and equipment.

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