Mail Archives: djgpp/1996/04/29/13:21:19
Date: | Mon, 29 Apr 1996 14:04:30 -0300 (GRNLNDST)
|
From: | Bruno Kraychete da Costa <brunokc AT ufba DOT br>
|
To: | djgpp AT delorie DOT com
|
Subject: | Yet about MK_FP, pokeb, and peekb
|
In-Reply-To: | <Pine.SOL.3.91.960430000142.5929C-100000@sauron>
|
Message-Id: | <Pine.A32.3.90.960429134020.72338B-100000@canudos.ufba.br>
|
Mime-Version: | 1.0
|
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: |
| <brunokc AT ufba DOT br> <brunokc AT athena DOT eng DOT ufba DOT br> |
+--------------------------------------------------------------------------+
- Raw text -