-Ron Little bug fix's and its working # ./a.out c ff
#include <stdio.h> #include <asm/io.h>
main(){ unsigned char c; ioperm(0x2E, 1, 1);
c = inb(0x2e); printf("c %02x\n", c); } -Adam
Adam Talbot wrote:
-Ron Just a guess. uchar = unsigned char??? -Adam
Ronald G Minnich wrote:
Adam Talbot wrote:
I am missing an inclue or define statment...
oh, that code I sent is crap.
I did not know you wanted the full thing.
#include <stdio.h> #include <asm/io.h>
main(){ uchar c;
c = inb(0x2e); printf("c %02x\n", c); }
be sure to cc -O2 or the damned asm junk won't get inlined, and you'll get link-time errors.
ron