1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-18 05:28:09 +00:00
bddisasm/bddisasm_test/x86/basic/system_16.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

51 lines
747 B
NASM

bits 16
; System instructions
mov cr0, eax
mov eax, cr0
mov ecx, cr2
mov cr2, ecx
mov cr4, esi
mov esi, cr4
mov dr0, eax
mov eax, dr0
mov dr1, esi
mov esi, dr1
mov dr7, ecx
mov ecx, dr7
lidt [bx]
lgdt [bx]
sidt [bx]
sgdt [bx]
ltr ax
str si
lldt [bx]
sldt [bx]
rdmsr
wrmsr
rdtsc
rdtscp
verw ax
verr si
lsl eax, eax
lar esi, edi
lmsw cx
smsw sp
invlpg [eax]
invpcid eax, [ebp]
clac
stac
clts
invd
wbinvd
db 0x0F, 0x01, 0xE8 ; serialize