SHARE
TWEET

Assemble Decreasing ARRAY

naeem043 Mar 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4.     ARRAY DB 'A','B','C','D','E','F'
  5.              
  6. .CODE
  7. MAIN PROC    
  8.     INCLUDE 'EMU8086.INC'  
  9.    
  10.     MOV AX, @DATA
  11.     MOV DS, AX
  12.    
  13.     MOV SI, 5
  14.     MOV CX, 6
  15.    
  16.     FOR:
  17.         MOV DX,[SI]
  18.         MOV AH,2
  19.         INT 21H
  20.         DEC SI
  21.        
  22.     LOOP FOR      
  23.    
  24.    
  25.     MOV AH, 4CH
  26.     INT 21H
  27.        
  28.    
  29. END MAIN
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top