metals
Junior Member level 2
- Joined
- Jan 25, 2011
- Messages
- 22
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,441
In assembly language for programming PIC, how many instruction cycles would this code take?
I know that they all take 1 instruction cycle except for bnz which ned 1 or 2 and return that also need 2. But the answer is not 11/12 instruction cycles?
Code:
hugo movlw 0x14
movwf n
igen decf n,f
bnz igen
nop
nop
rlncf n,w
movwf portC
nop
return
I know that they all take 1 instruction cycle except for bnz which ned 1 or 2 and return that also need 2. But the answer is not 11/12 instruction cycles?