On 2/7/06, Scott Dattalo wrote: > In other words, at the end of the macro, any set bits in W indicates > that a change has occurred. So if you press and hold a key, you will > see 4 iterations of the switch bit being zero, then 1 iteration of it > being zero, and then N iterations back at 0. When you release the > switch you'll see a similar thing. In both cases, the cva field matches > the csa field after 4 consecutive samples of the two being different Um...I'm guessing there's a typo here? Should be 1 iteration of it being 1 instead of "1 iteration of it being zero", correct? > I'll go ahead and include it here (besides, maybe someone will ask how > those assertions work). Alright, I'll bite. How do assertions work? :) I'm guessing this is a gpasm thing and I only use MPASM. Thanks! Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist