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

  1. rest_int proc   near
  2.         push    ds              ; save our data segment
  3.         mov     dx,word ptr oldint23
  4.         mov     ds,word ptr oldint23+2
  5.         mov     ax,2523h        ; restore original contents
  6.         int     21h             ; of Int 23H vector
  7.         pop     ds              ; restore our data segment
  8.         push    ds              ; then save it again
  9.         mov     dx,word ptr oldint1B
  10.         mov     ds,word ptr oldint1B+2
  11.         mov     ax,251Bh        ; restore original contents
  12.         int     21h             ; of Int 1BH vector
  13.         pop     ds              ; get back our data segment
  14.         ret                     ; return to caller
  15. rest_int endp
  16.