home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / section5 / fxn24h.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  1.2 KB  |  24 lines

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;              Function 24H: Set Relative Record             ;
  4.         ;                                                            ;
  5.         ;              int FCB_set_rrec(oXFCB)                       ;
  6.         ;                  char *oXFCB;                              ;
  7.         ;                                                            ;
  8.         ;              Returns 0.                                    ;
  9.         ;                                                            ;
  10.         ;************************************************************;
  11.  
  12. cProc   FCB_set_rrec,PUBLIC,ds
  13. parmDP  poXFCB
  14. cBegin
  15.         loadDP  ds,dx,poXFCB    ; Pointer to opened extended FCB.
  16.         mov     bx,dx           ; BX points at FCB, too.
  17.         mov     byte ptr [bx+2bh],0 ; Zero high byte of high word of
  18.                                     ; relative-record field.
  19.         mov     ah,24h          ; Ask MS-DOS to set relative record
  20.                                 ; to current record.
  21.         int     21h
  22.         xor     ax,ax           ; Return 0.
  23. cEnd
  24.