
_interrupt:

;GSM_EasyPIC7.mbas,105 :: 		sub procedure interrupt()
;GSM_EasyPIC7.mbas,107 :: 		if (T0IF_bit) then ' 1ms Interrupt
	BTFSS       T0IF_bit+0, BitPos(T0IF_bit+0) 
	GOTO        L__interrupt2
;GSM_EasyPIC7.mbas,111 :: 		TMR0H = 0x00
	CLRF        TMR0H+0 
;GSM_EasyPIC7.mbas,112 :: 		TMR0L = 0x06
	MOVLW       6
	MOVWF       TMR0L+0 
;GSM_EasyPIC7.mbas,114 :: 		UART_Rd_Ptr = @UART1_Read
	MOVLW       _UART1_Read+0
	MOVWF       _UART_Rd_Ptr+0 
	MOVLW       hi_addr(_UART1_Read+0)
	MOVWF       _UART_Rd_Ptr+1 
	MOVLW       0
	MOVWF       _UART_Rd_Ptr+2 
	MOVLW       0
	MOVWF       _UART_Rd_Ptr+3 
;GSM_EasyPIC7.mbas,115 :: 		UART_Wr_Ptr = @UART1_Write
	MOVLW       _UART1_Write+0
	MOVWF       _UART_Wr_Ptr+0 
	MOVLW       hi_addr(_UART1_Write+0)
	MOVWF       _UART_Wr_Ptr+1 
	MOVLW       FARG_UART1_Write_data_+0
	MOVWF       _UART_Wr_Ptr+2 
	MOVLW       hi_addr(FARG_UART1_Write_data_+0)
	MOVWF       _UART_Wr_Ptr+3 
;GSM_EasyPIC7.mbas,116 :: 		UART_Rdy_Ptr = @UART1_Data_Ready
	MOVLW       _UART1_Data_Ready+0
	MOVWF       _UART_Rdy_Ptr+0 
	MOVLW       hi_addr(_UART1_Data_Ready+0)
	MOVWF       _UART_Rdy_Ptr+1 
	MOVLW       0
	MOVWF       _UART_Rdy_Ptr+2 
	MOVLW       0
	MOVWF       _UART_Rdy_Ptr+3 
;GSM_EasyPIC7.mbas,117 :: 		UART_Tx_Idle_Ptr = @UART1_Tx_Idle
	MOVLW       _UART1_TX_Idle+0
	MOVWF       _UART_TX_Idle_Ptr+0 
	MOVLW       hi_addr(_UART1_TX_Idle+0)
	MOVWF       _UART_TX_Idle_Ptr+1 
	MOVLW       0
	MOVWF       _UART_TX_Idle_Ptr+2 
	MOVLW       0
	MOVWF       _UART_TX_Idle_Ptr+3 
;GSM_EasyPIC7.mbas,118 :: 		gsm1msPing()
	CALL        _gsm1msPing+0, 0
;GSM_EasyPIC7.mbas,119 :: 		if (wrdRB7Tmr < 65535) then
	MOVLW       255
	SUBWF       _wrdRB7Tmr+1, 0 
	BTFSS       STATUS+0, 2 
	GOTO        L__interrupt102
	MOVLW       255
	SUBWF       _wrdRB7Tmr+0, 0 
L__interrupt102:
	BTFSC       STATUS+0, 0 
	GOTO        L__interrupt5
;GSM_EasyPIC7.mbas,120 :: 		Inc(wrdRB7Tmr)
	INFSNZ      _wrdRB7Tmr+0, 1 
	INCF        _wrdRB7Tmr+1, 1 
L__interrupt5:
;GSM_EasyPIC7.mbas,122 :: 		T0IF_bit = 0 ' Clear interrupt flag
	BCF         T0IF_bit+0, BitPos(T0IF_bit+0) 
L__interrupt2:
;GSM_EasyPIC7.mbas,125 :: 		end sub
L_end_interrupt:
L__interrupt101:
	RETFIE      1
; end of _interrupt

_setup:

;GSM_EasyPIC7.mbas,127 :: 		sub procedure setup()
;GSM_EasyPIC7.mbas,128 :: 		TRISA = %11111111 'PortA all inputs
	MOVLW       255
	MOVWF       TRISA+0 
;GSM_EasyPIC7.mbas,129 :: 		TRISB = %11000000 'PortB all outputs, except RB6 & RB7
	MOVLW       192
	MOVWF       TRISB+0 
;GSM_EasyPIC7.mbas,130 :: 		TRISC = %10000001 'PortC all outputs, except RC7 (RX) and RC0 (RI)
	MOVLW       129
	MOVWF       TRISC+0 
;GSM_EasyPIC7.mbas,131 :: 		TRISD = %10000000 'PortD all outputs, except RD7 (RX)
	MOVLW       128
	MOVWF       TRISD+0 
;GSM_EasyPIC7.mbas,132 :: 		LATC  = %00000000 'PortC all off by default
	CLRF        LATC+0 
;GSM_EasyPIC7.mbas,133 :: 		LATD  = %00000000 'PortD all off by default
	CLRF        LATD+0 
;GSM_EasyPIC7.mbas,134 :: 		GSM_Pwr_Key_Dir = 0
	BCF         TRISE1_bit+0, BitPos(TRISE1_bit+0) 
;GSM_EasyPIC7.mbas,135 :: 		GSM_Stat_Dir = 1
	BSF         TRISA2_bit+0, BitPos(TRISA2_bit+0) 
;GSM_EasyPIC7.mbas,136 :: 		ANSELA = %00000000 'All pins digital
	CLRF        ANSELA+0 
;GSM_EasyPIC7.mbas,137 :: 		ANSELB = %00000000 'All pins digital
	CLRF        ANSELB+0 
;GSM_EasyPIC7.mbas,138 :: 		ANSELC = %00000000 'All pins digital
	CLRF        ANSELC+0 
;GSM_EasyPIC7.mbas,139 :: 		ANSELD = %00000000 'All pins digital
	CLRF        ANSELD+0 
;GSM_EasyPIC7.mbas,140 :: 		RBPU_bit = 0 'PortB Weak Pull-Ups Enabled
	BCF         RBPU_bit+0, BitPos(RBPU_bit+0) 
;GSM_EasyPIC7.mbas,141 :: 		IPEN_bit = 0 'Interrupt priority disable
	BCF         IPEN_bit+0, BitPos(IPEN_bit+0) 
;GSM_EasyPIC7.mbas,142 :: 		GIE_bit = 1 'Global interrupt enable
	BSF         GIE_bit+0, BitPos(GIE_bit+0) 
;GSM_EasyPIC7.mbas,143 :: 		PEIE_bit = 1 'Peripheral interrupt enable
	BSF         PEIE_bit+0, BitPos(PEIE_bit+0) 
;GSM_EasyPIC7.mbas,144 :: 		T0CON = %11000100 'Timer0 On, 8-bit, internal clock, 1:32 prescaler
	MOVLW       196
	MOVWF       T0CON+0 
;GSM_EasyPIC7.mbas,145 :: 		T0IE_bit = 1 'Enable Timer0 overflow interrupts
	BSF         T0IE_bit+0, BitPos(T0IE_bit+0) 
;GSM_EasyPIC7.mbas,146 :: 		end sub
L_end_setup:
	RETURN      0
; end of _setup

_startup:

;GSM_EasyPIC7.mbas,148 :: 		sub procedure startup()
;GSM_EasyPIC7.mbas,149 :: 		strDestID = "" 'Enter a mobile number of your choice here
	CLRF        _strDestID+0 
;GSM_EasyPIC7.mbas,151 :: 		wrdRB7Tmr = 65535
	MOVLW       255
	MOVWF       _wrdRB7Tmr+0 
	MOVLW       255
	MOVWF       _wrdRB7Tmr+1 
;GSM_EasyPIC7.mbas,152 :: 		bitRTCC_Set = 0
	BCF         _bitRTCC_Set+0, BitPos(_bitRTCC_Set+0) 
;GSM_EasyPIC7.mbas,153 :: 		UART2_Init(115200) ' For output of debug messages (now done in gsm_Debug_Init())
	BSF         BAUDCON2+0, 3, 0
	CLRF        SPBRGH2+0 
	MOVLW       68
	MOVWF       SPBRG2+0 
	BSF         TXSTA2+0, 2, 0
	CALL        _UART2_Init+0, 0
;GSM_EasyPIC7.mbas,154 :: 		gsm_Debug_Init()
	CALL        _gsm_Debug_Init+0, 0
;GSM_EasyPIC7.mbas,155 :: 		UART1_Init(9600) ' For GSM Module
	BSF         BAUDCON+0, 3, 0
	MOVLW       3
	MOVWF       SPBRGH+0 
	MOVLW       64
	MOVWF       SPBRG+0 
	BSF         TXSTA+0, 2, 0
	CALL        _UART1_Init+0, 0
;GSM_EasyPIC7.mbas,156 :: 		gsmInit()
	CALL        _gsmInit+0, 0
;GSM_EasyPIC7.mbas,157 :: 		gsm_MS_Init()
	CALL        _gsm_MS_Init+0, 0
;GSM_EasyPIC7.mbas,158 :: 		gsm_Msg_Init() ' Requires GSM_Msg module
	CALL        _gsm_Msg_Init+0, 0
;GSM_EasyPIC7.mbas,159 :: 		Lcd_Init()
	CALL        _Lcd_Init+0, 0
;GSM_EasyPIC7.mbas,160 :: 		Lcd_Cmd(_LCD_CLEAR)
	MOVLW       1
	MOVWF       FARG_Lcd_Cmd_out_char+0 
	CALL        _Lcd_Cmd+0, 0
;GSM_EasyPIC7.mbas,161 :: 		Lcd_Cmd(_LCD_CURSOR_OFF)
	MOVLW       12
	MOVWF       FARG_Lcd_Cmd_out_char+0 
	CALL        _Lcd_Cmd+0, 0
;GSM_EasyPIC7.mbas,162 :: 		end sub
L_end_startup:
	RETURN      0
; end of _startup

_ByteToBin:

;GSM_EasyPIC7.mbas,167 :: 		dim ctr as char
;GSM_EasyPIC7.mbas,168 :: 		mask = %10000000
	MOVLW       128
	MOVWF       R1 
;GSM_EasyPIC7.mbas,169 :: 		ctr = 0
	CLRF        R2 
;GSM_EasyPIC7.mbas,170 :: 		while mask <> 0
L__ByteToBin11:
	MOVF        R1, 0 
	XORLW       0
	BTFSC       STATUS+0, 2 
	GOTO        L__ByteToBin12
;GSM_EasyPIC7.mbas,171 :: 		if (in and mask) then
	MOVF        R1, 0 
	ANDWF       FARG_ByteToBin_in+0, 0 
	MOVWF       R0 
	BTFSC       STATUS+0, 2 
	GOTO        L__ByteToBin16
;GSM_EasyPIC7.mbas,172 :: 		output[ctr] = "1"
	MOVF        R2, 0 
	ADDWF       FARG_ByteToBin_output+0, 0 
	MOVWF       FSR1 
	MOVLW       0
	ADDWFC      FARG_ByteToBin_output+1, 0 
	MOVWF       FSR1H 
	MOVLW       49
	MOVWF       POSTINC1+0 
	GOTO        L__ByteToBin17
;GSM_EasyPIC7.mbas,173 :: 		else
L__ByteToBin16:
;GSM_EasyPIC7.mbas,174 :: 		output[ctr] = "0"
	MOVF        R2, 0 
	ADDWF       FARG_ByteToBin_output+0, 0 
	MOVWF       FSR1 
	MOVLW       0
	ADDWFC      FARG_ByteToBin_output+1, 0 
	MOVWF       FSR1H 
	MOVLW       48
	MOVWF       POSTINC1+0 
;GSM_EasyPIC7.mbas,175 :: 		end if
L__ByteToBin17:
;GSM_EasyPIC7.mbas,176 :: 		Inc(ctr)
	INCF        R2, 1 
;GSM_EasyPIC7.mbas,177 :: 		mask = mask >> 1
	RRCF        R1, 1 
	BCF         R1, 7 
;GSM_EasyPIC7.mbas,178 :: 		wend
	GOTO        L__ByteToBin11
L__ByteToBin12:
;GSM_EasyPIC7.mbas,179 :: 		output[ctr] = 0 ' Mark the end of the string
	MOVF        R2, 0 
	ADDWF       FARG_ByteToBin_output+0, 0 
	MOVWF       FSR1 
	MOVLW       0
	ADDWFC      FARG_ByteToBin_output+1, 0 
	MOVWF       FSR1H 
	CLRF        POSTINC1+0 
;GSM_EasyPIC7.mbas,180 :: 		end sub
L_end_ByteToBin:
	RETURN      0
; end of _ByteToBin

_generateStatusReport:

;GSM_EasyPIC7.mbas,184 :: 		dim pos as ^char 'Pointer to position within string
;GSM_EasyPIC7.mbas,185 :: 		pos = @dest
	MOVF        FARG_generateStatusReport_dest+0, 0 
	MOVWF       generateStatusReport_pos+0 
	MOVF        FARG_generateStatusReport_dest+1, 0 
	MOVWF       generateStatusReport_pos+1 
;GSM_EasyPIC7.mbas,186 :: 		strcpy(pos, "PORTA:")
	MOVF        FARG_generateStatusReport_dest+0, 0 
	MOVWF       FARG_strcpy_s1+0 
	MOVF        FARG_generateStatusReport_dest+1, 0 
	MOVWF       FARG_strcpy_s1+1 
	MOVLW       80
	MOVWF       ?LocalText_generateStatusReport_0+0 
	MOVLW       79
	MOVWF       ?LocalText_generateStatusReport_0+1 
	MOVLW       82
	MOVWF       ?LocalText_generateStatusReport_0+2 
	MOVLW       84
	MOVWF       ?LocalText_generateStatusReport_0+3 
	MOVLW       65
	MOVWF       ?LocalText_generateStatusReport_0+4 
	MOVLW       58
	MOVWF       ?LocalText_generateStatusReport_0+5 
	CLRF        ?LocalText_generateStatusReport_0+6 
	MOVLW       ?LocalText_generateStatusReport_0+0
	MOVWF       FARG_strcpy_s2+0 
	MOVLW       hi_addr(?LocalText_generateStatusReport_0+0)
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
;GSM_EasyPIC7.mbas,187 :: 		pos = pos + 6
	MOVLW       6
	ADDWF       generateStatusReport_pos+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      generateStatusReport_pos+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       generateStatusReport_pos+0 
	MOVF        R1, 0 
	MOVWF       generateStatusReport_pos+1 
;GSM_EasyPIC7.mbas,188 :: 		ByteToBin(PORTA, pos)
	MOVF        PORTA+0, 0 
	MOVWF       FARG_ByteToBin_in+0 
	MOVF        R0, 0 
	MOVWF       FARG_ByteToBin_output+0 
	MOVF        R1, 0 
	MOVWF       FARG_ByteToBin_output+1 
	CALL        _ByteToBin+0, 0
;GSM_EasyPIC7.mbas,189 :: 		pos = pos + 8
	MOVLW       8
	ADDWF       generateStatusReport_pos+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      generateStatusReport_pos+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       generateStatusReport_pos+0 
	MOVF        R1, 0 
	MOVWF       generateStatusReport_pos+1 
;GSM_EasyPIC7.mbas,190 :: 		pos^ = ","
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVLW       44
	MOVWF       POSTINC1+0 
;GSM_EasyPIC7.mbas,191 :: 		Inc(pos)
	INFSNZ      generateStatusReport_pos+0, 1 
	INCF        generateStatusReport_pos+1, 1 
