View Single Post
Old 18 July 2020, 11:21   #4
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
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.
ross is offline  
 
Page generated in 0.05338 seconds with 11 queries