home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / cbgi111 / src / lib / d_clear.asm < prev    next >
Encoding:
Assembly Source File  |  1990-06-15  |  1.3 KB  |  46 lines

  1. ideal            ; Set up in ideal mode
  2. model    tiny        ; This is done in tiny model
  3.  
  4. ;******************* dispatch_clear **************************************
  5. ;  Interfaces BGI driver code to the calling interface.  Save old DS and 
  6. ;     sets up a new one for the driver to use.  Restores the old DS and
  7. ;     does a far return on exit.  It passes and returns the parameters in
  8. ;     the conventional 'C' fashion.  This makes it much easier to write
  9. ;     the main driver in C and let the compiler optimize to its hearts 
  10. ;     content.
  11. ;
  12. ;        INPUT:    none
  13. ;
  14. ;        OUTPUT:    none
  15. ;
  16. ;    V 1.00 28/06/89  Robert Adsett.
  17. ;    V 1.01 15/06/90  Robert Adsett.  Eliminate DOSSEG ordering.
  18. ;
  19. ;  (C) Robert Adsett 1989,1990
  20. ;*************************************************************************
  21.  
  22. codeseg            ; Start of the code segment
  23.  
  24. ;*************************************************************************
  25. ;    Declare publics and externals.
  26. ;*************************************************************************
  27.  
  28. extrn    _clear        : near        ;external function, does actual 
  29.                     ;  work.
  30. public    dispatch_clear            ;make this routine public so it
  31.                     ;  can be hooked.
  32.  
  33.  
  34. proc dispatch_clear  near
  35.  
  36.     call    _clear            ;call 'C' driver
  37.     ret                ;return to caller
  38.  
  39. endp
  40.  
  41. ends
  42. end
  43.  
  44.  
  45. 
  46.