Mail Archives: djgpp/2001/06/18/06:28:26
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.
- Raw text -