#include "dos.h"

#include "iostream.h"

main()

{

//AIM : to  check out total extended memory available on the system

      int xtmem;

      REGS i,o;

      i.h.ah=0x88;

      int86(0x15,&i,&o);

      xtmem=o.x.ax;

      cout<<"\n Available Extended memory : "<<xtmem<<" Hex";

      cout<<endl;

      return 0;

}