Question: L 1 : mov eax, [ esi ] cmp eax, 5 0 jl skip ;if grade is less than 5 0 , skip to the

L1:
mov eax, [esi]
cmp eax, 50
jl skip ;if grade is less than 50, skip to the next iteration
sub eax, 50 ;subtract 50 from grade
mov edx, eax
add edx, 10 ;divide by 10 to get the number of stars to display
shr edx, 1
mov ecx, edx ;ecx is the number of stars to display
L2:
output stars
loop L2
skip:
add esi, 4 ;move to the next element in the array
loop L1

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!