Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Give a fragement of the assembly code that implements the given pseudocode(desig

ID: 3678620 • Letter: G

Question

Give a fragement of the assembly code that implements the given pseudocode(design). Assume double word references to memeory and that count is in the ECX register.

a) sum = 0;

     count = 1;

      while(sum<1000) loop

              add count to sum;

              add 1 to count;

       endwhile;

b) sum = 0;

    count =1;

    while(sum<=1000) or (count>=0)loop

            add count to sum;

            subtract 1 to count;

    endwhile;

c) sum = 0;

    for count = 100 down to 50 loop

                 subtract 2*count from sum;

    endfor;

Explanation / Answer

1.

2.

3.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote