Added snippet to detect Bochs.

This commit is contained in:
2000-08-05 15:55:24 +01:00
parent bee975cc66
commit bb72d524eb

16
bochsdet/bochsdet.c Normal file
View File

@@ -0,0 +1,16 @@
#include <stdio.h>
void main()
{
unsigned char Result;
outportb (0x80, 0xFF);
Result = inportb (0xE9);
if (Result == 0xE9)
{
printf("Bochs detected.\n");
}
else
{
printf("Bochs not detected.\n");
}
}