home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / h / fpemulator < prev    next >
Encoding:
Text File  |  1994-09-07  |  1.9 KB  |  66 lines

  1. #ifndef fpemulator_H
  2. #define fpemulator_H
  3.  
  4. /* C header file for FPEmulator
  5.  * written by DefMod (Sep  7 1994) on Wed Sep  7 21:23:34 1994
  6.  * Copyright © Acorn Computers Ltd, 1994
  7.  */
  8.  
  9. /*************************************************************************
  10.  * This source file was written by Acorn Computers Limited. It is part   *
  11.  * of the OSLib library for writing applications for RISC OS. It may be  *
  12.  * used freely in the creation of programs for RISC OS.                  *
  13.  *************************************************************************/
  14.  
  15. #ifndef types_H
  16.    #include "types.h"
  17. #endif
  18.  
  19. #ifndef os_H
  20.    #include "os.h"
  21. #endif
  22.  
  23. /**********************************
  24.  * SWI names and SWI reason codes *
  25.  **********************************/
  26. #undef  FPEmulator_Version
  27. #define FPEmulator_Version                      0x40480
  28. #undef  XFPEmulator_Version
  29. #define XFPEmulator_Version                     0x60480
  30.  
  31. /*************************
  32.  * Function declarations *
  33.  *************************/
  34.  
  35. #ifdef __cplusplus
  36.    extern "C" {
  37. #endif
  38.  
  39. /*************************************************************
  40.  * NOTE: The following functions provide direct access to    *
  41.  *       the SWI's noted in the function description.        *
  42.  *       Please read the relevant PRM section for more       *
  43.  *       information on their input/output parameters.       *
  44.  *************************************************************/
  45.  
  46. /* ------------------------------------------------------------------------
  47.  * Function:      fpemulator_version()
  48.  *
  49.  * Description:   Returns the version number of the Floating Point Emulator
  50.  *
  51.  * Output:        version - value of R0 on exit (X version only)
  52.  *
  53.  * Returns:       R0 (non-X version only)
  54.  *
  55.  * Other notes:   Calls SWI 0x40480.
  56.  */
  57.  
  58. extern os_error *xfpemulator_version (int *version);
  59. extern int fpemulator_version (void);
  60.  
  61. #ifdef __cplusplus
  62.    }
  63. #endif
  64.  
  65. #endif
  66.