Advertisement
NB52053

Ass. Lab #7.1

Aug 25th, 2018
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. "Simple line print"
  3.  
  4.  
  5.  
  6. org 100h
  7. .model small
  8. .stack 100h
  9.  
  10.  
  11. .data
  12. len db 0
  13.  
  14.  
  15. .code
  16. proc main
  17.    
  18.     mov ax,@data
  19.     mov ds, ax
  20.    
  21.    
  22.    
  23.     mov ah, 0
  24.     mov al, 12h
  25.     int 10h
  26.    
  27.    
  28.    
  29.     mov al, 0eh
  30.     mov ah, 0ch
  31.     mov cx, 100
  32.     mov dx,50
  33.    
  34.    
  35.    
  36.     L1:
  37.    
  38.     int 10h
  39.     inc cx
  40.     inc len
  41.    
  42.     cmp len, 100
  43.     jle L1
  44.    
  45.    
  46.    
  47.     mov ah,4ch
  48.     int 21h
  49.    
  50.    
  51. endp main
  52.  
  53.  
  54. end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement