K
Kris
Hi!
I've written such a piece of code to get the access to keyboard port:
#include <sys/io.h>
iopl(3);
ioperm(0,0x400,1);
unsigned char c;
then, when I want to read directly from keyboard, during a loop in my
program, I do the followind
c=inb(0x60);
if (c==(key_code) {action;}
and everything works fine with any Linux distr. but I'd like to run the
program under Solaris. What should I change?
TIA
Regards,
Kris
(e-mail address removed)
Kris
(e-mail address removed)
I've written such a piece of code to get the access to keyboard port:
#include <sys/io.h>
iopl(3);
ioperm(0,0x400,1);
unsigned char c;
then, when I want to read directly from keyboard, during a loop in my
program, I do the followind
c=inb(0x60);
if (c==(key_code) {action;}
and everything works fine with any Linux distr. but I'd like to run the
program under Solaris. What should I change?
TIA
Regards,
Kris
(e-mail address removed)
Kris
(e-mail address removed)