
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Print Table of Input Integer in 8086
In this program we will see how to generate table of an integer.
Problem Statement
Write 8086 Assembly language program to generate a table of input integer. The number is stored at 500H, and the table will be stored at 600 onwards.
Discussion
Table generation is basically the multiplication table creation. We are taking the number and initialize the counter as 0. In each step increasing the counter by 1, and multiply it with the number, then store it into the memory address. When counter becomes 0A (10 in decimal), then it stops.
Input
Address |
Data |
---|---|
… |
… |
500 |
4 |
… |
… |
Flow Diagram
Program
Output
Address |
Data |
---|---|
… |
… |
600 |
04 |
601 |
08 |
602 |
0C |
603 |
10 |
604 |
14 |
605 |
18 |
606 |
1C |
607 |
20 |
608 |
24 |
609 |
28 |
… |
… |
Advertisements