rangerskm
Full Member level 4
- Joined
- Jan 23, 2013
- Messages
- 199
- Helped
- 0
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 2,663
Code:
list p=pic16f73
#include "p16f73.inc"
cblock 0x20
r0,r1,r2,r3
endc
org 0x00
movlw 0x0ff
movwf r0
movlw 0x0ff
movwf r1
movlw 0x0ff
movwf r2
movlw 0x0ff
movwf r3
movf r0,w
addwf r2,1
btfss status,0
goto x
movlw 0x01
addwf r1,1
x: Movf r1,w
addwf r3,1
goto $
end
can anyone explain the logic in this program