Xref: news2.mv.net comp.os.msdos.djgpp:656 From: Casper Schougaard Newsgroups: comp.os.msdos.djgpp Subject: Help:Using far ptr from real mode interrupt Date: 30 Jan 1996 13:49:04 GMT Organization: OzEmail Pty Ltd - Australia Lines: 20 Message-ID: <4el7kg$qgl@oznet11.ozemail.com.au> NNTP-Posting-Host: slbri1p59.ozemail.com.au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Greetings gurus all, I am using djgpp V2 beta4 and trying to come up with some home rolled vesa code. I call vesa function 0x4f00 with __dpmi_simulate_real_mode_interrupt(...) using the go32 transfer buffer. I get the VESA signature and version 1.2 fields back. The problem is when I try to print the OEM string using the supplied far pointer. I am using the line; c = _farpeekb(_dos_ds, (ptr>>16)*16 + (unsigned short)ptr); I don't get the nice 'S' character as part of 'S3 Incorporated.....' when I use the interrupts successfully in real mode with BC 4.0. I have pulled the faq apart and done a search on the mail-archive but I can't seem to find the answer. Help!! Lonely Programmer... caspers AT ozemail DOT com DOT au