To write an assembly language program to find the factorial of the given number. - Code

Latest

programs

Thursday, October 13, 2011

To write an assembly language program to find the factorial of the given number.


FIBONACCI SERIES

Aim: -   To write an assembly language program to find the factorial of the given number.

                      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

Result: Fibonacci series of a given number is obtained.

No comments:

Post a Comment