A loop is implemented like this:
loop down:
mov ecx, 10 ; count from 10 to 0
label:
dec ecx
loop label
loop up:
xor ecx,ecx ; count from 0 to 10
label:
inc ecx
cmp ecx, 10
jne label
Now think how your algorithm works and how to apply this information.
4
solved Division by subtraction [closed]