www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/15/13:50:34

Date: Tue, 15 May 2001 20:48:51 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Cody" <cody1 AT ktsnet DOT com>
Message-Id: <9003-Tue15May2001204851+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <3afda209@leia.ktsnet.com> (cody1@ktsnet.com)
Subject: Re: [OT] graphics routines
References: <3afc6377 AT leia DOT ktsnet DOT com> <83pudf8hhm DOT fsf AT mercury DOT st DOT hmc DOT edu> <3afda209 AT leia DOT ktsnet DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Cody" <cody1 AT ktsnet DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sat, 12 May 2001 15:50:28 -0500
> 
> When
> I used make to build allegro, it said that it compiled fine (after about an
> hour of tinkering with different things b/c of the errors), but it never
> would let me use allegro in my programs.

This suggests some installation problems; please tell the details
(error messages etc.).   Some popular problems are described in the
FAQ.

> > __dpmi_int
> I am apparently too ignorant to understand only this... how do I use
> __dpmi_int?  just put that and then 10h for instance?

This calls Int 10h function 1Ah:

     #include <dpmi.h>
     __dpmi_regs r;

     r.h.ah = 0x1a;
     __dpmi_int (0x10, &r);

For more details, see the library reference (from the DOS prompt type
"info libc alpha __dpmi_int" and read there).

> > _farpokeb(_dos_ds, 0xa0000 + offset, color)
> I've heard that this is extremely slow (due to far ptr)... is that the case
> or not?

No, it's as fast as it gets: this function is actually a macro which
expands into a few inline assembly instructions.

> Btw, how do I use __dpmi_int, and more importantly than that even, how do I
> use dosmemput?

They are both described in the library reference.

> Could
> I just have, say, a 64000 byte array (320*200) that I could use to put into
> the graphics all at once with dosmemput

Yes.

- Raw text -


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