www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/29/10:20:09

Date: Mon, 29 Apr 1996 11:03:56 -0300 (GRNLNDST)
From: Bruno Kraychete da Costa <brunokc AT ufba DOT br>
To: Jan Louwerens <jlouwere AT galaxy DOT csc DOT calpoly DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: MK_FP, peekb and pokeb
In-Reply-To: <199604290734.AAA16911@galaxy.csc.calpoly.edu>
Message-Id: <Pine.A32.3.90.960429105811.68678A-100000@canudos.ufba.br>
Mime-Version: 1.0

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:                                                                |
|         <brunokc AT ufba DOT br>                <brunokc AT athena DOT eng DOT ufba DOT br>    |
+--------------------------------------------------------------------------+

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019