??? 04/30/11 11:09 Modified: 04/30/11 11:10 Read: times |
#182123 - Copied "END" without first reading what it meant? Responding to: ???'s previous message |
Vaggelis Triantafillou said:
I wrote this code below. This has not comments yet. Is trying to give a message on dot matrix and in lcd screen. This, I manage to do it, but it runs consecutive and I can;t find what is the the bad thing which prevent the program to stop. Please see the code. Can you maybe tell us what you think this means? FIN: END Exactly what processor instruction do you think "END" is? Can you find it documented in the instruction set for the processor? Do you think that the processor will magically turn off the power and die? Unless you (!) create hardware where you can turn off the power to the processor (let it commit suicide) or select a processor where you can turn off all code execution (normally a deep power-save mode), then your only choice to "end" a program is to add an infinite loop at the end of your code. If you had spent any time at all researching "END" before copy/pasting it from somewhere else, you would have known that the only meaning of this word is to tell the assembler that no more instructions will follow for the assembler to process. So you would know that it would not represent any information to the processor to magically stop running. |