Computing the factorial of 10 using 8086 assembly
问题 I have been trying to solve this using assembly language. The thing is I cannot store the 10! In al and my code works for finding factorial of 5. How do I store my result of 10! In a register? When I find factorial of 5 I can see the result clearly in al because 120 can be stored in al . Any help would be appreciated. Here's my code for 5! org 100h .DATA ANS DB ? .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV AL,5 MOV CL,4 MOV BL,AL SUB BL,1 L: MUL BL SUB BL,1 LOOP L MOV ANS,AL END MAIN ret 回答1: