Write an assembly language program to accept positive

Assignment Help Computer Engineering
Reference no: EM132101080

Please can someone help me to solve this exercise. I need to write a 68k assembly language program...

Write a 68000 assembly language program to accept positive integer values M and N from the keyboard, compute the value of Y using the formula, Y(M,N) = M times N plus 7 and print the result on the screen.

The computation of Y must occur in a subroutine and the input and output must be accomplished in the main program. To pass information between the main program and the subroutine, use registers. Before calling the subroutine, copy the value M into register D4 and N into register D5.

The subroutine will use the values it finds in D4 and D5 to compute Y, which it places into D6 before returning to the main program. Finally, the main program will display the value it finds in D6 as the result.

Example run:

Enter value of M: 4

Enter value of N: 2

Y(M,N) = 15

Enter value of M: 5

Enter value of N: 6

Y(M,N) = 37

Enter value of M: 0

The end!

Notice that entering zero will produce a clean end of the program's run. It should repeat indefinitely until the user enters 0 for M. You'll need to make sure the subroutine does not interfere with any information the main program needs.

Reference no: EM132101080

Questions Cloud

Calculates and displays the maximum grade in the array : Declare the structure named student composed of id (int), first (string), last (string), and grade (float).
Designing and implementing an hrd program : Describe the activities involved in designing and implementing an HRD program.
Hurwicz approach includes coefficient of optimum : Hurwicz approach includes a coefficient of optimum. Break even analysis help analysts in planning of production capacity.
Perform in the outside pavilion of the wolf trap foundation : The opera company was hired to perform in the outside pavilion of the Wolf Trap Foundation.
Write an assembly language program to accept positive : Write a 68000 assembly language program to accept positive integer values M and N from the keyboard, compute the value of Y using the formula.
What role do you play in the strategic planning process : As an employee of an organization, what role do you play in the strategic planning process?
Write Report on the UAE Oral History : Communication and media history Assignment - Write Report on the UAE Oral History
The admissibility of the oral agreement : What effect does the parol evidence rule have on the admissibility of the oral agreement to remove the ice house? Why this effect?
Major attribute of your personality : Briefly describe the single, major attribute of your personality and/or personal philosophy you think will best enable you to pursue successful business career

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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