rafid_shad

Print all charecter using loop

Dec 10th, 2019
112
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