|
From: Vakku J. C. <va...@ya...> - 2002-05-04 08:17:52
|
Hi all,
How do i get the names of the functions...
below is my small program..
can some one go through and help me to find out why
this is not working .
Thanks
Vakku
#include<dos.h>
#include<stdio.h>
#include<conio.h>
#define port1 0x3f8
void main(void)
{
int c;
int ch;
_outp(port1 + 1,0);
_outp(port1 + 3, 0x80);
_outp(port1 + 0, 0x0C);
_outp(port1 + 1, 0x00);
_outp(port1 + 3, 0x03);
_outp(port1 + 2, 0x00);
printf("\nSample Comm's Program. Press ESC to quit
\n");
do { c = _inp(port1 + 5) ;
if ( c & 1 )
{
ch = _inp (port1);
printf ("%c",ch );
}
if (kbhit())
{
_outp(port1,ch);
}
}
while ( ch!=27 );
}
--- Guillaume Betous <be...@wa...> wrote:
> > "outportb" the compiler says
>
> outportb is not standard, and every compiler has his
> own function.
>
> For Dev-C++, the functions are "_outp()" and
> "_inp()".
>
> But remember, these functions can't be used under
> windows NT/2000/XP.
>
> gUI
>
>
>
_______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for
> download mirrors. We supply
> the hardware. You get the recognition. Email Us:
> ban...@so...
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
>
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
|