* ns32k.h (struct ns32k_opcode): Constify "name", "operands" and
"default_args". (struct not_wot): Constify "args". (struct not): Constify "name". (numopcodes): Delete. (endop): Delete.
This commit is contained in:
parent
ba1ff7c9b8
commit
b446bff5bc
@ -1,3 +1,12 @@
|
|||||||
|
2002-12-16 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* ns32k.h (struct ns32k_opcode): Constify "name", "operands" and
|
||||||
|
"default_args".
|
||||||
|
(struct not_wot): Constify "args".
|
||||||
|
(struct not): Constify "name".
|
||||||
|
(numopcodes): Delete.
|
||||||
|
(endop): Delete.
|
||||||
|
|
||||||
2002-12-13 Alan Modra <amodra@bigpond.net.au>
|
2002-12-13 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* pj.h (pj_opc_info_t): Add union.
|
* pj.h (pj_opc_info_t): Add union.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ns32k-opcode.h -- Opcode table for National Semi 32k processor
|
/* ns32k-opcode.h -- Opcode table for National Semi 32k processor
|
||||||
Copyright 1987, 1991, 1994 Free Software Foundation, Inc.
|
Copyright 1987, 1991, 1994, 2002 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
|
|
||||||
@ -80,13 +80,13 @@ column 1 instructions
|
|||||||
6 size in bytes of immediate
|
6 size in bytes of immediate
|
||||||
*/
|
*/
|
||||||
struct ns32k_opcode {
|
struct ns32k_opcode {
|
||||||
char *name;
|
const char *name;
|
||||||
unsigned char opcode_id_size; /* not used by the assembler */
|
unsigned char opcode_id_size; /* not used by the assembler */
|
||||||
unsigned char opcode_size;
|
unsigned char opcode_size;
|
||||||
unsigned long opcode_seed;
|
unsigned long opcode_seed;
|
||||||
char *operands;
|
const char *operands;
|
||||||
unsigned char im_size; /* not used by dissassembler */
|
unsigned char im_size; /* not used by dissassembler */
|
||||||
char *default_args; /* default to those args when none given */
|
const char *default_args; /* default to those args when none given */
|
||||||
char default_modec; /* default to this addr-mode when ambigous
|
char default_modec; /* default to this addr-mode when ambigous
|
||||||
ie when the argument of a general addr-mode
|
ie when the argument of a general addr-mode
|
||||||
is a plain constant */
|
is a plain constant */
|
||||||
@ -106,12 +106,12 @@ struct not_wot /* ns32k opcode table: wot to do with this */
|
|||||||
int obits; /* number of opcode bits */
|
int obits; /* number of opcode bits */
|
||||||
int ibits; /* number of instruction bits */
|
int ibits; /* number of instruction bits */
|
||||||
ns32k_opcodeT code; /* op-code (may be > 8 bits!) */
|
ns32k_opcodeT code; /* op-code (may be > 8 bits!) */
|
||||||
char *args; /* how to compile said opcode */
|
const char *args; /* how to compile said opcode */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct not /* ns32k opcode text */
|
struct not /* ns32k opcode text */
|
||||||
{
|
{
|
||||||
char * name; /* opcode name: lowercase string [key] */
|
const char *name; /* opcode name: lowercase string [key] */
|
||||||
struct not_wot detail; /* rest of opcode table [datum] */
|
struct not_wot detail; /* rest of opcode table [datum] */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -482,10 +482,6 @@ static const struct ns32k_opcode ns32k_opcodes[]=
|
|||||||
{ "scalbl", 14,24, 0x10fe, "1L2Z", 8, "", DEF_MODEC,DEF_MODEL },
|
{ "scalbl", 14,24, 0x10fe, "1L2Z", 8, "", DEF_MODEC,DEF_MODEL },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int numopcodes=sizeof(ns32k_opcodes)/sizeof(ns32k_opcodes[0]);
|
|
||||||
|
|
||||||
static const struct ns32k_opcode *const endop = ns32k_opcodes+sizeof(ns32k_opcodes)/sizeof(ns32k_opcodes[0]);
|
|
||||||
|
|
||||||
#define MAX_ARGS 4
|
#define MAX_ARGS 4
|
||||||
#define ARG_LEN 50
|
#define ARG_LEN 50
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user