Question: a) Write an MC68000 subroutine MUL_SUB and a macro MUL_MAC that implement unsigned multiplication of two 16 bit numbers without using the mulu or muls

a) Write an MC68000 subroutine MUL_SUB and a macro MUL_MAC that implement unsigned multiplication of two 16 bit numbers without using the mulu or muls instruction (for example, use multiple additions to implement multiplication). For the subroutine, pass parameters using data registers.

b) Write an MC68000 assembly program that reads two 16-bit numbers stored at memory locations X and Y, calls MUL_SUB and MUL_MAC and compares both results, then based on the outcome of the comparison displays a message: CORRECT or INCORRECT on the screen.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!