Coder's Guild Mailing List

C code stumper....

Posted by WILL on 2000-09-05

I'm working on some device drivers for custom SNES controlers, but all the
source code is in C and Idon't program in C. I am familiar with it and can
understand it to a point. This is the only part I have not been able to
figure oput what it's doing. If anyone can translate this line of code to
Pascal or something more understandable, I'd truely appreciate it.

Here is the line of code:
#define SIN
(negate?((_inp(base+1)&snes_din)?1:0):((_inp(base+1)&snes_din)?0:1))

Thanks in advance,
WILL