Lesson du jour: check your PASM jump destination labels!!
MJHanagan
Posts: 189
I have banged my head for may hours this afternoon trying to track down an intermittent bug in some really simple PASM code. At the end I had more lines of debugging code than loopholes in the Federal tax code. I was just now typing up a plea for help from the forum when I discovered I had made a rookie error by forgetting a "#" in front of a destination label in a jump instruction. Sure enough, the very last line of code was "jmp WaitLoop", not "jmp #WaitLoop". For the most part the code work just fine with this error, but once in a while it would drift off to la la land and never come back. I'm baffled why the code works initially then seemingly at random it wigs out. It was very frustrating.
Lesson du jour: check your PASM jump destination labels!!
Lesson du jour: check your PASM jump destination labels!!
Comments
-Phil
Nice to "see" you again ErNa !
It should scan text as you type it and look for labels and if 99% of the time you should use # when it pop up a note.
Hope that feature makes it into the the new software. Even better if it checks the line as it is entered.
That has to be the mistake I make most often.
... and use PASD for debugging.