mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 02:50:49 +08:00
2000-08-28 Kazu Hirata <kazu@hxi.com>
* tic30-dis.c: Fix formatting.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2000-08-28 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
|
* tic30-dis.c: Fix formatting.
|
||||||
|
|
||||||
2000-08-27 Kazu Hirata <kazu@hxi.com>
|
2000-08-27 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
* sh-dis.c: Fix formatting.
|
* sh-dis.c: Fix formatting.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Disassembly routines for TMS320C30 architecture
|
/* Disassembly routines for TMS320C30 architecture
|
||||||
Copyright (C) 1998, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||||
Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au)
|
Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au)
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
@ -60,11 +60,11 @@
|
|||||||
static unsigned int _pc;
|
static unsigned int _pc;
|
||||||
|
|
||||||
struct instruction
|
struct instruction
|
||||||
{
|
{
|
||||||
int type;
|
int type;
|
||||||
template *tm;
|
template *tm;
|
||||||
partemplate *ptm;
|
partemplate *ptm;
|
||||||
};
|
};
|
||||||
|
|
||||||
int get_tic30_instruction PARAMS ((unsigned long, struct instruction *));
|
int get_tic30_instruction PARAMS ((unsigned long, struct instruction *));
|
||||||
int print_two_operand
|
int print_two_operand
|
||||||
@ -85,8 +85,7 @@ print_insn_tic30 (pc, info)
|
|||||||
disassemble_info *info;
|
disassemble_info *info;
|
||||||
{
|
{
|
||||||
unsigned long insn_word;
|
unsigned long insn_word;
|
||||||
struct instruction insn =
|
struct instruction insn = { 0, NULL, NULL };
|
||||||
{0, NULL, NULL};
|
|
||||||
bfd_vma bufaddr = pc - info->buffer_vma;
|
bfd_vma bufaddr = pc - info->buffer_vma;
|
||||||
/* Obtain the current instruction word from the buffer. */
|
/* Obtain the current instruction word from the buffer. */
|
||||||
insn_word = (*(info->buffer + bufaddr) << 24) | (*(info->buffer + bufaddr + 1) << 16) |
|
insn_word = (*(info->buffer + bufaddr) << 24) | (*(info->buffer + bufaddr + 1) << 16) |
|
||||||
@ -583,8 +582,8 @@ get_indirect_operand (fragment, size, buffer)
|
|||||||
|
|
||||||
if (buffer == NULL)
|
if (buffer == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
/* Determine which bits identify the sections of the indirect operand based on the
|
/* Determine which bits identify the sections of the indirect
|
||||||
size in bytes. */
|
operand based on the size in bytes. */
|
||||||
switch (size)
|
switch (size)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
@ -621,7 +620,8 @@ get_indirect_operand (fragment, size, buffer)
|
|||||||
buffer[bufcnt] = current_ind->syntax[i];
|
buffer[bufcnt] = current_ind->syntax[i];
|
||||||
if (buffer[bufcnt - 1] == 'a' && buffer[bufcnt] == 'r')
|
if (buffer[bufcnt - 1] == 'a' && buffer[bufcnt] == 'r')
|
||||||
buffer[++bufcnt] = arnum + '0';
|
buffer[++bufcnt] = arnum + '0';
|
||||||
if (buffer[bufcnt] == '(' && current_ind->displacement == DISP_REQUIRED)
|
if (buffer[bufcnt] == '('
|
||||||
|
&& current_ind->displacement == DISP_REQUIRED)
|
||||||
{
|
{
|
||||||
sprintf (&buffer[bufcnt + 1], "%u", disp);
|
sprintf (&buffer[bufcnt + 1], "%u", disp);
|
||||||
bufcnt += strlen (&buffer[bufcnt + 1]);
|
bufcnt += strlen (&buffer[bufcnt + 1]);
|
||||||
|
Reference in New Issue
Block a user