;GSM_EasyPIC7.mbas,192 :: 		strcpy(pos, "PORTB:")
	MOVF        generateStatusReport_pos+0, 0 
	MOVWF       FARG_strcpy_s1+0 
	MOVF        generateStatusReport_pos+1, 0 
	MOVWF       FARG_strcpy_s1+1 
	MOVLW       80
	MOVWF       ?LocalText_generateStatusReport_1+0 
	MOVLW       79
	MOVWF       ?LocalText_generateStatusReport_1+1 
	MOVLW       82
	MOVWF       ?LocalText_generateStatusReport_1+2 
	MOVLW       84
	MOVWF       ?LocalText_generateStatusReport_1+3 
	MOVLW       66
	MOVWF       ?LocalText_generateStatusReport_1+4 
	MOVLW       58
	MOVWF       ?LocalText_generateStatusReport_1+5 
	CLRF        ?LocalText_generateStatusReport_1+6 
	MOVLW       ?LocalText_generateStatusReport_1+0
	MOVWF       FARG_strcpy_s2+0 
	MOVLW       hi_addr(?LocalText_generateStatusReport_1+0)
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
;GSM_EasyPIC7.mbas,193 :: 		pos = pos + 6
	MOVLW       6
	ADDWF       generateStatusReport_pos+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      generateStatusReport_pos+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       generateStatusReport_pos+0 
	MOVF        R1, 0 
	MOVWF       generateStatusReport_pos+1 
;GSM_EasyPIC7.mbas,194 :: 		ByteToBin(PORTB, pos)
	MOVF        PORTB+0, 0 
	MOVWF       FARG_ByteToBin_in+0 
	MOVF        R0, 0 
	MOVWF       FARG_ByteToBin_output+0 
	MOVF        R1, 0 
	MOVWF       FARG_ByteToBin_output+1 
	CALL        _ByteToBin+0, 0
;GSM_EasyPIC7.mbas,195 :: 		pos = pos + 8
	MOVLW       8
	ADDWF       generateStatusReport_pos+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      generateStatusReport_pos+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       generateStatusReport_pos+0 
	MOVF        R1, 0 
	MOVWF       generateStatusReport_pos+1 
;GSM_EasyPIC7.mbas,196 :: 		pos^ = ","
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVLW       44
	MOVWF       POSTINC1+0 
;GSM_EasyPIC7.mbas,197 :: 		Inc(pos)
	INFSNZ      generateStatusReport_pos+0, 1 
	INCF        generateStatusReport_pos+1, 1 
;GSM_EasyPIC7.mbas,198 :: 		strcpy(pos, "LATD:")
	MOVF        generateStatusReport_pos+0, 0 
	MOVWF       FARG_strcpy_s1+0 
	MOVF        generateStatusReport_pos+1, 0 
	MOVWF       FARG_strcpy_s1+1 
	MOVLW       76
	MOVWF       ?LocalText_generateStatusReport_2+0 
	MOVLW       65
	MOVWF       ?LocalText_generateStatusReport_2+1 
	MOVLW       84
	MOVWF       ?LocalText_generateStatusReport_2+2 
	MOVLW       68
	MOVWF       ?LocalText_generateStatusReport_2+3 
	MOVLW       58
	MOVWF       ?LocalText_generateStatusReport_2+4 
	CLRF        ?LocalText_generateStatusReport_2+5 
	MOVLW       ?LocalText_generateStatusReport_2+0
	MOVWF       FARG_strcpy_s2+0 
	MOVLW       hi_addr(?LocalText_generateStatusReport_2+0)
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
;GSM_EasyPIC7.mbas,199 :: 		pos = pos + 5
	MOVLW       5
	ADDWF       generateStatusReport_pos+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      generateStatusReport_pos+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       generateStatusReport_pos+0 
	MOVF        R1, 0 
	MOVWF       generateStatusReport_pos+1 
;GSM_EasyPIC7.mbas,200 :: 		ByteToBin(LATD, pos)
	MOVF        LATD+0, 0 
	MOVWF       FARG_ByteToBin_in+0 
	MOVF        R0, 0 
	MOVWF       FARG_ByteToBin_output+0 
	MOVF        R1, 0 
	MOVWF       FARG_ByteToBin_output+1 
	CALL        _ByteToBin+0, 0
;GSM_EasyPIC7.mbas,201 :: 		end sub
L_end_generateStatusReport:
	RETURN      0
; end of _generateStatusReport

_msgSend:

