summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-06-25 23:16:17 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-06-25 23:17:52 -0700
commit51c7de27e852f8389ee32731cb17645afebecb41 (patch)
treedcfc974b6bd5cd3caba50a2d2cc40b268ebf0829 /insns.pl
parentf5051691c9bbed8cd8159a715c6c19d7404a057e (diff)
downloadnasm-51c7de27e852f8389ee32731cb17645afebecb41.tar.gz
insns.pl: add "nohi" code for REX_NH
Add a "nohi" code flag for the \325 byte code, which sets the REX_NH flag. That is, REX_P not required to support high registers, high registers are not supported and spl/bpl/sil/dil enabled even in non-64-bit mode. 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 4c3bf5e7..c756f99d 100755
--- a/insns.pl
+++ b/insns.pl
@@ -666,6 +666,8 @@ sub byte_code_compile($$) {
push(@codes, 0334);
} elsif ($op eq 'repe') {
push(@codes, 0335);
+ } elsif ($op eq 'nohi') { # Use spl/bpl/sil/dil even without REX
+ push(@codes, 0325);
} elsif ($prefix_ok && $op =~ /^(66|f2|f3|np)$/) {
# 66/F2/F3 prefix used as an opcode extension, or np = no prefix
if ($op eq '66') {