diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 05:05:38 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 05:05:38 +0000 |
| commit | 4399be3cbd35324f7a2c00d77229d995b4022138 (patch) | |
| tree | a3959baf797787918878bec6d58d6a0fb743ad0a /gnu/usr.bin/as/opcode | |
| parent | 709e8f9ae1d734c1a163c9b421df4b8153939ce7 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/as/opcode')
| -rw-r--r-- | gnu/usr.bin/as/opcode/h8300.h | 18 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/i386.h | 14 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/i860.h | 2 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/i960.h | 6 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/m68k.h | 8 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/mips.h | 2 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/ns32k.h | 6 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/pyr.h | 18 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/sparc.h | 6 | ||||
| -rw-r--r-- | gnu/usr.bin/as/opcode/tahoe.h | 2 |
10 files changed, 41 insertions, 41 deletions
diff --git a/gnu/usr.bin/as/opcode/h8300.h b/gnu/usr.bin/as/opcode/h8300.h index f4702a8f2f16..59dea0d5adff 100644 --- a/gnu/usr.bin/as/opcode/h8300.h +++ b/gnu/usr.bin/as/opcode/h8300.h @@ -69,17 +69,17 @@ typedef int op_type; -struct code +struct code { op_type nib[9]; } ; -struct arg +struct arg { op_type nib[3]; } ; -struct h8_opcode +struct h8_opcode { char *name; struct arg args; @@ -88,7 +88,7 @@ struct h8_opcode char noperands; char idx; char size; - + }; @@ -113,13 +113,13 @@ struct h8_opcode { name,{DISP8,E}, { Hex4, op, DISP8,IGNORE,E }} #define SOP(name) \ -{ name +{ name #define EOP } #define TWOOP(name, op1, op2,op3) \ { name, {IMM8, RD8,E}, { op1, RD8, IMM8,IGNORE,E}},\ -{ name, {RS8, RD8, E}, { op2, op3, RS8, RD8 ,E}} +{ name, {RS8, RD8, E}, { op2, op3, RS8, RD8 ,E}} #define UNOP(name, op1, op2) \ { name, {RS8, E}, { op1, op2, 0, RS8, E}} @@ -127,8 +127,8 @@ struct h8_opcode #define UNOP3(name, op1, op2, op3) \ { name , {RS8, E}, {op1, op2, op3, RS8, E}} -struct h8_opcode h8_opcodes[] -= +struct h8_opcode h8_opcodes[] += { TWOOP("add.b", Hex8, Hex0,Hex8), WTWOP("add.w", Hex0, Hex9), @@ -253,7 +253,7 @@ SOP("sub.b"), {RS8,RD8,E}, { Hex1, Hex8, RS8, RD8,E} EOP, SOP("sub.w"), {RS16|B30, RD16|B30,E}, {Hex1, Hex9, RS16|B30,RD16|B30,E} EOP, SOP("subs"), {KBIT,RD16|B30,E}, { Hex1, HexB, KBIT, RD16|B30,E} EOP, TWOOP("subx",HexB, Hex1, HexE), - TWOOP("xor", HexD, Hex1, Hex5), + TWOOP("xor", HexD, Hex1, Hex5), SOP("xorc"), {IMM8, CCR,E}, { Hex0, Hex5, IMM8,IGNORE,E} EOP, 0 }; diff --git a/gnu/usr.bin/as/opcode/i386.h b/gnu/usr.bin/as/opcode/i386.h index 0f7d8a0e3f78..0c663570617c 100644 --- a/gnu/usr.bin/as/opcode/i386.h +++ b/gnu/usr.bin/as/opcode/i386.h @@ -16,8 +16,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GAS; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ - -/* $Id: i386.h,v 1.1 1993/11/03 00:55:51 paul Exp $ */ + +/* $Id: i386.h,v 1.2 1994/12/11 20:46:55 sef Exp $ */ static const template i386_optab[] = { @@ -501,7 +501,7 @@ static const template i386_optab[] = { /* comparison (without pop) */ {"fcom", 1, 0xd8d0, _, ShortForm, FloatReg, 0, 0}, {"fcoms", 1, 0xd8, 2, Modrm, Mem, 0, 0}, /* compare %st0, mem float */ -{"ficoml", 1, 0xda, 2, Modrm, Mem, 0, 0}, /* compare %st0, mem word */ +{"ficoml", 1, 0xda, 2, Modrm, Mem, 0, 0}, /* compare %st0, mem word */ {"fcoml", 1, 0xdc, 2, Modrm, Mem, 0, 0}, /* compare %st0, mem double */ {"fcoml", 1, 0xd8d0, _, ShortForm, FloatReg, 0, 0}, {"ficoms", 1, 0xde, 2, Modrm, Mem, 0, 0}, /* compare %st0, mem dword */ @@ -509,7 +509,7 @@ static const template i386_optab[] = { /* comparison (with pop) */ {"fcomp", 1, 0xd8d8, _, ShortForm, FloatReg, 0, 0}, {"fcomps", 1, 0xd8, 3, Modrm, Mem, 0, 0}, /* compare %st0, mem float */ -{"ficompl", 1, 0xda, 3, Modrm, Mem, 0, 0}, /* compare %st0, mem word */ +{"ficompl", 1, 0xda, 3, Modrm, Mem, 0, 0}, /* compare %st0, mem word */ {"fcompl", 1, 0xdc, 3, Modrm, Mem, 0, 0}, /* compare %st0, mem double */ {"fcompl", 1, 0xd8d8, _, ShortForm, FloatReg, 0, 0}, {"ficomps", 1, 0xde, 3, Modrm, Mem, 0, 0}, /* compare %st0, mem dword */ @@ -736,7 +736,7 @@ static const template i386_optab[] = { }; #undef _ -static const template *i386_optab_end +static const template *i386_optab_end = i386_optab + sizeof (i386_optab)/sizeof(i386_optab[0]); /* 386 register table */ @@ -765,8 +765,8 @@ static const reg_entry i386_regtab[] = { /* float registers */ {"st(0)", FloatReg|FloatAcc, 0}, {"st", FloatReg|FloatAcc, 0}, - {"st(1)", FloatReg, 1}, {"st(2)", FloatReg, 2}, - {"st(3)", FloatReg, 3}, {"st(4)", FloatReg, 4}, {"st(5)", FloatReg, 5}, + {"st(1)", FloatReg, 1}, {"st(2)", FloatReg, 2}, + {"st(3)", FloatReg, 3}, {"st(4)", FloatReg, 4}, {"st(5)", FloatReg, 5}, {"st(6)", FloatReg, 6}, {"st(7)", FloatReg, 7} }; diff --git a/gnu/usr.bin/as/opcode/i860.h b/gnu/usr.bin/as/opcode/i860.h index 0842786d3494..b429a22fd823 100644 --- a/gnu/usr.bin/as/opcode/i860.h +++ b/gnu/usr.bin/as/opcode/i860.h @@ -82,7 +82,7 @@ Kinds of operands: */ /* The order of the opcodes in this table is significant: - + * The assembler requires that all instances of the same mnemonic must be consecutive. If they aren't, the assembler will bomb at runtime. diff --git a/gnu/usr.bin/as/opcode/i960.h b/gnu/usr.bin/as/opcode/i960.h index e9c8cb4bef29..6a6ad42536bd 100644 --- a/gnu/usr.bin/as/opcode/i960.h +++ b/gnu/usr.bin/as/opcode/i960.h @@ -16,9 +16,9 @@ * the instruction generated (a CTRL-format 'call') should have its relocation * specially flagged for link-time replacement with a 'bal' or 'calls' if * appropriate. - */ + */ -/* $Id: i960.h,v 1.1 1993/10/02 21:00:44 pk Exp $ */ +/* $Id: i960.h,v 1.1 1993/11/03 00:55:56 paul Exp $ */ #define CTRL 0 #define COBR 1 @@ -38,7 +38,7 @@ #define M2 0x1000 #define M3 0x2000 -/* Generate the 12-bit opcode for a REG format instruction by placing the +/* Generate the 12-bit opcode for a REG format instruction by placing the * high 8 bits in instruction bits 24-31, the low 4 bits in instruction bits * 7-10. */ diff --git a/gnu/usr.bin/as/opcode/m68k.h b/gnu/usr.bin/as/opcode/m68k.h index 86ee7a98274c..65825fb4558e 100644 --- a/gnu/usr.bin/as/opcode/m68k.h +++ b/gnu/usr.bin/as/opcode/m68k.h @@ -157,7 +157,7 @@ struct m68k_opcode { /* JF: for the 68851 */ /* - I didn't use much imagination in choosing the + I didn't use much imagination in choosing the following codes, so many of them aren't very mnemonic. -rab @@ -981,7 +981,7 @@ struct m68k_opcode m68k_opcodes[] = {"fmovem", two(0xF018, 0xD000), two(0xF1F8, 0xFF00), "Id+s#3", mfloat }, /* from autoincrement, static and dynamic: */ {"fmovem", two(0xF018, 0xD800), two(0xF1F8, 0xFF8F), "Ii+sDk", mfloat }, /* from autoincrement, static and dynamic: */ - + {"fmovem", two(0xF000, 0xD000), two(0xF1C0, 0xFF00), "Id&s#3", mfloat }, /* from control, static and dynamic: */ {"fmovem", two(0xF000, 0xD800), two(0xF1C0, 0xFF8F), "Ii&sDk", mfloat }, /* from control, static and dynamic: */ @@ -1287,7 +1287,7 @@ struct m68k_opcode m68k_opcodes[] = {"ftrapule", two(0xF07C, 0x000D), two(0xF1FF, 0xFFFF), "Ii", mfloat }, {"ftrapult", two(0xF07C, 0x000C), two(0xF1FF, 0xFFFF), "Ii", mfloat }, {"ftrapun", two(0xF07C, 0x0008), two(0xF1FF, 0xFFFF), "Ii", mfloat }, - + {"ftrapeqw", two(0xF07A, 0x0001), two(0xF1FF, 0xFFFF), "Ii^w", mfloat }, {"ftrapfw", two(0xF07A, 0x0000), two(0xF1FF, 0xFFFF), "Ii^w", mfloat }, {"ftrapgew", two(0xF07A, 0x0013), two(0xF1FF, 0xFFFF), "Ii^w", mfloat }, @@ -1840,7 +1840,7 @@ struct m68k_opcode m68k_opcodes[] = {"subxw", one(0110510), one(0170770), "-s-d", m68000up }, {"swap", one(0044100), one(0177770), "Ds", m68000up }, - + {"tas", one(0045300), one(0177700), "$s", m68000up }, {"trap", one(0047100), one(0177760), "Ts", m68000up }, diff --git a/gnu/usr.bin/as/opcode/mips.h b/gnu/usr.bin/as/opcode/mips.h index a65678a941da..796ed4710281 100644 --- a/gnu/usr.bin/as/opcode/mips.h +++ b/gnu/usr.bin/as/opcode/mips.h @@ -122,7 +122,7 @@ struct mips_opcode #define op_o16(x, y) ((x << 26) | (y << 16)) #define op_bc(x, y, z) ((x << 26) | (y << 21) | (z << 16)) -struct mips_opcode mips_opcodes[] = +struct mips_opcode mips_opcodes[] = { /* These first opcodes are special cases of the ones in the comments */ {"nop", 0, 0xffffffff, /*li*/ "", 0}, diff --git a/gnu/usr.bin/as/opcode/ns32k.h b/gnu/usr.bin/as/opcode/ns32k.h index 2a7621a9ca32..e513e6435f17 100644 --- a/gnu/usr.bin/as/opcode/ns32k.h +++ b/gnu/usr.bin/as/opcode/ns32k.h @@ -37,7 +37,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ the opcode or the addition of data to the opcode. The operands in the source instruction are checked for inconsistent semantics. - + F : 32 bit float general form L : 64 bit float " B : byte " @@ -115,7 +115,7 @@ struct not /* ns32k opcode text */ }; /* Instructions look like this: - + basic instruction--1, 2, or 3 bytes index byte for operand A, if operand A is indexed--1 byte index byte for operand B, if operand B is indexed--1 byte @@ -129,7 +129,7 @@ struct not /* ns32k opcode text */ The implied operands are associated with operands other than A and B. Each operand has a digit and a letter. - + The digit gives the position in the assembly language. The letter, one of the following, tells us what kind of operand it is. */ diff --git a/gnu/usr.bin/as/opcode/pyr.h b/gnu/usr.bin/as/opcode/pyr.h index 06632b8d9197..ea5d84aae456 100644 --- a/gnu/usr.bin/as/opcode/pyr.h +++ b/gnu/usr.bin/as/opcode/pyr.h @@ -20,7 +20,7 @@ typedef struct pyr_insn_format { unsigned int operand_1 :6; unsigned int operand_2:6; } pyr_insn_format; - + /* We store four bytes of opcode for all opcodes. Pyramid is sufficiently RISCy that: @@ -29,7 +29,7 @@ typedef struct pyr_insn_format { the insn. (ie, if there are zero, one, or two words of immediate operand/offset). - + The args component is a string containing two characters for each operand of the instruction. The first specifies the kind of operand; the second, the place it is stored. */ @@ -44,11 +44,11 @@ typedef struct pyr_insn_format { 0x0010: movw I(Rn),Rn offset register indirect to register movw I(Rn)[x],Rn offset register indirect, indexed, to register - 0x0020: movw Rn,(Rn) register to register indirect - 0x0040: movw K,(Rn) quick immediate to register indirect - 0x0080: movw I,(Rn) long immediate to register indirect - 0x0100: movw (Rn),(Rn) register indirect to-register indirect - 0x0100: movw (Rn),(Rn) register indirect to-register indirect + 0x0020: movw Rn,(Rn) register to register indirect + 0x0040: movw K,(Rn) quick immediate to register indirect + 0x0080: movw I,(Rn) long immediate to register indirect + 0x0100: movw (Rn),(Rn) register indirect to-register indirect + 0x0100: movw (Rn),(Rn) register indirect to-register indirect 0x0200: movw I(Rn),(Rn) register indirect+offset to register indirect 0x0200: movw I(Rn),(Rn) register indirect+offset to register indirect @@ -59,7 +59,7 @@ typedef struct pyr_insn_format { 0x1000: movw I(Rn),I(Rn) register indirect+offset to register indirect +offset 0x0000: (irregular) ??? - + Each insn has a four-bit field encoding the type(s) of its operands. */ @@ -228,7 +228,7 @@ struct pyr_opcode pyr_opcodes[] = would not be surprising. They are unlikely to be a packed bcd string: 64 bits of long give is only 15 digits+sign, which isn't enough for COBOL. - */ + */ #if 0 {"wcsp", { 2, "", UNKNOWN, 0x00} }, /*write csp?*/ /* The OSx Operating System Porting Guide claims SSL does things diff --git a/gnu/usr.bin/as/opcode/sparc.h b/gnu/usr.bin/as/opcode/sparc.h index a7dbafb558fa..7921cf597f43 100644 --- a/gnu/usr.bin/as/opcode/sparc.h +++ b/gnu/usr.bin/as/opcode/sparc.h @@ -20,7 +20,7 @@ along with GAS or GDB; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* - * $Id: sparc.h,v 1.1 1993/11/03 00:56:11 paul Exp $ + * $Id: sparc.h,v 1.2 1994/12/23 22:37:45 nate Exp $ */ /* FIXME-someday: perhaps the ,a's and such should be embedded in the @@ -115,7 +115,7 @@ The following chars are unused: (note: ,[] are used as punctuation) */ /* The order of the opcodes in this table is significant: - + * The assembler requires that all instances of the same mnemonic must be consecutive. If they aren't, the assembler will bomb at runtime. @@ -868,7 +868,7 @@ condfc("fbule", "cb013", 0xe, 0), { "cpop1", F3(2, 0x36, 0), F3(~2, ~0x36, ~1), "[1+2],d", 0, v6 }, { "cpop2", F3(2, 0x37, 0), F3(~2, ~0x37, ~1), "[1+2],d", 0, v6 }, - + }; diff --git a/gnu/usr.bin/as/opcode/tahoe.h b/gnu/usr.bin/as/opcode/tahoe.h index 27099a4db083..72b0082d4ce2 100644 --- a/gnu/usr.bin/as/opcode/tahoe.h +++ b/gnu/usr.bin/as/opcode/tahoe.h @@ -41,7 +41,7 @@ totstrs[] = { "lnd", {"rq", 0x17 } }, { "addb3", {"rbrbwb", 0x18 } }, /* cmpb is wrong in the "offical" (what a joke!) text. It's not "rbwb" */ -{ "cmpb", {"rbrb", 0x19 } }, +{ "cmpb", {"rbrb", 0x19 } }, { "addw3", {"rwrwww", 0x1a } }, /* cmpw is wrong in the "offical" text. It's not "rwww" */ { "cmpw", {"rwrw", 0x1b } }, |
