Advertisement
jack96013

HW

Dec 7th, 2020
3,114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 0.37 KB | None | 0 0
  1. list p=16f877a
  2. #include <p16f877a.inc>
  3.  
  4. org 0x00
  5.     Start:
  6.  
  7.     bsf PCLATH,1 ;Fix
  8.     bsf PCLATH,2 ;Fix
  9.  
  10.     pagesel Table
  11.    
  12.     movlw 0x04
  13.     call Table
  14.  
  15.     bcf PCLATH,1
  16.     bcf PCLATH,2
  17.     pagesel Start
  18.     nop
  19.    
  20.    
  21. org 0x1600
  22. Table:
  23.     addwf PCL,f
  24.     retlw 0x3C
  25.     retlw 0xC3
  26.     retlw 0x00
  27.     retlw 0xFF
  28.     retlw 0xAA
  29.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement