Advertisement
Looong

car test

Mar 13th, 2016
3,051
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 0.44 KB | None | 0 0
  1.         list    p=PIC18f8722
  2.         #include p18f8722.inc
  3. ; Begin
  4.         code    0
  5.         goto    initialize
  6.        
  7.         udata
  8. ; Start
  9.         PRG code
  10. initialize
  11.         bcf     PORTA, 4
  12. main
  13.         btfss   PORTA, 0
  14.         bra     exit
  15.         btfss   PORTA, 1
  16.         bra     exit
  17.         btfss   PORTA, 2
  18.         bra     exit
  19.         btfss   PORTA, 3
  20.         bra     exit
  21.         bsf     PORTA, 4
  22. exit
  23.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement