Back to index

cell-binutils  2.17cvs20070401
Classes | Defines | Typedefs | Enumerations | Variables
tc-tic54x.c File Reference
#include <limits.h>
#include "as.h"
#include "safe-ctype.h"
#include "sb.h"
#include "macro.h"
#include "subsegs.h"
#include "struc-symbol.h"
#include "opcode/tic54x.h"
#include "obj-coff.h"
#include <math.h>

Go to the source code of this file.

Classes

struct  stag
struct  stag::stag_field
struct  _tic54x_insn
struct  _tic54x_insn::opstruct
struct  _tic54x_insn.opcode

Defines

#define MAX_LINE   256 /* Lines longer than this are truncated by TI's asm. */
#define OPTION_ADDRESS_MODE   (OPTION_MD_BASE)
#define OPTION_CPU_VERSION   (OPTION_ADDRESS_MODE + 1)
#define OPTION_COFF_VERSION   (OPTION_CPU_VERSION + 1)
#define OPTION_STDERR_TO_FILE   (OPTION_COFF_VERSION + 1)
#define ILLEGAL_WITHIN_STRUCT()
#define CC_GROUP   0x40
#define CC_ACC   0x08
#define CATG_A1   0x07
#define CATG_B1   0x30
#define CATG_A2   0x30
#define CATG_B2   0x0C
#define CATG_C2   0x03
#define is_zero(op)   ((op).exp.X_op == O_constant && (op).exp.X_add_number == 0)
#define MAX_LITTLENUMS   2

Typedefs

typedef struct _tic54x_insn tic54x_insn

Enumerations

enum  cpu_version {
  VNONE = 0, V541 = 1, V542 = 2, V543 = 3,
  V545 = 5, V548 = 8, V549 = 9, V545LP = 15,
  V546LP = 16
}
enum  address_mode {
  c_mode, far_mode, mode_16bit, mode_32bit,
  mode_64bit
}

Variables

static struct stagcurrent_stag
static segT stag_saved_seg
static subsegT stag_saved_subseg
const char comment_chars [] = ";"
const char line_comment_chars [] = ";*#"
const char line_separator_chars [] = ""
int emitting_long = 0
const char FLT_CHARS [] = "fF"
const char EXP_CHARS [] = "eE"
const char * md_shortopts = ""
size_t md_longopts_size = sizeof (md_longopts)
static int assembly_begun = 0

Class Documentation

struct stag

Definition at line 60 of file tc-tic54x.c.

Collaboration diagram for stag:
Class Members
int current_bitfield_offset
struct stag_field * field
struct stag * inner
int is_union
const char * name
struct stag * outer
bfd_vma size
symbolS * sym
struct stag::stag_field

Definition at line 67 of file tc-tic54x.c.

Collaboration diagram for stag::stag_field:
Class Members
int bitfield_offset
const char * name
struct stag_field * next
bfd_vma offset
struct stag * stag
struct _tic54x_insn

Definition at line 82 of file tc-tic54x.c.

Collaboration diagram for _tic54x_insn:
Class Members
int is_lkaddr
int lkoperand
char mnemonic
struct _tic54x_insn opcode
int opcount
struct opstruct operands
char parmnemonic
int paropcount
const template * tm
int using_default_dst
int words
struct _tic54x_insn::opstruct

Definition at line 90 of file tc-tic54x.c.

Class Members
char buf
struct _tic54x_insn.opcode

Definition at line 105 of file tc-tic54x.c.

Class Members
expressionS addr_expr
int r_nchars
bfd_reloc_code_real_type r_type
int unresolved
unsigned short word

Define Documentation

#define CATG_A1   0x07
#define CATG_A2   0x30
#define CATG_B1   0x30
#define CATG_B2   0x0C
#define CATG_C2   0x03
#define CC_ACC   0x08
#define CC_GROUP   0x40
#define ILLEGAL_WITHIN_STRUCT ( )
Value:
do								\
    if (current_stag != NULL)                                  \
      {                                                 \
       as_bad (_("pseudo-op illegal within .struct/.union"));  \
       return;                                                 \
      }                                                        \
  while (0)
#define is_zero (   op)    ((op).exp.X_op == O_constant && (op).exp.X_add_number == 0)
#define MAX_LINE   256 /* Lines longer than this are truncated by TI's asm. */

Definition at line 80 of file tc-tic54x.c.

#define MAX_LITTLENUMS   2

Definition at line 145 of file tc-tic54x.c.

Definition at line 147 of file tc-tic54x.c.

Definition at line 146 of file tc-tic54x.c.

Definition at line 148 of file tc-tic54x.c.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
c_mode 
far_mode 
mode_16bit 
mode_32bit 
mode_64bit 

Definition at line 121 of file tc-tic54x.c.

{
  c_mode,   /* 16-bit addresses.  */
  far_mode  /* >16-bit addresses.  */
};
Enumerator:
VNONE 
V541 
V542 
V543 
V545 
V548 
V549 
V545LP 
V546LP 

Definition at line 115 of file tc-tic54x.c.

{
  VNONE = 0, V541 = 1, V542 = 2, V543 = 3, V545 = 5, V548 = 8, V549 = 9,
  V545LP = 15, V546LP = 16
};

Variable Documentation

int assembly_begun = 0 [static]

Definition at line 162 of file tc-tic54x.c.

const char comment_chars[] = ";"

Definition at line 130 of file tc-tic54x.c.

struct stag * current_stag [static]

Definition at line 134 of file tc-tic54x.c.

const char EXP_CHARS[] = "eE"

Definition at line 141 of file tc-tic54x.c.

const char FLT_CHARS[] = "fF"

Definition at line 137 of file tc-tic54x.c.

const char line_comment_chars[] = ";*#"

Definition at line 131 of file tc-tic54x.c.

Definition at line 132 of file tc-tic54x.c.

size_t md_longopts_size = sizeof (md_longopts)

Definition at line 160 of file tc-tic54x.c.

const char* md_shortopts = ""

Definition at line 143 of file tc-tic54x.c.

segT stag_saved_seg [static]

Definition at line 127 of file tc-tic54x.c.

Definition at line 128 of file tc-tic54x.c.