Pointer & GPC question..._(re)

Mon, 18 Aug 1997 20:41:44 -0400


Thanks :)
>     (*$ifdef __MSDOS__ *)  (* The definitions are case-sensitive *)
>        ...
>     (*$endif *) (*$endif *) (*$endif *)

Bummer :(
> No way.

Will do.
> For DJGPP, see the GPC FAQ and the DJGPP FAQ.  The "best" way for direct

It is, but for starters I want to do it high level, I don't know much about
PMode yet. In fact, I may not even have to code in low level ASM, reason I
say this is because I saw a Mode-X lib (XLib for GCC I think), and upon
examining the source, I didn't see a single ASM statement in it.
> memory access IMHO is to use assembler.  You can use the following
function
> to convert a segment address to a selector:

Noted :)
>     Function SegToSel ( Seg: ShortWord ) Sel: Word;
> ...
>     end (* SegToSel *);

That's the problem, I heard SVGALib is a bit slow. Besides, I don't plan on
going Linux just yet, once I have a strong base in PMode/DOS I'll work on
the Linux port. I may use SVGALib for short term tho.
> For Linux, better don't access memory directly.  Instead, use (S)VGALIB
or
> some other well-documented interface to graphics mode.

I plan to put it in the license where it's Copyrighted Freeware :)
Hopefully it's what the LGPL stands for. I will release the source code,
but I don't want to retain the copyright, I won't charge for it's use tho.
> Sounds good.  Do you consider to put it under the GNU Library General
> Public License?

Heard of it, saw the demo Caveman, and didn't like it much. The sound lib
won't run under '95, I don't know exactly where the problem is, but I want
the lib to run efficiently under a Full Screen Windows '95 DOS Box without
being prompted to run in MS-DOS mode. I'll take a look at it tho, maybe it
can tip me off on how to set the address of a pointer :) My ultimate goal
is to provide an API so that it truly is recompile source on each platform
and compiler rather than re-edit to recompile.
> For DJGPP, there is a game library called `Allegro' for GNU C.
> ...
> good starting point for you to write such a Unit to use `Allegro'

I saw it, but nothing about memory access, besides, I don't see why
Borland's BGI should live on. I plan to make my libs work in VGA, VESA,
VBE2, and certain Mode-X configurations.
> For an example what I mean, look at Sven's excellent `BGI2GRX' Unit,
> also known as GPC's `Graph' Unit.

See ya!
Orlando Llanes


Orlando Llanes (a010111t@bc.seflin.org)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es