Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started