Mail Archives: djgpp/1998/08/06/20:35:04
Rylan wrote:
>
> Hi,
>
> In DJGPP's inline assembler format, how can I generate a BIOS int?
>
> If I cannot do it directly, how can I call __dpmi_int from an inline
> assembler function, i. e. how do I pass __dpmi_int the correct parameters
> while calling from inside an inline assembler statement?
Somebody correct me if I'm wrong, but a normal `int' instruction should
work, as long as you haven't installed a protected-mode interrupt
handler for that int (unlikely). Ex:
asm volatile ("movw $0x0013, %%ax; int $0x10" : : : "ax");
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -