Changes to add dollar prefix to registers for files where user symbols
[deliverable/binutils-gdb.git] / opcodes / h8300-dis.c
index 489aa8ccef40a195974fdc180b11db2a11c40731..61350b0d59417f1df77fcaa847492955a92098c9 100644 (file)
@@ -87,7 +87,7 @@ bfd_h8_disassemble (addr, info, mode)
   int bit = 0;
   int plen = 0;
   static boolean init = 0;
-  struct h8_opcode *q = h8_opcodes;
+  struct h8_opcode *q;
   char CONST **pregnames = mode != 0 ? lregnames : wregnames;
   int status;
   int l;
@@ -112,13 +112,11 @@ bfd_h8_disassemble (addr, info, mode)
     status = info->read_memory_func (addr + l, data + l, 2, info);
 
   /* Find the exact opcode/arg combo.  */
-  while (q->name)
+  for (q = h8_opcodes; q->name; q++)
     {
-      op_type *nib;
+      op_type *nib = q->data.nib;
       unsigned int len = 0;
 
-      nib = q->data.nib;
-
       while (1)
        {
          op_type looking_for = *nib;
@@ -398,7 +396,7 @@ bfd_h8_disassemble (addr, info, mode)
        }
 
     fail:
-      q++;
+      ;
     }
 
   /* Fell off the end.  */
This page took 0.024146 seconds and 4 git commands to generate.