long outport help [FIXED]
Posted: Wed Feb 07, 2007 5:13 pm
hi all,
In the OSWIKI thing , says:but it says:
In the OSWIKI thing , says:
but i can't figure out how to write them, i've tried:the functions sysOutLong and sysInLong are assembly language functions that make use of the OUTL and INPL Pentium assembly language instructions.
Code: Select all
inline unsigned int inportl(unsigned int port)
{
unsigned int result;
asm volatile("inl %1, %0" : "=a" (result) : "dN" (port));
return result;
}
inline void outportl(unsigned int port, unsigned int data)
{
asm volatile("outl %1, %0" : : "dN" (port), "a" (data));
}
thx!Error: suffix of operand invaled for "out"