diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-06-06 02:41:20 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-06-06 02:41:20 +0000 |
commit | 232badbbbcbc14e53f319d52211061424ee6b1e6 (patch) | |
tree | dfcac3299276e7c57b3449cc12f6b7ee2acb8cd1 /regs.dat | |
parent | cda94c77f23d18dd4a97dc5aa308cf8c0f6038c4 (diff) | |
download | nasm-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 'regs.dat')
-rw-r--r-- | regs.dat | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/regs.dat b/regs.dat new file mode 100644 index 0000000..c294a7b --- /dev/null +++ b/regs.dat @@ -0,0 +1,68 @@ +# $Id$ +# +# List of registers and their classes; classes are defined in nasm.h +# +# The columns are: register name, assembler class, disassembler class, regval +# A * means the line should be repeated for each value from 0 to 7 +# + +# General-purpose registers +al REG_AL reg8 0 +ah REG8 reg8 4 +ax REG_AX reg16 0 +eax REG_EAX reg32 0 +bl REG8 reg8 3 +bh REG8 reg8 7 +bx REG16 reg16 3 +ebx REG32 reg32 3 +cl REG_CL reg8 1 +ch REG8 reg8 5 +cx REG_CX reg16 1 +ecx REG_ECX reg32 1 +dl REG8 reg8 2 +dh REG8 reg8 6 +dx REG_DX reg16 2 +edx REG32 reg32 2 +sp REG16 reg16 4 +esp REG32 reg32 4 +bp REG16 reg16 5 +ebp REG32 reg32 5 +si REG16 reg16 6 +esi REG32 reg32 6 +di REG16 reg16 7 +edi REG32 reg32 7 + +# Segment registers +cs REG_CS sreg 1 +ds REG_DESS sreg 3 +es REG_DESS sreg 0 +ss REG_DESS sreg 2 +fs REG_FSGS sreg 4 +gs REG_FSGS sreg 5 +segr6 REG_SEG67 sreg 6 +segr7 REG_SEG67 sreg 7 + +# Control registers +cr* REG_CREG creg * + +# Debug registers +dr* REG_DREG dreg * + +# Test registers +tr* REG_TREG treg * + +# Floating-point registers +st0 FPU0 fpureg 0 +st1 FPUREG fpureg 1 +st2 FPUREG fpureg 2 +st3 FPUREG fpureg 3 +st4 FPUREG fpureg 4 +st5 FPUREG fpureg 5 +st6 FPUREG fpureg 6 +st7 FPUREG fpureg 7 + +# MMX registers +mm* MMXREG mmxreg * + +# SSE registers +xmm* XMMREG xmmreg * |