Write a 8086 ALP that copies a string to another location in the memory?

1 answer

Answer

1162116

2026-03-20 14:35

+ Follow

Data Segment

string 1 db 'This is source $'

string2 db 15 dup()

Data Ends

Assume cs:code, ds:data

org 100h

Code segment

Mov AX, data

Mov DS, AX

Mov si, offset string1

Mov di, offset string2

Mov CX, 0015

MOVSB

Mov AX, 004ch

Int 21h

Code Ends

End

ReportLike(0ShareFavorite

Related Questions

Copyright © 2026 eLLeNow.com All Rights Reserved.