8051 Assembly Program Code for Fibonacci Series - AT89C51 - Keil
The program is compiled in Keil for 8051 - AT89C51 in assembly language.
Program to generate Fibonacci series,
Flowchart:-
Program:-
ORG 0000H
MOV R3,30H
MOV R1,#40H
MOV @R1,#00H
INC R1
MOV R0,#42H
DEC R3
DEC R3
DEC R1
LOOP : MOV A,@R1
INC R1
ADD A,@R1
MOV @R0,A
INC R0
DJNZ R3,LOOP
SJMP $
END
Output:-
For more ASM programs - click here