Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;dup and indexes
- org 100h
- .stack 100h
- .data
- msg1 db 'hello$'
- msg2 db 6 dup(0)
- .code
- proc main
- mov dx, @data
- mov ds,dx
- mov es,dx
- lea si,msg1
- lea di,msg2
- movsb
- mov cx,7
- rep movsb
- mov ah,9
- lea dx,msg2
- int 21h
- mov ah, 4ch
- int 21h
- endp main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement