www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/18/06:28:26

Date: Mon, 18 Jun 2001 13:26:24 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Giovanni Ceglia <giovanniceglia AT inwind DOT it>
cc: djgpp AT delorie DOT com
Subject: Re: problem with asm
In-Reply-To: <9gkb0v$gsc$1@nreadB.inwind.it>
Message-ID: <Pine.SUN.3.91.1010618132304.24334D@is>
MIME-Version: 1.0
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019