mirror of https://github.com/yasm/yasm.git
structures from the rest of the assembler. We're not trying to write GAS here (yet :), but doing this will make large parts of the codebase a lot clearer. svn path=/trunk/yasm/; revision=3140.3
parent
a7ac50c918
commit
c9d92847b6
21 changed files with 1470 additions and 4 deletions
@ -0,0 +1,36 @@ |
||||
/* $IdPath$
|
||||
* Architecture header file |
||||
* |
||||
* Copyright (C) 2001 Peter Johnson |
||||
* |
||||
* This file is part of YASM. |
||||
* |
||||
* YASM is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation; either version 2 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* YASM is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program; if not, write to the Free Software |
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||||
*/ |
||||
#ifndef YASM_ARCH_H |
||||
#define YASM_ARCH_H |
||||
|
||||
struct arch { |
||||
/* one-line description of the architecture */ |
||||
const char *name; |
||||
|
||||
/* keyword used to select architecture */ |
||||
const char *keyword; |
||||
}; |
||||
|
||||
/* Available architectures */ |
||||
extern arch x86_arch; |
||||
|
||||
#endif |
@ -0,0 +1,3 @@ |
||||
# $IdPath$
|
||||
|
||||
SUBDIRS = x86
|
@ -0,0 +1,16 @@ |
||||
# $IdPath$
|
||||
|
||||
noinst_LIBRARIES = libarch.a
|
||||
|
||||
libarch_a_SOURCES = \
|
||||
arch.c
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_builddir)/intl
|
||||
|
||||
CFLAGS = @ANSI_CFLAGS@
|
||||
|
||||
EXTRA_DIST = \
|
||||
README \
|
||||
instrs.dat
|
@ -0,0 +1,2 @@ |
||||
Architecture to support Intel IA-32, AMD x86-64, and other extensions and |
||||
derivatives of the x86 instruction set. |
@ -0,0 +1,32 @@ |
||||
/*
|
||||
* x86 architecture description |
||||
* |
||||
* Copyright (C) 2001 Peter Johnson |
||||
* |
||||
* This file is part of YASM. |
||||
* |
||||
* YASM is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation; either version 2 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* YASM is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program; if not, write to the Free Software |
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||||
*/ |
||||
#include "util.h" |
||||
RCSID("$IdPath$"); |
||||
|
||||
#include "arch.h" |
||||
|
||||
|
||||
/* Define arch structure -- see arch.h for details */ |
||||
arch x86_arch = { |
||||
"x86 (IA-32, x86-64)", |
||||
"x86" |
||||
}; |
@ -0,0 +1,32 @@ |
||||
/*
|
||||
* x86 architecture description |
||||
* |
||||
* Copyright (C) 2001 Peter Johnson |
||||
* |
||||
* This file is part of YASM. |
||||
* |
||||
* YASM is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation; either version 2 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* YASM is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program; if not, write to the Free Software |
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||||
*/ |
||||
#include "util.h" |
||||
RCSID("$IdPath$"); |
||||
|
||||
#include "arch.h" |
||||
|
||||
|
||||
/* Define arch structure -- see arch.h for details */ |
||||
arch x86_arch = { |
||||
"x86 (IA-32, x86-64)", |
||||
"x86" |
||||
}; |
@ -0,0 +1,36 @@ |
||||
/* $IdPath$
|
||||
* Architecture header file |
||||
* |
||||
* Copyright (C) 2001 Peter Johnson |
||||
* |
||||
* This file is part of YASM. |
||||
* |
||||
* YASM is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation; either version 2 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* YASM is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program; if not, write to the Free Software |
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||||
*/ |
||||
#ifndef YASM_ARCH_H |
||||
#define YASM_ARCH_H |
||||
|
||||
struct arch { |
||||
/* one-line description of the architecture */ |
||||
const char *name; |
||||
|
||||
/* keyword used to select architecture */ |
||||
const char *keyword; |
||||
}; |
||||
|
||||
/* Available architectures */ |
||||
extern arch x86_arch; |
||||
|
||||
#endif |
@ -0,0 +1,3 @@ |
||||
# $IdPath$
|
||||
|
||||
SUBDIRS = x86
|
@ -0,0 +1,16 @@ |
||||
# $IdPath$
|
||||
|
||||
noinst_LIBRARIES = libarch.a
|
||||
|
||||
libarch_a_SOURCES = \
|
||||
arch.c
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_builddir)/intl
|
||||
|
||||
CFLAGS = @ANSI_CFLAGS@
|
||||
|
||||
EXTRA_DIST = \
|
||||
README \
|
||||
instrs.dat
|
@ -0,0 +1,2 @@ |
||||
Architecture to support Intel IA-32, AMD x86-64, and other extensions and |
||||
derivatives of the x86 instruction set. |
@ -0,0 +1,32 @@ |
||||
/*
|
||||
* x86 architecture description |
||||
* |
||||
* Copyright (C) 2001 Peter Johnson |
||||
* |
||||
* This file is part of YASM. |
||||
* |
||||
* YASM is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation; either version 2 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* YASM is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program; if not, write to the Free Software |
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||||
*/ |
||||
#include "util.h" |
||||
RCSID("$IdPath$"); |
||||
|
||||
#include "arch.h" |
||||
|
||||
|
||||
/* Define arch structure -- see arch.h for details */ |
||||
arch x86_arch = { |
||||
"x86 (IA-32, x86-64)", |
||||
"x86" |
||||
}; |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@ |
||||
/*
|
||||
* x86 architecture description |
||||
* |
||||
* Copyright (C) 2001 Peter Johnson |
||||
* |
||||
* This file is part of YASM. |
||||
* |
||||
* YASM is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation; either version 2 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* YASM is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program; if not, write to the Free Software |
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||||
*/ |
||||
#include "util.h" |
||||
RCSID("$IdPath$"); |
||||
|
||||
#include "arch.h" |
||||
|
||||
|
||||
/* Define arch structure -- see arch.h for details */ |
||||
arch x86_arch = { |
||||
"x86 (IA-32, x86-64)", |
||||
"x86" |
||||
}; |
Loading…
Reference in new issue