2. Do the following problems: a. Write an assembly code fragment to put the sum 1 + 6 + 11 + ... + 251 into EAX b. Write
Posted: Fri May 20, 2022 4:31 pm
2. Do the following problems: a. Write an assembly code fragment to put the sum 1 + 6 + 11 + ... + 251 into EAX b. Write an assembly code fragment to divide EAX by EBX and put the quotient in ECX, using the following algorithm of doing division of non-negative numbers by repeated subtraction: Initialize quotient to o While (dividend >= divisor) { Increment quotient Subtract divisor from dividend }