2000-08-28 Kazu Hirata <kazu@hxi.com>
* tic30-dis.c: Fix formatting.
This commit is contained in:
parent
f0a58b0b8c
commit
bf830eae8f
2 changed files with 39 additions and 35 deletions
|
@ -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>
|
||||
|
||||
* sh-dis.c: Fix formatting.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* 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)
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
@ -60,11 +60,11 @@
|
|||
static unsigned int _pc;
|
||||
|
||||
struct instruction
|
||||
{
|
||||
{
|
||||
int type;
|
||||
template *tm;
|
||||
partemplate *ptm;
|
||||
};
|
||||
};
|
||||
|
||||
int get_tic30_instruction PARAMS ((unsigned long, struct instruction *));
|
||||
int print_two_operand
|
||||
|
@ -85,8 +85,7 @@ print_insn_tic30 (pc, info)
|
|||
disassemble_info *info;
|
||||
{
|
||||
unsigned long insn_word;
|
||||
struct instruction insn =
|
||||
{0, NULL, NULL};
|
||||
struct instruction insn = { 0, NULL, NULL };
|
||||
bfd_vma bufaddr = pc - info->buffer_vma;
|
||||
/* Obtain the current instruction word from the buffer. */
|
||||
insn_word = (*(info->buffer + bufaddr) << 24) | (*(info->buffer + bufaddr + 1) << 16) |
|
||||
|
@ -583,8 +582,8 @@ get_indirect_operand (fragment, size, buffer)
|
|||
|
||||
if (buffer == NULL)
|
||||
return 0;
|
||||
/* Determine which bits identify the sections of the indirect operand based on the
|
||||
size in bytes. */
|
||||
/* Determine which bits identify the sections of the indirect
|
||||
operand based on the size in bytes. */
|
||||
switch (size)
|
||||
{
|
||||
case 1:
|
||||
|
@ -621,7 +620,8 @@ get_indirect_operand (fragment, size, buffer)
|
|||
buffer[bufcnt] = current_ind->syntax[i];
|
||||
if (buffer[bufcnt - 1] == 'a' && buffer[bufcnt] == 'r')
|
||||
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);
|
||||
bufcnt += strlen (&buffer[bufcnt + 1]);
|
||||
|
|
Loading…
Reference in a new issue