; File TABLA.ASM ; Assembly code for PIC16F84 microcontroller ; TRANSFIERE EL CONTENIDO DE LA TABLA EN 16 LOCALIDADES DE MEMORIA DE CODIGO ; 60H..6FH HACIA LOCALIDADES EN MEMORIA DE DATOS, 20H..2FH ; Configuración del CPU ; 16F84, Oscilador cristal 4 Mhz, ; watchdog timer off, power-up timer on) ; incluye archivo p16f84.inc processor 16f84 include __config _XT_OSC & _WDT_OFF & _PWRTE_ON CONT EQU 30H ORG 0 begin: movlw 20h movwf FSR clrf CONT loop: movf CONT,w call tabla movwf INDF incf FSR incf CONT movf CONT,w sublw 10H btfss STATUS,Z goto loop ;a malla sleep ;fin ORG 60H tabla: addwf PCL,f retlw '0' retlw '1' retlw '2' retlw '3' retlw '4' retlw '5' retlw '6' retlw '7' retlw '8' retlw '9' retlw 'A' retlw 'B' retlw 'C' retlw 'D' retlw 'E' retlw 'F' end