delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/21/05:24:50

To: "Endlisnis" <s257m AT unb DOT ca>
Date: Mon, 21 Sep 1998 02:23:43 -0700
From: "Doug Gale" <dgale AT mailexcite DOT com>
Message-ID: <BLOMHPCJOFLBAAAA@mailexcite.com>
Mime-Version: 1.0
Cc: djgpp AT delorie DOT com
Subject: Re: FW: Inline ASM
Organization: MailExcite (http://www.mailexcite.com:80)

 
--

On Sun, 20 Sep 1998 11:33:40   Endlisnis wrote:
>Doug Gale wrote:
>> > asm("movw $0x0003, %%ax\n\t"
>> >        "int $0x10\n\t"
>> >        : : "%eax");
>> Yes, you have corrected the syntax. But look, the guy is obviously setting
>> the video mode to text mode. You have to use DPMI calls to do that in DJGPP!
>> You can't call a real mode interrupt in inline assembly!
>> 
>> And to do something invalid even better:
>> __asm__("int $0x10" : : "a" (3) : "%eax");
>	Could you please try it?  And after it works, you can then tell me your
>wrong.  You can call a real-mode interrupt from inline assembly, I think it is
>safer for some interrupts to use __dpmi_int, but not normal ones (like 0x10).

If you say it works, I guess it works (ok, ok, I AM wrong :). Have you tested this under more than one DPMI server (eg. Windows, CWSDPMI, novell's dpmi server, QEMM, etc)? I wonder what the official DPMI spec has to say about this?

Doug Gale



Free web-based email, Forever, From anywhere!
http://www.mailexcite.com

- Raw text -


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