To: "Endlisnis" Date: Mon, 21 Sep 1998 02:23:43 -0700 From: "Doug Gale" Message-ID: Mime-Version: 1.0 Cc: djgpp AT delorie DOT com Subject: Re: FW: Inline ASM Organization: MailExcite (http://www.mailexcite.com:80) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk -- 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