Advertisement
NB52053

#ASS. LAB 9

Sep 16th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;dup and indexes
  2.  
  3. org 100h
  4. .stack 100h
  5. .data
  6.  
  7. msg1 db 'hello$'
  8. msg2 db 6 dup(0)
  9.  
  10.  
  11. .code
  12.  
  13. proc main
  14.     mov dx, @data
  15.     mov ds,dx
  16.     mov es,dx
  17.    
  18.    
  19.     lea si,msg1
  20.     lea di,msg2
  21.    
  22.    
  23.     movsb
  24.    
  25.    
  26.     mov cx,7
  27.     rep movsb
  28.    
  29.     mov ah,9
  30.     lea dx,msg2
  31.     int 21h
  32.    
  33.    
  34.     mov ah, 4ch
  35.     int 21h
  36. endp main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement