This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dosuname/bochsdet/bochsdet.c

17 lines
235 B
C

#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");
}
}