Advertisement
Farhana_Zaman

Untitled

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