To write an assembly language program to store successive numbers from 00H to FFH in successive memory locations. - Code

Latest

programs

Thursday, October 13, 2011

To write an assembly language program to store successive numbers from 00H to FFH in successive memory locations.


STORING SUCCESSIVE NUMBERS

Aim: -   To write an assembly language program to store successive numbers from 00H to FFH in successive memory locations.
                      MOV AX, DATA
                      MOV DS, AX
                      XOR AL, AL
                      LEA SI, VAR
                      MOV CX, 0100
NEXT:        MOV [SI], AL
                   INC AL
                   INC SI
                   LOOP NEXT
                     END


Result: Successive numbers are stored in given successive memory locations from00H to FFH.

No comments:

Post a Comment