TheWaterboy
Lifetime Supporting Member + Moderator
I just want to be sure I am right about this...
I have a number of ladders that I call based on a number, #1 = Ladder 1, #2 = ladder 2 etc.
The sequence works but I found that timer.acc and .dn bits remain set when the ladder exits. This makes the next trip through that ladder pretty brief since the timer .DN is already set.
I get whats happening and I now clear them. But I found the ONS bits do the same thing and I thought because of their nature, i.e. set only once, they just might be immune, i.e. they would reset the next time the ladder is executed.
Apparently I am wrong in that assumption so I need to clear these as well. No problem, I can do that but I just want to confirm that this is expected behavior.
Furthermore if this is expected, couldn't I exploit that and use the same ONS bits in every ladder since only one ladder would be executed at a time? Wont the ONS reset on the next ladder execution?
Or will it remain set until... when?
I know bits are cheap, this is an academic exercise at this point
I have a number of ladders that I call based on a number, #1 = Ladder 1, #2 = ladder 2 etc.
The sequence works but I found that timer.acc and .dn bits remain set when the ladder exits. This makes the next trip through that ladder pretty brief since the timer .DN is already set.
I get whats happening and I now clear them. But I found the ONS bits do the same thing and I thought because of their nature, i.e. set only once, they just might be immune, i.e. they would reset the next time the ladder is executed.
Apparently I am wrong in that assumption so I need to clear these as well. No problem, I can do that but I just want to confirm that this is expected behavior.
Furthermore if this is expected, couldn't I exploit that and use the same ONS bits in every ladder since only one ladder would be executed at a time? Wont the ONS reset on the next ladder execution?
Or will it remain set until... when?
I know bits are cheap, this is an academic exercise at this point