Back to index

cell-binutils  2.17cvs20070401
Defines | Typedefs | Enumerations | Functions
tc-maxq.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NO_RELOC   0
#define WORKING_DOT_WORD
#define MAX_STACK   0xf
#define TC_MAXQ20   1
#define MAX_OPERAND_SIZE   255
#define MAXQ_INSTRUCTION_SIZE   2 /* 16 - BITS */
#define MAXQ_OCTETS_PER_BYTE   MAXQ_INSTRUCTION_SIZE
#define tc_comments_chars   maxq20_comment_chars
#define tc_coff_symbol_emit_hook(a)   ; /* not used */
#define md_section_align(SEGMENT, SIZE)   (SIZE)
#define tc_fix_adjustable(FIX)   0
#define TARGET_BYTES_BIG_ENDIAN   0
#define MAX_MEM_NAME_SIZE   12
#define MAX_REG_NAME_SIZE   7
#define MAX_MNEM_SIZE   8
#define END_OF_INSN   '\0'
#define TARGET_ARCH   bfd_arch_maxq
#define TARGET_MACH   maxq20_mach ()
#define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP)   maxq20_cons_fix_new (FRAG,OFF,LEN,EXP)
#define md_number_to_chars   maxq_number_to_chars
#define tc_symbol_chars_extra_symbol_chars
#define md_operand(x)
#define MAX_OPERANDS   2 /* Max operands per instruction. */
#define MAX_IMMEDIATE_OPERANDS   1 /* Max immediate operands per instruction. */
#define MAX_MEMORY_OPERANDS   1 /* Max memory operands per instruction. */
#define IMMEDIATE_PREFIX   '#'
#define ABSOLUTE_PREFIX   '@'
#define NOP_OPCODE   (char)0xDA3A
#define SIZE_OF_PM   sizeof(pmodule) /* Size of the structure. */

Typedefs

typedef enum _RELOC_ENUM RELOC_ENUM

Enumerations

enum  _RELOC_ENUM {
  MAXQ_WORDDATA = 5, MAXQ_LONGDATA = 2, MAXQ_INTERSEGMENT = 4, MAXQ_SHORTJUMP = BFD_RELOC_16_PCREL_S2,
  MAXQ_LONGJUMP = 6, EXTERNAL_RELOC = 8, INTERSEGMENT_RELOC
}

Functions

unsigned long maxq20_mach (void)
void maxq20_cons_fix_new (fragS *, unsigned int, unsigned int, expressionS *)
void maxq_number_to_chars (char *, valueT, int)

Define Documentation

#define ABSOLUTE_PREFIX   '@'

Definition at line 139 of file tc-maxq.h.

#define END_OF_INSN   '\0'

Definition at line 93 of file tc-maxq.h.

#define IMMEDIATE_PREFIX   '#'

Definition at line 137 of file tc-maxq.h.

#define MAX_IMMEDIATE_OPERANDS   1 /* Max immediate operands per instruction. */

Definition at line 132 of file tc-maxq.h.

#define MAX_MEM_NAME_SIZE   12

Definition at line 89 of file tc-maxq.h.

#define MAX_MEMORY_OPERANDS   1 /* Max memory operands per instruction. */

Definition at line 133 of file tc-maxq.h.

#define MAX_MNEM_SIZE   8

Definition at line 91 of file tc-maxq.h.

#define MAX_OPERAND_SIZE   255

Definition at line 62 of file tc-maxq.h.

#define MAX_OPERANDS   2 /* Max operands per instruction. */

Definition at line 131 of file tc-maxq.h.

#define MAX_REG_NAME_SIZE   7

Definition at line 90 of file tc-maxq.h.

#define MAX_STACK   0xf

Definition at line 54 of file tc-maxq.h.

#define MAXQ_INSTRUCTION_SIZE   2 /* 16 - BITS */

Definition at line 66 of file tc-maxq.h.

Definition at line 70 of file tc-maxq.h.

Definition at line 115 of file tc-maxq.h.

#define md_operand (   x)

Definition at line 129 of file tc-maxq.h.

#define md_section_align (   SEGMENT,
  SIZE 
)    (SIZE)

Definition at line 80 of file tc-maxq.h.

#define NO_RELOC   0

Definition at line 29 of file tc-maxq.h.

#define NOP_OPCODE   (char)0xDA3A

Definition at line 144 of file tc-maxq.h.

#define SIZE_OF_PM   sizeof(pmodule) /* Size of the structure. */

Definition at line 146 of file tc-maxq.h.

#define TARGET_ARCH   bfd_arch_maxq

Definition at line 96 of file tc-maxq.h.

#define TARGET_BYTES_BIG_ENDIAN   0

Definition at line 87 of file tc-maxq.h.

#define TARGET_MACH   maxq20_mach ()

Definition at line 100 of file tc-maxq.h.

#define tc_coff_symbol_emit_hook (   a)    ; /* not used */

Definition at line 78 of file tc-maxq.h.

#define tc_comments_chars   maxq20_comment_chars

Definition at line 76 of file tc-maxq.h.

#define TC_CONS_FIX_NEW (   FRAG,
  OFF,
  LEN,
  EXP 
)    maxq20_cons_fix_new (FRAG,OFF,LEN,EXP)

Definition at line 105 of file tc-maxq.h.

#define tc_fix_adjustable (   FIX)    0

Definition at line 83 of file tc-maxq.h.

#define TC_MAXQ20   1

Definition at line 58 of file tc-maxq.h.

Definition at line 124 of file tc-maxq.h.

Definition at line 40 of file tc-maxq.h.


Typedef Documentation

typedef enum _RELOC_ENUM RELOC_ENUM

Enumeration Type Documentation

Enumerator:
MAXQ_WORDDATA 
MAXQ_LONGDATA 
MAXQ_INTERSEGMENT 
MAXQ_SHORTJUMP 
MAXQ_LONGJUMP 
EXTERNAL_RELOC 
INTERSEGMENT_RELOC 

Definition at line 41 of file tc-maxq.h.

{
  MAXQ_WORDDATA = 5,        /* Word+n.  */
  MAXQ_LONGDATA = 2,        /* Long+n.  */
  MAXQ_INTERSEGMENT = 4,    /* Text to any other segment.  */
  MAXQ_SHORTJUMP = BFD_RELOC_16_PCREL_S2, /* PC Relative.  */
  MAXQ_LONGJUMP = 6,        /* Absolute Jump.  */
  EXTERNAL_RELOC = 8,
  INTERSEGMENT_RELOC
}

Function Documentation

void maxq20_cons_fix_new ( fragS *  ,
unsigned  int,
unsigned  int,
expressionS  
)

Definition at line 430 of file tc-maxq.c.

{
  int r = 0;

  switch (len)
    {
    case 2:
      r = MAXQ_WORDDATA;    /* Word+n */
      break;
    case 4:
      r = MAXQ_LONGDATA;    /* Long+n */
      break;
    }

  fix_new_exp (frag, off, len, exp, 0, r);
  return;
}

Here is the call graph for this function:

Definition at line 218 of file tc-maxq.c.

{
  if (!(strcmp (default_arch, "MAXQ20")))
    return 0;

  as_fatal (_("Unknown architecture"));
  return 1;
}

Here is the call graph for this function:

void maxq_number_to_chars ( char *  ,
valueT  ,
int   
)

Definition at line 536 of file tc-maxq.c.

Here is the call graph for this function:

Here is the caller graph for this function: