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 0x0ef
movwf r0
movlw 0x0ff
movwf r1
movlw 0x0ff
movwf r2
movlw 0x0ff
movwf r3
movf r2,w
subwf r0,1
btfss status,0
goto x
movlw 0x01
subwf r3,1
x: Movf r3,w
subwf r1,1
goto $
end