Back to index

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

Go to the source code of this file.

Classes

struct  MAXQ20_OPCODE_INFO
struct  MAXQ20_OPCODES
struct  reg
struct  reg_index
struct  match_table
struct  mem_access
struct  reg_bit
struct  bit_name
struct  mem_access_syntax

Defines

#define MAXQ10   0x0001
#define MAXQ20   0x0002
#define MAX   (MAXQ10 | MAXQ20)
#define NOP_FMT   1
#define NOP_SRC   0x3A
#define NOP_DST   0x5A
#define MOD0   0x0
#define MOD1   0x1
#define MOD2   0x2
#define MOD3   0x3
#define MOD4   0x4
#define MOD5   0x5
#define MOD6   0x6
#define MOD7   0x7
#define MOD8   0x8
#define MOD9   0x9
#define MODA   0xa
#define MODB   0xb
#define MODC   0xc
#define MODD   0xd
#define MODE   0xe
#define MODF   0xf
#define MOD10   0x10
#define MOD11   0x11
#define MOD12   0x12
#define MOD13   0x13
#define MOD14   0x14
#define MOD15   0x15
#define MOD16   0x16
#define MOD17   0x17
#define MOD18   0x18
#define MOD19   0x19
#define MOD1A   0x1a
#define MOD1B   0x1b
#define MOD1C   0x1c
#define MOD1D   0x1d
#define MOD1E   0x1e
#define MOD1F   0x1f
#define CTRL   MOD8 /* For the module containing the control registers. */
#define ACC   MOD9 /* For the module containing the 16 accumulators. */
#define Act_ACC   MODA /* For the module containing the active accumulator. */
#define PFX   MODB /* For the module containing the prefix registers. */
#define IP   MODC /* For the module containing the instruction pointer register. */
#define SPIV   MODD /* For the module containing the stack pointer and the interrupt vector. */
#define LC   MODD /* For the module containing the loop counters and HILO registers. */
#define DP   MODF /* For the module containig the data pointer registers. */
#define GPIO0   0x00 /* Gerneral Purpose I/O Module 0. */
#define GPIO1   0x01 /* Gerneral Purpose I/O Module 1. */
#define RTC   0x00 /* Real Time Clock Module. */
#define MAC   0x02 /* Hardware Multiplier Module. */
#define SER0   0x02 /* Contains the UART Registers. */
#define SPI   0x03 /* Serial Pheripheral Interface Module. */
#define OWBM   0x03 /* One Wire Bus Module. */
#define SER1   0x03 /* Contains the UART Registers. */
#define TIMER20   0x03 /* Timer Counter Module 2. */
#define TIMER21   0x04 /* Timer Counter Module 2. */
#define JTAGD   0x03 /* In-Circuit Debugging Support. */
#define LCD   0x03 /* LCD register Modules. */

Typedefs

typedef enum _Reg_type Reg_type
typedef struct reg reg_entry
typedef struct mem_access
typedef struct reg_bit
typedef struct bit_name
typedef struct mem_access_syntax

Enumerations

enum  UNKNOWN_OP {
  ZEROBIT = 0x1, ONEBIT = 0x2, REG = 0x4, MEM = 0x8,
  IMM = 0x10, DISP = 0x20, BIT = 0x40, FMT = 0x80,
  IMMBIT = 0x100, FLAG = 0x200, DATA = 0x400, BIT_BUCKET = 0x800
}
enum  MAX_ARG_TYPE {
  NO_ARG = 0, A_IMM = 0x01, A_REG = 0x2, A_MEM = 0x4,
  FLAG_C = 0x8, FLAG_NC = 0x10, FLAG_Z = 0x20, FLAG_NZ = 0x40,
  FLAG_S = 0x80, FLAG_E = 0x100, FLAG_NE = 0x200, ACC_BIT = 0x400,
  DST_BIT = 0x800, SRC_BIT = 0x1000, A_BIT_0 = 0x2000, A_BIT_1 = 0x4000,
  A_DISP = 0x8000, A_DATA = 0x10000, A_BIT_BUCKET = 0x200000
}
enum  _Reg_type { Reg_8R, Reg_16R, Reg_8W, Reg_16W }
enum  type1 { DST, SRC, BOTH }

Variables

const MAXQ20_OPCODE_INFO op_table []
reg_entrynew_reg_table = NULL
int num_of_reg = 0
reg_entry system_reg_table []
reg_entry peripheral_reg_table []
bit_name bit_table []
const char * LSInstr []
const mem_access_syntax mem_access_syntax_table []

Class Documentation

struct MAXQ20_OPCODE_INFO

Definition at line 99 of file maxq.h.

Class Members
int arch
MAX_ARG_TYPE arg
int dst
int format
unsigned int instr_id
char * name
unsigned int op_number
int src
struct MAXQ20_OPCODES

Definition at line 113 of file maxq.h.

Collaboration diagram for MAXQ20_OPCODES:
Class Members
const MAXQ20_OPCODE_INFO * end
const MAXQ20_OPCODE_INFO * start
struct reg

Definition at line 340 of file maxq.h.

Class Members
int arch
short int Mod_index
short int Mod_name
int opcode
char * reg_name
Reg_type rtype
struct reg_index

Definition at line 354 of file maxq.h.

Class Members
int rindex
char * rname
struct match_table

Definition at line 530 of file maxq.h.

Class Members
char * name
int type
struct mem_access

Definition at line 827 of file maxq.h.

Class Members
char * name
int opcode
struct reg_bit

Definition at line 865 of file maxq.h.

Collaboration diagram for reg_bit:
Class Members
int bit
reg_entry * reg
struct bit_name

Definition at line 874 of file maxq.h.

Class Members
char * name
char * reg_bit
struct mem_access_syntax

Definition at line 1038 of file maxq.h.

Class Members
char * invalid_op
char name
type1 type

Define Documentation

IC IMR SC ACC   MOD9 /* For the module containing the 16 accumulators. */

Definition at line 322 of file maxq.h.

#define Act_ACC   MODA /* For the module containing the active accumulator. */

Definition at line 323 of file maxq.h.

#define CTRL   MOD8 /* For the module containing the control registers. */

Definition at line 321 of file maxq.h.

IC IMR SC DP   MODF /* For the module containig the data pointer registers. */

Definition at line 328 of file maxq.h.

#define GPIO0   0x00 /* Gerneral Purpose I/O Module 0. */

Definition at line 537 of file maxq.h.

#define GPIO1   0x01 /* Gerneral Purpose I/O Module 1. */

Definition at line 538 of file maxq.h.

IC IMR SC IP   MODC /* For the module containing the instruction pointer register. */

Definition at line 325 of file maxq.h.

#define JTAGD   0x03 /* In-Circuit Debugging Support. */

Definition at line 547 of file maxq.h.

IC IMR SC LC   MODD /* For the module containing the loop counters and HILO registers. */

Definition at line 327 of file maxq.h.

#define LCD   0x03 /* LCD register Modules. */

Definition at line 548 of file maxq.h.

#define MAC   0x02 /* Hardware Multiplier Module. */

Definition at line 540 of file maxq.h.

#define MAX   (MAXQ10 | MAXQ20)

Definition at line 50 of file maxq.h.

#define MAXQ10   0x0001

Definition at line 48 of file maxq.h.

#define MAXQ20   0x0002

Definition at line 49 of file maxq.h.

#define MOD0   0x0

Definition at line 284 of file maxq.h.

#define MOD1   0x1

Definition at line 285 of file maxq.h.

#define MOD10   0x10

Definition at line 302 of file maxq.h.

#define MOD11   0x11

Definition at line 303 of file maxq.h.

#define MOD12   0x12

Definition at line 304 of file maxq.h.

#define MOD13   0x13

Definition at line 305 of file maxq.h.

#define MOD14   0x14

Definition at line 306 of file maxq.h.

#define MOD15   0x15

Definition at line 307 of file maxq.h.

#define MOD16   0x16

Definition at line 308 of file maxq.h.

#define MOD17   0x17

Definition at line 309 of file maxq.h.

#define MOD18   0x18

Definition at line 310 of file maxq.h.

#define MOD19   0x19

Definition at line 311 of file maxq.h.

#define MOD1A   0x1a

Definition at line 312 of file maxq.h.

#define MOD1B   0x1b

Definition at line 313 of file maxq.h.

#define MOD1C   0x1c

Definition at line 314 of file maxq.h.

#define MOD1D   0x1d

Definition at line 315 of file maxq.h.

#define MOD1E   0x1e

Definition at line 316 of file maxq.h.

#define MOD1F   0x1f

Definition at line 317 of file maxq.h.

#define MOD2   0x2

Definition at line 286 of file maxq.h.

#define MOD3   0x3

Definition at line 287 of file maxq.h.

#define MOD4   0x4

Definition at line 288 of file maxq.h.

#define MOD5   0x5

Definition at line 289 of file maxq.h.

#define MOD6   0x6

Definition at line 290 of file maxq.h.

#define MOD7   0x7

Definition at line 291 of file maxq.h.

#define MOD8   0x8

Definition at line 292 of file maxq.h.

#define MOD9   0x9

Definition at line 293 of file maxq.h.

#define MODA   0xa

Definition at line 294 of file maxq.h.

#define MODB   0xb

Definition at line 295 of file maxq.h.

#define MODC   0xc

Definition at line 296 of file maxq.h.

#define MODD   0xd

Definition at line 297 of file maxq.h.

#define MODE   0xe

Definition at line 298 of file maxq.h.

#define MODF   0xf

Definition at line 299 of file maxq.h.

#define NOP_DST   0x5A

Definition at line 56 of file maxq.h.

#define NOP_FMT   1

Definition at line 54 of file maxq.h.

#define NOP_SRC   0x3A

Definition at line 55 of file maxq.h.

#define OWBM   0x03 /* One Wire Bus Module. */

Definition at line 543 of file maxq.h.

#define PFX   MODB /* For the module containing the prefix registers. */

Definition at line 324 of file maxq.h.

#define RTC   0x00 /* Real Time Clock Module. */

Definition at line 539 of file maxq.h.

#define SER0   0x02 /* Contains the UART Registers. */

Definition at line 541 of file maxq.h.

#define SER1   0x03 /* Contains the UART Registers. */

Definition at line 544 of file maxq.h.

#define SPI   0x03 /* Serial Pheripheral Interface Module. */

Definition at line 542 of file maxq.h.

#define SPIV   MODD /* For the module containing the stack pointer and the interrupt vector. */

Definition at line 326 of file maxq.h.

#define TIMER20   0x03 /* Timer Counter Module 2. */

Definition at line 545 of file maxq.h.

#define TIMER21   0x04 /* Timer Counter Module 2. */

Definition at line 546 of file maxq.h.


Typedef Documentation

typedef struct bit_name

Definition at line 879 of file maxq.h.

typedef struct mem_access

Definition at line 832 of file maxq.h.

Definition at line 1044 of file maxq.h.

typedef struct reg_bit

Definition at line 870 of file maxq.h.

static struct reg_entry
Initial value:
{
  {"sr0", 0}, {"sr1", 1}, {"sr2", 2},
  {NULL, 0}
}

Definition at line 209 of file tc-score.c.

typedef enum _Reg_type Reg_type

Enumeration Type Documentation

enum _Reg_type
Enumerator:
Reg_8R 
Reg_16R 
Reg_8W 
Reg_16W 

Definition at line 331 of file maxq.h.

{ Reg_8R,                   /* 8 bit register. read only.  */
  Reg_16R,                  /* 16 bit register, read only.  */
  Reg_8W,                   /* 8 bit register, both read and write.  */
  Reg_16W                   /* 16 bit register, both read and write.  */
}
Enumerator:
NO_ARG 
A_IMM 
A_REG 
A_MEM 
FLAG_C 
FLAG_NC 
FLAG_Z 
FLAG_NZ 
FLAG_S 
FLAG_E 
FLAG_NE 
ACC_BIT 
DST_BIT 
SRC_BIT 
A_BIT_0 
A_BIT_1 
A_DISP 
A_DATA 
A_BIT_BUCKET 

Definition at line 75 of file maxq.h.

{
  NO_ARG = 0,
  A_IMM = 0x01,                    /* An 8 bit immediate value.  */
  A_REG = 0x2,                     /* An 8 bit source register.  */
  A_MEM = 0x4,                     /* A 7 bit destination register.  */
  FLAG_C = 0x8,                    /* Carry Flag.  */
  FLAG_NC = 0x10,           /* No Carry (~C) flag.  */
  FLAG_Z = 0x20,            /* Zero Flag.  */
  FLAG_NZ = 0x40,           /* Not Zero Flag.  */
  FLAG_S = 0x80,            /* Sign Flag.  */
  FLAG_E = 0x100,           /* Equals Flag.  */
  FLAG_NE = 0x200,          /* Not Equal Flag.  */
  ACC_BIT = 0x400,          /* One of the 16 accumulator bits of the form Acc.<b>.  */
  DST_BIT = 0x800,          /* One of the 8 bits of the specified SRC.  */
  SRC_BIT = 0x1000,         /* One of the 8 bits of the specified source register.  */
  A_BIT_0 = 0x2000,         /* #0.  */
  A_BIT_1 = 0x4000,         /* #1.  */
  A_DISP = 0x8000,          /* Displacement Operand.  */
  A_DATA = 0x10000,         /* Data in the data section.  */
  A_BIT_BUCKET = 0x200000,
}
enum type1
Enumerator:
DST 
SRC 
BOTH 

Definition at line 1030 of file maxq.h.

{
  DST,
  SRC,
  BOTH,
}
enum UNKNOWN_OP
Enumerator:
ZEROBIT 
ONEBIT 
REG 
MEM 
IMM 
DISP 
BIT 
FMT 
IMMBIT 
FLAG 
DATA 
BIT_BUCKET 

Definition at line 58 of file maxq.h.

{
  ZEROBIT = 0x1,            /* A zero followed by 3 bits.  */
  ONEBIT = 0x2,                    /* A one followed by 3 bits.  */
  REG = 0x4,                /* Register.  */
  MEM = 0x8,                /* Memory access.  */
  IMM = 0x10,               /* Immediate value.  */
  DISP = 0x20,                     /* Displacement value.  */
  BIT = 0x40,               /* Bit value.  */
  FMT = 0x80,               /* The format bit.  */
  IMMBIT = 0x100,           /* An immediate bit.  */
  FLAG = 0x200,                    /* A Flag.  */
  DATA = 0x400,                    /* Symbol in the data section.  */
  BIT_BUCKET = 0x800,              /* FOr BIT BUCKET.  */
}

Variable Documentation

Definition at line 881 of file maxq.h.

const char* LSInstr[]
Initial value:
{
  "LJUMP", "SJUMP", "LDJNZ", "SDJNZ", "LCALL", "SCALL", "JUMP",
  "DJNZ", "CALL", NULL
}

Definition at line 1024 of file maxq.h.

Definition at line 1048 of file maxq.h.

Definition at line 351 of file maxq.h.

Definition at line 352 of file maxq.h.

Definition at line 123 of file maxq.h.

Definition at line 552 of file maxq.h.

Definition at line 362 of file maxq.h.