Program to read PC Type from BIOS Data Area and display it.


# include
# include


int main( )
{
clrscr( );

unsigned char far* ptrPcType=(unsigned char far*)0xF000FFFE;

printf("Model Identification Code:\n\n");
printf(" Code (Hex) ::: Meanings\n");
printf(" FC : AT\n");
printf(" FE : XT\n");
printf(" FB : XT\n");
printf(" FF : PC\n");

printf("\n\nYour PC Type Code (Hex): %X",*ptrPcType);

getch( );
return 0;
}


No comments:

Post a Comment