diff --git a/bochsdet/bochsdet.c b/bochsdet/bochsdet.c new file mode 100644 index 0000000..eb833ad --- /dev/null +++ b/bochsdet/bochsdet.c @@ -0,0 +1,16 @@ +#include + +void main() +{ +unsigned char Result; +outportb (0x80, 0xFF); +Result = inportb (0xE9); +if (Result == 0xE9) + { + printf("Bochs detected.\n"); + } +else + { + printf("Bochs not detected.\n"); + } +}