??? 08/08/11 18:01 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#183264 - one thing Responding to: ???'s previous message |
The question about CY is quite resonable.but I take enough care about it. I define CY in my reg52.h file as sbit CY = 0xd7 I suppose You mean 0xd7 is bit address of Carry flag. This definition does not ensure that compiler will use 'rlc ' instead 'rl' instruction. Did You check assembler output ? I do not use C, but can suppose compiler behavior can be changed from time ,when You are used this code for 24c02, to time now - some option (for example speed vs code length optimisation) can cause disaster exactly here. I think this part of code is error in relation of future behavior's changes of compiler. You should fix this, even code is working today. To use HLL and in same time to think about carry flag is mistake for me . There is no such thing as carry flag in C, Pascal or whatever we call HLL. Anyway , show us default code. regards |
Topic | Author | Date |
Driving HT16K33 using 89S52 | 01/01/70 00:00 | |
How to post legible source code | 01/01/70 00:00 | |
HLL Delay Routines - beware!! | 01/01/70 00:00 | |
modified code | 01/01/70 00:00 | |
How do you think that will help?? | 01/01/70 00:00 | |
some comments on code | 01/01/70 00:00 | |
testing of new code | 01/01/70 00:00 | |
HLL Delay Routines | 01/01/70 00:00 | |
one thing | 01/01/70 00:00 | |
CY in C ? _NOT_ | 01/01/70 00:00 | |
I'll use new code. | 01/01/70 00:00 | |
Getting success | 01/01/70 00:00 | |
one modification | 01/01/70 00:00 | |
For How Long? | 01/01/70 00:00 | |
No need to use that instruction | 01/01/70 00:00 | |
Start by caring about the C standard | 01/01/70 00:00 | |
Learning the 'C' programming language | 01/01/70 00:00 | |
C Language Supports No Carry Bits | 01/01/70 00:00 | |
Talking to HT16K33 | 01/01/70 00:00 |