Question

• Program the following function in assembly. Make sure to allow recursion. int fact (int n) ;this function is allowed to cal
0 0
Add a comment Improve this question Transcribed image text
Answer #1
 ;suppose DATA is being stored in A register. ;the function works in same fashion as the above specified code.   fact: DEC A ;decrementing A register  MUL A ;multipling with A register  MOV CL,A CMP CL,01 ;checking if CL == 1 if not calling the function recursively JNZ L1  
Add a comment
Know the answer?
Add Answer to:
• Program the following function in assembly. Make sure to allow recursion. int fact (int n)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT