Mostly just formatting and comments.

This commit is contained in:
K. Richard Pixley 1991-08-16 19:09:17 +00:00
parent 351b221ded
commit 88f13fd058

View file

@ -1,5 +1,5 @@
/* Opcode table for m68000/m68020 and m68881. /* Opcode table for m680[01234]0/m6888[12].
Copyright (C) 1989, Free Software Foundation. Copyright (C) 1989, 1991 Free Software Foundation.
This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler. This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler.
@ -17,13 +17,29 @@ You should have received a copy of the GNU General Public License
along with GDB or GAS; see the file COPYING. If not, write to along with GDB or GAS; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
enum m68k_architecture {
ARCH_68000 = 0,
ARCH_68010,
ARCH_68020,
ARCH_68030,
ARCH_68040,
};
struct m68k_opcode static const char *architecture_pname[] = {
{ "68000",
char *name; "68010",
unsigned long opcode; "68020",
unsigned long match; "68030",
char *args; "68040",
NULL,
};
struct m68k_opcode {
char *name;
unsigned long opcode;
unsigned long match;
char *args;
enum m68k_architecture arch;
}; };
/* We store four bytes of opcode for all opcodes because that /* We store four bytes of opcode for all opcodes because that
@ -204,18 +220,18 @@ struct m68k_opcode
*/ */
struct m68k_opcode m68k_opcodes[] = struct m68k_opcode m68k_opcodes[] =
{ {
{"abcd", one(0140400), one(0170770), "DsDd"}, {"abcd", one(0140400), one(0170770), "DsDd", m68000 },
{"abcd", one(0140410), one(0170770), "-s-d"}, {"abcd", one(0140410), one(0170770), "-s-d", m68000 },
/* Add instructions */ /* Add instructions */
{"addal", one(0150700), one(0170700), "*lAd"}, {"addal", one(0150700), one(0170700), "*lAd", m68000 },
{"addaw", one(0150300), one(0170700), "*wAd"}, {"addaw", one(0150300), one(0170700), "*wAd", m68000 },
{"addib", one(0003000), one(0177700), "#b$b"}, {"addib", one(0003000), one(0177700), "#b$b", m68000 },
{"addil", one(0003200), one(0177700), "#l$l"}, {"addil", one(0003200), one(0177700), "#l$l", m68000 },
{"addiw", one(0003100), one(0177700), "#w$w"}, {"addiw", one(0003100), one(0177700), "#w$w", m68000 },
{"addqb", one(0050000), one(0170700), "Qd$b"}, {"addqb", one(0050000), one(0170700), "Qd$b", m68000 },
{"addql", one(0050200), one(0170700), "Qd%l"}, {"addql", one(0050200), one(0170700), "Qd%l", m68000 },
{"addqw", one(0050100), one(0170700), "Qd%w"}, {"addqw", one(0050100), one(0170700), "Qd%w", m68000 },
{"addb", one(0050000), one(0170700), "Qd$b"}, /* addq written as add */ {"addb", one(0050000), one(0170700), "Qd$b"}, /* addq written as add */
{"addb", one(0003000), one(0177700), "#b$b"}, /* addi written as add */ {"addb", one(0003000), one(0177700), "#b$b"}, /* addi written as add */
@ -1732,3 +1748,11 @@ struct m68k_opcode m68k_opcodes[] =
int numopcodes=sizeof(m68k_opcodes)/sizeof(m68k_opcodes[0]); int numopcodes=sizeof(m68k_opcodes)/sizeof(m68k_opcodes[0]);
struct m68k_opcode *endop = m68k_opcodes+sizeof(m68k_opcodes)/sizeof(m68k_opcodes[0]); struct m68k_opcode *endop = m68k_opcodes+sizeof(m68k_opcodes)/sizeof(m68k_opcodes[0]);
/*
* Local Variables:
* fill-column: 131
* End:
*/
/* end of m68k-opcode.h */