Date: Mon, 29 Apr 1996 14:04:30 -0300 (GRNLNDST) From: Bruno Kraychete da Costa To: djgpp AT delorie DOT com Subject: Yet about MK_FP, pokeb, and peekb In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Thanks go to Eli Zaretskii, Christopher A. Triebel and Rafael R. Sevilla for their replys ... Guys, sorry if I seem to insist at the same point (about MK_FP). What I'd like to have is the facility of refering to a memory position using a pointer, instead of a function (like dosmemput/get). On the Borland version of a program of mine I had: char far *screen = MK_FP(0xb800,0); I'd like something like: char *screen = Pointer(0xb8000); in djgpp. I tried the following code: char *p; mprotect(0xb8000, 4000, PROT_READ | PROT_WRITE); p=(char *)(0xb8000); but I got a SIGSEGV singal at the execution of the mprotect function. Sorry about my ignorance but why didn't it work ?! Thanks again ! Best Regards from : +--------------------------------------------------------------------------+ | Bruno Kraychete da Costa Voice: +55(71)382-2834 | | Computer Science graduating Data/Fax: +55(71)382-4065 | | Federal University of Bahia, Brazil | | Bolsista CNPq - Network Administrator | | E-Mail's: | | | +--------------------------------------------------------------------------+