Advertisement
NB52053

Ass lab#6.1

Jul 21st, 2018
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. org 100h
  2. .stack 100h
  3. .data
  4.  
  5. nl db 0dh, 0ah,'$'
  6.  
  7.    
  8. .code
  9.  
  10.  
  11. onem macro x      ;subidha : parameter pass krte pari.
  12.         mov ah,2
  13.         mov dl,x
  14.         int 21h
  15.        
  16. endm onem
  17.  
  18.  
  19. onem2 macro y
  20.    
  21.    
  22.         mov ah, 9
  23.         lea dx, nl
  24.         int 21h
  25.        
  26.               ;subidha : parameter pass krte pari.
  27.         mov ah,2
  28.         mov dl,y
  29.         int 21h
  30.        
  31.        
  32.  
  33.        
  34.     endm onem2
  35.  
  36.  
  37.  
  38. main proc
  39. mov dx, @data
  40. mov ds, dx
  41.  
  42.     mov al, 'a'
  43.     call oneproc
  44.     onem 'a'
  45.     onem2 'N'
  46.  
  47.  
  48. mov ah,4ch
  49. int 21h
  50. endp main
  51.  
  52.  
  53.  
  54.  
  55. oneproc proc
  56.    
  57.     mov ah,2
  58.     mov dl,al
  59.     int 21h
  60.     ret
  61.    
  62. endp oneproc
  63.  
  64.  
  65.  
  66.    
  67.  
  68.  
  69.  
  70.  
  71.  
  72. end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement