Date: Mon, 18 Jun 2001 13:26:24 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Giovanni Ceglia cc: djgpp AT delorie DOT com Subject: Re: problem with asm In-Reply-To: <9gkb0v$gsc$1@nreadB.inwind.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk On Mon, 18 Jun 2001, Giovanni Ceglia wrote: > Hello all, i write because i ' ve some problems with mingw/cygwin and DevC++ > compilers. This is not the right forum for questions about these compilers. Please post to the relevant mailing lists. > With Assembley used by DevC++/Mingw/CygWin i tried that: > > void vga( ) > { > __asm__(" > movb $0x00,%ah /n > movb $0x13,&al /n > int $0x10 /n > "); > } > > The system compile, but program go in irreversible crash on Windows 95 ( I > have Win 95 installed ). It's expected: AFAIK Win32 programs are not allowed to issue interrupts to invoke real-mode services. You simply cannot do that. To produce graphics display, you need to use the Windows APIs. > void txt() > { > __dpmi_regs rg; > rg.x.ax = 0x03; > __dpmi_int(0x10, &rg); > } > > I searched for this lib into system libraries directory but i didn't found > it! __dpmi_int is a DJGPP-specific function, you will not find it in the Cygwin or MinGW libraries. > So my question is, how can i realize with DevC++/Mingw/Cygwin compiler > operation AX=13h and Int 10h? You can't.