---------- > От: Dmitry Kiryashov > Кому: PICLIST@MITVMA.MIT.EDU > Тема: Multi-byte counter trick > Дата: 22 сентября 1997 г. 12:00 > > 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. SKPNZ - это не инструкция процессора, а подстановка, расширяемая ассемблером в 2 байта. Вот отсюда и все твои проблемы. Александр.