delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/17/18:37:13

From: RKS1789 AT ritvax DOT isc DOT rit DOT edu
Date: Sat, 17 Aug 1996 18:25:08 -0400 (EDT)
Subject: help with far pointers to memory please.
To: djgpp AT delorie DOT com
Message-id: <01I8E4G9E1B89S3TJT@ritvax.isc.rit.edu>
MIME-version: 1.0

Hi, I just downloaded djgpp and am trying to take a program written with borland 4.02 and convert it so it will work with djgpp.  The only real problem appears when I try to do something like: char far *vid_mem=(char *)MK_FP( 0xA000, 0);
Because djgpp does not have MK_FP declared, and I don't know enough about what it does to convert it, I am at a loss on how to create a far pointer to video memory.  A friend of mine who uses linix uses a function called, ioctl ( I think or something like that) but when I tried to use that I found that I did not have the file ioctl.h, if this is somewhere to be found I would appreaciate anyone who could tell me.  Or if you have another way to create a far pointer to memory.  After this point I have no trouble going into video modes, or anything else...I thank you for a responce
Richard Schelin

- Raw text -


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