Statement:Write an assembly language program to generate fibonacci number.
Home
8085 Forum
8085 Free Projects
8085 Free Programs
8085 Tutorials
8085 details
Interfacing Techniques
Electronic Tutorials
Electronic Projects
Assembler/ IDE
Datasheets
Guest Book
About Me
Source Program:

       MVI D, COUNT        : Initialize counter
       MVI B, 00                : Initialize variable to store previous number
       MVI C, 01                : Initialize variable to store current number
       MOV A, B                :[Add two numbers]
BACK: ADD C                        :[Add two numbers]
       MOV B, C                : Current number is now previous number
       MOV C, A                : Save result as a new current number
       DCR D                        : Decrement count
       JNZ BACK                : if count  0 go to BACK
       HLT                        : Stop.