Advertisement
Farhana_Zaman

Untitled

Jul 15th, 2023
2,150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; example 11.2
  2.  
  3. .stack 100h
  4. .model small  
  5. .data
  6.     arr dw 1, 2, 4, 5, 6, ?
  7.        
  8. .code
  9.     main proc
  10.         mov ax, @data
  11.         mov ds,ax
  12.         mov es, ax  
  13.        
  14.         std
  15.         lea si, arr+8
  16.         lea di, arr+10  
  17.        
  18.         mov cx,3
  19.         rep movsw
  20.         mov word ptr [di], 3
  21.          
  22.         mov cx, 6
  23.         xor si, si          
  24.                      
  25.         lop2:
  26.             mov dx,arr[si]
  27.             add dx,48
  28.             mov ah,2
  29.             int 21h
  30.                
  31.             add si,2
  32.             loop lop2
  33.        
  34.         main endp
  35.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement