summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-06-06 02:41:20 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-06-06 02:41:20 +0000
commit232badbbbcbc14e53f319d52211061424ee6b1e6 (patch)
treedfcac3299276e7c57b3449cc12f6b7ee2acb8cd1 /parser.c
parentcda94c77f23d18dd4a97dc5aa308cf8c0f6038c4 (diff)
downloadnasm-232badbbbcbc14e53f319d52211061424ee6b1e6.tar.gz
nasm-232badbbbcbc14e53f319d52211061424ee6b1e6.tar.bz2
nasm-232badbbbcbc14e53f319d52211061424ee6b1e6.zip
This is the "megapatch":
a) Automatically generate dependencies for all Makefiles; b) Move register definitions to a separate .dat file; c) Add support for "unimplemented but there in theory" registers.
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/parser.c b/parser.c
index 5ca49fa..2fe7bfb 100644
--- a/parser.c
+++ b/parser.c
@@ -23,18 +23,7 @@ extern int in_abs_seg; /* ABSOLUTE segment flag */
extern long abs_seg; /* ABSOLUTE segment */
extern long abs_offset; /* ABSOLUTE segment offset */
-static long reg_flags[] = { /* sizes and special flags */
- 0, REG8, REG_AL, REG_AX, REG8, REG8, REG16, REG16, REG8, REG_CL,
- REG_CREG, REG_CREG, REG_CREG, REG_CR4, REG_CS, REG_CX, REG8,
- REG16, REG8, REG_DREG, REG_DREG, REG_DREG, REG_DREG, REG_DREG,
- REG_DREG, REG_DESS, REG_DX, REG_EAX, REG32, REG32, REG_ECX,
- REG32, REG32, REG_DESS, REG32, REG32, REG_FSGS, REG_FSGS,
- MMXREG, MMXREG, MMXREG, MMXREG, MMXREG, MMXREG, MMXREG, MMXREG,
- REG16, REG16, REG_DESS, FPU0, FPUREG, FPUREG, FPUREG, FPUREG,
- FPUREG, FPUREG, FPUREG, REG_TREG, REG_TREG, REG_TREG, REG_TREG,
- REG_TREG,
- XMMREG, XMMREG, XMMREG, XMMREG, XMMREG, XMMREG, XMMREG, XMMREG
-};
+#include "regflags.c" /* List of register flags */
enum { /* special tokens */
S_BYTE, S_DWORD, S_FAR, S_LONG, S_NEAR, S_NOSPLIT, S_QWORD,