* ld-srec/srec.exp: Add setup_xfail for i960 COFF targets.
[deliverable/binutils-gdb.git] / opcodes / rce-dis.c
1 /* Disassemble RCE instructions.
2 Copyright (C) 1993 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17
18 #include <stdio.h>
19 #define STATIC_TABLE
20 #define DEFINE_TABLE
21
22 #include "rce-opc.h"
23 #include "dis-asm.h"
24
25 int
26 print_insn_sop(memaddr, info)
27 bfd_vma memaddr;
28 struct disassemble_info *info;
29 {
30 fprintf_ftype fprintf = info->fprintf_func;
31 void *stream = info->stream;
32 unsigned char insn[2];
33 unsigned char nibs[4];
34 int status;
35 int relmask = ~0;
36 rce_opcode_info *op;
37 int dslot = 0;
38
39 status = info->read_memory_func(memaddr, insn, 2, info);
40
41 if (status != 0)
42 {
43 info->memory_error_func(status, memaddr, info);
44 return -1;
45 }
46 /**** DISASSEMBLY NOT YET IMPLEMENTED ****/
47 fprintf(stream,".word 0x%02x%02x", insn[0], insn[1]);
48 return 2;
49 }
This page took 0.030165 seconds and 4 git commands to generate.