Advertisement
labib24

Untitled

May 19th, 2023
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.48 KB | None | 0 0
  1. .model small
  2. .stack 100h
  3. .data
  4.  
  5. .code
  6.            
  7.      mov cx,127
  8.      mov bl,0
  9.        
  10.  print_value:  
  11.        
  12.      mov ah,2
  13.      inc cx
  14.      cmp cx,255
  15.      ja exit
  16.      mov dx,cx
  17.      int 21h
  18.      mov dx,32d
  19.      int 21h
  20.      jmp goto    
  21.      
  22.  goto:
  23.    
  24.    inc bl
  25.    cmp bl,10
  26.    je new
  27.    jmp print_value      
  28.    
  29.  new:
  30.  
  31.  mov ah,2
  32.     mov dl,0dh
  33.     int 21h
  34.    
  35.     mov dl,0ah
  36.     int 21h
  37.     mov bl,0
  38.     jmp print_value
  39.          
  40.     exit:
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement