Subj : Re: Question about memory size finding...? To : borland.public.cpp.borlandcpp From : mujeebrm Date : Fri Sep 16 2005 12:20 am any hints...plz thanx mujeeb "mujeebrm" wrote in message news:432719e1@newsgroups.borland.com... > 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(); > > } > > .