Mail Archives: djgpp/2001/05/15/13:50:34
> 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 -