[cc65]Unusuall?

Date view Thread view Subject view

From: troy silvey (tbsilvey_at_juno.com)
Date: 2001-01-01 08:04:24


I am using this statement to test keyboard input....

for(;((c=*value)!=39||(c=*value)!=62);)
{
	printf("%d",c);
}
....if 39 or 62 do some other stuff

(*value is a pointer to location $cb current key pressed)

If the value is not equal to either 39 or 62,
it is to continue checking until one is true.
I placed a print statement to check the 
value of c. It does change. And with the right
keys, it does equal 39 or 62.
But this for loop never exits. Logically this
looks correct and CC65 compiles without errors.
It's late, but later I am going to compile my
code on the pc with VC++ and see what happens.
I wanted to see what the rest of you thought about this.

thanks 
troy




________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:37 CET