Question #8899

Write an assembly language code to calculate the factorial of “7” using a subroutine and also attach the final snapshot of your AFD window.

Expert's answer

MOV CL, X
DEC CL
MOV BX, 00
INC BX
MOV A[BX], 01
MOV AL, 00
MOV DL, 01
L1: INC BX
ADD AL, DL
MOV A[BX], AL
MOV AL, DL
MOV DL, A[BX]
LOOP L1
END

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS