Advertisement
Farhana_Zaman

Untitled

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