Question: Assembly language loop instruction. Q. What will be the final value of EAX in this example? mov eax,0 mov ecx,10 ; outer loop counter L1:

Assembly language loop instruction.

Q. What will be the final value of EAX in this example?

mov eax,0

mov ecx,10 ; outer loop counter

L1:

mov eax,3

mov ecx,5 ; inner loop counter

L2:

add eax,5

loop L2 ; repeat inner loop

loop L1 ; repeat outer loop

Please show how it is done, if possible. Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!