Presentation is loading. Please wait.

Presentation is loading. Please wait.

Array : To store multiple value in one variable, “but value must be homogenous or similar type” is called array. We can say in other word Arrangement of.

Similar presentations


Presentation on theme: "Array : To store multiple value in one variable, “but value must be homogenous or similar type” is called array. We can say in other word Arrangement of."— Presentation transcript:

1 Array : To store multiple value in one variable, “but value must be homogenous or similar type” is called array. We can say in other word Arrangement of similar type of data in memory in one variable is called array. Memory address Content /data Index Number

2 Program.-(12)* Write a program to input 10 number in array and display 10 numbers from array. 1Declare array of ten elements 2Store 10 into CX 3Assign Base Address of array into SI 4Input a number in AL 5Store AL to SI 6Increment in SI 7If CX !=0 Then go to step 4 8 Again Store 10 into CX 9Assign Base Address of array into SI 10Display value of SI 11 Increment in SI 12 if CX != 0 then go to step End of program

3 .model small.stack 100h.data array db 10 dup(0).code main proc mov mov ds,ax lea si,array mov cx,10 top: mov ah,2 mov dl,0dh int 21h mov dl,0ah int 21h mov ah,1 int 21h sub al,30h mov [si],al inc si loop top lea si,array mov cx,10 mov ah,2 Top1: mov dl,[si] add dl,30h int 21h inc si loop top1 mov ah,4ch int 21h Main endp End main


Download ppt "Array : To store multiple value in one variable, “but value must be homogenous or similar type” is called array. We can say in other word Arrangement of."

Similar presentations


Ads by Google