Discover answers to your questions with Westonci.ca, the leading Q&A platform that connects you with knowledgeable experts. Get expert answers to your questions quickly and accurately from our dedicated community of professionals. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.
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
Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. We're glad you chose Westonci.ca. Revisit us for updated answers from our knowledgeable team.