Logo 
Search:

Assembly Language Articles

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

An application for copying 16-bit reverse data from one location to other

Posted By: Redmond Fischer     Category: Assembly Language     Views: 2833

An application for copying 16-bit reverse data from one location to other.

Code for An application for copying 16-bit reverse data from one location to other in Assembly Language

.model small
.data
        str1 db 'sanjay', '$'
        str1_len dw $-str1
        str2 db ?

.code
begin:
        mov ax, @data
        mov ds, ax
        mov es, di

        lea si, str1
        lea di, str2

        mov ax, str1_len
        sub ax, 01h
        add ax, si
        mov si, ax

        mov ax, str1_len
    sub ax, 01h
        add ax, di
        mov di, ax
    
        mov cx, str1_len
    std

counter:
        mov ax, [si]
        mov [di], ax
        dec di
        dec si
        loop counter

        cld

        mov ah, 09h
        lea dx, str2
        int 21h

        mov ax, 4c00h
        int 21h
.exit
end begin
  
Share: 



Redmond Fischer
Redmond Fischer author of An application for copying 16-bit reverse data from one location to other is from Frankfurt, Germany.
 
View All Articles

Related Articles and Code:


 

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!