Write a 68000 assembly language program to accept positive


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.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a 68000 assembly language program to accept positive
Reference No:- TGS02894536

Expected delivery within 24 Hours