Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[games.git] / gnu / usr.bin / as / bit_fix.h
1 /* write.h
2
3    Copyright (C) 1987, 1992 Free Software Foundation, Inc.
4
5    This file is part of GAS, the GNU Assembler.
6
7    GAS is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2, or (at your option)
10    any later version.
11
12    GAS is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with GAS; see the file COPYING.  If not, write to
19    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20 /*
21  * $FreeBSD: src/gnu/usr.bin/as/bit_fix.h,v 1.5 1999/08/27 23:34:13 peter Exp $
22  * $DragonFly: src/gnu/usr.bin/as/Attic/bit_fix.h,v 1.2 2003/06/17 04:25:44 dillon Exp $
23  */
24
25
26 /* The bit_fix was implemented to support machines that need variables
27    to be inserted in bitfields other than 1, 2 and 4 bytes.
28    Furthermore it gives us a possibillity to mask in bits in the symbol
29    when it's fixed in the objectcode and check the symbols limits.
30
31    The or-mask is used to set the huffman bits in displacements for the
32    ns32k port.
33    The acbi, addqi, movqi, cmpqi instruction requires an assembler that
34    can handle bitfields. Ie handle an expression, evaluate it and insert
35    the result in an some bitfield. ( ex: 5 bits in a short field of a opcode)
36    */
37
38 #ifndef __bit_fix_h__
39 #define __bit_fix_h__
40
41 struct bit_fix {
42         int fx_bit_size;           /* Length of bitfield */
43         int fx_bit_offset;         /* Bit offset to bitfield */
44         long fx_bit_base;          /* Where do we apply the bitfix.
45                                       If this is zero, default is assumed. */
46         long fx_bit_base_adj;      /* Adjustment of base */
47         long fx_bit_max;           /* Signextended max for bitfield */
48         long fx_bit_min;           /* Signextended min for bitfield */
49         long fx_bit_add;           /* Or mask, used for huffman prefix */
50 };
51 typedef struct bit_fix bit_fixS;
52
53 #endif /* __bit_fix_h__ */
54
55  /* end of bit_fix.h */