;GSM_EasyPIC7.mbas,203 :: 		sub procedure msgSend()
;GSM_EasyPIC7.mbas,204 :: 		UART2_Write_Text("Sending message to ")
	MOVLW       83
	MOVWF       ?LocalText_msgSend_3+0 
	MOVLW       101
	MOVWF       ?LocalText_msgSend_3+1 
	MOVLW       110
	MOVWF       ?LocalText_msgSend_3+2 
	MOVLW       100
	MOVWF       ?LocalText_msgSend_3+3 
	MOVLW       105
	MOVWF       ?LocalText_msgSend_3+4 
	MOVLW       110
	MOVWF       ?LocalText_msgSend_3+5 
	MOVLW       103
	MOVWF       ?LocalText_msgSend_3+6 
	MOVLW       32
	MOVWF       ?LocalText_msgSend_3+7 
	MOVLW       109
	MOVWF       ?LocalText_msgSend_3+8 
	MOVLW       101
	MOVWF       ?LocalText_msgSend_3+9 
	MOVLW       115
	MOVWF       ?LocalText_msgSend_3+10 
	MOVLW       115
	MOVWF       ?LocalText_msgSend_3+11 
	MOVLW       97
	MOVWF       ?LocalText_msgSend_3+12 
	MOVLW       103
	MOVWF       ?LocalText_msgSend_3+13 
	MOVLW       101
	MOVWF       ?LocalText_msgSend_3+14 
	MOVLW       32
	MOVWF       ?LocalText_msgSend_3+15 
	MOVLW       116
	MOVWF       ?LocalText_msgSend_3+16 
	MOVLW       111
	MOVWF       ?LocalText_msgSend_3+17 
	MOVLW       32
	MOVWF       ?LocalText_msgSend_3+18 
	CLRF        ?LocalText_msgSend_3+19 
	MOVLW       ?LocalText_msgSend_3+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_msgSend_3+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mbas,205 :: 		UART2_Write_Text(strDestID)
	MOVLW       _strDestID+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(_strDestID+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mbas,206 :: 		UART2_Write(":")
	MOVLW       58
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mbas,207 :: 		UART2_Write(13)
	MOVLW       13
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mbas,208 :: 		UART2_Write(10)
	MOVLW       10
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mbas,209 :: 		UART2_Write_Text(strMsgSendTxt)
	MOVLW       _strMsgSendTxt+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(_strMsgSendTxt+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mbas,210 :: 		UART2_Write(13)
	MOVLW       13
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mbas,211 :: 		UART2_Write(10)
	MOVLW       10
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mbas,212 :: 		if strDestID[0] <> 0 then
	MOVF        _strDestID+0, 0 
	XORLW       0
	BTFSC       STATUS+0, 2 
	GOTO        L__msgSend21
;GSM_EasyPIC7.mbas,213 :: 		if gsmMsgSendPending() then
	CALL        _gsmMsgSendPending+0, 0
	MOVF        R0, 1 
	BTFSC       STATUS+0, 2 
	GOTO        L__msgSend24
;GSM_EasyPIC7.mbas,214 :: 		gsmMsgSendCancel() ' Cancel any message waiting to be sent
	CALL        _gsmMsgSendCancel+0, 0
L__msgSend24:
;GSM_EasyPIC7.mbas,216 :: 		gsmMsgSend(strMsgSendTxt, strDestID) ' Send the message
	MOVLW       _strMsgSendTxt+0
	MOVWF       FARG_gsmMsgSend_Message+0 
	MOVLW       hi_addr(_strMsgSendTxt+0)
	MOVWF       FARG_gsmMsgSend_Message+1 
	MOVLW       _strDestID+0
	MOVWF       FARG_gsmMsgSend_DestinationID+0 
	MOVLW       hi_addr(_strDestID+0)
	MOVWF       FARG_gsmMsgSend_DestinationID+1 
	CALL        _gsmMsgSend+0, 0
L__msgSend21:
;GSM_EasyPIC7.mbas,218 :: 		end sub
L_end_msgSend:
	RETURN      0
; end of _msgSend

_gsmMissedCall:

;GSM_EasyPIC7.mbas,220 :: 		sub procedure gsmMissedCall(dim byref OriginatorID as string)
;GSM_EasyPIC7.mbas,221 :: 		LATC1_bit = not LATC1_bit
	BTG         LATC1_bit+0, BitPos(LATC1_bit+0) 
;GSM_EasyPIC7.mbas,222 :: 		if strDestID[0] = 0 then
	MOVF        _strDestID+0, 0 
	XORLW       0
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMissedCall28
;GSM_EasyPIC7.mbas,223 :: 		strcpy(strDestID, OriginatorID) 'If destination ID has not yet been set then
	MOVLW       _strDestID+0
	MOVWF       FARG_strcpy_s1+0 
	MOVLW       hi_addr(_strDestID+0)
	MOVWF       FARG_strcpy_s1+1 
	MOVF        FARG_gsmMissedCall_OriginatorID+0, 0 
	MOVWF       FARG_strcpy_s2+0 
	MOVF        FARG_gsmMissedCall_OriginatorID+1, 0 
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
L__gsmMissedCall28:
;GSM_EasyPIC7.mbas,226 :: 		LCD_Cmd(_LCD_CLEAR)
	MOVLW       1
	MOVWF       FARG_Lcd_Cmd_out_char+0 
	CALL        _Lcd_Cmd+0, 0
;GSM_EasyPIC7.mbas,227 :: 		LCD_Out(1,1,OriginatorID)
	MOVLW       1
	MOVWF       FARG_Lcd_Out_row+0 
	MOVLW       1
	MOVWF       FARG_Lcd_Out_column+0 
	MOVF        FARG_gsmMissedCall_OriginatorID+0, 0 
	MOVWF       FARG_Lcd_Out_text+0 
	MOVF        FARG_gsmMissedCall_OriginatorID+1, 0 
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mbas,228 :: 		LCD_Out(2,1,"(Missed Call)")
	MOVLW       2
	MOVWF       FARG_Lcd_Out_row+0 
	MOVLW       1
	MOVWF       FARG_Lcd_Out_column+0 
	MOVLW       40
	MOVWF       ?LocalText_gsmMissedCall_4+0 
	MOVLW       77
	MOVWF       ?LocalText_gsmMissedCall_4+1 
	MOVLW       105
	MOVWF       ?LocalText_gsmMissedCall_4+2 
	MOVLW       115
	MOVWF       ?LocalText_gsmMissedCall_4+3 
	MOVLW       115
	MOVWF       ?LocalText_gsmMissedCall_4+4 
	MOVLW       101
	MOVWF       ?LocalText_gsmMissedCall_4+5 
	MOVLW       100
	MOVWF       ?LocalText_gsmMissedCall_4+6 
	MOVLW       32
	MOVWF       ?LocalText_gsmMissedCall_4+7 
	MOVLW       67
	MOVWF       ?LocalText_gsmMissedCall_4+8 
	MOVLW       97
	MOVWF       ?LocalText_gsmMissedCall_4+9 
	MOVLW       108
	MOVWF       ?LocalText_gsmMissedCall_4+10 
	MOVLW       108
	MOVWF       ?LocalText_gsmMissedCall_4+11 
	MOVLW       41
	MOVWF       ?LocalText_gsmMissedCall_4+12 
	CLRF        ?LocalText_gsmMissedCall_4+13 
	MOVLW       ?LocalText_gsmMissedCall_4+0
	MOVWF       FARG_Lcd_Out_text+0 
	MOVLW       hi_addr(?LocalText_gsmMissedCall_4+0)
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mbas,229 :: 		end sub
L_end_gsmMissedCall:
	RETURN      0
; end of _gsmMissedCall

_gsmMsgRcvd:

;GSM_EasyPIC7.mbas,231 :: 		sub procedure gsmMsgRcvd(dim byref MessageText as string, dim byref OriginatorID as string)
;GSM_EasyPIC7.mbas,232 :: 		if strDestID[0] = 0 then ' If destination ID has not yet been set
	MOVF        _strDestID+0, 0 
	XORLW       0
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd32
;GSM_EasyPIC7.mbas,234 :: 		strcpy(strDestID, OriginatorID)
	MOVLW       _strDestID+0
	MOVWF       FARG_strcpy_s1+0 
	MOVLW       hi_addr(_strDestID+0)
	MOVWF       FARG_strcpy_s1+1 
	MOVF        FARG_gsmMsgRcvd_OriginatorID+0, 0 
	MOVWF       FARG_strcpy_s2+0 
	MOVF        FARG_gsmMsgRcvd_OriginatorID+1, 0 
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
L__gsmMsgRcvd32:
;GSM_EasyPIC7.mbas,236 :: 		if gsmMsgJustArrived() = 1 then
	CALL        _gsmMsgJustArrived+0, 0
	MOVF        R0, 0 
	XORLW       1
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd35
;GSM_EasyPIC7.mbas,239 :: 		if (not bitRTCC_Set) then
	BTFSC       _bitRTCC_Set+0, BitPos(_bitRTCC_Set+0) 
	GOTO        L__gsmMsgRcvd110
	BSF         4056, 0 
	GOTO        L__gsmMsgRcvd111
L__gsmMsgRcvd110:
	BCF         4056, 0 
L__gsmMsgRcvd111:
	BTFSS       4056, 0 
	GOTO        L__gsmMsgRcvd38
;GSM_EasyPIC7.mbas,240 :: 		dtmRTCC = dtmGsmEvent
	MOVLW       _dtmRTCC+0
	MOVWF       FSR1 
	MOVLW       hi_addr(_dtmRTCC+0)
	MOVWF       FSR1H 
	MOVLW       _dtmGsmEvent+0
	MOVWF       FSR2 
	MOVLW       hi_addr(_dtmGsmEvent+0)
	MOVWF       FSR2H 
	MOVLW       6
	MOVWF       R0 
	MOVLW       0
	MOVWF       R1 
	CALL        ___CA2AW+0, 0
;GSM_EasyPIC7.mbas,242 :: 		gsmDateTimeWrite()
	CALL        _gsmDateTimeWrite+0, 0
L__gsmMsgRcvd38:
;GSM_EasyPIC7.mbas,243 :: 		end if
L__gsmMsgRcvd35:
;GSM_EasyPIC7.mbas,245 :: 		lowcase(MessageText) ' Convert the entire message to lower case
	MOVF        FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FARG_lowcase_str+0 
	MOVF        FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FARG_lowcase_str+1 
	CALL        _lowcase+0, 0
;GSM_EasyPIC7.mbas,247 :: 		if MessageText[1] = "n" then ' Looking for "on"
	MOVLW       1
	ADDWF       FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	XORLW       110
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd41
;GSM_EasyPIC7.mbas,248 :: 		LATC = 0xFF
	MOVLW       255
	MOVWF       LATC+0 
	GOTO        L__gsmMsgRcvd42
;GSM_EasyPIC7.mbas,249 :: 		else
L__gsmMsgRcvd41:
;GSM_EasyPIC7.mbas,250 :: 		if MessageText[1] = "f" then ' Looking for "off"
	MOVLW       1
	ADDWF       FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	XORLW       102
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd44
;GSM_EasyPIC7.mbas,251 :: 		LATC = 0x00
	CLRF        LATC+0 
	GOTO        L__gsmMsgRcvd45
;GSM_EasyPIC7.mbas,252 :: 		else
L__gsmMsgRcvd44:
;GSM_EasyPIC7.mbas,253 :: 		if strncmp(MessageText, "stat", 4) = 0 then 'Status report
	MOVF        FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FARG_strncmp_s1+0 
	MOVF        FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FARG_strncmp_s1+1 
	MOVLW       115
	MOVWF       ?LocalText_gsmMsgRcvd_5+0 
	MOVLW       116
	MOVWF       ?LocalText_gsmMsgRcvd_5+1 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_5+2 
	MOVLW       116
	MOVWF       ?LocalText_gsmMsgRcvd_5+3 
	CLRF        ?LocalText_gsmMsgRcvd_5+4 
	MOVLW       ?LocalText_gsmMsgRcvd_5+0
	MOVWF       FARG_strncmp_s2+0 
	MOVLW       hi_addr(?LocalText_gsmMsgRcvd_5+0)
	MOVWF       FARG_strncmp_s2+1 
	MOVLW       4
	MOVWF       FARG_strncmp_len+0 
	MOVLW       0
	MOVWF       FARG_strncmp_len+1 
	CALL        _strncmp+0, 0
	MOVLW       0
	XORWF       R1, 0 
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd112
	MOVLW       0
	XORWF       R0, 0 
L__gsmMsgRcvd112:
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd47
;GSM_EasyPIC7.mbas,254 :: 		generateStatusReport(strMsgSendTxt)
	MOVLW       _strMsgSendTxt+0
	MOVWF       FARG_generateStatusReport_dest+0 
	MOVLW       hi_addr(_strMsgSendTxt+0)
	MOVWF       FARG_generateStatusReport_dest+1 
	CALL        _generateStatusReport+0, 0
;GSM_EasyPIC7.mbas,255 :: 		msgSend()
	CALL        _msgSend+0, 0
	GOTO        L__gsmMsgRcvd48
;GSM_EasyPIC7.mbas,256 :: 		else
L__gsmMsgRcvd47:
;GSM_EasyPIC7.mbas,257 :: 		if strncmp(MessageText, "please call ", 12) = 0 then ' "Please Call Me"
	MOVF        FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FARG_strncmp_s1+0 
	MOVF        FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FARG_strncmp_s1+1 
	MOVLW       112
	MOVWF       ?LocalText_gsmMsgRcvd_6+0 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_6+1 
	MOVLW       101
	MOVWF       ?LocalText_gsmMsgRcvd_6+2 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_6+3 
	MOVLW       115
	MOVWF       ?LocalText_gsmMsgRcvd_6+4 
	MOVLW       101
	MOVWF       ?LocalText_gsmMsgRcvd_6+5 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_6+6 
	MOVLW       99
	MOVWF       ?LocalText_gsmMsgRcvd_6+7 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_6+8 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_6+9 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_6+10 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_6+11 
	CLRF        ?LocalText_gsmMsgRcvd_6+12 
	MOVLW       ?LocalText_gsmMsgRcvd_6+0
	MOVWF       FARG_strncmp_s2+0 
	MOVLW       hi_addr(?LocalText_gsmMsgRcvd_6+0)
	MOVWF       FARG_strncmp_s2+1 
	MOVLW       12
	MOVWF       FARG_strncmp_len+0 
	MOVLW       0
	MOVWF       FARG_strncmp_len+1 
	CALL        _strncmp+0, 0
	MOVLW       0
	XORWF       R1, 0 
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd113
	MOVLW       0
	XORWF       R0, 0 
L__gsmMsgRcvd113:
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd50
;GSM_EasyPIC7.mbas,258 :: 		LATC2_bit = not LATC2_bit
	BTG         LATC2_bit+0, BitPos(LATC2_bit+0) 
;GSM_EasyPIC7.mbas,259 :: 		generateStatusReport(strMsgSendTxt)
	MOVLW       _strMsgSendTxt+0
	MOVWF       FARG_generateStatusReport_dest+0 
	MOVLW       hi_addr(_strMsgSendTxt+0)
	MOVWF       FARG_generateStatusReport_dest+1 
	CALL        _generateStatusReport+0, 0
;GSM_EasyPIC7.mbas,260 :: 		msgSend()
	CALL        _msgSend+0, 0
	GOTO        L__gsmMsgRcvd51
;GSM_EasyPIC7.mbas,261 :: 		else
L__gsmMsgRcvd50:
;GSM_EasyPIC7.mbas,262 :: 		if strncmp(MessageText, "test", 4) = 0 then ' Test
	MOVF        FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FARG_strncmp_s1+0 
	MOVF        FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FARG_strncmp_s1+1 
	MOVLW       116
	MOVWF       ?LocalText_gsmMsgRcvd_7+0 
	MOVLW       101
	MOVWF       ?LocalText_gsmMsgRcvd_7+1 
	MOVLW       115
	MOVWF       ?LocalText_gsmMsgRcvd_7+2 
	MOVLW       116
	MOVWF       ?LocalText_gsmMsgRcvd_7+3 
	CLRF        ?LocalText_gsmMsgRcvd_7+4 
	MOVLW       ?LocalText_gsmMsgRcvd_7+0
	MOVWF       FARG_strncmp_s2+0 
	MOVLW       hi_addr(?LocalText_gsmMsgRcvd_7+0)
	MOVWF       FARG_strncmp_s2+1 
	MOVLW       4
	MOVWF       FARG_strncmp_len+0 
	MOVLW       0
	MOVWF       FARG_strncmp_len+1 
	CALL        _strncmp+0, 0
	MOVLW       0
	XORWF       R1, 0 
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd114
	MOVLW       0
	XORWF       R0, 0 
L__gsmMsgRcvd114:
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd53
;GSM_EasyPIC7.mbas,263 :: 		strcpy(strMsgSendTxt, "GSM Library all ok!")
	MOVLW       _strMsgSendTxt+0
	MOVWF       FARG_strcpy_s1+0 
	MOVLW       hi_addr(_strMsgSendTxt+0)
	MOVWF       FARG_strcpy_s1+1 
	MOVLW       71
	MOVWF       ?LocalText_gsmMsgRcvd_8+0 
	MOVLW       83
	MOVWF       ?LocalText_gsmMsgRcvd_8+1 
	MOVLW       77
	MOVWF       ?LocalText_gsmMsgRcvd_8+2 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_8+3 
	MOVLW       76
	MOVWF       ?LocalText_gsmMsgRcvd_8+4 
	MOVLW       105
	MOVWF       ?LocalText_gsmMsgRcvd_8+5 
	MOVLW       98
	MOVWF       ?LocalText_gsmMsgRcvd_8+6 
	MOVLW       114
	MOVWF       ?LocalText_gsmMsgRcvd_8+7 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_8+8 
	MOVLW       114
	MOVWF       ?LocalText_gsmMsgRcvd_8+9 
	MOVLW       121
	MOVWF       ?LocalText_gsmMsgRcvd_8+10 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_8+11 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_8+12 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_8+13 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_8+14 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_8+15 
	MOVLW       111
	MOVWF       ?LocalText_gsmMsgRcvd_8+16 
	MOVLW       107
	MOVWF       ?LocalText_gsmMsgRcvd_8+17 
	MOVLW       33
	MOVWF       ?LocalText_gsmMsgRcvd_8+18 
	CLRF        ?LocalText_gsmMsgRcvd_8+19 
	MOVLW       ?LocalText_gsmMsgRcvd_8+0
	MOVWF       FARG_strcpy_s2+0 
	MOVLW       hi_addr(?LocalText_gsmMsgRcvd_8+0)
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
;GSM_EasyPIC7.mbas,264 :: 		msgSend()
	CALL        _msgSend+0, 0
L__gsmMsgRcvd53:
;GSM_EasyPIC7.mbas,266 :: 		end if
L__gsmMsgRcvd51:
;GSM_EasyPIC7.mbas,267 :: 		end if
L__gsmMsgRcvd48:
;GSM_EasyPIC7.mbas,268 :: 		end if
L__gsmMsgRcvd45:
;GSM_EasyPIC7.mbas,269 :: 		end if
L__gsmMsgRcvd42:
;GSM_EasyPIC7.mbas,270 :: 		LCD_Cmd(_LCD_CLEAR)
	MOVLW       1
	MOVWF       FARG_Lcd_Cmd_out_char+0 
	CALL        _Lcd_Cmd+0, 0
;GSM_EasyPIC7.mbas,271 :: 		LCD_Out(1,1,OriginatorID)
	MOVLW       1
	MOVWF       FARG_Lcd_Out_row+0 
	MOVLW       1
	MOVWF       FARG_Lcd_Out_column+0 
	MOVF        FARG_gsmMsgRcvd_OriginatorID+0, 0 
	MOVWF       FARG_Lcd_Out_text+0 
	MOVF        FARG_gsmMsgRcvd_OriginatorID+1, 0 
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mbas,272 :: 		if strlen(MessageText) > 16 then
	MOVF        FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FARG_strlen_s+0 
	MOVF        FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FARG_strlen_s+1 
	CALL        _strlen+0, 0
	MOVLW       0
	MOVWF       R2 
	MOVF        R1, 0 
	SUBWF       R2, 0 
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd115
	MOVF        R0, 0 
	SUBLW       16
L__gsmMsgRcvd115:
	BTFSC       STATUS+0, 0 
	GOTO        L__gsmMsgRcvd56
;GSM_EasyPIC7.mbas,273 :: 		MessageText[16] = 0 ' Trim string to fit on LCD if necessary
	MOVLW       16
	ADDWF       FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FSR1 
	MOVLW       0
	ADDWFC      FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FSR1H 
	CLRF        POSTINC1+0 
L__gsmMsgRcvd56:
;GSM_EasyPIC7.mbas,275 :: 		LCD_Out(2,1,MessageText)
	MOVLW       2
	MOVWF       FARG_Lcd_Out_row+0 
	MOVLW       1
	MOVWF       FARG_Lcd_Out_column+0 
	MOVF        FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FARG_Lcd_Out_text+0 
	MOVF        FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mbas,276 :: 		end sub
L_end_gsmMsgRcvd:
	RETURN      0
; end of _gsmMsgRcvd

_gsmEvent:

;GSM_EasyPIC7.mbas,279 :: 		dim sRTCC as string[16]
;GSM_EasyPIC7.mbas,281 :: 		case gsmevntPIN_Request
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       30
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent62
	GOTO        L__gsmEvent59
L__gsmEvent62:
;GSM_EasyPIC7.mbas,284 :: 		case gsmevntPIN_Fail
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       31
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent65
;GSM_EasyPIC7.mbas,285 :: 		UART2_Write_Text("PIN entry failed" + Chr(13) + Chr(10))
	MOVLW       80
	MOVWF       ?LocalText_gsmEvent_9+0 
	MOVLW       73
	MOVWF       ?LocalText_gsmEvent_9+1 
	MOVLW       78
	MOVWF       ?LocalText_gsmEvent_9+2 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_9+3 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_9+4 
	MOVLW       110
	MOVWF       ?LocalText_gsmEvent_9+5 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_9+6 
	MOVLW       114
	MOVWF       ?LocalText_gsmEvent_9+7 
	MOVLW       121
	MOVWF       ?LocalText_gsmEvent_9+8 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_9+9 
	MOVLW       102
	MOVWF       ?LocalText_gsmEvent_9+10 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_9+11 
	MOVLW       105
	MOVWF       ?LocalText_gsmEvent_9+12 
	MOVLW       108
	MOVWF       ?LocalText_gsmEvent_9+13 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_9+14 
	MOVLW       100
	MOVWF       ?LocalText_gsmEvent_9+15 
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_9+16 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_9+17 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_9+18 
	MOVLW       ?LocalText_gsmEvent_9+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_9+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
	GOTO        L__gsmEvent59
L__gsmEvent65:
;GSM_EasyPIC7.mbas,286 :: 		case gsmevntMissedCall
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       70
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent68
;GSM_EasyPIC7.mbas,287 :: 		gsmMissedCall(pstrGsmEventOriginatorID)
	MOVF        _pstrGsmEventOriginatorID+0, 0 
	MOVWF       FARG_gsmMissedCall_OriginatorID+0 
	MOVF        _pstrGsmEventOriginatorID+1, 0 
	MOVWF       FARG_gsmMissedCall_OriginatorID+1 
	CALL        _gsmMissedCall+0, 0
	GOTO        L__gsmEvent59
L__gsmEvent68:
;GSM_EasyPIC7.mbas,288 :: 		case gsmevntMsgRcvd
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       80
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent71
;GSM_EasyPIC7.mbas,289 :: 		gsmMsgRcvd(pstrGsmEventData, pstrGsmEventOriginatorID)
	MOVF        _pstrGsmEventData+0, 0 
	MOVWF       FARG_gsmMsgRcvd_MessageText+0 
	MOVF        _pstrGsmEventData+1, 0 
	MOVWF       FARG_gsmMsgRcvd_MessageText+1 
	MOVF        _pstrGsmEventOriginatorID+0, 0 
	MOVWF       FARG_gsmMsgRcvd_OriginatorID+0 
	MOVF        _pstrGsmEventOriginatorID+1, 0 
	MOVWF       FARG_gsmMsgRcvd_OriginatorID+1 
	CALL        _gsmMsgRcvd+0, 0
	GOTO        L__gsmEvent59
L__gsmEvent71:
;GSM_EasyPIC7.mbas,290 :: 		case gsmevntMsgSent
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       83
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent74
;GSM_EasyPIC7.mbas,291 :: 		UART2_Write_Text("Message sent" + Chr(13) + Chr(10))
	MOVLW       77
	MOVWF       ?LocalText_gsmEvent_10+0 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_10+1 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_10+2 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_10+3 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_10+4 
	MOVLW       103
	MOVWF       ?LocalText_gsmEvent_10+5 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_10+6 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_10+7 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_10+8 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_10+9 
	MOVLW       110
	MOVWF       ?LocalText_gsmEvent_10+10 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_10+11 
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_10+12 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_10+13 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_10+14 
	MOVLW       ?LocalText_gsmEvent_10+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_10+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
	GOTO        L__gsmEvent59
L__gsmEvent74:
;GSM_EasyPIC7.mbas,292 :: 		case gsmevntMsgDiscarded, gsmevntMsgSendFailed
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       82
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent77
	GOTO        L__gsmEvent75
L__gsmEvent77:
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       84
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent78
L__gsmEvent75:
;GSM_EasyPIC7.mbas,293 :: 		UART2_Write_Text("Message send failed" + Chr(13) + Chr(10))
	MOVLW       77
	MOVWF       ?LocalText_gsmEvent_11+0 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_11+1 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_11+2 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_11+3 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_11+4 
	MOVLW       103
	MOVWF       ?LocalText_gsmEvent_11+5 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_11+6 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_11+7 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_11+8 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_11+9 
	MOVLW       110
	MOVWF       ?LocalText_gsmEvent_11+10 
	MOVLW       100
	MOVWF       ?LocalText_gsmEvent_11+11 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_11+12 
	MOVLW       102
	MOVWF       ?LocalText_gsmEvent_11+13 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_11+14 
	MOVLW       105
	MOVWF       ?LocalText_gsmEvent_11+15 
	MOVLW       108
	MOVWF       ?LocalText_gsmEvent_11+16 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_11+17 
	MOVLW       100
	MOVWF       ?LocalText_gsmEvent_11+18 
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_11+19 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_11+20 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_11+21 
	MOVLW       ?LocalText_gsmEvent_11+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_11+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
	GOTO        L__gsmEvent59
L__gsmEvent78:
;GSM_EasyPIC7.mbas,294 :: 		case gsmevntDateTimeRead
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       150
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent81
;GSM_EasyPIC7.mbas,295 :: 		if dtmGsmEvent.Year > 10 then ' If the GSM modules date/time is valid
	MOVF        _dtmGsmEvent+0, 0 
	SUBLW       10
	BTFSC       STATUS+0, 0 
	GOTO        L__gsmEvent83
;GSM_EasyPIC7.mbas,299 :: 		UART2_Write_Text("Date/Time: ")
	MOVLW       68
	MOVWF       ?LocalText_gsmEvent_12+0 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_12+1 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_12+2 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_12+3 
	MOVLW       47
	MOVWF       ?LocalText_gsmEvent_12+4 
	MOVLW       84
	MOVWF       ?LocalText_gsmEvent_12+5 
	MOVLW       105
	MOVWF       ?LocalText_gsmEvent_12+6 
	MOVLW       109
	MOVWF       ?LocalText_gsmEvent_12+7 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_12+8 
	MOVLW       58
	MOVWF       ?LocalText_gsmEvent_12+9 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_12+10 
	CLRF        ?LocalText_gsmEvent_12+11 
	MOVLW       ?LocalText_gsmEvent_12+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_12+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mbas,300 :: 		RTCC_GenerateString(dtmGsmEvent, sRTCC)
	MOVLW       _dtmGsmEvent+0
	MOVWF       FARG_RTCC_GenerateString_dt+0 
	MOVLW       hi_addr(_dtmGsmEvent+0)
	MOVWF       FARG_RTCC_GenerateString_dt+1 
	MOVLW       gsmEvent_sRTCC+0
	MOVWF       FARG_RTCC_GenerateString_rtccstring+0 
	MOVLW       hi_addr(gsmEvent_sRTCC+0)
	MOVWF       FARG_RTCC_GenerateString_rtccstring+1 
	CALL        _RTCC_GenerateString+0, 0
;GSM_EasyPIC7.mbas,301 :: 		UART2_Write_Text(sRTCC)
	MOVLW       gsmEvent_sRTCC+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(gsmEvent_sRTCC+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mbas,302 :: 		UART2_Write(13)
	MOVLW       13
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mbas,303 :: 		UART2_Write(10)
	MOVLW       10
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mbas,308 :: 		dtmRTCC = dtmGsmEvent
	MOVLW       _dtmRTCC+0
	MOVWF       FSR1 
	MOVLW       hi_addr(_dtmRTCC+0)
	MOVWF       FSR1H 
	MOVLW       _dtmGsmEvent+0
	MOVWF       FSR2 
	MOVLW       hi_addr(_dtmGsmEvent+0)
	MOVWF       FSR2H 
	MOVLW       6
	MOVWF       R0 
	MOVLW       0
	MOVWF       R1 
	CALL        ___CA2AW+0, 0
;GSM_EasyPIC7.mbas,309 :: 		bitRTCC_Set = 1
	BSF         _bitRTCC_Set+0, BitPos(_bitRTCC_Set+0) 
	GOTO        L__gsmEvent84
;GSM_EasyPIC7.mbas,310 :: 		else
L__gsmEvent83:
;GSM_EasyPIC7.mbas,311 :: 		UART2_Write_Text("Date/Time not yet set." + Chr(13) + Chr(10))
	MOVLW       68
	MOVWF       ?LocalText_gsmEvent_13+0 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_13+1 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_13+2 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_13+3 
	MOVLW       47
	MOVWF       ?LocalText_gsmEvent_13+4 
	MOVLW       84
	MOVWF       ?LocalText_gsmEvent_13+5 
	MOVLW       105
	MOVWF       ?LocalText_gsmEvent_13+6 
	MOVLW       109
	MOVWF       ?LocalText_gsmEvent_13+7 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_13+8 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_13+9 
	MOVLW       110
	MOVWF       ?LocalText_gsmEvent_13+10 
	MOVLW       111
	MOVWF       ?LocalText_gsmEvent_13+11 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_13+12 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_13+13 
	MOVLW       121
	MOVWF       ?LocalText_gsmEvent_13+14 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_13+15 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_13+16 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_13+17 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_13+18 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_13+19 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_13+20 
	MOVLW       46
	MOVWF       ?LocalText_gsmEvent_13+21 
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_13+22 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_13+23 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_13+24 
	MOVLW       ?LocalText_gsmEvent_13+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_13+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mbas,312 :: 		end if
L__gsmEvent84:
	GOTO        L__gsmEvent59
L__gsmEvent81:
;GSM_EasyPIC7.mbas,313 :: 		case gsmevntDateTimeWrite
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       151
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent87
;GSM_EasyPIC7.mbas,315 :: 		dtmGsmEvent = dtmRTCC
	MOVLW       _dtmGsmEvent+0
	MOVWF       FSR1 
	MOVLW       hi_addr(_dtmGsmEvent+0)
	MOVWF       FSR1H 
	MOVLW       _dtmRTCC+0
	MOVWF       FSR2 
	MOVLW       hi_addr(_dtmRTCC+0)
	MOVWF       FSR2H 
	MOVLW       6
	MOVWF       R0 
	MOVLW       0
	MOVWF       R1 
	CALL        ___CA2AW+0, 0
	GOTO        L__gsmEvent59
L__gsmEvent87:
;GSM_EasyPIC7.mbas,316 :: 		case gsmevntIMEI_Read
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       20
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent90
;GSM_EasyPIC7.mbas,317 :: 		UART2_Write_Text("IMEI: ")
	MOVLW       73
	MOVWF       ?LocalText_gsmEvent_14+0 
	MOVLW       77
	MOVWF       ?LocalText_gsmEvent_14+1 
	MOVLW       69
	MOVWF       ?LocalText_gsmEvent_14+2 
	MOVLW       73
	MOVWF       ?LocalText_gsmEvent_14+3 
	MOVLW       58
	MOVWF       ?LocalText_gsmEvent_14+4 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_14+5 
	CLRF        ?LocalText_gsmEvent_14+6 
	MOVLW       ?LocalText_gsmEvent_14+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_14+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mbas,318 :: 		UART2_Write_Text(pstrGsmEventData)
	MOVF        _pstrGsmEventData+0, 0 
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVF        _pstrGsmEventData+1, 0 
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mbas,319 :: 		UART2_Write(13)
	MOVLW       13
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mbas,320 :: 		UART2_Write(10)
	MOVLW       10
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
	GOTO        L__gsmEvent59
L__gsmEvent90:
L__gsmEvent59:
;GSM_EasyPIC7.mbas,322 :: 		end sub
L_end_gsmEvent:
	RETURN      0
; end of _gsmEvent

_main:

;GSM_EasyPIC7.mbas,324 :: 		main:
;GSM_EasyPIC7.mbas,325 :: 		setup()
	CALL        _setup+0, 0
;GSM_EasyPIC7.mbas,326 :: 		startup()
	CALL        _startup+0, 0
;GSM_EasyPIC7.mbas,328 :: 		Lcd_Out(1,1,"  GSM Library   ")
	MOVLW       1
	MOVWF       FARG_Lcd_Out_row+0 
	MOVLW       1
	MOVWF       FARG_Lcd_Out_column+0 
	MOVLW       32
	MOVWF       ?LocalText_main_15+0 
	MOVLW       32
	MOVWF       ?LocalText_main_15+1 
	MOVLW       71
	MOVWF       ?LocalText_main_15+2 
	MOVLW       83
	MOVWF       ?LocalText_main_15+3 
	MOVLW       77
	MOVWF       ?LocalText_main_15+4 
	MOVLW       32
	MOVWF       ?LocalText_main_15+5 
	MOVLW       76
	MOVWF       ?LocalText_main_15+6 
	MOVLW       105
	MOVWF       ?LocalText_main_15+7 
	MOVLW       98
	MOVWF       ?LocalText_main_15+8 
	MOVLW       114
	MOVWF       ?LocalText_main_15+9 
	MOVLW       97
	MOVWF       ?LocalText_main_15+10 
	MOVLW       114
	MOVWF       ?LocalText_main_15+11 
	MOVLW       121
	MOVWF       ?LocalText_main_15+12 
	MOVLW       32
	MOVWF       ?LocalText_main_15+13 
	MOVLW       32
	MOVWF       ?LocalText_main_15+14 
	MOVLW       32
	MOVWF       ?LocalText_main_15+15 
	CLRF        ?LocalText_main_15+16 
	MOVLW       ?LocalText_main_15+0
	MOVWF       FARG_Lcd_Out_text+0 
	MOVLW       hi_addr(?LocalText_main_15+0)
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mbas,329 :: 		Lcd_Out(2,1,"www.dizzy.co.za ")
	MOVLW       2
	MOVWF       FARG_Lcd_Out_row+0 
	MOVLW       1
	MOVWF       FARG_Lcd_Out_column+0 
	MOVLW       119
	MOVWF       ?LocalText_main_16+0 
	MOVLW       119
	MOVWF       ?LocalText_main_16+1 
	MOVLW       119
	MOVWF       ?LocalText_main_16+2 
	MOVLW       46
	MOVWF       ?LocalText_main_16+3 
	MOVLW       100
	MOVWF       ?LocalText_main_16+4 
	MOVLW       105
	MOVWF       ?LocalText_main_16+5 
	MOVLW       122
	MOVWF       ?LocalText_main_16+6 
	MOVLW       122
	MOVWF       ?LocalText_main_16+7 
	MOVLW       121
	MOVWF       ?LocalText_main_16+8 
	MOVLW       46
	MOVWF       ?LocalText_main_16+9 
	MOVLW       99
	MOVWF       ?LocalText_main_16+10 
	MOVLW       111
	MOVWF       ?LocalText_main_16+11 
	MOVLW       46
	MOVWF       ?LocalText_main_16+12 
	MOVLW       122
	MOVWF       ?LocalText_main_16+13 
	MOVLW       97
	MOVWF       ?LocalText_main_16+14 
	MOVLW       32
	MOVWF       ?LocalText_main_16+15 
	CLRF        ?LocalText_main_16+16 
	MOVLW       ?LocalText_main_16+0
	MOVWF       FARG_Lcd_Out_text+0 
	MOVLW       hi_addr(?LocalText_main_16+0)
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mbas,330 :: 		while true
L__main93:
;GSM_EasyPIC7.mbas,331 :: 		UART_Set_Active(@UART1_Read, @UART1_Write, @UART1_Data_Ready, @UART1_Tx_Idle)
	MOVLW       _UART1_Read+0
	MOVWF       FARG_UART_Set_Active_read_ptr+0 
	MOVLW       hi_addr(_UART1_Read+0)
	MOVWF       FARG_UART_Set_Active_read_ptr+1 
	MOVLW       0
	MOVWF       FARG_UART_Set_Active_read_ptr+2 
	MOVLW       0
	MOVWF       FARG_UART_Set_Active_read_ptr+3 
	MOVLW       _UART1_Write+0
	MOVWF       FARG_UART_Set_Active_write_ptr+0 
	MOVLW       hi_addr(_UART1_Write+0)
	MOVWF       FARG_UART_Set_Active_write_ptr+1 
	MOVLW       FARG_UART1_Write_data_+0
	MOVWF       FARG_UART_Set_Active_write_ptr+2 
	MOVLW       hi_addr(FARG_UART1_Write_data_+0)
	MOVWF       FARG_UART_Set_Active_write_ptr+3 
	MOVLW       _UART1_Data_Ready+0
	MOVWF       FARG_UART_Set_Active_ready_ptr+0 
	MOVLW       hi_addr(_UART1_Data_Ready+0)
	MOVWF       FARG_UART_Set_Active_ready_ptr+1 
	MOVLW       0
	MOVWF       FARG_UART_Set_Active_ready_ptr+2 
	MOVLW       0
	MOVWF       FARG_UART_Set_Active_ready_ptr+3 
	MOVLW       _UART1_TX_Idle+0
	MOVWF       FARG_UART_Set_Active_tx_idle_ptr+0 
	MOVLW       hi_addr(_UART1_TX_Idle+0)
	MOVWF       FARG_UART_Set_Active_tx_idle_ptr+1 
	MOVLW       0
	MOVWF       FARG_UART_Set_Active_tx_idle_ptr+2 
	MOVLW       0
	MOVWF       FARG_UART_Set_Active_tx_idle_ptr+3 
	CALL        _UART_Set_Active+0, 0
;GSM_EasyPIC7.mbas,332 :: 		gsmPoll()
	CALL        _gsmPoll+0, 0
;GSM_EasyPIC7.mbas,335 :: 		if (RB7_bit = 0) and (wrdRB7Tmr > 10000) then
	BTFSC       RB7_bit+0, BitPos(RB7_bit+0) 
	GOTO        L__main118
	BSF         R2, 0 
	GOTO        L__main119
L__main118:
	BCF         R2, 0 
L__main119:
	MOVF        _wrdRB7Tmr+1, 0 
	SUBLW       39
	BTFSS       STATUS+0, 2 
	GOTO        L__main120
	MOVF        _wrdRB7Tmr+0, 0 
	SUBLW       16
L__main120:
	MOVLW       255
	BTFSC       STATUS+0, 0 
	MOVLW       0
	MOVWF       R1 
	CLRF        R0 
	BTFSC       R2, 0 
	INCF        R0, 1 
	MOVF        R1, 0 
	ANDWF       R0, 1 
	BTFSC       STATUS+0, 2 
	GOTO        L__main98
;GSM_EasyPIC7.mbas,336 :: 		strcpy(strMsgSendTxt, "EasyPIC7: RB7 pulled low.")
	MOVLW       _strMsgSendTxt+0
	MOVWF       FARG_strcpy_s1+0 
	MOVLW       hi_addr(_strMsgSendTxt+0)
	MOVWF       FARG_strcpy_s1+1 
	MOVLW       69
	MOVWF       ?LocalText_main_17+0 
	MOVLW       97
	MOVWF       ?LocalText_main_17+1 
	MOVLW       115
	MOVWF       ?LocalText_main_17+2 
	MOVLW       121
	MOVWF       ?LocalText_main_17+3 
	MOVLW       80
	MOVWF       ?LocalText_main_17+4 
	MOVLW       73
	MOVWF       ?LocalText_main_17+5 
	MOVLW       67
	MOVWF       ?LocalText_main_17+6 
	MOVLW       55
	MOVWF       ?LocalText_main_17+7 
	MOVLW       58
	MOVWF       ?LocalText_main_17+8 
	MOVLW       32
	MOVWF       ?LocalText_main_17+9 
	MOVLW       82
	MOVWF       ?LocalText_main_17+10 
	MOVLW       66
	MOVWF       ?LocalText_main_17+11 
	MOVLW       55
	MOVWF       ?LocalText_main_17+12 
	MOVLW       32
	MOVWF       ?LocalText_main_17+13 
	MOVLW       112
	MOVWF       ?LocalText_main_17+14 
	MOVLW       117
	MOVWF       ?LocalText_main_17+15 
	MOVLW       108
	MOVWF       ?LocalText_main_17+16 
	MOVLW       108
	MOVWF       ?LocalText_main_17+17 
	MOVLW       101
	MOVWF       ?LocalText_main_17+18 
	MOVLW       100
	MOVWF       ?LocalText_main_17+19 
	MOVLW       32
	MOVWF       ?LocalText_main_17+20 
	MOVLW       108
	MOVWF       ?LocalText_main_17+21 
	MOVLW       111
	MOVWF       ?LocalText_main_17+22 
	MOVLW       119
	MOVWF       ?LocalText_main_17+23 
	MOVLW       46
	MOVWF       ?LocalText_main_17+24 
	CLRF        ?LocalText_main_17+25 
	MOVLW       ?LocalText_main_17+0
	MOVWF       FARG_strcpy_s2+0 
	MOVLW       hi_addr(?LocalText_main_17+0)
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
;GSM_EasyPIC7.mbas,337 :: 		msgSend()
	CALL        _msgSend+0, 0
;GSM_EasyPIC7.mbas,338 :: 		wrdRB7Tmr = 0
	CLRF        _wrdRB7Tmr+0 
	CLRF        _wrdRB7Tmr+1 
L__main98:
;GSM_EasyPIC7.mbas,342 :: 		gsmPowerSetOnOff(RB6_bit)
	MOVLW       0
	BTFSC       RB6_bit+0, BitPos(RB6_bit+0) 
	MOVLW       1
	MOVWF       FARG_gsmPowerSetOnOff_power_on+0 
	CALL        _gsmPowerSetOnOff+0, 0
;GSM_EasyPIC7.mbas,343 :: 		wend ' (while)
	GOTO        L__main93
L_end_main:
	GOTO        $+0
; end of _main
