There is also another reason why I ALWAYS advise against doing such a single check.
Nobody assures you that your code can be executed on that line!
Okay, no problem in a test program, but when does the program get complex?
When do you have IRQs arriving at unpredictable moments (like a CIA timed IRQ) and it use all the line time?
You risk failing because, for your check code, this line is never existed and, for the frame, code is skipped...
So always do a cross check and not for Z but for different conditions.
|