Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

Students also viewed these Databases questions