Changeset 609 for branches/GNU/src/binutils/opcodes/a29k-dis.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/opcodes/a29k-dis.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* 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 3 3 Free Software Foundation, Inc. 4 4 Contributed by Cygnus Support. Written by Jim Kingdon. … … 23 23 #include "dis-asm.h" 24 24 #include "opcode/a29k.h" 25 26 static void print_general PARAMS ((int, struct disassemble_info *)); 27 static void print_special PARAMS ((unsigned int, struct disassemble_info *)); 28 static int is_delayed_branch PARAMS ((int)); 29 static void find_bytes_little 30 PARAMS ((char *, unsigned char *, unsigned char *, unsigned char *, 31 unsigned char *)); 32 static void find_bytes_big 33 PARAMS ((char *, unsigned char *, unsigned char *, unsigned char *, 34 unsigned char *)); 35 static int print_insn PARAMS ((bfd_vma, struct disassemble_info *)); 36 25 37 26 38 /* Print a symbolic representation of a general-purpose … … 40 52 41 53 /* Like print_general but a special-purpose register. 42 54 43 55 The mnemonics used by the AMD assembler are not quite the same 44 56 as the ones in the User's Manual. We use the ones that the … … 142 154 find_byte_func_type find_byte_func = (find_byte_func_type)info->private_data; 143 155 144 struct a29k_opcode CONST* opcode;156 struct a29k_opcode const * opcode; 145 157 146 158 { … … 172 184 { 173 185 char *s; 174 186 175 187 (*info->fprintf_func) (info->stream, "%s ", opcode->name); 176 188 for (s = opcode->args; *s != '\0'; ++s) … … 181 193 print_general (insn8, info); 182 194 break; 183 195 184 196 case 'b': 185 197 print_general (insn0, info); … … 282 294 char prev_insn[4]; 283 295 unsigned char prev_insn0, prev_insn8, prev_insn16, prev_insn24; 284 296 285 297 errcode = (*info->read_memory_func) (memaddr - 4, 286 298 (bfd_byte *) &prev_insn[0], … … 292 304 instruction before the delayed brach to handle 293 305 things like 294 306 295 307 const _foo 296 308 call _printf … … 307 319 } 308 320 } 309 321 310 322 /* If there was a problem reading memory, then assume 311 323 the previous instruction was not const. */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.