mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
c7ea29b247
Add the RDPID instruction, documented in the Intel SDM October 2016. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
22 lines
184 B
NASM
22 lines
184 B
NASM
%ifdef ERROR
|
|
%define ERR(x) x
|
|
%else
|
|
%define ERR(x)
|
|
%endif
|
|
|
|
bits 16
|
|
|
|
rdpid eax
|
|
ERR(rdpid ax)
|
|
|
|
bits 32
|
|
|
|
rdpid ebx
|
|
ERR(rdpid bx)
|
|
|
|
bits 64
|
|
|
|
rdpid rcx
|
|
rdpid ecx
|
|
ERR(rdpid cx)
|