SHARE
TWEET

Print all charecter using loop

rafid_shad Dec 10th, 2019 (edited) 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .model small
  2. .stack 100h
  3. .data
  4. msg db "Loop concept $"
  5. .code
  6. main proc  
  7.    
  8.     mov ax,@data
  9.     mov ds,ax
  10.    
  11.     mov ah,9
  12.     lea dx,msg
  13.     int 21h
  14.    
  15.     mov ah,2
  16.     mov dl,10
  17.     int 21h
  18.     mov dl,13
  19.     int 21h
  20.    
  21.     mov cx,256
  22.    
  23.     mov ah,2
  24.     mov dl,0
  25.    
  26.     level:
  27.    
  28.     int 21h
  29.     inc dl
  30.     loop level
  31.    
  32.    
  33.     main endp
  34. 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