Mail Archives: djgpp/1998/09/21/05:24:50
--
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 -