- Related Questions & Answers
- 8085 program to generate Fibonacci sequence
- Python Program to Display Fibonacci Sequence Using Recursion
- Generate Fibonacci Series
- 8086 program to generate AP series of n numbers
- 8086 program to generate G.P. series of n numbers
- The Fibonacci sequence in Javascript
- Fibonacci like sequence in JavaScript
- How to print the Fibonacci Sequence using Python?
- C++ Program to Generate Randomized Sequence of Given Range of Numbers
- Finding Fibonacci sequence in an array using JavaScript
- Generate an integer sequence in MySQL?
- C++ Program to Generate a Graph for a Given Fixed Degree Sequence
- C++ Program to Search Sorted Sequence Using Divide and Conquer with the Aid of Fibonacci Numbers
- C++ Program to Generate a Sequence of N Characters for a Given Specific Case
- C++ Program to Display Fibonacci Series

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Here we will see how to generate Fibonacci sequence using 8086

Write 8086 Assembly language program to generate Fibonacci sequence. The limit of the sequence is stored at location offset 500. The item will be stored from offset 600 onwards.

To generate Fibonacci sequence, we are putting the 00H and 01H into memory at first. Then we are taking the limit from location offset 500. The limit is decreased by 2 at first, because 00H and 01H is already present there. Now we are taking number from previous location, then add it with the value of current location, after that storing the result into next location.

Address | Data |
---|---|

… | … |

500 | E |

… | … |

Address | Data |
---|---|

… | … |

600 | 00 |

601 | 01 |

602 | 01 |

603 | 02 |

604 | 03 |

605 | 05 |

606 | 08 |

607 | 0D |

608 | 15 |

609 | 22 |

60A | 37 |

60B | 59 |

60C | 90 |

60D | E9 |

… | … |

Advertisements