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

  1. ideal            ; Set up in ideal mode
  2. model    tiny        ; This is done in tiny model
  3.  
  4. ;******************* dispatch_filled_ellipse *****************************
  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:    ax    -- X radius.
  13. ;            bx    -- Y radius.
  14. ;
  15. ;        OUTPUT:    none
  16. ;
  17. ;    V 1.00 28/06/89  Robert Adsett.
  18. ;    V 1.01 15/06/90  Robert Adsett.  Eliminate DOSSEG ordering.
  19. ;
  20. ;  (C) Robert Adsett 1989,1990
  21. ;*************************************************************************
  22.  
  23. codeseg            ; Start of the code segment
  24.  
  25. ;*************************************************************************
  26. ;    Declare publics and externals.
  27. ;*************************************************************************
  28.  
  29. extrn    _filled_ellipse    : near        ;external function, does actual 
  30.                     ;  work.
  31. public    dispatch_filled_ellipse        ;make this routine public so it
  32.                     ;  can be hooked.
  33.  
  34.  
  35. proc dispatch_filled_ellipse  near
  36.  
  37.     push    bx            ;Y radius.
  38.     push    ax            ;X radius.
  39.     call    _filled_ellipse        ;call 'C' driver
  40.     add    sp,4            ;restore stack
  41.     ret                ;return to caller
  42.  
  43. endp
  44.  
  45. ends
  46. end
  47.  
  48.  
  49. 
  50.