8086 program to print the table of input integer

MicroprocessorMicrocontroller8086

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

 

 

 

 

 

 

 

 

 

raja
Published on 11-Jun-2019 08:11:43
Advertisements