home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 18
/
aminetcdnumber181997.iso
/
Aminet
/
dev
/
m2
/
CycloneModules.lha
/
modules
/
txt
/
MathResource.def
< prev
next >
Wrap
Text File
|
1996-08-01
|
2KB
|
62 lines
(*
** Cyclone Modula-2 Interface module:
** $VER: mathresource.h 1.2 (13.7.90)
** Includes Release 40.15
**
** Data structure returned by OpenResource of:
** "MathIEEE.resource"
**
**
** (C) Copyright 1987-1993 Commodore-Amiga, Inc.
** All Rights Reserved
**
** Interface module by Marcel Timmermans
** (C) Copyright 1995-1996 Marcel Timmermans
** All Rights Reserved
*)
(*$ Implementation- *)
DEFINITION MODULE MathResource;
FROM SYSTEM IMPORT ADDRESS;
FROM ExecD IMPORT Node;
(*
* The 'Init' entries are only used if the corresponding
* bit is set in the Flags field.
*
* So if you are just a 68881, you do not need the Init stuff
* just make sure you have cleared the Flags field.
*
* This should allow us to add Extended Precision later.
*
* For Init users, if you need to be called whenever a task
* opens this library for use, you need to change the appropriate
* entries in MathIEEELibrary.
*)
TYPE
(* definations for MathIEEEResource_FLAGS *)
MathIEEEResourceFlags=(
dblbas,dbltrans,sglbas,sgltrans,extbas,exttrans,mirf6,mirf7,
mirf8,mirf9,mirf10,mirf11,mirf12,mirf13,mirf14,mirf15
);
MathIEEEResourceFlagSet=SET OF MathIEEEResourceFlags;
MathIEEEResourcePtr = POINTER TO MathIEEEResource;
MathIEEEResource = RECORD
node : Node;
flags : MathIEEEResourceFlagSet;
baseAddr : ADDRESS; (* ptr to 881 if exists *)
dblBasInit : PROC;
dblTransInit : PROC;
sglBasInit : PROC;
sglTransInit : PROC;
extBasInit : PROC;
extTransInit : PROC;
END;
END MathResource.