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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;       Function 26H: Create New Program Segment Prefix      ;
  4.         ;                                                            ;
  5.         ;       int create_psp(pspseg)                               ;
  6.         ;           int  pspseg;                                     ;
  7.         ;                                                            ;
  8.         ;       Returns 0.                                           ;
  9.         ;                                                            ;
  10.         ;************************************************************;
  11.  
  12. cProc   create_psp,PUBLIC
  13. parmW   pspseg
  14. cBegin
  15.         mov     dx,pspseg       ; Get segment address of new PSP.
  16.         mov     ah,26h          ; Set function code.
  17.         int     21h             ; Ask MS-DOS to create new PSP.
  18.         xor     ax,ax           ; Return 0.
  19. cEnd
  20.