#include "stdio.h"

#include "dos.h"

main()

{

//PROGRAM AIM : to get the base memory on the computer using int86(18,..,..)

      union REGS inregs,outregs;

      int memsize;

      int86(18,&inregs,&outregs);

      memsize=outregs.x.ax;

      printf("\nBase memory = %d\n",memsize);

      return 0;

}