Custom Embedded Solutions
WIN Enterprises, Inc MB-80510 User Manual
49
if(data_rw8==val)printf("(GP80 is high)\n");
else printf("(GP80 is low)\n");
val = 0x02;
data_rw8 = inportb(data_port)&(val);
if(data_rw8==val)printf("(GP81 is high)\n");
else printf("(GP81 is low)\n");
val = 0x04;
data_rw8 = inportb(data_port)&(val);
if(data_rw8==val)printf("(GP82 is high)\n");
else printf("(GP82 is low)\n");
val = 0x08;
data_rw8 = inportb(data_port)&(val);
if(data_rw8==val)printf("(GP83 is high)\n");
else printf("(GP83 is low)\n");
val = 0x10;
data_rw8 = inportb(data_port)&(val);
if(data_rw8==val)printf("(GP84 is high)\n");
else printf("(GP84 is low)\n");
val = 0x20;
data_rw8 = inportb(data_port)&(val);
if(data_rw8==val)printf("(GP85 is high)\n");
else printf("(GP85 is low)\n");
val = 0x40;
data_rw8 = inportb(data_port)&(val);
if(data_rw8==val)printf("(GP86 is high)\n");
else printf("(GP86 is low)\n");
val = 0x80;
data_rw8 = inportb(data_port)&(val);
if(data_rw8==val)printf("(GP87 is high)\n");
else printf("(GP87 is low)\n");