From: brennan AT mack DOT rt66 DOT com (Brennan "The Rev. Bas" Underwood) Newsgroups: comp.os.msdos.djgpp Subject: Re: The first problem (a horror series in 10 parts) Date: 7 Oct 1996 16:10:28 -0600 Organization: Rasterfari Lines: 34 Message-ID: <53bv4k$dfh@mack.rt66.com> References: <539hek$6vf AT ranger DOT interlink DOT no> NNTP-Posting-Host: mack.rt66.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <539hek$6vf AT ranger DOT interlink DOT no>, Kim Robert Blix 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 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 |