We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How come I can do this: char LCDstring[] = "ABC"; ACC = LCDstring[0]; Print an A to LCD
But I cannot do this: int z = 0; ACC = LCD[z]; Print an A to LCD
Doug; Did you mis-type? ACC = LCD[z]; is not the same as ACC = LCDstring[0]; Bradford
"ACC = LCDstring[0]; Print an A to LCD"
No, that just copies the 1st character of LCDstring into the Accumulator.
If that did just happen to result in it apppearing on your LCD then you were extremely lucky!!
You have absolutely no guarantee whatsoever that the compiler won't be using ACC for its own internal purposes - in fact, it is extremely likely that the compiler will be using ACC for its own internal purposes!!
Thanks Andy, that was it. I'm used to programming in assembly language and having total control of my accumulator.