#include #include main() { unsigned char b1,b2; int extmem; int w; /* upper byte of word size extended memory */ outp(0x70,0x30); /* get the low byte */ b1=inp(0x71); outp(0x70,0x31); /* get the high byte */ b2 = inp(0x71); w = b2<<8; /* shift left 8 digits (in binary) to make it upper byte */ extmem=w+b1; /* add it to lower byte and display the size */ printf("The extended memory installed is: %d KB \n",extmem); }