naeem043

Assemble ARRAY

Mar 22nd, 2019
83
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, OFFSET ARRAY
  14.     MOV CX, 6
  15.    
  16.     FOR:
  17.         MOV DX,[SI]
  18.         MOV AH,2
  19.         INT 21H
  20.         INC SI
  21.        
  22.     LOOP FOR      
  23.    
  24.    
  25.     MOV AH, 4CH
  26.     INT 21H
  27.        
  28.    
  29. END MAIN
RAW Paste Data