www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/23/03:41:50

From: "Damian Yerrick" <web DOT poison AT pineight DOT 8m DOT com>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
References: <7up2m7$pvc$1 AT ctb-nnrp2 DOT saix DOT net>
Subject: Re: Just a few questions
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <85cQ3.632$pD5.45821@dfiatx1-snr1.gtei.net>
X-Trace: +SQ/lvoOt5IRe6zhJ2ijG3GrPRRP4eVl0qFIL9K22a53jj7bFL6B2o7g7AB/FM4tUndlTMgmXV7s!vlDLlEUbnyqfWjziweLEmRbMKDYB4nmJejqYYbmPaxwdMDBHen039xh6vbuy8ZzTGckE3ZVJ
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Sat, 23 Oct 1999 05:55:16 GMT
Distribution: world
Date: Sat, 23 Oct 1999 05:55:16 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Paulu van Zijl <paulu AT proloan DOT co DOT za> wrote in message
news:7up2m7$pvc$1 AT ctb-nnrp2 DOT saix DOT net...
> I have been using Borland C++ 3.1 for almost 5 years
> and have just moved over to DJGPP,

Cool! Another convert! :-)

> mainly because I got fed up with either having to
> work through HIMEM.SYS or EMM386.EXE to
> access memory above the 1MB limit.
>
> Now how do I check in DJGPP how much memory
> is available for usage? In Borland I used either
> coreleft() or farcoreleft(), but there is no such
> functions in DJGPP, I suppose for 2 reasons,
> because DJGPP is a 32bit compiler and
> coreleft() and farcoreleft() is part of the Borland libraries
> and is not standard ANSI C/C++ functions??
>
> And then, since I'm used to 16bit programming, is
> there any other important facts I should know about,
> that is important in 32bit programming?  I do know
> in 32bit programming the memory is a flat model,

True. Technically, it would be called a "tiny" model.

> and there is no segments (except for the 4GB
> segments) like there is in 16bit programming.

There are still segments in DPMI programming if you
want to access memory outside your program's private
area, e.g. video RAM or the First Meg.

> Also, what is the differences between the assembler
> of DJGPP and Borland's TASM?

Gas uses the gas-backwards AT&T syntax. If you want
TASM for DJGPP, look for NASM on any search engine.
http://www.dogpile.com/

> I know when one uses registers in 32bit modes,
> you have to use eax, ebx, etc. and not ax, bx, etc.
> but is there also like an IDEAL mode and
> MASM modem in the DJGPP assembler?

Modem? You want a serial library?

> Lastly but not the least, I am considering using
> Allegro for the graphics.

Good choice.

> I know to use the function set_gfx_mode, but now
> how do I set the truecolor graphics modes?

set_color_depth(32) before set_gfx_mode()
RTFM: c:\djgpp\allegro\allegro.txt

> Thanks for the help!

Any time.

--
Damian Yerrick
CM 398, Rose-Hulman Institute of Technology
5500 Wabash Ave | Terre Haute, IN 47803
http://come.to/yerrick <- redpinocchio
http://yerricde.tripod.com/ <- pinocchio's brother


- Raw text -


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