Logo 
Search:

Assembly Language Articles

Submit Article
Home » Articles » Assembly Language » Homework HelpRSS Feeds

To copy 16-bit data from one array to other in reverse order

Posted By: Daisy Brown     Category: Assembly Language     Views: 5212

Program to copy 16-bit data from one array to other in reverse order.

Code for To copy 16-bit data from one array to other in reverse order in Assembly Language

Data Segment
  arr1 dw 'G','L','S','I','C','T'
  arrlen1 dw $-arr1
  arr2 dw 20 dup(''),'$'
  arrlen2 dw $-arr2
Data Ends

Code Segment
  Assume cs:code, ds:data
  Begin:
    mov ax, data
    mov ds, ax
    mov es, ax
    mov cx, arrlen1    
    std           
    lea si, arr1+10
    lea di, arr2+10
    rep movsw

    Print:
       mov ah, 09h
       lea dx, arr2
       int 21h

    Exit:
       mov ax, 4c00h
       int 21h
Code Ends
End Begin

  
Share: 



Daisy Brown
Daisy Brown author of To copy 16-bit data from one array to other in reverse order is from London, United Kingdom.
 
View All Articles

 

Other Interesting Articles in Assembly Language:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!