diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-06-25 23:16:17 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-25 23:17:52 -0700 |
commit | 51c7de27e852f8389ee32731cb17645afebecb41 (patch) | |
tree | dcfc974b6bd5cd3caba50a2d2cc40b268ebf0829 /insns.pl | |
parent | f5051691c9bbed8cd8159a715c6c19d7404a057e (diff) | |
download | nasm-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-x | insns.pl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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') { |