Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/opcodes/a29k-dis.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* Instruction printing code for the AMD 29000
    2    Copyright 1990, 1993, 1994, 1995, 1998, 2000
     2   Copyright 1990, 1993, 1994, 1995, 1998, 2000, 2001, 2002
    33   Free Software Foundation, Inc.
    44   Contributed by Cygnus Support.  Written by Jim Kingdon.
     
    2323#include "dis-asm.h"
    2424#include "opcode/a29k.h"
     25
     26static void print_general PARAMS ((int, struct disassemble_info *));
     27static void print_special PARAMS ((unsigned int, struct disassemble_info *));
     28static int is_delayed_branch PARAMS ((int));
     29static void find_bytes_little
     30  PARAMS ((char *, unsigned char *, unsigned char *, unsigned char *,
     31           unsigned char *));
     32static void find_bytes_big
     33  PARAMS ((char *, unsigned char *, unsigned char *, unsigned char *,
     34           unsigned char *));
     35static int print_insn PARAMS ((bfd_vma, struct disassemble_info *));
     36
    2537
    2638/* Print a symbolic representation of a general-purpose
     
    4052
    4153/* Like print_general but a special-purpose register.
    42    
     54
    4355   The mnemonics used by the AMD assembler are not quite the same
    4456   as the ones in the User's Manual.  We use the ones that the
     
    142154  find_byte_func_type find_byte_func = (find_byte_func_type)info->private_data;
    143155
    144   struct a29k_opcode CONST * opcode;
     156  struct a29k_opcode const * opcode;
    145157
    146158  {
     
    172184        {
    173185          char *s;
    174          
     186
    175187          (*info->fprintf_func) (info->stream, "%s ", opcode->name);
    176188          for (s = opcode->args; *s != '\0'; ++s)
     
    181193                  print_general (insn8, info);
    182194                  break;
    183                  
     195
    184196                case 'b':
    185197                  print_general (insn0, info);
     
    282294              char prev_insn[4];
    283295              unsigned char prev_insn0, prev_insn8, prev_insn16, prev_insn24;
    284              
     296
    285297              errcode = (*info->read_memory_func) (memaddr - 4,
    286298                                                   (bfd_byte *) &prev_insn[0],
     
    292304                     instruction before the delayed brach to handle
    293305                     things like
    294                      
     306
    295307                     const _foo
    296308                     call _printf
     
    307319                    }
    308320                }
    309                  
     321
    310322              /* If there was a problem reading memory, then assume
    311323                 the previous instruction was not const.  */
Note: See TracChangeset for help on using the changeset viewer.