Google

Sep 13, 2008

Moving a bock of data from one location to another using assembly language

Following is the program code for Moving a bock of data from one location to another using assembly language . The size is initally stored in SI register and then SI is incremented to accept input number(s). Then the number is moved to AX and then to DI register. DI is incremented to store further numbers in the list. This is looped and the loop ends when counter becomes zero.

MOV SI,2000
MOV DI,4000
MOV CL,[SI]
INC SI : LABEL
MOV AX,[SI]
MOV [DI], AX
INC DI
LOOP LABEL
INT A5

You might be also interested in:

:: Interfacing Analog-to-Digital converter to 8086 using 8255
:: Find Square Root of a hexadecimal number in assembly language
:: common intreview questions on 8086
:: Assembly Language Source Codes

No comments: