Advertisement
Looong

car test v2

Mar 13th, 2016
3,044
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. temp    res     .1
  9. ; Start
  10.         PRG code
  11. initialize
  12.         movlw   b'00001111' ; bit mask
  13.         bcf     PORTA, 4
  14. main
  15.         andwf   PORTA, W
  16.         movwf   temp
  17.         movlw   b'00001111' ; bit mask
  18.         cpfseq  temp
  19.         bra     exit
  20.         bsf     PORTA, 4
  21. exit
  22.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement