home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / lan / basnet / junk.asm < prev    next >
Assembly Source File  |  1987-05-18  |  535b  |  24 lines

  1. req_rep proc    near
  2.     push    bp
  3.     mov    bp,sp
  4.     push    es
  5.     push    ds
  6.     pop     es
  7.     mov    si,[bp+10] ;ptr to var desc block for req. string
  8.     mov    cx,[si+1]   ;add 1 to get the address of the string
  9.     mov    si,cx        ;put it in si
  10.     mov    di,[bp+8] ;ptr to var desc block for reply buf
  11.     mov    cx,[di+1]   ;add 1 to get the address of the string
  12.     mov    di,cx        ;put it in di
  13.     pushf              ;save the direction flag
  14.     int    21h
  15.     popf
  16.     pop    es
  17.     mov    si,[bp+12] ;address for error
  18.     mov    ah,0
  19.     mov    [si],ax     ;save error code
  20.     pop    bp
  21.     ret
  22. req_rep endp
  23.  
  24.