Mail Archives: djgpp/1996/10/07/20:01:52
In article <539hek$6vf AT ranger DOT interlink DOT no>,
Kim Robert Blix <norsk AT interlink DOT no> wrote:
>Hi there.. I've just started to use djgpp. (Made hello world yesterday, and
>it was only 80kb hehe.) And I've encountered a problem..
>
>Why doesnt this work?:
>
>asm(" movw $13,%ax
> int $10
> ");
>
>Asm I'm sure you can see, this is supposed to be a no-trouble, basic
>mode change to 320*200*256 chunky style, but I get a hang instead.
#include <dpmi.h>
void set_VGA_mode(int mode) {
__dpmi_regs regs;
memset(®s, 0, sizeof regs);
regs.x.ax = mode;
__dpmi_int(0x10, ®s);
}
This and more can be found at:
http://brennan.home.ml.org/djgpp/
(That's a redirector to my usual site, since I may change ISPs soon
if rt66 doesn't get its act together.)
--Brennan
--
brennan AT rt66 DOT com | Most people grossly overestimate their importance in
| the universe. Take yourself, for example.
Rasterfarian | <http://brennan.home.ml.org>
- Raw text -