Date: Mon, 29 Apr 1996 11:03:56 -0300 (GRNLNDST) From: Bruno Kraychete da Costa To: Jan Louwerens Cc: djgpp AT delorie DOT com Subject: Re: MK_FP, peekb and pokeb In-Reply-To: <199604290734.AAA16911@galaxy.csc.calpoly.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 29 Apr 1996, Jan Louwerens wrote: > I don't think you need far pointers with a 32 bit offset. Just use regular > pointers instead. Try inportb and outportb instead of pokeb/peekb... I'm not > sure that all of this info is completely accurate, as I have just started > using DJGPP myself. I hope it helps anyway. Jan, You're right ... I don't need far pointers winth a 32-bit offset. What I really need is to point a pointer to a certain portion of the memory. I'd like to make a pointer to video memory area, to tell you the truth. I tried somethink like: char *p; p=(char *)(0xb8000); ... but I've got a SIGSEGV signal. Since I've never worked with protected mode, I don't know how to do that work. Regarding to peek/poke, these commands refers to memory positions, while inportb/outportb refers to ports. They are diferent !! Thanks anyway. 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: | | | +--------------------------------------------------------------------------+