Subj : Question about memory size finding...? To : borland.public.cpp.borlandcpp From : mujeebrm Date : Wed Sep 14 2005 12:29 am main( ) { struct WORDREGS { unsigned int ax,bx,cx,dx,si,di,cflag,flags; }; struct BYTEREGS { unsigned char al,ah,bl,bh,cl,ch,dl,dh; }; union REGS { struct WORDREGS x; struct BYTEREGS h; }; union REGS inregs, outregs; int memsize; clrscr(); int86(16, &inregs, &outregs); memsize = outregs.x.ax; printf("\nTotal Memory = %d", memsize); /* how can i modify/convert this program so that it show full system memory ( base mem + extended mem) in 16 bit environ */ getch(); } .