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

  1. ;***************************************************************;
  2. ;                                                               ;
  3. ;       Interrupt 27H: Terminate and Stay Resident              ;
  4. ;                                                               ;
  5. ;       Exit and stay resident, reserving enough memory         ;
  6. ;       to protect the program's code and data.                 ;
  7. ;                                                               ;
  8. ;***************************************************************;
  9.  
  10. Start:  .
  11.         .
  12.         .
  13.         mov     dx,offset pgm_end  ; DX = bytes to reserve.
  14.         int     27h                ; Terminate, stay resident.
  15.         .
  16.         .
  17.         .
  18. pgm_end equ     $
  19.         end     start
  20.