Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is the program that I have, but I have some comments in the program that ar

ID: 3796000 • Letter: T

Question

This is the program that I have, but I have some comments in the program that are written like this \...........** from the picture that is below, there are 7 comments in total that I need to fix or add something, but I don't know how to do it I don't really get what I need to do, can please someone help me??it is a 68K programming. The picture from above is the task...

Write a 68000 assembly language program to accept positive integer values M and om the keyboard, compute the value of Y using the formula, YOM,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 Ninto 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. I 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.

Explanation / Answer

in assembly language you can write comment this type for writing comments

you should follow below sytax

# then any comments

or write this type

# // and your comments

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote