Aim: – To write an assembly language program to store successive numbers from 00H to FFH in successive memory locations.
1 2 3 4 5 6 7 8 9 10
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.
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
Copyright©2012 electrofriends.com All Rights Reserved