help outport

2005-12-03 Thread david pasha
Hi,
i want send word (16 bit) to I/O
in borland C V3.0  i write for send 0xf
to port address ox56

#include 
int main(void)
{
asm {
 mov dx,0x56
 mov ax,0xf
 out dx,ax
}
return 0;
}

OR

#include 
int main(void)
{
outport(0x56,0xf);
return 0;
}

but when write this code in one file
and compile with  gcc
it send error 
please send to me correct code
for this work.
i have just problem in  out
thanks




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



asm outport

2005-12-03 Thread david pasha
Hi,
i want send word (16 bit) to I/O
in borland C V3.0  i write for send 0xf
to port address ox56

#include 
int main(void)
{
asm {
 mov dx,0x56
 mov ax,0xf
 out dx,ax
}
return 0;
}

OR

#include 
int main(void)
{
outport(0x56,0xf);
return 0;
}

but when write this code in one file
and compile with  gcc
it send error 
please send to me correct code
for this work.
i have just problem in  out  & in
or outport and inport.
thanks




__ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs