??? 04/14/07 13:12 Read: times |
#137248 - . Responding to: ???'s previous message |
Andy Neil said:
Mike Stegmaier said:
1. ALWAYS terminate your code. What do you mean by that? As I explained, Add an "ajmp $" or something to indicate the end of your program followed by END. I wouldn't even trust that the assembler's END statement would properly terminate your code. What do hope that the END "statement" might do? (even if you don't trust it to do so) One thing that it certainly will not do is to prevent your code from running on past the last instruction in the file! The 'END' merely informs the assembler that no further source code follows - it does not do anything to "terminate" execution in the micro! That's why I don't trust END! ;) That's why I suggest "ajmp $" followed by "END". So, to be absolutely certain that your code is terminated properly, add a line that causes an endless loop. You can use "ljmp $", "ajmp $", or "sjmp $". Check the syntax for your particular assembler - not all use "$" with the same meaning... then if $ doesnt work, because of your assembler, then make a label at the line before and jump to it. like this: mylabel: ajmp mylabel |
Topic | Author | Date |
RxD to LCD problems | 01/01/70 00:00 | |
Serial ISR | 01/01/70 00:00 | |
work needed. | 01/01/70 00:00 | |
you need to control flow | 01/01/70 00:00 | |
confused | 01/01/70 00:00 | |
this is what I mean | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
yes | 01/01/70 00:00 | |
Non-useful Serial ISR | 01/01/70 00:00 | |
AND it's stuck | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
I was going for optimization. | 01/01/70 00:00 | |
It's functioning | 01/01/70 00:00 | |
now stay consistent | 01/01/70 00:00 | |
Terminating code? | 01/01/70 00:00 | |
. | 01/01/70 00:00 | |
correct terminology | 01/01/70 00:00 | |
Missing the point | 01/01/70 00:00 | |
i get it now | 01/01/70 00:00 | |
Most, but not all | 01/01/70 00:00 | |
why on earth | 01/01/70 00:00 | |
if it\'s almost correct, it\'s still wrong :-) | 01/01/70 00:00 | |
ok | 01/01/70 00:00 | |
Not R6 and R7 | 01/01/70 00:00 | |
well it happend again | 01/01/70 00:00 | |
Q.E.D. | 01/01/70 00:00 | |
One further comment is needed | 01/01/70 00:00 | |
Hey | 01/01/70 00:00 | |
Dangerous recommendation | 01/01/70 00:00 | |
good point | 01/01/70 00:00 | |
they all do![]() | 01/01/70 00:00 | |
it 'trust' the same as 'experiment'? | 01/01/70 00:00 | |
more issues | 01/01/70 00:00 | |
Joe, please read this | 01/01/70 00:00 |