Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Databases questions