summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-10 11:11:08 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-10 11:11:08 -0800
commit44454be952d4c7b2d17fccdad0be8e0b2b693559 (patch)
tree5000cbf79eb5e5d0dd60e944ca28f2d09d65fff8 /insns.pl
parentb17da041cbb3bfb4129b59b134cd4aa7e4e78d69 (diff)
downloadnasm-44454be952d4c7b2d17fccdad0be8e0b2b693559.tar.gz
nasm-44454be952d4c7b2d17fccdad0be8e0b2b693559.tar.bz2
nasm-44454be952d4c7b2d17fccdad0be8e0b2b693559.zip
insns: create a symbolic "wait" token for the \341 byte code
Create a symbolic name "wait" for the \341 byte code, so we don't have to open-code it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'insns.pl')
-rwxr-xr-xinsns.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/insns.pl b/insns.pl
index f1078a3..d9a968b 100755
--- a/insns.pl
+++ b/insns.pl
@@ -742,6 +742,8 @@ sub byte_code_compile($$) {
push(@codes, 0335);
} elsif ($op eq 'nohi') { # Use spl/bpl/sil/dil even without REX
push(@codes, 0325);
+ } elsif ($op eq 'wait') { # Needs a wait prefix
+ push(@codes, 0341);
} elsif ($op eq 'vsibx' || $op eq 'vm32x' || $op eq 'vm64x') {
# This instruction takes XMM VSIB
push(@codes, 0374);