Advertisement
Looong

u_int c = u_char a + u_char b

Mar 13th, 2016
2,985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 0.39 KB | None | 0 0
  1.         list    p=PIC18f8722
  2.         #include p18f8722.inc
  3. ; Begin
  4.         code    0
  5.         goto    initialize
  6.        
  7.         udata
  8. a       res .1
  9. b       res .1
  10. c       res .2
  11. ; Start
  12.         PRG code
  13. initialize
  14. ; Set a and b here
  15. main
  16.         movf    a, W
  17.         addwf   b, W
  18.         movwf   c
  19.         movlw   .0
  20.         clrf    c + 1
  21.         addwfc  c + 1
  22. exit
  23.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement