Back to index

cell-binutils  2.17cvs20070401
Defines | Functions | Variables
cpu-z80.c File Reference
#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"

Go to the source code of this file.

Defines

#define N(name, print, default, next)
#define M(n)   &arch_info_struct[n]

Functions

static const bfd_arch_info_typecompatible (const bfd_arch_info_type *a, const bfd_arch_info_type *b)

Variables

const bfd_arch_info_type bfd_z80_arch = N (0, "z80-any", TRUE, M(0))
static const bfd_arch_info_type arch_info_struct []

Define Documentation

#define M (   n)    &arch_info_struct[n]

Definition at line 47 of file cpu-z80.c.

#define N (   name,
  print,
  default,
  next 
)
Value:
{ 16, 16, 8, bfd_arch_z80, name, "z80", print, 0, default, \
    compatible, bfd_default_scan, next }

Definition at line 43 of file cpu-z80.c.


Function Documentation

Definition at line 32 of file cpu-z80.c.

{
  if (a->arch != b->arch)
    return NULL;

  if (a->mach == b->mach)
    return a;

  return (a->arch == bfd_arch_z80) ? & bfd_z80_arch : NULL;
}

Variable Documentation

Initial value:
{
  N (bfd_mach_z80strict, "z80-strict", FALSE, M(1)),
  N (bfd_mach_z80,       "z80",        FALSE, M(2)),
  N (bfd_mach_z80full,   "z80-full",   FALSE, M(3)),

}

Definition at line 49 of file cpu-z80.c.

const bfd_arch_info_type bfd_z80_arch = N (0, "z80-any", TRUE, M(0))

Definition at line 26 of file cpu-z80.c.