home *** CD-ROM | disk | FTP | other *** search
- package MACHINE_ARITHMETIC_EMULATION is
- -- The purpose of this package is to emulate 36 bit machine
- -- arithmetic on a 32 bit host machine. This package will
- -- provide support for 36 bit integer, real, and double
- -- precision real numbers in the form of the standard predefined
- -- arithmetic operations. The ranges of the supported types
- -- are as follows:
- --
- -- Integer
- -- range of -2**35 to 2**35-1
- -- Real
- -- range of 10**-38 to 10**38 and 0
- -- mantissa => 27 bit binary fraction
- -- exponent => -128 to 127
- -- Double Precision Real
- -- range of 10**-38 to 10**38 and 0
- -- mantissa => 63 bit binary fraction
- -- exponent => -128 to 127
- --
- -- Any errors which occur during use of the arithmetic and
- -- boolean functions defined below will result in the
- -- raising of the exception "MAE_NUMERIC_ERROR". The
- -- exception declaration in the package specification can be
- -- changed to a rename of the predefined exception
- -- "NUMERIC_ERROR" for programs needing to handle arithmetic
- -- errors in a general fashion.
- --
- -- Conversion functions are provided to assist in programming
- -- mixed operand (32 and 36 bit) arithmetic, and to facilitate
- -- IO. These functions should be renamed if they will be used
- -- extensively so that the impact on the readability of a
- -- program's arithmetic expressions is minimized.
- --
- -- The underlying arithmetic will be performed in twos
- -- complement arithmetic.
- --
-
- package TITLE_PAGE is new TITLE_PAGE_PACKAGE
- (DEVELOPING_ORGANIZATION => "SYSCON Corporation",
- AUTHOR => "John Reddan",
- CONTACT => "John Reddan",
- ADDRESS => ("3990 Sherman Street",
- "San Diego",
- "CA","92110"),
- PHONE => "(619) 296-0085",
- DATE_SUBMITTED => "(2,Jan,1985)");
-
- package TECHNICAL_PARAMETERS is new TECHNICAL_PARAMETERS_PACKAGE
- (LINES_OF_SOURCE_CODE => 1800, -- estimate
- DEVELOPMENT_COMPILER => TeleSoft,
- SUPPORTED_SYSTEMS => "all 32 bit systems",
- AUXILLIARY_FILES_SIZE => (80*LINES_OF_SOURCE_CODE));
-
- package DEVELOPMENT_SCHEDULE_AND_STATUS is new SCHEDULE_PACKAGE
- (COMPLETED_EVENTS => null;
- SCHEDULED_EVENTS => ((PDR,(TBD)),
- (CDR,(TBD)),
- (DELIVERY,(1,Jul,1985)));
-
- end MACHINE_ARITHMETIC_EMULATION;
-