Advertisement
sujonshekh

Star print with char asseble lang

Feb 10th, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ; You may customize this and other start-up templates;
  3. ; The location of this template is c:\emu8086\inc\0_com_template.txt
  4.  
  5. org 100h
  6.  
  7. .data
  8.  stars db  0ah,0dh,'***********',0ah,0dh, '$'
  9.  mid db '***'
  10.  c1 db ?
  11.  c2 db ?
  12.  c3 db ?,'***',0ah,0dh,'$'
  13.  
  14.  
  15.  .code
  16.    
  17.    
  18.  mov ax,@data
  19.  mov DS,ax         ;
  20.  
  21.  
  22.  mov ah,1   ;single Char input
  23.  int 21h    ; every input output process here
  24.  
  25.  mov c1,al
  26.  int 21h
  27.        
  28.          mov c2,al
  29.  int 21h
  30.  
  31.   mov c3,al
  32.  int 21h  
  33.  
  34.  
  35.          
  36.          mov ah,2
  37.          mov dl,0dh
  38.          int 21h
  39.          
  40.          
  41.          mov ah,9
  42.          
  43.          lea dx,stars
  44.          
  45.          int 21h
  46.          int 21h
  47.          int 21h
  48.          int 21h
  49.          int 21h
  50.          lea dx,mid
  51.          
  52.          int 21h
  53.          
  54.          lea dx,stars
  55.          
  56.          int 21h
  57.          int 21h
  58.          int 21h
  59.          int 21h
  60.          int 21h
  61.    
  62.  
  63. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement