- Related Questions & Answers
- 8086 program to generate AP series of n numbers
- 8086 program to find average of n numbers
- 8086 program to determine cubes of numbers in an array of n numbers
- 8086 program to determine squares of numbers in an array of n numbers
- 8086 program to find sum of Even numbers in a given series
- 8086 program to find sum of odd numbers in a given series
- Java Program to generate n distinct random numbers
- 8086 program to generate Fibonacci Sequence
- 8086 program to determine largest number in an array of n numbers
- Generate Fibonacci Series
- Java program to generate random numbers
- 8085 program to count total even numbers in series of 10 numbers
- 8085 program to count total odd numbers in series of 10 numbers
- 8086 program to multiply two 8-bit numbers
- 8086 program to multiply two 16-bit numbers

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

In this program we will see how to find GP series using 8086.

Write 8086 Assembly language program to find GP series. The limit of the series is stored at 500, First term is stored at 501, and the common ratio is stored at 502.

GP generation is simple task. We are taking the limit as counter value, the first term is loaded into AL first, then the BL is holding the common ratio r. Now the result is storing memory offset 600 onwards. The AL is placing as it is, then repeatedly multiply BL with AL and store it into memory to generate the sequence.

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

… | … |

500 | 4 |

501 | 3 |

502 | 4 |

… | … |

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

… | … |

600 | 03 |

601 | 0C |

602 | 30 |

603 | C0 |

… | … |

Advertisements