diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-02-21 18:22:56 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-02-21 18:22:56 -0800 |
commit | c2acf7b047492a6d1cbc4ac3aeafc3812fdcc46b (patch) | |
tree | b1459da6cf2de42b60b68f3b68f6192fd1840921 /nasm.h | |
parent | f8ad53216f09f731cc9440fd599b64eb9ce433d8 (diff) | |
download | nasm-c2acf7b047492a6d1cbc4ac3aeafc3812fdcc46b.tar.gz |
BR 2592476: Treat WAIT as a prefix even though it's really an instruction
WAIT is technically an instruction, but from an assembler standpoint
it behaves as if it had been a prefix. In particular, it has to be
ordered *before* any real hardware prefixes.
Diffstat (limited to 'nasm.h')
-rw-r--r-- | nasm.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -612,6 +612,7 @@ enum prefixes { /* instruction prefixes */ P_A16 = PREFIX_ENUM_START, P_A32, P_A64, P_ASP, P_LOCK, P_O16, P_O32, P_O64, P_OSP, P_REP, P_REPE, P_REPNE, P_REPNZ, P_REPZ, P_TIMES, + P_WAIT, PREFIX_ENUM_LIMIT }; @@ -673,6 +674,7 @@ typedef struct extop { /* extended operand */ Note that LOCK and REP are in the same slot. This is an x86 architectural constraint. */ enum prefix_pos { + PPS_WAIT, /* WAIT (technically not a prefix!) */ PPS_LREP, /* Lock or REP prefix */ PPS_SEG, /* Segment override prefix */ PPS_OSIZE, /* Operand size prefix */ |