xref: /netbsd-src/external/gpl3/gdb.old/dist/include/opcode/m68k.h (revision 8b657b0747480f8989760d71343d6dd33f8d4cf9)
1a5a4af3bSchristos /* Opcode table header for m680[01234]0/m6888[12]/m68851.
2*8b657b07Schristos    Copyright (C) 1989-2022 Free Software Foundation, Inc.
3a5a4af3bSchristos 
4a5a4af3bSchristos    This file is part of GDB, GAS, and the GNU binutils.
5a5a4af3bSchristos 
6a5a4af3bSchristos    GDB, GAS, and the GNU binutils are free software; you can redistribute
7a5a4af3bSchristos    them and/or modify them under the terms of the GNU General Public
8a5a4af3bSchristos    License as published by the Free Software Foundation; either version 3,
9a5a4af3bSchristos    or (at your option) any later version.
10a5a4af3bSchristos 
11a5a4af3bSchristos    GDB, GAS, and the GNU binutils are distributed in the hope that they
12a5a4af3bSchristos    will be useful, but WITHOUT ANY WARRANTY; without even the implied
13a5a4af3bSchristos    warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
14a5a4af3bSchristos    the GNU General Public License for more details.
15a5a4af3bSchristos 
16a5a4af3bSchristos    You should have received a copy of the GNU General Public License
17a5a4af3bSchristos    along with this file; see the file COPYING3.  If not, write to the Free
18a5a4af3bSchristos    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
19a5a4af3bSchristos    02110-1301, USA.  */
20a5a4af3bSchristos 
21a5a4af3bSchristos /* These are used as bit flags for the arch field in the m68k_opcode
22a5a4af3bSchristos    structure.  */
23a5a4af3bSchristos #define	_m68k_undef  0
24a5a4af3bSchristos #define	m68000   0x001
25a5a4af3bSchristos #define	m68010   0x002
26a5a4af3bSchristos #define	m68020   0x004
27a5a4af3bSchristos #define	m68030   0x008
28a5a4af3bSchristos #define	m68040   0x010
29a5a4af3bSchristos #define m68060   0x020
30a5a4af3bSchristos #define	m68881   0x040
31a5a4af3bSchristos #define	m68851   0x080
32a5a4af3bSchristos #define cpu32	 0x100		/* e.g., 68332 */
33a5a4af3bSchristos #define fido_a   0x200
34a5a4af3bSchristos #define m68k_mask  0x3ff
35a5a4af3bSchristos 
36a5a4af3bSchristos #define mcfmac   0x400		/* ColdFire MAC. */
37a5a4af3bSchristos #define mcfemac  0x800		/* ColdFire EMAC. */
38a5a4af3bSchristos #define cfloat   0x1000		/* ColdFire FPU.  */
39a5a4af3bSchristos #define mcfhwdiv 0x2000		/* ColdFire hardware divide.  */
40a5a4af3bSchristos 
41a5a4af3bSchristos #define mcfisa_a 0x4000		/* ColdFire ISA_A.  */
42a5a4af3bSchristos #define mcfisa_aa 0x8000	/* ColdFire ISA_A+.  */
43a5a4af3bSchristos #define mcfisa_b 0x10000	/* ColdFire ISA_B.  */
44a5a4af3bSchristos #define mcfisa_c 0x20000	/* ColdFire ISA_C.  */
45a5a4af3bSchristos #define mcfusp   0x40000	/* ColdFire USP instructions.  */
46a5a4af3bSchristos #define mcf_mask 0x7e400
47a5a4af3bSchristos 
48a5a4af3bSchristos /* Handy aliases.  */
49a5a4af3bSchristos #define	m68040up   (m68040 | m68060)
50a5a4af3bSchristos #define	m68030up   (m68030 | m68040up)
51a5a4af3bSchristos #define	m68020up   (m68020 | m68030up)
52a5a4af3bSchristos #define	m68010up   (m68010 | cpu32 | fido_a | m68020up)
53a5a4af3bSchristos #define	m68000up   (m68000 | m68010up)
54a5a4af3bSchristos 
55a5a4af3bSchristos #define	mfloat  (m68881 | m68040 | m68060)
56a5a4af3bSchristos #define	mmmu    (m68851 | m68030 | m68040 | m68060)
57a5a4af3bSchristos 
58a5a4af3bSchristos /* The structure used to hold information for an opcode.  */
59a5a4af3bSchristos 
60a5a4af3bSchristos struct m68k_opcode
61a5a4af3bSchristos {
62a5a4af3bSchristos   /* The opcode name.  */
63a5a4af3bSchristos   const char *name;
64a5a4af3bSchristos   /* The pseudo-size of the instruction(in bytes).  Used to determine
65a5a4af3bSchristos      number of bytes necessary to disassemble the instruction.  */
66a5a4af3bSchristos   unsigned int size;
67a5a4af3bSchristos   /* The opcode itself.  */
68a5a4af3bSchristos   unsigned long opcode;
69a5a4af3bSchristos   /* The mask used by the disassembler.  */
70a5a4af3bSchristos   unsigned long match;
71a5a4af3bSchristos   /* The arguments.  */
72a5a4af3bSchristos   const char *args;
73a5a4af3bSchristos   /* The architectures which support this opcode.  */
74a5a4af3bSchristos   unsigned int arch;
75a5a4af3bSchristos };
76a5a4af3bSchristos 
77a5a4af3bSchristos /* The structure used to hold information for an opcode alias.  */
78a5a4af3bSchristos 
79a5a4af3bSchristos struct m68k_opcode_alias
80a5a4af3bSchristos {
81a5a4af3bSchristos   /* The alias name.  */
82a5a4af3bSchristos   const char *alias;
83a5a4af3bSchristos   /* The instruction for which this is an alias.  */
84a5a4af3bSchristos   const char *primary;
85a5a4af3bSchristos };
86a5a4af3bSchristos 
87a5a4af3bSchristos /* We store four bytes of opcode for all opcodes because that is the
88a5a4af3bSchristos    most any of them need.  The actual length of an instruction is
89a5a4af3bSchristos    always at least 2 bytes, and is as much longer as necessary to hold
90a5a4af3bSchristos    the operands it has.
91a5a4af3bSchristos 
92a5a4af3bSchristos    The match field is a mask saying which bits must match particular
93a5a4af3bSchristos    opcode in order for an instruction to be an instance of that
94a5a4af3bSchristos    opcode.
95a5a4af3bSchristos 
96a5a4af3bSchristos    The args field is a string containing two characters for each
97a5a4af3bSchristos    operand of the instruction.  The first specifies the kind of
98a5a4af3bSchristos    operand; the second, the place it is stored.
99a5a4af3bSchristos 
100a5a4af3bSchristos    If the first char of args is '.', it indicates that the opcode is
101a5a4af3bSchristos    two words.  This is only necessary when the match field does not
102a5a4af3bSchristos    have any bits set in the second opcode word.  Such a '.' is skipped
103a5a4af3bSchristos    for operand processing.  */
104a5a4af3bSchristos 
105a5a4af3bSchristos /* Kinds of operands:
106a5a4af3bSchristos    Characters used: AaBbCcDdEeFfGgHIiJjKkLlMmnOopQqRrSsTtUuVvWwXxYyZz01234|*~%;@!&$?/<>#^+-
107a5a4af3bSchristos 
108a5a4af3bSchristos    D  data register only.  Stored as 3 bits.
109a5a4af3bSchristos    A  address register only.  Stored as 3 bits.
110a5a4af3bSchristos    a  address register indirect only.  Stored as 3 bits.
111a5a4af3bSchristos    R  either kind of register.  Stored as 4 bits.
112a5a4af3bSchristos    r  either kind of register indirect only.  Stored as 4 bits.
113a5a4af3bSchristos       At the moment, used only for cas2 instruction.
114a5a4af3bSchristos    F  floating point coprocessor register only.   Stored as 3 bits.
115a5a4af3bSchristos    O  an offset (or width): immediate data 0-31 or data register.
116a5a4af3bSchristos       Stored as 6 bits in special format for BF... insns.
117a5a4af3bSchristos    +  autoincrement only.  Stored as 3 bits (number of the address register).
118a5a4af3bSchristos    -  autodecrement only.  Stored as 3 bits (number of the address register).
119a5a4af3bSchristos    Q  quick immediate data.  Stored as 3 bits.
120a5a4af3bSchristos       This matches an immediate operand only when value is in range 1 .. 8.
121a5a4af3bSchristos    M  moveq immediate data.  Stored as 8 bits.
122a5a4af3bSchristos       This matches an immediate operand only when value is in range -128..127
123a5a4af3bSchristos    T  trap vector immediate data.  Stored as 4 bits.
124a5a4af3bSchristos 
125a5a4af3bSchristos    k  K-factor for fmove.p instruction.   Stored as a 7-bit constant or
126a5a4af3bSchristos       a three bit register offset, depending on the field type.
127a5a4af3bSchristos 
128a5a4af3bSchristos    #  immediate data.  Stored in special places (b, w or l)
129a5a4af3bSchristos       which say how many bits to store.
130a5a4af3bSchristos    ^  immediate data for floating point instructions.   Special places
131a5a4af3bSchristos       are offset by 2 bytes from '#'...
132a5a4af3bSchristos    B  pc-relative address, converted to an offset
133a5a4af3bSchristos       that is treated as immediate data.
134a5a4af3bSchristos    d  displacement and register.  Stores the register as 3 bits
135a5a4af3bSchristos       and stores the displacement in the entire second word.
136a5a4af3bSchristos 
137a5a4af3bSchristos    C  the CCR.  No need to store it; this is just for filtering validity.
138a5a4af3bSchristos    S  the SR.  No need to store, just as with CCR.
139a5a4af3bSchristos    U  the USP.  No need to store, just as with CCR.
140a5a4af3bSchristos    E  the MAC ACC.  No need to store, just as with CCR.
141a5a4af3bSchristos    e  the EMAC ACC[0123].
142a5a4af3bSchristos    G  the MAC/EMAC MACSR.  No need to store, just as with CCR.
143a5a4af3bSchristos    g  the EMAC ACCEXT{01,23}.
144a5a4af3bSchristos    H  the MASK.  No need to store, just as with CCR.
145a5a4af3bSchristos    i  the MAC/EMAC scale factor.
146a5a4af3bSchristos 
147a5a4af3bSchristos    I  Coprocessor ID.   Not printed if 1.   The Coprocessor ID is always
148a5a4af3bSchristos       extracted from the 'd' field of word one, which means that an extended
149a5a4af3bSchristos       coprocessor opcode can be skipped using the 'i' place, if needed.
150a5a4af3bSchristos 
151a5a4af3bSchristos    s  System Control register for the floating point coprocessor.
152a5a4af3bSchristos 
153a5a4af3bSchristos    J  Misc register for movec instruction, stored in 'j' format.
154a5a4af3bSchristos 	Possible values:
155a5a4af3bSchristos 	0x000	SFC	Source Function Code reg	[60, 40, 30, 20, 10]
156a5a4af3bSchristos 	0x001	DFC	Data Function Code reg		[60, 40, 30, 20, 10]
157a5a4af3bSchristos 	0x002   CACR    Cache Control Register          [60, 40, 30, 20, mcf]
158a5a4af3bSchristos 	0x003	TC	MMU Translation Control		[60, 40]
159a5a4af3bSchristos 	0x004	ITT0	Instruction Transparent
160a5a4af3bSchristos 				Translation reg 0	[60, 40]
161a5a4af3bSchristos 	0x005	ITT1	Instruction Transparent
162a5a4af3bSchristos 				Translation reg 1	[60, 40]
163a5a4af3bSchristos 	0x006	DTT0	Data Transparent
164a5a4af3bSchristos 				Translation reg 0	[60, 40]
165a5a4af3bSchristos 	0x007	DTT1	Data Transparent
166a5a4af3bSchristos 				Translation reg 1	[60, 40]
167a5a4af3bSchristos 	0x008	BUSCR	Bus Control Register		[60]
168a5a4af3bSchristos 	0x800	USP	User Stack Pointer		[60, 40, 30, 20, 10]
169a5a4af3bSchristos         0x801   VBR     Vector Base reg                 [60, 40, 30, 20, 10, mcf]
170a5a4af3bSchristos 	0x802	CAAR	Cache Address Register		[        30, 20]
171a5a4af3bSchristos 	0x803	MSP	Master Stack Pointer		[    40, 30, 20]
172a5a4af3bSchristos 	0x804	ISP	Interrupt Stack Pointer		[    40, 30, 20]
173a5a4af3bSchristos 	0x805	MMUSR	MMU Status reg			[    40]
174a5a4af3bSchristos 	0x806	URP	User Root Pointer		[60, 40]
175a5a4af3bSchristos 	0x807	SRP	Supervisor Root Pointer		[60, 40]
176a5a4af3bSchristos 	0x808	PCR	Processor Configuration reg	[60]
177a5a4af3bSchristos 	0xC00	ROMBAR	ROM Base Address Register	[520X]
178a5a4af3bSchristos 	0xC04	RAMBAR0	RAM Base Address Register 0	[520X]
179a5a4af3bSchristos 	0xC05	RAMBAR1	RAM Base Address Register 0	[520X]
180a5a4af3bSchristos 	0xC0F	MBAR0	RAM Base Address Register 0	[520X]
181a5a4af3bSchristos         0xC04   FLASHBAR FLASH Base Address Register    [mcf528x]
182a5a4af3bSchristos         0xC05   RAMBAR  Static RAM Base Address Register [mcf528x]
183a5a4af3bSchristos 
184a5a4af3bSchristos     L  Register list of the type d0-d7/a0-a7 etc.
185a5a4af3bSchristos        (New!  Improved!  Can also hold fp0-fp7, as well!)
186a5a4af3bSchristos        The assembler tries to see if the registers match the insn by
187a5a4af3bSchristos        looking at where the insn wants them stored.
188a5a4af3bSchristos 
189a5a4af3bSchristos     l  Register list like L, but with all the bits reversed.
190a5a4af3bSchristos        Used for going the other way. . .
191a5a4af3bSchristos 
192a5a4af3bSchristos     c  cache identifier which may be "nc" for no cache, "ic"
193a5a4af3bSchristos        for instruction cache, "dc" for data cache, or "bc"
194a5a4af3bSchristos        for both caches.  Used in cinv and cpush.  Always
195a5a4af3bSchristos        stored in position "d".
196a5a4af3bSchristos 
197a5a4af3bSchristos     u  Any register, with ``upper'' or ``lower'' specification.  Used
198a5a4af3bSchristos        in the mac instructions with size word.
199a5a4af3bSchristos 
200a5a4af3bSchristos  The remainder are all stored as 6 bits using an address mode and a
201a5a4af3bSchristos  register number; they differ in which addressing modes they match.
202a5a4af3bSchristos 
203a5a4af3bSchristos    *  all					(modes 0-6,7.0-4)
204a5a4af3bSchristos    ~  alterable memory				(modes 2-6,7.0,7.1)
205a5a4af3bSchristos    						(not 0,1,7.2-4)
206a5a4af3bSchristos    %  alterable					(modes 0-6,7.0,7.1)
207a5a4af3bSchristos 						(not 7.2-4)
208a5a4af3bSchristos    ;  data					(modes 0,2-6,7.0-4)
209a5a4af3bSchristos 						(not 1)
210a5a4af3bSchristos    @  data, but not immediate			(modes 0,2-6,7.0-3)
211a5a4af3bSchristos 						(not 1,7.4)
212a5a4af3bSchristos    !  control					(modes 2,5,6,7.0-3)
213a5a4af3bSchristos 						(not 0,1,3,4,7.4)
214a5a4af3bSchristos    &  alterable control				(modes 2,5,6,7.0,7.1)
215a5a4af3bSchristos 						(not 0,1,3,4,7.2-4)
216a5a4af3bSchristos    $  alterable data				(modes 0,2-6,7.0,7.1)
217a5a4af3bSchristos 						(not 1,7.2-4)
218a5a4af3bSchristos    ?  alterable control, or data register	(modes 0,2,5,6,7.0,7.1)
219a5a4af3bSchristos 						(not 1,3,4,7.2-4)
220a5a4af3bSchristos    /  control, or data register			(modes 0,2,5,6,7.0-3)
221a5a4af3bSchristos 						(not 1,3,4,7.4)
222a5a4af3bSchristos    >  *save operands				(modes 2,4,5,6,7.0,7.1)
223a5a4af3bSchristos 						(not 0,1,3,7.2-4)
224a5a4af3bSchristos    <  *restore operands				(modes 2,3,5,6,7.0-3)
225a5a4af3bSchristos 						(not 0,1,4,7.4)
226a5a4af3bSchristos 
227a5a4af3bSchristos    coldfire move operands:
228a5a4af3bSchristos    m  						(modes 0-4)
229a5a4af3bSchristos    n						(modes 5,7.2)
230a5a4af3bSchristos    o						(modes 6,7.0,7.1,7.3,7.4)
231a5a4af3bSchristos    p						(modes 0-5)
232a5a4af3bSchristos 
233a5a4af3bSchristos    coldfire bset/bclr/btst/mulsl/mulul operands:
234a5a4af3bSchristos    q						(modes 0,2-5)
235a5a4af3bSchristos    v						(modes 0,2-5,7.0,7.1)
236a5a4af3bSchristos    b                                            (modes 0,2-5,7.2)
237a5a4af3bSchristos    w                                            (modes 2-5,7.2)
238a5a4af3bSchristos    y						(modes 2,5)
239a5a4af3bSchristos    z						(modes 2,5,7.2)
240a5a4af3bSchristos    x  mov3q immediate operand.
241a5a4af3bSchristos    j  coprocessor ET operand.
242a5a4af3bSchristos    K  coprocessor command number.
243a5a4af3bSchristos    4						(modes 2,3,4,5)
244a5a4af3bSchristos   */
245a5a4af3bSchristos 
246a5a4af3bSchristos /* For the 68851:  */
247a5a4af3bSchristos /* I didn't use much imagination in choosing the
248a5a4af3bSchristos    following codes, so many of them aren't very
249a5a4af3bSchristos    mnemonic. -rab
250a5a4af3bSchristos 
251a5a4af3bSchristos    0  32 bit pmmu register
252a5a4af3bSchristos 	Possible values:
253a5a4af3bSchristos 	000	TC	Translation Control Register (68030, 68851)
254a5a4af3bSchristos 
255a5a4af3bSchristos    1  16 bit pmmu register
256a5a4af3bSchristos 	111	AC	Access Control (68851)
257a5a4af3bSchristos 
258a5a4af3bSchristos    2  8 bit pmmu register
259a5a4af3bSchristos 	100	CAL	Current Access Level (68851)
260a5a4af3bSchristos 	101	VAL	Validate Access Level (68851)
261a5a4af3bSchristos 	110	SCC	Stack Change Control (68851)
262a5a4af3bSchristos 
263a5a4af3bSchristos    3  68030-only pmmu registers (32 bit)
264a5a4af3bSchristos 	010	TT0	Transparent Translation reg 0
265a5a4af3bSchristos 			(aka Access Control reg 0 -- AC0 -- on 68ec030)
266a5a4af3bSchristos 	011	TT1	Transparent Translation reg 1
267a5a4af3bSchristos 			(aka Access Control reg 1 -- AC1 -- on 68ec030)
268a5a4af3bSchristos 
269a5a4af3bSchristos    W  wide pmmu registers
270a5a4af3bSchristos 	Possible values:
271a5a4af3bSchristos 	001	DRP	Dma Root Pointer (68851)
272a5a4af3bSchristos 	010	SRP	Supervisor Root Pointer (68030, 68851)
273a5a4af3bSchristos 	011	CRP	Cpu Root Pointer (68030, 68851)
274a5a4af3bSchristos 
275a5a4af3bSchristos    f	function code register (68030, 68851)
276a5a4af3bSchristos 	0	SFC
277a5a4af3bSchristos 	1	DFC
278a5a4af3bSchristos 
279a5a4af3bSchristos    V	VAL register only (68851)
280a5a4af3bSchristos 
281a5a4af3bSchristos    X	BADx, BACx (16 bit)
282a5a4af3bSchristos 	100	BAD	Breakpoint Acknowledge Data (68851)
283a5a4af3bSchristos 	101	BAC	Breakpoint Acknowledge Control (68851)
284a5a4af3bSchristos 
285a5a4af3bSchristos    Y	PSR (68851) (MMUSR on 68030) (ACUSR on 68ec030)
286a5a4af3bSchristos    Z	PCSR (68851)
287a5a4af3bSchristos 
288a5a4af3bSchristos    |	memory 		(modes 2-6, 7.*)
289a5a4af3bSchristos 
290a5a4af3bSchristos    t  address test level (68030 only)
291a5a4af3bSchristos       Stored as 3 bits, range 0-7.
292a5a4af3bSchristos       Also used for breakpoint instruction now.
293a5a4af3bSchristos 
294a5a4af3bSchristos */
295a5a4af3bSchristos 
296a5a4af3bSchristos /* Places to put an operand, for non-general operands:
297a5a4af3bSchristos    Characters used: BbCcDdFfGgHhIijkLlMmNnostWw123456789/
298a5a4af3bSchristos 
299a5a4af3bSchristos    s  source, low bits of first word.
300a5a4af3bSchristos    d  dest, shifted 9 in first word
301a5a4af3bSchristos    1  second word, shifted 12
302a5a4af3bSchristos    2  second word, shifted 6
303a5a4af3bSchristos    3  second word, shifted 0
304a5a4af3bSchristos    4  third word, shifted 12
305a5a4af3bSchristos    5  third word, shifted 6
306a5a4af3bSchristos    6  third word, shifted 0
307a5a4af3bSchristos    7  second word, shifted 7
308a5a4af3bSchristos    8  second word, shifted 10
309a5a4af3bSchristos    9  second word, shifted 5
310a5a4af3bSchristos    E  second word, shifted 9
311a5a4af3bSchristos    D  store in both place 1 and place 3; for divul and divsl.
312a5a4af3bSchristos    B  first word, low byte, for branch displacements
313a5a4af3bSchristos    W  second word (entire), for branch displacements
314a5a4af3bSchristos    L  second and third words (entire), for branch displacements
315a5a4af3bSchristos       (also overloaded for move16)
316a5a4af3bSchristos    b  second word, low byte
317a5a4af3bSchristos    w  second word (entire) [variable word/long branch offset for dbra]
318a5a4af3bSchristos    W  second word (entire) (must be signed 16 bit value)
319a5a4af3bSchristos    l  second and third word (entire)
320a5a4af3bSchristos    g  variable branch offset for bra and similar instructions.
321a5a4af3bSchristos       The place to store depends on the magnitude of offset.
322a5a4af3bSchristos    t  store in both place 7 and place 8; for floating point operations
323a5a4af3bSchristos    c  branch offset for cpBcc operations.
324a5a4af3bSchristos       The place to store is word two if bit six of word one is zero,
325a5a4af3bSchristos       and words two and three if bit six of word one is one.
326a5a4af3bSchristos    i  Increment by two, to skip over coprocessor extended operands.   Only
327a5a4af3bSchristos       works with the 'I' format.
328a5a4af3bSchristos    k  Dynamic K-factor field.   Bits 6-4 of word 2, used as a register number.
329a5a4af3bSchristos       Also used for dynamic fmovem instruction.
330a5a4af3bSchristos    C  floating point coprocessor constant - 7 bits.  Also used for static
331a5a4af3bSchristos       K-factors...
332a5a4af3bSchristos    j  Movec register #, stored in 12 low bits of second word.
333a5a4af3bSchristos    m  For M[S]ACx; 4 bits split with MSB shifted 6 bits in first word
334a5a4af3bSchristos       and remaining 3 bits of register shifted 9 bits in first word.
335a5a4af3bSchristos       Indicate upper/lower in 1 bit shifted 7 bits in second word.
336a5a4af3bSchristos       Use with `R' or `u' format.
337a5a4af3bSchristos    n  `m' withouth upper/lower indication. (For M[S]ACx; 4 bits split
338a5a4af3bSchristos       with MSB shifted 6 bits in first word and remaining 3 bits of
339a5a4af3bSchristos       register shifted 9 bits in first word.  No upper/lower
340a5a4af3bSchristos       indication is done.)  Use with `R' or `u' format.
341a5a4af3bSchristos    o  For M[S]ACw; 4 bits shifted 12 in second word (like `1').
342a5a4af3bSchristos       Indicate upper/lower in 1 bit shifted 7 bits in second word.
343a5a4af3bSchristos       Use with `R' or `u' format.
344a5a4af3bSchristos    M  For M[S]ACw; 4 bits in low bits of first word.  Indicate
345a5a4af3bSchristos       upper/lower in 1 bit shifted 6 bits in second word.  Use with
346a5a4af3bSchristos       `R' or `u' format.
347a5a4af3bSchristos    N  For M[S]ACw; 4 bits in low bits of second word.  Indicate
348a5a4af3bSchristos       upper/lower in 1 bit shifted 6 bits in second word.  Use with
349a5a4af3bSchristos       `R' or `u' format.
350a5a4af3bSchristos    h  shift indicator (scale factor), 1 bit shifted 10 in second word
351a5a4af3bSchristos 
352a5a4af3bSchristos  Places to put operand, for general operands:
353a5a4af3bSchristos    d  destination, shifted 6 bits in first word
354a5a4af3bSchristos    b  source, at low bit of first word, and immediate uses one byte
355a5a4af3bSchristos    w  source, at low bit of first word, and immediate uses two bytes
356a5a4af3bSchristos    l  source, at low bit of first word, and immediate uses four bytes
357a5a4af3bSchristos    s  source, at low bit of first word.
358a5a4af3bSchristos       Used sometimes in contexts where immediate is not allowed anyway.
359a5a4af3bSchristos    f  single precision float, low bit of 1st word, immediate uses 4 bytes
360a5a4af3bSchristos    F  double precision float, low bit of 1st word, immediate uses 8 bytes
361a5a4af3bSchristos    x  extended precision float, low bit of 1st word, immediate uses 12 bytes
362a5a4af3bSchristos    p  packed float, low bit of 1st word, immediate uses 12 bytes
363a5a4af3bSchristos    G  EMAC accumulator, load  (bit 4 2nd word, !bit8 first word)
364a5a4af3bSchristos    H  EMAC accumulator, non load  (bit 4 2nd word, bit 8 first word)
365a5a4af3bSchristos    F  EMAC ACCx
366a5a4af3bSchristos    f  EMAC ACCy
367a5a4af3bSchristos    I  MAC/EMAC scale factor
368a5a4af3bSchristos    /  Like 's', but set 2nd word, bit 5 if trailing_ampersand set
369a5a4af3bSchristos    ]  first word, bit 10
370a5a4af3bSchristos */
371a5a4af3bSchristos 
372a5a4af3bSchristos extern const struct m68k_opcode m68k_opcodes[];
373a5a4af3bSchristos extern const struct m68k_opcode_alias m68k_opcode_aliases[];
374a5a4af3bSchristos 
375a5a4af3bSchristos extern const int m68k_numopcodes, m68k_numaliases;
376a5a4af3bSchristos 
377a5a4af3bSchristos /* end of m68k-opcode.h */
378