summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-17 16:55:04 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-17 16:55:04 -0700
commit401c07e20d14130a2d147468a408fce9edd1faff (patch)
tree447b70422534c1228eb698a9ae2ce2b2afe266e9 /nasm.h
parent8f94f988f0413c35520095866e00ac358d36c99c (diff)
downloadnasm-401c07e20d14130a2d147468a408fce9edd1faff.tar.gz
Initial support for generating DREX suffixes
Initial support for generating DREX suffixes. Not used yet. No disassembler support yet, and no support for "operand X must match operand Y."
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/nasm.h b/nasm.h
index 7c5a1b75..93c35de6 100644
--- a/nasm.h
+++ b/nasm.h
@@ -540,6 +540,8 @@ enum ccode { /* condition code names */
/*
* REX flags
*/
+#define REX_OC 0x0200 /* DREX suffix has the OC0 bit set */
+#define REX_D 0x0100 /* Instruction uses DREX instead of REX */
#define REX_H 0x80 /* High register present, REX forbidden */
#define REX_P 0x40 /* REX prefix present/required */
#define REX_L 0x20 /* Use LOCK prefix instead of REX.R */
@@ -622,7 +624,8 @@ typedef struct { /* an instruction itself */
int eops_float; /* true if DD and floating */
int32_t times; /* repeat count (TIMES prefix) */
int forw_ref; /* is there a forward reference? */
- uint8_t rex; /* Special REX Prefix */
+ int rex; /* Special REX Prefix */
+ int drexdst; /* Destination register for DREX suffix */
} insn;
enum geninfo { GI_SWITCH };