Advertisement
Masum6035

Standard Template

Apr 29th, 2021
3,606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ;Standard Template of any assembly language
  3.  
  4. .model small   
  5. .stack 100h    
  6. include 'emu8086.inc'
  7.  
  8. .data
  9.  
  10. n_line db 0ah,0dh,"$"   ;for new line  
  11.  
  12. .code
  13.  
  14. main proc
  15.     mov ax,@data   
  16.     mov ds,ax    
  17.    
  18.     ;write code here
  19.    
  20.     lea dx,n_line  ;print new line
  21.     mov ah,9
  22.     int 21h
  23.          
  24. @stop:    
  25.     mov ah,4ch
  26.     int 21h     ;terminate with return code
  27. main endp
  28. end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement