Google

Jun 14, 2008

Block data transfer program for 8086 assembly language

This program will move the block of data from one location to other location in the memory.
The program will work as follows
first lets take some counter as to how may locations has to be moved
then take a pointer and point to source location with a pointer H
then take a pointer D and point to destination memory
get the byte form source pointer and then store it in the destination pointer location
increment source and destination pointer value
decrement counter
check if counter is zero if not continue
else stop the program


MVI C,AH Initialize counter
LXI H,2200H
LXI D,2300H
BACK MOV A,M
STAX D
INX H
INX D
DCR C
JNZ BACK
HLT

You might be also interested in:

:: Traffic light control system using 8086
:: Assembly Language Program to serve NMI
:: Interfacing Stepper Motor to 8086 using 8255