This couldn't be more timely, I need a three byte counter in my current project. I had given this some thought already, but always needed a little extra code to handle the high byte. Good stuff! Martin R. Green elimar@bigfoot.com ---------- From: Dmitry Kiryashov[SMTP:zews@AHA.RU] Sent: Monday, September 22, 1997 4:00 AM To: PICLIST@mitvma.mit.edu Subject: Multi-byte counter trick Hello Piclister members ! I am sure that I am not first discover of this but it's greate ! PIC have nice ability to implement normal multi-byte counters . Look at example below . (Let it will 3 byte incrementing) --- incfsz low,f skpnz incfsz medium,f skpnz incf high,f --- Last instruction is INCF not INCFSZ . Execution time is always equal to 7 clocks ! So any n-byte inc/dec operation have execution time equal to: 1+(n-1)*3 And previous carry flag not corrupted . WBR Dmitry.