- status = (*info->read_memory_func) (memaddr+4, buffer, 4, info);
- if (status != 0)
- {
- info->bytes_per_line = 8;
- if (!(result = lookup_opcode(&insn, in1, 0)))
- (*info->fprintf_func) (info->stream, ".long\t0x%x",in1);
- else
- print_insn(info, memaddr, (long long) in1, &insn, 0, result);
- return 4;
- }
- in2 = bfd_getb32 (buffer);
-
- if (in1 & in2 & FM01)
- {
- /* LONG instruction */
- if (!(result = lookup_opcode(&insn, in1, 1)))
- {
- (*info->fprintf_func) (info->stream, ".long\t0x%x,0x%x",in1,in2);
- return 8;
- }
- num = (long long)in1 << 32 | in2;
- print_insn(info, memaddr, num, &insn, 1, result);
- }
- else
- {
- num = in1;
- if (!(result = lookup_opcode(&insn, in1, 0)))
- (*info->fprintf_func) (info->stream, ".long\t0x%x",in1);
- else
- print_insn(info, memaddr, num, &insn, 0, result);
-
- switch ( ((in1>>31)<<1) | (in2>>31) )
- {
- case 0:
- (*info->fprintf_func) (info->stream, "\t||\t");
- break;
- case 1:
- (*info->fprintf_func) (info->stream, "\t->\t");
- break;
- case 2:
- (*info->fprintf_func) (info->stream, "\t<-\t");
- default:
- break;
- }
-
- insn.form = (struct d30v_format *)NULL;
- num = in2;
- if (!(result = lookup_opcode(&insn, in2, 0)))
- (*info->fprintf_func) (info->stream, ".long\t0x%x",in2);
- else
- print_insn(info, memaddr, num, &insn, 0, result);
-
- }
- return 8;
-}
-
-
-/* returns 0 if lookup fails */
-/* 1 if found and only one form */
-/* 2 if found and there are short and long forms */