JD Fenech wrote:
Background:
I have a PS1 controller connected to my PC via USB. I know it works,
because I'm able to read data from /dev/input/js0 and actually use this
in several native linux games.
I went and fired up my MSDOS machine, and looked around, and found
an old program I wrote several years ago. I can provide BORLANDC
source, or executable, or both if you like. I misremembered.
One puts out a 00H to 0201H and then reads back from 0201H.
It's not two consecutive port addresses. There is also a BIOS
interrupt to control that port, but I forget how to use it.
It's just been too long. Anyway, the program only reads one of
the joystick bits.
Also, there is a generic hardware test program which you may find
a copy of which can test joystick ports.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html