??? 02/19/08 14:27 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#151137 - Make life easier Responding to: ???'s previous message |
Esko Ilola said:
1) Make a subroutine that outputs one character to the display chip
2) Make another subroutine that rewinds the chip address counter (You already have this one) 3) Make yet another subroutine that actually clears the display by writing non visible character to all it's lenght 4) Make a subroutine that outputs a string to the display Those will not make Your code any more efficient or smaller but they make it very much more readable. Chris Bertrand said:
Most of my code has always been asm Esko's approach applies generally to programming in any language - certainly not just 'C'! In fact, if anything, you need to be even more disciplined in assembler...! Hopefully I can get past this impass soon. Making your code easier to read & understand is a huge step towards getting it to work! And to keeping it working thereafter! |
Topic | Author | Date |
argggg....I'm stuck again.....:( | 01/01/70 00:00 | |
The clear bit is wron way around. | 01/01/70 00:00 | |
Esko..Just verified clear bit | 01/01/70 00:00 | |
What is the execution order ? | 01/01/70 00:00 | |
Verified the order execution | 01/01/70 00:00 | |
So it is the sbit thing that is hurting You now. | 01/01/70 00:00 | |
Correction: Place the CALL before data loop | 01/01/70 00:00 | |
A few suggestions for Your code | 01/01/70 00:00 | |
I will adapt some of it, thank you | 01/01/70 00:00 | |
I (don\'t) C | 01/01/70 00:00 | |
Make life easier![]() | 01/01/70 00:00 |