Code: Select all
mov ah, 0x4F
mov al, 0x0 ; GET VBE INFO
mov di, VESA_INFO
int 0x10
Code: Select all
CPUID_Regs regs;
cpuid_features(®s);
unsigned int cr4 = getCR4();
if(TestBits(regs.EDX, CPUID_VME))
{
cr4 = SetBits(cr4, CR4_VME);
}
else
{
cr4 = ClearBits(cr4, CR4_VME);
}
setCR4(cr4);
This is a dump:
CODE: 0x0000C800:0x000011EC
EFLAGS: 0x00030046 VM RF IOPL0
ERROR CODE: 0x00000000
Instruction: 0x66
Any ideas? This is very strange. Thanks in advance