2012-03-08 57 views

回答

0

PIC16汇编器没有这样的单指令。

但是你可以用多个指令像这样做:

;//count is byte value from 0..7 
movf  count, w 
btfsc Zero 
bsf  PORTC, 0 

decf  WREG 
btfsc Zero 
bsf  PORTC, 1 

decf  WREG 
btfsc Zero 
bsf  PORTC, 2 

... 

decf  WREG 
btfsc Zero 
bsf  PORTC, 7 
+0

我明白了,我必须明确地测试它。 – user1193752 2012-03-08 23:51:41

相关问题