??? 05/20/10 19:29 Modified: 05/20/10 19:56 Read: times |
#176082 - Also... Responding to: ???'s previous message |
temp=SBUF;
RI=0; if (temp=='0') // Note correct use of '==' // { while(!RI) {;} temp1=SBUF; fuc1(temp1); RI=0; } Unless you declare SBUF and temp1 as volatile your compiler, you don't say which one you are using by the way, will assume that SBUF hasn't changed between reads and will simply go temp1=temp=0 |
Topic | Author | Date |
reading two times | 01/01/70 00:00 | |
RE: "dosent work" | 01/01/70 00:00 | |
RE: the code is something like this | 01/01/70 00:00 | |
Also... | 01/01/70 00:00 | |
RE: you don't say which compiler you are using | 01/01/70 00:00 | |
thank for the comments! | 01/01/70 00:00 | |
SBUF | 01/01/70 00:00 | |
the if(temp='0') lines do work | 01/01/70 00:00 | |
RE:if | 01/01/70 00:00 | |
If that's true, then your so-called "C compiler" is BROKEN! | 01/01/70 00:00 | |
comments | 01/01/70 00:00 | |
SES51 compiler | 01/01/70 00:00 | |
= != == in C | 01/01/70 00:00 | |
RE:again | 01/01/70 00:00 | |
do yourself a favor | 01/01/70 00:00 | |
not necessarily![]() | 01/01/70 00:00 |