1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-12-28 00:48:09 +00:00
bddisasm/bddisasm_test/basic/system_32.asm
Andrei Vlad LUTAS 698ba367a1 Initial commit.
2020-07-21 11:19:18 +03:00

51 lines
753 B
NASM

bits 32
; 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 [ebx]
lgdt [ebx]
sidt [ebx]
sgdt [ebx]
ltr ax
str si
lldt [ebx]
sldt [ebx]
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