well i got redhat 8 today and put it on this computer. It runs good. I put this code in it and it works.
Code:
#include <stdlib.h>
#include <unistd.h>
#include <asm/io.h>
#define BASE 0x278 //this is what my computer uses for lpt1
int main()
{
ioperm(BASE,3,1);
outb(0,BASE);
outb(0,BASE+1);
outb(0,BASE+2);
outb(0,BASE+3);
ioperm(BASE,3,0);
exit(0);
}
before i figured out you have to be administrator to run this i tried it and I got a segmentation fault. so i su'd over and now it works. I'm curious though as to how many BASE+n's i can do. I have 3 their, but i don tthink all of them work, i'd test individual but getch() doesn't work. thoughts?