mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
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>
This commit is contained in:
parent
f5051691c9
commit
51c7de27e8
2
insns.pl
2
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') {
|
||||
|
Loading…
Reference in New Issue
Block a user