2012-03-08 40 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

相關問題