fsf address update, but not in COPYING files
[deliverable/binutils-gdb.git] / opcodes / rce-dis.c
CommitLineData
de582ad6 1/* Disassemble RCE instructions.
d94aca1a
MT
2 Copyright (C) 1993 Free Software Foundation, Inc.
3
4This program is free software; you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation; either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
943fbd5b 16Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
d94aca1a
MT
17
18#include <stdio.h>
19#define STATIC_TABLE
20#define DEFINE_TABLE
21
03c4ce2f 22#include "rce-opc.h"
d94aca1a
MT
23#include "dis-asm.h"
24
25int
26print_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;
03c4ce2f 36 rce_opcode_info *op;
d94aca1a
MT
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.039482 seconds and 4 git commands to generate.