#include "dos.h"

#include "iostream.h"

main()

{

//AIM : to get amount of contigous memory on the system board

      int mem;

      REGS i,o;

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

      mem=o.x.ax;

      cout<<"\nMemory size : "<<mem<<" Kb\n";

      return 0;

}