/*pobitam*/
#include stdio.h>
#include unistd.h>
#include sys/io.h>
int bit7,bit6,bit5,bit4,bit3,a;
main(){
while(1){
ioperm(0x379,1,1);
a=inb(0x379);
if(a && 128>0)
bit7=0; else bit7=1;
if(a && 64>0)
bit6=1; else bit6=0;
if(a && 32>0)
bit5=1; else bit5=0;
if(a && 16>0)
bit4=1; else bit4=0;
if(a && 8>0)
bit3=1; else bit3=0;
printf("status: %d\n",bit6);
}
ioperm(0x379,1,0);
}