Purchase Solution

An 8086 subroutine that multiplies two signed 16-bit values together without using the mul instruction.

Not what you're looking for?

Ask Custom Question

I'm trying to teach myself 8086 assembly. I need an example of how to use an assembly language subroutine, using only 16-bit registers, to multiply two signed 16-bit values together without using the mul instruction. My book gives the example below but doesn't give a clear explanation of how to use it:

a) clear the a register
b) place the multiplicand in the D register
c) do the next step 4 times (multiplying 4 bit numbers). if the left most bit of the D
register is a 1 then shift both registers to the left one bit, add the multiplier to the
A register, else shift both registers to the left one bit.

Purchase this Solution

Solution Preview

Please find the attached file as the solution to your problem.

Thanks and regards.

UPDATE FROM OTA:
The problem can be solved as,

first load two numbers in two different registers. if both the registers are of 16 bit then the result should be stored in a 32 bit register.

The concept of loading the values is same as in multi precision multiplication.

In case 32 bit registers, first we take the lower half(16 bit) and multiply it with the lower half of the ...

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Javscript Basics

Quiz on basics of javascript programming language.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.