Advertisement
Adytzu04

L8 SMP

Nov 28th, 2013
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #INCLUDE P16F917.INC
  2.         ORG     0000H
  3.  
  4. RESET:  GOTO    INIT
  5.         ORG     0004H
  6.  
  7. INTR:   RETFIE
  8.  
  9. INIT:   BCF     STATUS,RP0
  10.         BCF     STATUS,RP1
  11.         BCF     STATUS,IRP
  12.         MOVLW       70H
  13.         MOVWF       FSR     ;FSR =70
  14.         MOVLW       0AAH
  15.  
  16. CMFILL: MOVWF   INDF
  17.         INCF        FSR,F
  18.         BTFSS       FSR,7
  19.         GOTO        CMFILL
  20.  
  21.         GOTO        $
  22.  
  23.         END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement