~ubuntu-branches/ubuntu/jaunty/simh/jaunty

« back to all changes in this revision

Viewing changes to HP2100/hp2100_fp.h

  • Committer: Bazaar Package Importer
  • Author(s): Vince Mulhollon
  • Date: 2007-04-13 20:16:15 UTC
  • mfrom: (1.1.7 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20070413201615-jiar46bgkrs0dw2h
Tags: 3.7.0-1
* New upstream released 03-Feb-2007
* i7094 added which emulates the IBM 7090/7094
* Upstream has converted almost entirely to pdf format for docs
* All manpages updated
* All docs are registered with the doc-base system

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* hp2100_fp.h: HP 2100/21MX floating point definitions
 
2
 
 
3
   Copyright (c) 2002-2006, Robert M. Supnik
 
4
 
 
5
   Permission is hereby granted, free of charge, to any person obtaining a
 
6
   copy of this software and associated documentation files (the "Software"),
 
7
   to deal in the Software without restriction, including without limitation
 
8
   the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
9
   and/or sell copies of the Software, and to permit persons to whom the
 
10
   Software is furnished to do so, subject to the following conditions:
 
11
 
 
12
   The above copyright notice and this permission notice shall be included in
 
13
   all copies or substantial portions of the Software.
 
14
 
 
15
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
16
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
17
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
18
   ROBERT M SUPNIK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 
19
   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
20
   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
21
 
 
22
   Except as contained in this notice, the name of Robert M Supnik shall not be
 
23
   used in advertising or otherwise to promote the sale, use or other dealings
 
24
   in this Software without prior written authorization from Robert M Supnik.
 
25
 
 
26
   01-Dec-06    JDB     Reworked FFP helpers for 1000-F support, deleted f_pwr2
 
27
   26-Sep-06    JDB     Moved from hp2100_fp.c to simplify extensions
 
28
*/
 
29
 
 
30
#ifndef _HP2100_FP_H_
 
31
#define _HP2100_FP_H_
 
32
 
 
33
/* Firmware floating-point routines */
 
34
 
 
35
uint32 f_as (uint32 op, t_bool sub);                    /* FAD/FSB */
 
36
uint32 f_mul (uint32 op);                               /* FMP */
 
37
uint32 f_div (uint32 op);                               /* FDV */
 
38
uint32 f_fix (void);                                    /* FIX */
 
39
uint32 f_flt (void);                                    /* FLT */
 
40
 
 
41
/* Firmware FFP helpers */
 
42
 
 
43
uint32 fp_pack   (OP *result, OP mantissa, int32 exponent, OPSIZE precision);
 
44
uint32 fp_nrpack (OP *result, OP mantissa, int32 exponent, OPSIZE precision);
 
45
uint32 fp_unpack (OP *mantissa, int32 *exponent, OP packed, OPSIZE precision);
 
46
 
 
47
#endif