Get the answers you need at Westonci.ca, where our expert community is always ready to help with accurate information. Get expert answers to your questions quickly and accurately from our dedicated community of professionals. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

Write a series of instructions that will multiply eax by 18, using a combination of shift, mov, and add instructions

Sagot :

MOV EBX,EAX

SHL EAX,4

SHL EBX,1

ADD EAX,EBX these are the  series of instructions that will multiply eax by 18, using a combination of shift, mov, and add instructions.

STEPS:

1. Copy EAX into another register, say EBX

2. We know that shift left by 'n' bits results in multiplication with 2^'n' , so perform shift left operation of EAX by 4 bits ( results in multiplication of EAX with 16) and perform shift left operation of EBX by 2 bits(results in multiplication of EBX with 2)

3. Now add EAX and EBX which is the required answer ( Since, i*16 + i*2 equals to i*18 )

INSTRUCTIONS:

mov ebx,eax ; make copy

shl eax,4 ; eax * 16

shl ebx,1 ; ebx * 2

add eax,ebx ; answer

Learn more about EAX  here

https://brainly.com/question/15170747

#SPJ4