1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-30 19:38:08 +00:00
bddisasm/bddisasm_test/x86/basic/system_64.asm
BITDEFENDER\vlutas 9ba1e6a2f9 Added support for new Intel instructions, per Intel ISA extensions document #319433-046 (September 2022): PREFETCHITI, RAO-INT, CMPCCXADD, WRMSRNS, MSRLIST, AMX-FP16, AVX-IFMA, AVX-NE-CONVERT, AVX-VNNI-INT8.
Multiple minor fixes to existing instructions.
Moved x86 decoding tests in a separate directory & improved the test script.
2022-10-04 12:22:59 +03:00

58 lines
884 B
NASM

bits 64
; System instructions
mov cr0, rax
mov rax, cr0
mov rcx, cr2
mov cr2, rcx
mov cr4, r15
mov r15, cr4
mov cr8, r8
mov r8, cr8
mov dr0, rax
mov rax, dr0
mov dr1, r15
mov r15, dr1
mov dr7, rcx
mov rcx, dr7
lidt [rbx]
lgdt [rbx]
sidt [rbx]
sgdt [rbx]
ltr ax
str r15w
lldt [rbx]
sldt [rbx]
rdmsr
wrmsr
rdtsc
rdtscp
verw ax
verr r11w
lsl eax, eax
lar r14d, r13d
lmsw cx
smsw sp
invlpg [rax]
invpcid rax, [rbp]
rdpkru
wrpkru
clac
stac
clts
invd
wbinvd
db 0x0F, 0x01, 0xE8 ; serialize
db 0xF3, 0x0F, 0x3A, 0xF0, 0xC0, 0xBD ; hreset