; original File = C:\Documents and Settings\practica\Escritorio\wiiskas_PIC12F629.hex
processor 12F629
#include
__config 0x3184
; _CPD_OFF & _CP_OFF & _BODEN_OFF & _MCLRE_OFF & _PWRTE_ON & _WDT_OFF
; & _INTRC_OSC_NOCLKOUT
; EEPROM-Data
Org 0x2100
DE 0xDE, 0x07, 0xF8, 0x88, 0x3A, 0x9A, 0x73, 0x00
DE 0xBA, 0x9F, 0x75, 0xB1, 0x83, 0x1C, 0x86, 0x61
DE 0x6B, 0x47, 0x04, 0xBF, 0x1C, 0x45, 0x1F, 0x61
DE 0xE1, 0x61, 0xE1, 0x63, 0x9E, 0xA3, 0xBC, 0x94
DE 0x90, 0x9E, 0xAB, 0xBC, 0x94, 0x90, 0x98, 0x5E
DE 0x9E, 0x62, 0xEB, 0x9E, 0xA1, 0xBC, 0x94, 0x68
DE 0x9E, 0x6A, 0x14, 0xBD, 0x94, 0x82, 0x8E, 0x4F
DE 0x98, 0x4A, 0xBA, 0x6A, 0x9E, 0x6A, 0x94, 0x95
DE 0x9E, 0xB9, 0xDC, 0x94, 0x9E, 0xB6, 0x91, 0x94
DE 0xE4, 0x6F, 0x96, 0xA6, 0x94, 0xBC, 0x94, 0x82
DE 0x92, 0x9F, 0x1E, 0x0B, 0x46, 0x63, 0x96, 0xAA
DE 0x94, 0x90, 0x6B, 0x6A, 0x98, 0x36, 0x99, 0x5F
DE 0x96, 0xDC, 0x94, 0x99, 0x6F, 0x96, 0xD9, 0x94
DE 0xEC, 0xB2, 0x6B, 0x83, 0x67, 0x96, 0xC1, 0x94
DE 0x6A, 0xBB, 0x6A, 0xBC, 0x94, 0x82, 0x9D, 0x81
DE 0xB6, 0x9E, 0xBE, 0x91, 0x94, 0x95, 0x81, 0xAB
; RAM-Variable
LRAM_0x20 equ 0x20
LRAM_0x21 equ 0x21
LRAM_0x26 equ 0x26
LRAM_0x27 equ 0x27
LRAM_0x28 equ 0x28
LRAM_0x29 equ 0x29
LRAM_0x2A equ 0x2A
LRAM_0x2B equ 0x2B
LRAM_0x2C equ 0x2C
LRAM_0x2D equ 0x2D
LRAM_0x2E equ 0x2E
LRAM_0x2F equ 0x2F
LRAM_0x30 equ 0x30
LRAM_0x31 equ 0x31
LRAM_0x32 equ 0x32
LRAM_0x33 equ 0x33
LRAM_0x34 equ 0x34
LRAM_0x35 equ 0x35
LRAM_0x36 equ 0x36
LRAM_0x37 equ 0x37
LRAM_0x38 equ 0x38
LRAM_0x39 equ 0x39
LRAM_0x3A equ 0x3A
LRAM_0x3B equ 0x3B
LRAM_0x3C equ 0x3C
LRAM_0x3D equ 0x3D
LRAM_0x3E equ 0x3E
LRAM_0x3F equ 0x3F
LRAM_0x40 equ 0x40
; Program
Org 0x0000
; Reset-Vector
MOVLW 0x00
MOVWF PCLATH ; !!Bank Program-Page-Select
GOTO LADR_0x0004
NOP
; Interrupt-Vector
LADR_0x0004
CALL LADR_0x03FF
BSF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF T1CON ; !!Bank!! T1CON - OSCCAL
MOVLW 0x00
MOVWF PCLATH ; !!Bank Program-Page-Select
GOTO LADR_0x036F
LADR_0x000A
BCF PCLATH,0 ; !!Bank Program-Page-Select
BCF PCLATH,1 ; !!Bank Program-Page-Select
BCF PCLATH,2 ; !!Bank Program-Page-Select
ADDWF PCL,F
RETLW 0x7B
RETLW 0xF6
RETLW 0xB9
RETLW 0xA9
RETLW 0xE7
RETLW 0x94
RETLW 0x1B
RETLW 0x6B
RETLW 0x96
RETLW 0x1C
RETLW 0x85
RETLW 0xC1
RETLW 0x8F
RETLW 0xE8
RETLW 0x7F
RETLW 0xD0
RETLW 0x88
RETLW 0xDB
RETLW 0x15
RETLW 0xBC
RETLW 0x81
RETLW 0x66
RETLW 0x1C
RETLW 0xDB
RETLW 0x61
RETLW 0x8E
RETLW 0x6B
RETLW 0xBD
RETLW 0xAC
RETLW 0x9E
RETLW 0x9E
RETLW 0x9F
RETLW 0x13
RETLW 0x9E
RETLW 0x1F
RETLW 0x60
RETLW 0x7B
RETLW 0xF5
RETLW 0x7C
RETLW 0xCA
RETLW 0x98
RETLW 0x0F
RETLW 0xCF
RETLW 0xF7
RETLW 0x56
RETLW 0x88
RETLW 0x77
RETLW 0xB6
RETLW 0xFC
RETLW 0x00
RETLW 0x10
RETLW 0xEA
RETLW 0x9A
RETLW 0x8D
RETLW 0x12
RETLW 0x80
RETLW 0x11
RETLW 0xC7
RETLW 0x94
RETLW 0x23
RETLW 0x89
RETLW 0x6C
RETLW 0x03
RETLW 0xE2
RETLW 0x1D
RETLW 0x4E
RETLW 0x54
RETLW 0xE3
RETLW 0x09
RETLW 0x27
RETLW 0x67
RETLW 0x85
RETLW 0xC2
RETLW 0x88
RETLW 0x3F
RETLW 0x09
RETLW 0x84
RETLW 0xA7
RETLW 0x86
RETLW 0xEE
RETLW 0x61
RETLW 0x01
RETLW 0x66
RETLW 0xEF
RETLW 0xC7
RETLW 0x9A
RETLW 0xFB
RETLW 0x84
RETLW 0x9E
RETLW 0xBF
RETLW 0x2F
RETLW 0xF3
RETLW 0x93
RETLW 0xB1
RETLW 0x15
RETLW 0xE6
RETLW 0x3A
RETLW 0xC1
RETLW 0x74
RETLW 0xE4
RETLW 0x57
RETLW 0x92
RETLW 0x89
RETLW 0x9B
RETLW 0x1C
RETLW 0x26
RETLW 0xF9
RETLW 0xFF
RETLW 0x83
RETLW 0xEF
RETLW 0xC7
RETLW 0x03
RETLW 0xCF
RETLW 0x78
RETLW 0xFF
RETLW 0xBF
RETLW 0x3E
RETLW 0x85
RETLW 0xF9
RETLW 0x28
RETLW 0xC8
RETLW 0x4F
RETLW 0x26
RETLW 0xF9
RETLW 0x75
RETLW 0x73
RETLW 0xF7
RETLW 0x4B
RETLW 0xBA
RETLW 0xF9
RETLW 0x1E
RETLW 0xF1
RETLW 0x11
RETLW 0x3E
RETLW 0x67
RETLW 0x3E
RETLW 0x9B
RETLW 0x55
RETLW 0xE3
RETLW 0x92
RETLW 0x41
RETLW 0x71
RETLW 0xEB
RETLW 0x26
RETLW 0xD2
RETLW 0xD9
RETLW 0x7D
RETLW 0x3D
RETLW 0x65
RETLW 0x73
RETLW 0xD8
RETLW 0xFC
RETLW 0xBE
RETLW 0x70
RETLW 0xEA
RETLW 0x63
RETLW 0x3D
RETLW 0xF7
RETLW 0xAF
RETLW 0x88
RETLW 0x23
RETLW 0x74
RETLW 0x2D
RETLW 0x8C
RETLW 0xB3
RETLW 0x15
RETLW 0xF2
RETLW 0x3C
RETLW 0x9F
RETLW 0xFC
RETLW 0x90
RETLW 0x8A
RETLW 0x69
RETLW 0x1E
RETLW 0x9F
RETLW 0xFC
RETLW 0x61
RETLW 0xCC
RETLW 0x0D
RETLW 0x9D
RETLW 0x6A
RETLW 0xEB
RETLW 0x86
RETLW 0xD9
RETLW 0xE1
RETLW 0x17
RETLW 0x2A
RETLW 0x3D
RETLW 0x87
RETLW 0x7F
RETLW 0xDE
RETLW 0x60
RETLW 0xE9
RETLW 0x70
RETLW 0xCA
RETLW 0x67
RETLW 0x3F
RETLW 0xF9
RETLW 0xB2
RETLW 0x47
RETLW 0x77
RETLW 0xFF
LADR_0x00D8
BCF PCLATH,0 ; !!Bank Program-Page-Select
BCF PCLATH,1 ; !!Bank Program-Page-Select
BCF PCLATH,2 ; !!Bank Program-Page-Select
ADDLW 0xDF
BTFSC STATUS,C
INCF PCLATH,F ; !!Bank Program-Page-Select
MOVWF PCL
RETLW 0xE2
RETLW 0xB9
RETLW 0xA8
RETLW 0xB6
RETLW 0x91
RETLW 0x7D
RETLW 0x83
RETLW 0xAF
RETLW 0x2D
RETLW 0xAF
RETLW 0x31
RETLW 0xE2
RETLW 0x90
RETLW 0x0D
RETLW 0xE3
RETLW 0xE5
RETLW 0x5F
RETLW 0x86
RETLW 0xAC
RETLW 0x11
RETLW 0xEE
RETLW 0xF0
RETLW 0x62
RETLW 0x61
RETLW 0x87
RETLW 0x8A
RETLW 0x45
RETLW 0x36
RETLW 0xF6
RETLW 0xD1
RETLW 0x58
RETLW 0xEB
RETLW 0x7C
RETLW 0x6B
RETLW 0xA5
RETLW 0xA1
RETLW 0xF4
RETLW 0xA2
RETLW 0xA8
RETLW 0x9C
RETLW 0xA2
RETLW 0xD2
RETLW 0x1E
RETLW 0x7D
RETLW 0x89
RETLW 0x6D
RETLW 0xB1
RETLW 0x83
RETLW 0x3B
RETLW 0x9E
RETLW 0x74
RETLW 0x2E
RETLW 0xA2
RETLW 0xA6
RETLW 0xA3
RETLW 0x59
RETLW 0xA6
RETLW 0x95
RETLW 0xC8
RETLW 0x6D
RETLW 0x24
RETLW 0x92
RETLW 0x6B
RETLW 0xA1
RETLW 0xA5
RETLW 0xAA
RETLW 0xDB
RETLW 0x85
RETLW 0x0C
RETLW 0x08
RETLW 0xA0
RETLW 0xA9
RETLW 0x85
RETLW 0xD9
RETLW 0x23
RETLW 0xB8
RETLW 0xED
RETLW 0x57
RETLW 0x21
RETLW 0xB3
RETLW 0xB1
RETLW 0x80
RETLW 0xDE
RETLW 0xE9
RETLW 0x04
RETLW 0x4A
RETLW 0xFD
RETLW 0x6F
RETLW 0x74
RETLW 0x8D
RETLW 0x49
RETLW 0x93
RETLW 0xF6
RETLW 0x25
RETLW 0x61
RETLW 0xEC
RETLW 0xDB
RETLW 0x1B
RETLW 0x81
RETLW 0x75
RETLW 0x05
RETLW 0x90
RETLW 0xDD
RETLW 0xD9
RETLW 0x19
RETLW 0xE1
RETLW 0x66
RETLW 0x76
RETLW 0x5C
RETLW 0x85
RETLW 0x0D
RETLW 0x42
RETLW 0x9C
RETLW 0x39
RETLW 0xB7
RETLW 0x96
RETLW 0xDA
RETLW 0x85
RETLW 0x25
RETLW 0x93
RETLW 0x7A
RETLW 0x2D
RETLW 0x6B
RETLW 0x5D
RETLW 0x61
RETLW 0x05
RETLW 0x19
RETLW 0x9D
RETLW 0x9C
RETLW 0x50
RETLW 0xA7
RETLW 0x55
RETLW 0xA7
RETLW 0xEB
RETLW 0xED
RETLW 0xB9
RETLW 0x17
RETLW 0xEE
RETLW 0x3D
RETLW 0xC4
RETLW 0xCF
RETLW 0x2A
RETLW 0x8F
RETLW 0xB6
RETLW 0x93
RETLW 0xE3
RETLW 0x92
RETLW 0x66
RETLW 0xD1
RETLW 0xBB
RETLW 0xF6
RETLW 0xDA
RETLW 0xBD
RETLW 0xAB
RETLW 0x1F
RETLW 0xCD
RETLW 0x61
RETLW 0x74
RETLW 0x3E
RETLW 0xB1
RETLW 0xD8
RETLW 0xDA
RETLW 0xA9
RETLW 0xFE
RETLW 0x75
RETLW 0x1C
RETLW 0xA6
RETLW 0x24
RETLW 0xB0
RETLW 0x8B
RETLW 0x9F
RETLW 0xD5
RETLW 0x62
RETLW 0x2D
RETLW 0xA4
RETLW 0x6C
RETLW 0xE2
RETLW 0x84
RETLW 0x62
RETLW 0x3A
RETLW 0x62
RETLW 0x99
RETLW 0x6F
RETLW 0x01
RETLW 0x8F
RETLW 0xA5
RETLW 0x91
RETLW 0x5A
RETLW 0x12
RETLW 0xEB
RETLW 0x4E
RETLW 0x96
RETLW 0xC1
RETLW 0x6D
RETLW 0x5B
RETLW 0xF4
RETLW 0xE4
RETLW 0x6A
RETLW 0xB8
RETLW 0x01
RETLW 0x70
RETLW 0xC1
RETLW 0x6E
RETLW 0x01
RETLW 0x8D
RETLW 0x36
RETLW 0x59
RETLW 0x3D
RETLW 0xE7
RETLW 0x70
RETLW 0xC9
RETLW 0x65
RETLW 0x74
RETLW 0x3D
RETLW 0x8D
RETLW 0x38
RETLW 0x55
RETLW 0x8B
RETLW 0x26
RETLW 0x9F
RETLW 0xAF
RETLW 0xE0
RETLW 0x1E
RETLW 0x2D
RETLW 0x30
RETLW 0xD7
RETLW 0x23
RETLW 0xAB
LADR_0x01C3
BSF PCLATH,0 ; !!Bank Program-Page-Select
BCF PCLATH,1 ; !!Bank Program-Page-Select
BCF PCLATH,2 ; !!Bank Program-Page-Select
ADDLW 0xCA
BTFSC STATUS,C
INCF PCLATH,F ; !!Bank Program-Page-Select
MOVWF PCL
RETLW 0xBA
RETLW 0xB0
RETLW 0x48
RETLW 0xE9
RETLW 0x26
RETLW 0x51
RETLW 0xD7
RETLW 0x93
RETLW 0xF0
RETLW 0x8C
RETLW 0xB1
RETLW 0x33
RETLW 0x90
RETLW 0xE0
RETLW 0x5F
RETLW 0x39
RETLW 0x6D
RETLW 0xFE
RETLW 0xEC
RETLW 0x7F
RETLW 0xA2
RETLW 0xC0
RETLW 0x61
RETLW 0xBA
RETLW 0x54
RETLW 0xEE
RETLW 0x27
RETLW 0x12
RETLW 0xE4
RETLW 0xE3
RETLW 0x25
RETLW 0x13
RETLW 0x36
RETLW 0x8C
RETLW 0x3B
RETLW 0x36
RETLW 0xE4
RETLW 0x97
RETLW 0xF4
RETLW 0x8D
RETLW 0xCB
RETLW 0x4B
RETLW 0x41
RETLW 0xFE
RETLW 0x5C
RETLW 0x84
RETLW 0x41
RETLW 0xCA
RETLW 0x85
RETLW 0x70
RETLW 0x67
RETLW 0xDE
RETLW 0xB0
RETLW 0x8C
RETLW 0xE0
RETLW 0xDA
RETLW 0x97
RETLW 0x29
RETLW 0xF5
RETLW 0xB2
RETLW 0x08
RETLW 0xC1
RETLW 0x17
RETLW 0x1F
RETLW 0x6D
RETLW 0xFA
RETLW 0x51
RETLW 0x77
RETLW 0x9E
RETLW 0x4A
RETLW 0x5E
RETLW 0x8B
RETLW 0xF6
RETLW 0xF3
RETLW 0x03
RETLW 0xB3
RETLW 0x88
RETLW 0xAA
RETLW 0xA3
RETLW 0x83
RETLW 0xA3
RETLW 0x77
RETLW 0xCF
RETLW 0x04
RETLW 0xD5
RETLW 0x72
RETLW 0x8A
RETLW 0xAB
RETLW 0x76
RETLW 0x5F
RETLW 0x04
RETLW 0xED
RETLW 0x68
RETLW 0x53
RETLW 0xF3
RETLW 0x77
RETLW 0xF5
RETLW 0x55
RETLW 0x53
RETLW 0x6C
RETLW 0xE7
RETLW 0x8D
RETLW 0x4D
RETLW 0xB3
RETLW 0x0C
RETLW 0x5B
RETLW 0xD3
RETLW 0x08
RETLW 0xA3
RETLW 0x54
RETLW 0xAA
RETLW 0xAF
RETLW 0x3F
RETLW 0x6F
RETLW 0x75
RETLW 0x7A
RETLW 0xE9
RETLW 0xB4
RETLW 0x87
RETLW 0x4F
RETLW 0xB6
RETLW 0x57
RETLW 0x9E
RETLW 0x18
RETLW 0x0A
RETLW 0x83
RETLW 0x7B
RETLW 0x63
RETLW 0x79
RETLW 0x33
RETLW 0x71
RETLW 0x39
RETLW 0x43
RETLW 0x25
RETLW 0xB4
RETLW 0xDE
RETLW 0x8C
RETLW 0x97
RETLW 0xB6
RETLW 0x0A
RETLW 0xC0
RETLW 0x42
RETLW 0xBF
RETLW 0xDE
RETLW 0x73
RETLW 0x82
RETLW 0x1F
RETLW 0x9A
RETLW 0xA2
RETLW 0xE1
RETLW 0xDE
RETLW 0x7B
RETLW 0x53
RETLW 0x75
RETLW 0x5A
RETLW 0x4B
RETLW 0xB9
RETLW 0x91
RETLW 0xAC
RETLW 0x80
RETLW 0xA3
RETLW 0x96
RETLW 0x25
RETLW 0xE7
RETLW 0x0B
RETLW 0x81
RETLW 0xF4
RETLW 0x5B
RETLW 0x4F
RETLW 0x74
RETLW 0xF7
RETLW 0x66
RETLW 0x1D
RETLW 0x7E
RETLW 0x08
RETLW 0x8E
RETLW 0x00
RETLW 0x5F
RETLW 0x76
RETLW 0xE9
RETLW 0xB3
RETLW 0x96
RETLW 0x4F
RETLW 0xC3
RETLW 0x35
RETLW 0x21
RETLW 0xBA
RETLW 0x83
RETLW 0xB4
RETLW 0x61
RETLW 0xF4
RETLW 0xAC
RETLW 0x9F
RETLW 0x63
RETLW 0x81
RETLW 0xC4
RETLW 0x2D
RETLW 0xD3
RETLW 0x20
RETLW 0xAB
RETLW 0xC0
RETLW 0x1F
RETLW 0xD3
RETLW 0xB3
RETLW 0x59
RETLW 0xFA
RETLW 0xD6
RETLW 0x8D
RETLW 0x6E
RETLW 0x51
RETLW 0xA5
RETLW 0xAF
RETLW 0x80
RETLW 0xAE
RETLW 0x2A
RETLW 0xDB
RETLW 0x5A
RETLW 0x03
RETLW 0x96
RETLW 0xC2
RETLW 0xE8
RETLW 0x4B
RETLW 0x01
RETLW 0xCB
RETLW 0x7C
RETLW 0x37
RETLW 0x84
RETLW 0x7D
LADR_0x02AE
MOVLW 0x28
MOVWF FSR
BCF STATUS,IRP
MOVF INDF,W
BTFSC STATUS,Z
GOTO LADR_0x02C2
LADR_0x02B4
MOVLW 0x01
MOVWF LRAM_0x21
LADR_0x02B6
CLRF LRAM_0x20
LADR_0x02B7
DECFSZ LRAM_0x20,F
GOTO LADR_0x02B7
DECFSZ LRAM_0x21,F
GOTO LADR_0x02B6
MOVLW 0x4A
MOVWF LRAM_0x20
LADR_0x02BD
DECFSZ LRAM_0x20,F
GOTO LADR_0x02BD
GOTO LADR_0x02C0
LADR_0x02C0
DECFSZ INDF,F
GOTO LADR_0x02B4
LADR_0x02C2
GOTO LADR_0x02C6
LADR_0x02C3
MOVLW 0xFA
MOVWF LRAM_0x28
GOTO LADR_0x02AE
LADR_0x02C6
GOTO LADR_0x037F
LADR_0x02C7
MOVLW 0x04
MOVWF LRAM_0x20
LADR_0x02C9
DECFSZ LRAM_0x20,F
GOTO LADR_0x02C9
GOTO LADR_0x02CC
LADR_0x02CC
RETLW 0x00
LADR_0x02CD
BSF GPIO,1 ; !!Bank!! GPIO - TRISIO
LADR_0x02CE
CALL LADR_0x02C7
CLRF LRAM_0x2A
BTFSC LRAM_0x29,0
BSF LRAM_0x2A,7
BCF STATUS,C
RRF LRAM_0x28,W
IORWF LRAM_0x2A,W
MOVWF LRAM_0x28
BCF STATUS,C
RRF LRAM_0x29,F
BTFSC GPIO,2 ; !!Bank!! GPIO - TRISIO
BSF LRAM_0x29,7
BSF GPIO,0 ; !!Bank!! GPIO - TRISIO
CALL LADR_0x02C7
MOVF LRAM_0x28,W
SUBLW 0xEE
BTFSS STATUS,Z
GOTO LADR_0x02E6
MOVF LRAM_0x29,W
SUBLW 0xEE
BTFSS STATUS,Z
GOTO LADR_0x02E6
CALL LADR_0x02C7
GOTO LADR_0x02E8
LADR_0x02E6
BCF GPIO,0 ; !!Bank!! GPIO - TRISIO
GOTO LADR_0x02CE
LADR_0x02E8
RETLW 0x00
LADR_0x02E9
MOVLW 0x1D
MOVWF LRAM_0x20
LADR_0x02EB
DECFSZ LRAM_0x20,F
GOTO LADR_0x02EB
GOTO LADR_0x02EE
LADR_0x02EE
RETLW 0x00
LADR_0x02EF
CLRF LRAM_0x40
LADR_0x02F0
MOVF LRAM_0x40,W
SUBLW 0x07
BTFSS STATUS,C
GOTO LADR_0x030D
CALL LADR_0x02C7
BCF GPIO,0 ; !!Bank!! GPIO - TRISIO
MOVLW 0x01
MOVWF LRAM_0x20
MOVF LRAM_0x40,W
MOVWF LRAM_0x21
BTFSC STATUS,Z
GOTO LADR_0x0300
LADR_0x02FC
BCF STATUS,C
RLF LRAM_0x20,F
DECFSZ LRAM_0x21,F
GOTO LADR_0x02FC
LADR_0x0300
MOVF LRAM_0x20,W
ANDWF LRAM_0x3F,W
BTFSC STATUS,Z
GOTO LADR_0x0307
BSF GPIO,1 ; !!Bank!! GPIO - TRISIO
BSF GPIO,2 ; !!Bank!! GPIO - TRISIO
GOTO LADR_0x0309
LADR_0x0307
BCF GPIO,1 ; !!Bank!! GPIO - TRISIO
BCF GPIO,2 ; !!Bank!! GPIO - TRISIO
LADR_0x0309
CALL LADR_0x02C7
BSF GPIO,0 ; !!Bank!! GPIO - TRISIO
INCF LRAM_0x40,F
GOTO LADR_0x02F0
LADR_0x030D
CALL LADR_0x02E9
RETLW 0x00
LADR_0x030F
CLRF LRAM_0x3E
LADR_0x0310
MOVF LRAM_0x3E,W
SUBLW 0x07
BTFSS STATUS,C
GOTO LADR_0x031E
CALL LADR_0x02C7
BCF GPIO,0 ; !!Bank!! GPIO - TRISIO
CALL LADR_0x02C7
BCF STATUS,C
RRF LRAM_0x3F,F
BTFSC GPIO,2 ; !!Bank!! GPIO - TRISIO
BSF LRAM_0x3F,7
BSF GPIO,0 ; !!Bank!! GPIO - TRISIO
INCF LRAM_0x3E,F
GOTO LADR_0x0310
LADR_0x031E
CALL LADR_0x02E9
MOVF LRAM_0x3F,W
MOVWF LRAM_0x21
RETLW 0x00
LADR_0x0322
MOVLW 0xFE
MOVWF LRAM_0x34
CLRF LRAM_0x35
CLRF LRAM_0x39
CLRF LRAM_0x3A
CLRF LRAM_0x3B
MOVLW 0x01
MOVWF LRAM_0x3C
CLRF LRAM_0x3D
MOVF LRAM_0x2C,W
MOVWF LRAM_0x36
MOVF LRAM_0x2D,W
MOVWF LRAM_0x37
MOVF LRAM_0x2E,W
MOVWF LRAM_0x38
MOVF LRAM_0x2F,W
SUBLW 0x02
BTFSS STATUS,Z
GOTO LADR_0x0337
MOVLW 0x02
MOVWF LRAM_0x3C
LADR_0x0337
CLRF LRAM_0x30
LADR_0x0338
MOVF LRAM_0x30,W
SUBLW 0x09
BTFSS STATUS,C
GOTO LADR_0x0346
MOVLW 0x34
ADDWF LRAM_0x30,W
MOVWF FSR
BCF STATUS,IRP
MOVF INDF,W
MOVWF LRAM_0x3E
MOVWF LRAM_0x3F
CALL LADR_0x02EF
INCF LRAM_0x30,F
GOTO LADR_0x0338
LADR_0x0346
CALL LADR_0x030F
MOVF LRAM_0x21,W
MOVWF LRAM_0x31
CALL LADR_0x030F
MOVF LRAM_0x21,W
MOVWF LRAM_0x32
CALL LADR_0x030F
MOVF LRAM_0x21,W
MOVWF LRAM_0x33
MOVF LRAM_0x2F,W
SUBLW 0x02
BTFSS STATUS,Z
GOTO LADR_0x0357
CALL LADR_0x030F
MOVLW 0x00
MOVWF LRAM_0x21
GOTO LADR_0x035B
LADR_0x0357
MOVF LRAM_0x31,W
ANDWF LRAM_0x32,W
ANDWF LRAM_0x33,W
MOVWF LRAM_0x21
LADR_0x035B
RETLW 0x00
LADR_0x035C
MOVLW 0x82
MOVWF LRAM_0x2C
MOVLW 0xB6
MOVWF LRAM_0x2D
MOVLW 0x41
MOVWF LRAM_0x2E
CLRF LRAM_0x2F
CALL LADR_0x0322
RETLW 0x00
LADR_0x0365
MOVLW 0x89
MOVWF LRAM_0x2C
MOVLW 0xF1
MOVWF LRAM_0x2D
MOVLW 0x80
MOVWF LRAM_0x2E
MOVLW 0x02
MOVWF LRAM_0x2F
CALL LADR_0x0322
RETLW 0x00
LADR_0x036F
CLRF FSR
BCF STATUS,IRP
MOVLW 0x1F
ANDWF STATUS,F
MOVLW 0x07
MOVWF CMCON ; !!Bank!! CMCON - VRCON
CLRF LRAM_0x26
LADR_0x0376
MOVLW 0x04
BSF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF GPIO ; !!Bank!! GPIO - TRISIO
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
LADR_0x037A
MOVF LRAM_0x26,W
SUBLW 0x17
BTFSS STATUS,C
GOTO LADR_0x0381
GOTO LADR_0x02C3
LADR_0x037F
INCF LRAM_0x26,F
GOTO LADR_0x037A
LADR_0x0381
CALL LADR_0x02CD
CLRF LRAM_0x26
LADR_0x0383
MOVF LRAM_0x26,W
SUBLW 0x65
BTFSS STATUS,C
GOTO LADR_0x039F
MOVLW 0x65
ADDWF LRAM_0x26,W
MOVWF LRAM_0x28
MOVLW 0x1A
ADDWF LRAM_0x26,W
MOVWF LRAM_0x29
BSF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF EEADR ; !!Bank!! Unimplemented - EEADR
BCF EECON1,7 ; !!Bank!! Unimplemented - EECON1
BSF EECON1,0 ; !!Bank!! Unimplemented - EECON1
MOVF EEDATA,W ; !!Bank!! Unimplemented - EEDATA
XORLW 0x6B
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x2B
MOVLW 0x80
MOVWF LRAM_0x2C
MOVF LRAM_0x28,W
MOVWF LRAM_0x2D
MOVF LRAM_0x2B,W
MOVWF LRAM_0x2E
CLRF LRAM_0x2F
CALL LADR_0x0322
INCF LRAM_0x26,F
GOTO LADR_0x0383
LADR_0x039F
CALL LADR_0x035C
CALL LADR_0x0365
MOVLW 0x02
BSF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF GPIO ; !!Bank!! GPIO - TRISIO
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
CLRF LRAM_0x26
CLRF LRAM_0x27
LADR_0x03A7
MOVF LRAM_0x26,W
SUBLW 0xE3
BTFSS STATUS,C
GOTO LADR_0x03B5
MOVF LRAM_0x26,W
CALL LADR_0x01C3
XORLW 0x77
MOVWF LRAM_0x29
MOVWF LRAM_0x3F
CALL LADR_0x02EF
MOVF LRAM_0x26,W
INCF LRAM_0x26,F
INCF LRAM_0x27,F
GOTO LADR_0x03A7
LADR_0x03B5
CLRF LRAM_0x26
LADR_0x03B6
MOVF LRAM_0x26,W
SUBLW 0xE3
BTFSS STATUS,C
GOTO LADR_0x03C2
MOVF LRAM_0x26,W
CALL LADR_0x00D8
XORLW 0x69
MOVWF LRAM_0x29
MOVWF LRAM_0x3F
CALL LADR_0x02EF
INCF LRAM_0x26,F
GOTO LADR_0x03B6
LADR_0x03C2
CLRF LRAM_0x26
LADR_0x03C3
MOVF LRAM_0x26,W
SUBLW 0xC9
BTFSS STATUS,C
GOTO LADR_0x03CF
MOVF LRAM_0x26,W
CALL LADR_0x000A
XORLW 0x73
MOVWF LRAM_0x29
MOVWF LRAM_0x3F
CALL LADR_0x02EF
INCF LRAM_0x26,F
GOTO LADR_0x03C3
LADR_0x03CF
CLRF LRAM_0x26
LADR_0x03D0
MOVF LRAM_0x26,W
SUBLW 0x19
BTFSS STATUS,C
GOTO LADR_0x03E1
MOVF LRAM_0x26,W
BSF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF EEADR ; !!Bank!! Unimplemented - EEADR
BCF EECON1,7 ; !!Bank!! Unimplemented - EECON1
BSF EECON1,0 ; !!Bank!! Unimplemented - EECON1
MOVF EEDATA,W ; !!Bank!! Unimplemented - EEDATA
XORLW 0x61
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x29
MOVWF LRAM_0x3F
CALL LADR_0x02EF
INCF LRAM_0x26,F
GOTO LADR_0x03D0
LADR_0x03E1
MOVLW 0x04
BSF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF GPIO ; !!Bank!! GPIO - TRISIO
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
CALL LADR_0x035C
CALL LADR_0x0365
LADR_0x03E7
CALL LADR_0x02CD
MOVLW 0x85
MOVWF LRAM_0x2C
MOVLW 0x98
MOVWF LRAM_0x2D
MOVLW 0x12
MOVWF LRAM_0x2E
CLRF LRAM_0x2F
CALL LADR_0x0322
MOVF LRAM_0x21,W
ANDLW 0x3C
SUBLW 0x3C
BTFSC STATUS,Z
GOTO LADR_0x03F8
MOVLW 0x08
MOVWF LRAM_0x26
GOTO LADR_0x0376
LADR_0x03F8
GOTO LADR_0x03E7
SLEEP
End
processor 12F629
#include
__config 0x1184
; _CPD_OFF & _CP_OFF & _BODEN_OFF & _MCLRE_OFF & _PWRTE_ON & _WDT_OFF
; & _INTRC_OSC_NOCLKOUT
; RAM-Variable
LRAM_0x20 equ 0x20
LRAM_0x21 equ 0x21
LRAM_0x22 equ 0x22
LRAM_0x23 equ 0x23
LRAM_0x24 equ 0x24
LRAM_0x25 equ 0x25
LRAM_0x26 equ 0x26
LRAM_0x27 equ 0x27
LRAM_0x28 equ 0x28
LRAM_0x29 equ 0x29
LRAM_0x2A equ 0x2A
LRAM_0x2B equ 0x2B
LRAM_0x2C equ 0x2C
LRAM_0x2D equ 0x2D
LRAM_0x2E equ 0x2E
LRAM_0x2F equ 0x2F
LRAM_0x30 equ 0x30
LRAM_0x31 equ 0x31
LRAM_0x32 equ 0x32
LRAM_0x33 equ 0x33
LRAM_0x34 equ 0x34
LRAM_0x35 equ 0x35
LRAM_0x36 equ 0x36
LRAM_0x37 equ 0x37
LRAM_0x38 equ 0x38
LRAM_0x39 equ 0x39
LRAM_0x3A equ 0x3A
LRAM_0x3B equ 0x3B
LRAM_0x3C equ 0x3C
LRAM_0x3D equ 0x3D
LRAM_0x3E equ 0x3E
LRAM_0x3F equ 0x3F
LRAM_0x40 equ 0x40
LRAM_0x41 equ 0x41
LRAM_0x42 equ 0x42
LRAM_0x43 equ 0x43
LRAM_0x44 equ 0x44
LRAM_0x45 equ 0x45
LRAM_0x46 equ 0x46
LRAM_0x47 equ 0x47
LRAM_0x48 equ 0x48
LRAM_0x49 equ 0x49
LRAM_0x4A equ 0x4A
LRAM_0x4B equ 0x4B
LRAM_0x4C equ 0x4C
LRAM_0x4D equ 0x4D
LRAM_0x4E equ 0x4E
LRAM_0x4F equ 0x4F
LRAM_0x50 equ 0x50
LRAM_0x51 equ 0x51
LRAM_0x52 equ 0x52
LRAM_0x53 equ 0x53
LRAM_0x54 equ 0x54
LRAM_0x55 equ 0x55
LRAM_0x56 equ 0x56
LRAM_0x57 equ 0x57
LRAM_0x58 equ 0x58
LRAM_0x59 equ 0x59
LRAM_0x5A equ 0x5A
; Program
Org 0x0000
; Reset-Vector
GOTO LADR_0x0012
LADR_0x0001
MOVF LRAM_0x21,W
MOVWF GPIO ; !!Bank!! GPIO - TRISIO
RETURN
; Interrupt-Vector
GOTO LADR_0x0001
GOTO LADR_0x0001
GOTO LADR_0x0001
GOTO LADR_0x0001
LADR_0x0008
MOVWF LRAM_0x59
CLRF LRAM_0x5A
GOTO LADR_0x000D
LADR_0x000B
NOP
INCF LRAM_0x5A,F
LADR_0x000D
MOVF LRAM_0x5A,W
SUBWF LRAM_0x59,W
BTFSS STATUS,Z
GOTO LADR_0x000B
RETURN
LADR_0x0012
BSF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF GPIO,2 ; Pin 5 - connects to nothing
BCF GPIO,1 ; pin 6 - nothing
BCF GPIO,4 ; pin 3 - to SBI (Input)
BCF GPIO,5 ; pin 2 - to Rdy
BCF GPIO,0 ; pin 7 - Nothing
MOVLW 0xFE
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x22
CLRF LRAM_0x23
CLRF LRAM_0x24
CLRF LRAM_0x25
CLRF LRAM_0x26
CLRF LRAM_0x27
CLRF LRAM_0x28
CLRF LRAM_0x29
CLRF LRAM_0x2A
CLRF LRAM_0x2B
MOVLW 0x50
MOVWF LRAM_0x2E
MOVLW 0x98
MOVWF LRAM_0x2F
MOVLW 0x85
MOVWF LRAM_0x30
MOVLW 0xA2
MOVWF LRAM_0x31
MOVLW 0x85
MOVWF LRAM_0x32
MOVLW 0xB6
MOVWF LRAM_0x33
MOVLW 0x82
MOVWF LRAM_0x34
MOVLW 0xBE
MOVWF LRAM_0x35
MOVLW 0x82
MOVWF LRAM_0x36
MOVLW 0x76
MOVWF LRAM_0x37
MOVLW 0x85
MOVWF LRAM_0x38
MOVLW 0x80
MOVWF LRAM_0x39
MOVLW 0x85
MOVWF LRAM_0x3A
MOVLW 0xD2
MOVWF LRAM_0x3B
MOVLW 0x82
MOVWF LRAM_0x3C
MOVLW 0xDA
MOVWF LRAM_0x3D
MOVLW 0x82
MOVWF LRAM_0x3E
GOTO LADR_0x01C9
LADR_0x0047
MOVLW 0x0C
GOTO LADR_0x0008
LADR_0x0049
BSF LRAM_0x21,0
CALL LADR_0x0001
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BCF LRAM_0x21,0
CALL LADR_0x0001
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x59,0
BTFSS GPIO,2 ; Pin 5 - no connection
BCF LRAM_0x59,0
BSF LRAM_0x21,0
CALL LADR_0x0001
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x20,0
BTFSS LRAM_0x59,0
BCF LRAM_0x20,0
RETURN
LADR_0x0059
BSF LRAM_0x21,0
CALL LADR_0x0001
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x21,1
BTFSS LRAM_0x59,0
BCF LRAM_0x21,1
CALL LADR_0x0001
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BCF LRAM_0x21,0
CALL LADR_0x0001
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x21,0
GOTO LADR_0x0001
LADR_0x0066
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
CLRF LRAM_0x57
CLRF LRAM_0x58
GOTO LADR_0x0072
LADR_0x006A
BCF STATUS,C
RRF LRAM_0x57,F
CALL LADR_0x0049
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x57,7
BTFSS LRAM_0x20,0
BCF LRAM_0x57,7
INCF LRAM_0x58,F
LADR_0x0072
MOVLW 0x08
SUBWF LRAM_0x58,W
BTFSS STATUS,Z
GOTO LADR_0x006A
CALL LADR_0x0047
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVF LRAM_0x57,W
RETURN
LADR_0x007A
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
CLRF LRAM_0x4D
CLRF LRAM_0x4E
LADR_0x007D
MOVLW 0xEE
SUBWF LRAM_0x4E,W
BTFSS STATUS,Z
GOTO LADR_0x0083
MOVLW 0xEE
SUBWF LRAM_0x4D,W
LADR_0x0083
BTFSC STATUS,Z
GOTO LADR_0x008E
BCF STATUS,C
RRF LRAM_0x4E,F
RRF LRAM_0x4D,F
CALL LADR_0x0049
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x4E,7
BTFSS LRAM_0x20,0
BCF LRAM_0x4E,7
GOTO LADR_0x007D
LADR_0x008E
RETURN
LADR_0x008F
MOVWF LRAM_0x57
CLRF LRAM_0x58
GOTO LADR_0x009A
LADR_0x0092
BSF LRAM_0x59,0
BTFSS LRAM_0x57,0
BCF LRAM_0x59,0
CALL LADR_0x0059
BCF STATUS,C
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
RRF LRAM_0x57,F
INCF LRAM_0x58,F
LADR_0x009A
MOVLW 0x08
SUBWF LRAM_0x58,W
BTFSS STATUS,Z
GOTO LADR_0x0092
GOTO LADR_0x0047
LADR_0x009F
CALL LADR_0x0066
CALL LADR_0x0066
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x2C
CALL LADR_0x0066
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x2D
RETURN
LADR_0x00A7
MOVWF LRAM_0x4F
MOVF LRAM_0x52,W
MOVWF LRAM_0x55
CLRF LRAM_0x56
MOVF LRAM_0x55,W
MOVWF LRAM_0x24
MOVF LRAM_0x51,W
MOVWF LRAM_0x25
MOVF LRAM_0x4F,W
MOVWF LRAM_0x26
MOVF LRAM_0x50,W
MOVWF LRAM_0x28
MOVF LRAM_0x53,W
MOVWF LRAM_0x2A
MOVLW 0x01
MOVWF LRAM_0x2C
CLRF LRAM_0x2D
CLRF LRAM_0x54
GOTO LADR_0x00C3
LADR_0x00BA
MOVLW 0x22
MOVWF FSR
BCF STATUS,IRP
MOVF LRAM_0x54,W
ADDWF FSR,F
MOVF INDF,W
CALL LADR_0x008F
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
INCF LRAM_0x54,F
LADR_0x00C3
MOVLW 0x0A
SUBWF LRAM_0x54,W
BTFSS STATUS,Z
GOTO LADR_0x00BA
GOTO LADR_0x009F
LADR_0x00C8
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
INCF LRAM_0x2E,W
MOVWF LRAM_0x4D
INCF LRAM_0x4D,F
BCF STATUS,C
RLF LRAM_0x4D,W
MOVWF LRAM_0x4E
CLRF LRAM_0x50
MOVLW 0x2F
MOVWF FSR
BCF STATUS,IRP
MOVF LRAM_0x4E,W
ADDWF FSR,F
MOVF INDF,W
MOVWF LRAM_0x51
INCF FSR,F
MOVF INDF,W
MOVWF LRAM_0x52
MOVLW 0x01
MOVWF LRAM_0x53
MOVLW 0x41
GOTO LADR_0x00A7
LADR_0x00DE
MOVWF LRAM_0x47
BSF LRAM_0x4C,0
LADR_0x00E0
BTFSS LRAM_0x4C,0
GOTO LADR_0x00FC
MOVF LRAM_0x48,W
MOVWF LRAM_0x50
MOVF LRAM_0x49,W
MOVWF LRAM_0x51
MOVF LRAM_0x4A,W
MOVWF LRAM_0x52
MOVF LRAM_0x4B,W
MOVWF LRAM_0x53
MOVF LRAM_0x47,W
CALL LADR_0x00A7
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVF LRAM_0x2C,W
BTFSC STATUS,Z
GOTO LADR_0x00F7
BCF LRAM_0x21,5
CALL LADR_0x0001
CALL LADR_0x007A
CALL LADR_0x00C8
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x4C,0
GOTO LADR_0x00E0
LADR_0x00F7
BSF LRAM_0x21,5
CALL LADR_0x0001
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BCF LRAM_0x4C,0
GOTO LADR_0x00E0
LADR_0x00FC
RETURN
LADR_0x00FD
MOVWF LRAM_0x46
CLRF LRAM_0x48
MOVF LRAM_0x44,W
MOVWF LRAM_0x49
MOVF LRAM_0x45,W
MOVWF LRAM_0x4A
MOVLW 0x01
MOVWF LRAM_0x4B
MOVF LRAM_0x46,W
GOTO LADR_0x00DE
LADR_0x0107
MOVWF LRAM_0x44
MOVF LRAM_0x44,W
MOVWF LRAM_0x27
MOVLW 0xFF
MOVWF LRAM_0x22
CLRF LRAM_0x48
MOVF LRAM_0x45,W
MOVWF LRAM_0x49
MOVF LRAM_0x46,W
MOVWF LRAM_0x4A
MOVLW 0x01
MOVWF LRAM_0x4B
MOVLW 0x00
CALL LADR_0x00DE
MOVLW 0xFE
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x22
CLRF LRAM_0x27
MOVF LRAM_0x2D,W
RETURN
LADR_0x011B
MOVLW 0xB2
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x45
MOVLW 0xBC
MOVWF LRAM_0x46
MOVLW 0x40
CALL LADR_0x0107
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x40
MOVLW 0x20
SUBWF LRAM_0x40,W
BTFSS STATUS,Z
GOTO LADR_0x012B
MOVLW 0x01
MOVWF LRAM_0x2E
RETURN
LADR_0x012B
CLRF LRAM_0x2E
RETURN
LADR_0x012D
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x42,0
BCF STATUS,C
RLF LRAM_0x2E,W
MOVWF LRAM_0x40
MOVLW 0x2F
MOVWF FSR
BCF STATUS,IRP
MOVF LRAM_0x40,W
ADDWF FSR,F
MOVF INDF,W
MOVWF LRAM_0x44
INCF FSR,F
MOVF INDF,W
MOVWF LRAM_0x45
MOVLW 0x04
CALL LADR_0x00FD
LADR_0x013E
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BTFSS LRAM_0x42,0
GOTO LADR_0x016A
BCF STATUS,C
RLF LRAM_0x2E,W
MOVWF LRAM_0x40
MOVLW 0x2F
MOVWF FSR
BCF STATUS,IRP
MOVF LRAM_0x40,W
ADDWF FSR,F
MOVF INDF,W
MOVWF LRAM_0x45
INCF FSR,F
MOVF INDF,W
MOVWF LRAM_0x46
MOVLW 0x00
CALL LADR_0x0107
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x41
MOVLW 0x04
SUBWF LRAM_0x41,W
BTFSC STATUS,Z
GOTO LADR_0x0169
CALL LADR_0x00C8
BCF STATUS,C
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
RLF LRAM_0x2E,W
MOVWF LRAM_0x40
MOVLW 0x2F
MOVWF FSR
BCF STATUS,IRP
MOVF LRAM_0x40,W
ADDWF FSR,F
MOVF INDF,W
MOVWF LRAM_0x44
INCF FSR,F
MOVF INDF,W
MOVWF LRAM_0x45
MOVLW 0x04
CALL LADR_0x00FD
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BCF LRAM_0x42,0
LADR_0x0169
GOTO LADR_0x013E
LADR_0x016A
RETURN
LADR_0x016B
MOVLW 0x06
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x45
MOVLW 0xBA
MOVWF LRAM_0x46
MOVLW 0x40
CALL LADR_0x0107
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
MOVWF LRAM_0x40
MOVLW 0xD0
SUBWF LRAM_0x40,W
BTFSS STATUS,Z
GOTO LADR_0x016B
CALL LADR_0x00C8
MOVLW 0x04
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
ADDWF LRAM_0x2E,W
MOVWF LRAM_0x40
BCF STATUS,C
RLF LRAM_0x40,W
MOVWF LRAM_0x41
MOVLW 0x2F
MOVWF FSR
BCF STATUS,IRP
MOVF LRAM_0x41,W
ADDWF FSR,F
MOVF INDF,W
MOVWF LRAM_0x44
INCF FSR,F
MOVF INDF,W
MOVWF LRAM_0x45
MOVLW 0xFF
CALL LADR_0x00FD
MOVLW 0x04
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
ADDWF LRAM_0x2E,W
MOVWF LRAM_0x40
BCF STATUS,C
RLF LRAM_0x40,W
MOVWF LRAM_0x41
MOVLW 0x2F
MOVWF FSR
BCF STATUS,IRP
MOVF LRAM_0x41,W
ADDWF FSR,F
MOVF INDF,W
MOVWF LRAM_0x42
INCF FSR,F
MOVF INDF,W
MOVWF LRAM_0x43
INCF LRAM_0x42,F
BTFSC STATUS,Z
INCF LRAM_0x43,F
MOVF LRAM_0x42,W
MOVWF LRAM_0x44
MOVF LRAM_0x43,W
MOVWF LRAM_0x45
MOVLW 0x00
CALL LADR_0x00FD
MOVLW 0x06
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
ADDWF LRAM_0x2E,W
MOVWF LRAM_0x40
BCF STATUS,C
RLF LRAM_0x40,W
MOVWF LRAM_0x41
MOVLW 0x2F
MOVWF FSR
BCF STATUS,IRP
MOVF LRAM_0x41,W
ADDWF FSR,F
MOVF INDF,W
MOVWF LRAM_0x44
INCF FSR,F
MOVF INDF,W
MOVWF LRAM_0x45
MOVLW 0x00
GOTO LADR_0x00FD
LADR_0x01B9
BCF LRAM_0x21,4
CALL LADR_0x0001
CALL LADR_0x007A
CALL LADR_0x00C8
CALL LADR_0x011B
LADR_0x01BE
CALL LADR_0x012D
BCF STATUS,RP0 ; !!Bank Register-Bank(0/1)-Select
BSF LRAM_0x3F,0
BTFSC GPIO,4 ; !!Bank!! GPIO - TRISIO
BCF LRAM_0x3F,0
BSF LRAM_0x21,4
BTFSS LRAM_0x3F,0
BCF LRAM_0x21,4
CALL LADR_0x0001
CALL LADR_0x016B
GOTO LADR_0x01BE
LADR_0x01C9
CALL LADR_0x01B9
LADR_0x01CA
SLEEP
GOTO LADR_0x01CA
End
snake-viper escribió:Una pregunta, todos estos chips funcionan no ??? esque no veo ningun hilo en el que hagan una review ni nada sobre el funcionamiento de estos
NeoSX escribió:
Tiempo al tiempo chavalon!!!