Facebook
From Asif, 9 Months ago, written in Plain Text.
This paste is a reply to Re: Re: Untitled from Asif - view diff
Embed
Download Paste or View Raw
Hits: 310
  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.         Top:
  27.             mov dx,arr[si]
  28.             add dx,48
  29.             mov ah,2
  30.             int 21h
  31.                
  32.             add si,2
  33.             loop Top
  34.        
  35.         main endp
  36.     end