home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / lan / nxcopy / bindery.i86 next >
Text File  |  1987-07-17  |  1KB  |  62 lines

  1.         name    B_Open_Close
  2.  
  3.         assume  cs:code
  4.  
  5. data    segment public
  6. data    ends
  7.  
  8. code    segment public
  9.  
  10.         public  closebi
  11.         public  openbin
  12.  
  13. closebi proc    near
  14.         push    ds
  15.         push    es
  16.         push    si
  17.         push    di
  18.         mov     ax,cs
  19.         mov     ds,ax
  20.         mov     es,ax
  21.         mov     si,offset rquest
  22.         mov     di,offset rply
  23.         mov     byte ptr [si+2],68
  24.         mov     ah,0e3h
  25.         int     21h
  26.         xor     ah,ah
  27.         pop     di
  28.         pop     si
  29.         pop     es
  30.         pop     ds
  31.         ret
  32. closebi endp
  33.  
  34. openbin proc    near
  35.         push    ds
  36.         push    es
  37.         push    si
  38.         push    di
  39.         mov     ax,cs
  40.         mov     ds,ax
  41.         mov     es,ax
  42.         mov     si,offset rquest
  43.         mov     di,offset rply
  44.         mov     byte ptr [si+2],69
  45.         mov     ah,0e3h
  46.         int     21h
  47.         xor     ah,ah
  48.         pop     di
  49.         pop     si
  50.         pop     es
  51.         pop     ds
  52.         ret
  53. openbin endp
  54.  
  55. rquest  dw      1
  56.         db      0
  57.  
  58. rply    dw      0
  59.  
  60. code    ends
  61.         end
  62.