#include <errno.h>#include <math.h>#include <stdlib.h>#include "sysdep.h"#include "dis-asm.h"#include "opcode/tic54x.h"#include "coff/tic54x.h"

Go to the source code of this file.
Functions/Subroutines | |
| static int | has_lkaddr (unsigned short, const template *) |
| static int | get_insn_size (unsigned short, const template *) |
| static int | print_instruction (disassemble_info *, bfd_vma, unsigned short, const char *, const enum optype[], int, int) |
| static int | print_parallel_instruction (disassemble_info *, bfd_vma, unsigned short, const template *, int) |
| static int | sprint_dual_address (disassemble_info *, char[], unsigned short) |
| static int | sprint_indirect_address (disassemble_info *, char[], unsigned short) |
| static int | sprint_direct_address (disassemble_info *, char[], unsigned short) |
| static int | sprint_mmr (disassemble_info *, char[], int) |
| static int | sprint_condition (disassemble_info *, char *, unsigned short) |
| static int | sprint_cc2 (disassemble_info *, char *, unsigned short) |
| int | print_insn_tic54x (bfd_vma memaddr, disassemble_info *info) |
| const template * | tic54x_get_insn (disassemble_info *info, bfd_vma addr, unsigned short memdata, int *size) |
| int | print_instruction (disassemble_info *info, bfd_vma memaddr, unsigned short opcode, const char *tm_name, tm_operands, int size, int ext) |
| static int | sprint_dual_address (info, buf, unsigned short code) |
| static int | sprint_indirect_address (info, buf, unsigned short opcode) |
| static int | sprint_direct_address (info, buf, unsigned short opcode) |
| static int | sprint_mmr (info, buf, int mmr) |
| static int | sprint_cc2 (info, char *buf, unsigned short opcode) |
| static int | sprint_condition (info, char *buf, unsigned short opcode) |
| static int get_insn_size | ( | unsigned short | memdata, | |
| const template * | insn | |||
| ) | [static] |
Definition at line 150 of file tic54x-dis.c.
References FL_PAR, has_lkaddr(), insn, and size.
Referenced by tic54x_get_insn().
| static int has_lkaddr | ( | unsigned short | memdata, | |
| const template * | tm | |||
| ) | [static] |
Definition at line 87 of file tic54x-dis.c.
References IS_LKADDR, OP_Lmem, OP_Sind, OP_Smem, and OPTYPE.
Referenced by get_insn_size(), and tic54x_get_insn().
| int print_insn_tic54x | ( | bfd_vma | memaddr, | |
| disassemble_info * | info | |||
| ) |
Definition at line 47 of file tic54x-dis.c.
References BFD_ENDIAN_LITTLE, bfd_getl16(), disassemble_info::bytes_per_chunk, disassemble_info::bytes_per_line, disassemble_info::display_endian, FL_EXT, FL_PAR, disassemble_info::memory_error_func, disassemble_info::octets_per_byte, opcode, print_instruction(), print_parallel_instruction(), disassemble_info::read_memory_func, size, and tic54x_get_insn().
Referenced by disassembler().
| int print_instruction | ( | disassemble_info * | info, | |
| bfd_vma | memaddr, | |||
| unsigned short | opcode, | |||
| const char * | tm_name, | |||
| tm_operands | , | |||
| int | size, | |||
| int | ext | |||
| ) |
Definition at line 168 of file tic54x-dis.c.
References addr(), ARF, ARX, bfd_getl16(), buf, CC3, comma, dst, DST, i, INDIRECT, long, MAX_OPERANDS, MMR, MMRX, MMRY, MOD, mod, n, OP_031, OP_12, OP_123, OP_16, OP_A, OP_ARP, OP_ARX, OP_ASM, OP_B, OP_BITC, OP_CC, OP_CC2, OP_CC3, OP_dmad, OP_DP, OP_DST, OP_k3, OP_k5, OP_k8, OP_k8u, OP_k9, OP_lk, OP_lku, OP_Lmem, OP_MMR, OP_MMRX, OP_MMRY, OP_N, OP_None, OP_PA, OP_pmad, OP_RND, OP_SBIT, OP_SHFT, OP_SHIFT, OP_Sind, OP_Smem, OP_SRC, OP_SRC1, OP_T, OP_TRN, OP_TS, OP_Xmem, OP_xpmad, OP_Ymem, OPT, OPTYPE, SBIT, SHFT, SHIFT, shift, sprint_cc2(), sprint_condition(), sprint_direct_address(), sprint_dual_address(), sprint_indirect_address(), sprint_mmr(), sprintf(), src, SRC, SRC1, x1, XMEM, and YMEM.
| static int print_instruction | ( | disassemble_info * | , | |
| bfd_vma | , | |||
| unsigned | short, | |||
| const char * | , | |||
| const enum | optype[], | |||
| int | , | |||
| int | ||||
| ) | [static] |
Referenced by print_insn_tic54x(), print_insn_tic80(), print_instruction(), and print_parallel_instruction().
| static int print_parallel_instruction | ( | disassemble_info * | info, | |
| bfd_vma | memaddr, | |||
| unsigned short | opcode, | |||
| const template * | ptm, | |||
| int | size | |||
| ) | [static] |
Definition at line 466 of file tic54x-dis.c.
References _template::name, _template::operand_types, _template::parname, _template::paroperand_types, and print_instruction().
Referenced by print_insn_tic54x().
| static int sprint_cc2 | ( | info | , | |
| char * | buf, | |||
| unsigned short | opcode | |||
| ) | [static] |
| static int sprint_cc2 | ( | disassemble_info * | , | |
| char * | , | |||
| unsigned | short | |||
| ) | [static] |
Referenced by print_instruction().
| static int sprint_condition | ( | info | , | |
| char * | buf, | |||
| unsigned short | opcode | |||
| ) | [static] |
| static int sprint_condition | ( | disassemble_info * | , | |
| char * | , | |||
| unsigned | short | |||
| ) | [static] |
Referenced by print_instruction().
| static int sprint_direct_address | ( | disassemble_info * | , | |
| char | [], | |||
| unsigned | short | |||
| ) | [static] |
Referenced by print_instruction().
| static int sprint_dual_address | ( | disassemble_info * | , | |
| char | [], | |||
| unsigned | short | |||
| ) | [static] |
Referenced by print_instruction().
| static int sprint_indirect_address | ( | disassemble_info * | , | |
| char | [], | |||
| unsigned | short | |||
| ) | [static] |
Referenced by print_instruction().
Definition at line 529 of file tic54x-dis.c.
References mmregs, _symbol::name, NULL, sprintf(), and _symbol::value.
| static int sprint_mmr | ( | disassemble_info * | , | |
| char | [], | |||
| int | ||||
| ) | [static] |
Referenced by print_instruction().
| const template* tic54x_get_insn | ( | disassemble_info * | info, | |
| bfd_vma | addr, | |||
| unsigned short | memdata, | |||
| int * | size | |||
| ) |
Definition at line 101 of file tic54x-dis.c.
References bfd_getl16(), FL_EXT, get_insn_size(), has_lkaddr(), _template::name, NULL, disassemble_info::read_memory_func, tic54x_optab, tic54x_paroptab, and tic54x_unknown_opcode.
Referenced by print_insn_tic54x().
1.5.6