aboutsummaryrefslogtreecommitdiff
path: root/binutils/i960-pinsn.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-11-06 08:14:14 +0000
committerJohn Gilmore <gnu@cygnus>1992-11-06 08:14:14 +0000
commita644baaa037aa4b0a1ffeda7371b40c32595f620 (patch)
treedbffd693f0866e2334a4fd99234d291f8a858c47 /binutils/i960-pinsn.c
parente8e18f74904f28bf84b0d2f31ae7ade47fb88fc7 (diff)
downloadfsf-binutils-gdb-a644baaa037aa4b0a1ffeda7371b40c32595f620.zip
fsf-binutils-gdb-a644baaa037aa4b0a1ffeda7371b40c32595f620.tar.gz
fsf-binutils-gdb-a644baaa037aa4b0a1ffeda7371b40c32595f620.tar.bz2
* i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper bound properly.
Diffstat (limited to 'binutils/i960-pinsn.c')
-rw-r--r--binutils/i960-pinsn.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/binutils/i960-pinsn.c b/binutils/i960-pinsn.c
index 107bed8..a346064 100644
--- a/binutils/i960-pinsn.c
+++ b/binutils/i960-pinsn.c
@@ -292,8 +292,12 @@ mem( memaddr, word1, word2, noprint )
* -2: 2 operands, store instruction
*/
static struct tabent *mem_tab = NULL;
- static struct { int opcode; char *name; char numops; } mem_init[] = {
+/* Opcodes of 0x8X, 9X, aX, bX, and cX must be in the table. */
#define MEM_MIN 0x80
+#define MEM_MAX 0xcf
+#define MEM_SIZ ((MEM_MAX-MEM_MIN+1) * sizeof(struct tabent))
+
+ static struct { int opcode; char *name; char numops; } mem_init[] = {
0x80, "ldob", 2,
0x82, "stob", -2,
0x84, "bx", 1,
@@ -314,8 +318,6 @@ mem( memaddr, word1, word2, noprint )
0xc2, "stib", -2,
0xc8, "ldis", 2,
0xca, "stis", -2,
-#define MEM_MAX 0xca
-#define MEM_SIZ ((MEM_MAX-MEM_MIN+1) * sizeof(struct tabent))
0, NULL, 0
};