Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list p=PIC18f8722
- #include p18f8722.inc
- ; Begin
- code 0
- goto initialize
- udata
- a res .1
- b res .1
- c res .2
- ; Start
- PRG code
- initialize
- ; Set a and b here
- main
- movf a, W
- addwf b, W
- movwf c
- movlw .0
- clrf c + 1
- addwfc c + 1
- exit
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement