AX contains a non-zer number. Count the number ofones it and the result back in ax. Repeat
Fantastic news! We've Found the answer you've been seeking!
Question:
AX contains a non-zer number. Count the number ofones it and the result back in ax. Repeat the proccess on theresult (AX) until AX contains one. For Example BX should contain 2in the following case.
AX= 1100 0101 1010 0011 (input - 8 ones)
AX = 0000 0000 0000 1000 (after first iteration - 1 one)
AX = 0000 0000 0000 0001 (after second Iteration) STOP
Q2: write a program in Assembly language to calculatethe factorial of a number. Where factorial is:
factorial (x) = x * (x-1)* (x-2) *.....1
factorial (0)= 1
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: