From: Alex Lowe Newsgroups: comp.os.msdos.djgpp Subject: Pointer to memory Date: Sat, 09 Jan 1999 23:58:47 -0800 Organization: TempleCRC Lines: 18 Message-ID: <36985DB7.C5C7D160@2xtreme.net> NNTP-Posting-Host: p164.stk4.2xtreme.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am trying to port some code, for reading the fonts in ROM for DOS. Anyway, what I need to do is to get the memory location of this... I have 2 pointers... segment and offset... And I want to have the pointers added, for example if the segement is 0xAA and the offset is 0x03 then I can make a pointer to 0xAD... The code I am trying to port looks like this: char *offset=regs.x.bp; char *segment=regs.x.es; char *font=*MK_FP(segment, offset); That is the code... the last line is the one I am having trouble with... Thanks for the info, I hoped I described this well enough. -- Alex