
_interrupt:

;GSM_EasyPIC7.mpas,111 :: 		begin
;GSM_EasyPIC7.mpas,113 :: 		if (T0IF_bit) then begin  // 1ms Interrupt
	BTFSS       T0IF_bit+0, BitPos(T0IF_bit+0) 
	GOTO        L__interrupt2
;GSM_EasyPIC7.mpas,117 :: 		TMR0H := 0x00;
	CLRF        TMR0H+0 
;GSM_EasyPIC7.mpas,118 :: 		TMR0L := 0x06;
	MOVLW       6
	MOVWF       TMR0L+0 
;GSM_EasyPIC7.mpas,120 :: 		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.mpas,121 :: 		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.mpas,122 :: 		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.mpas,123 :: 		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.mpas,124 :: 		gsm1msPing();
	CALL        _gsm1msPing+0, 0
;GSM_EasyPIC7.mpas,125 :: 		if (wrdRB7Tmr < 65535) then begin Inc(wrdRB7Tmr); end;
	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
	INFSNZ      _wrdRB7Tmr+0, 1 
	INCF        _wrdRB7Tmr+1, 1 
L__interrupt5:
;GSM_EasyPIC7.mpas,126 :: 		T0IF_bit := 0; // Clear interrupt flag
	BCF         T0IF_bit+0, BitPos(T0IF_bit+0) 
;GSM_EasyPIC7.mpas,127 :: 		end;
L__interrupt2:
;GSM_EasyPIC7.mpas,129 :: 		end;
L_end_interrupt:
L__interrupt101:
	RETFIE      1
; end of _interrupt

_setup:

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

_startup:

;GSM_EasyPIC7.mpas,154 :: 		begin
;GSM_EasyPIC7.mpas,155 :: 		strDestID := ''; //Enter a mobile number of your choice here
	CLRF        _strDestID+0 
;GSM_EasyPIC7.mpas,157 :: 		wrdRB7Tmr := 65535;
	MOVLW       255
	MOVWF       _wrdRB7Tmr+0 
	MOVLW       255
	MOVWF       _wrdRB7Tmr+1 
;GSM_EasyPIC7.mpas,158 :: 		bitRTCC_Set := 0;
	BCF         _bitRTCC_Set+0, BitPos(_bitRTCC_Set+0) 
;GSM_EasyPIC7.mpas,159 :: 		UART2_Init(115200); // For output of debug messages
	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.mpas,161 :: 		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.mpas,162 :: 		gsmInit();
	CALL        _gsmInit+0, 0
;GSM_EasyPIC7.mpas,163 :: 		gsm_MS_Init();
	CALL        _gsm_MS_Init+0, 0
;GSM_EasyPIC7.mpas,164 :: 		gsm_Msg_Init(); // Requires GSM_Msg module
	CALL        _gsm_Msg_Init+0, 0
;GSM_EasyPIC7.mpas,165 :: 		Lcd_Init();
	CALL        _Lcd_Init+0, 0
;GSM_EasyPIC7.mpas,166 :: 		Lcd_Cmd(_LCD_CLEAR);
	MOVLW       1
	MOVWF       FARG_Lcd_Cmd_out_char+0 
	CALL        _Lcd_Cmd+0, 0
;GSM_EasyPIC7.mpas,167 :: 		Lcd_Cmd(_LCD_CURSOR_OFF);
	MOVLW       12
	MOVWF       FARG_Lcd_Cmd_out_char+0 
	CALL        _Lcd_Cmd+0, 0
;GSM_EasyPIC7.mpas,168 :: 		end;
L_end_startup:
	RETURN      0
; end of _startup

_ByteToBin:

;GSM_EasyPIC7.mpas,173 :: 		begin
;GSM_EasyPIC7.mpas,174 :: 		mask := %10000000;
	MOVLW       128
	MOVWF       R1 
;GSM_EasyPIC7.mpas,175 :: 		ctr := 0;
	CLRF        R2 
;GSM_EasyPIC7.mpas,176 :: 		while (mask <> 0) do begin
L__ByteToBin11:
	MOVF        R1, 0 
	XORLW       0
	BTFSC       STATUS+0, 2 
	GOTO        L__ByteToBin12
;GSM_EasyPIC7.mpas,177 :: 		if (input and mask) then
	MOVF        R1, 0 
	ANDWF       FARG_ByteToBin_input+0, 0 
	MOVWF       R0 
	BTFSC       STATUS+0, 2 
	GOTO        L__ByteToBin16
;GSM_EasyPIC7.mpas,178 :: 		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.mpas,179 :: 		else
L__ByteToBin16:
;GSM_EasyPIC7.mpas,180 :: 		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 
L__ByteToBin17:
;GSM_EasyPIC7.mpas,181 :: 		Inc(ctr);
	INCF        R2, 1 
;GSM_EasyPIC7.mpas,182 :: 		mask := mask shr 1;
	RRCF        R1, 1 
	BCF         R1, 7 
;GSM_EasyPIC7.mpas,183 :: 		end;
	GOTO        L__ByteToBin11
L__ByteToBin12:
;GSM_EasyPIC7.mpas,184 :: 		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.mpas,185 :: 		end;
L_end_ByteToBin:
	RETURN      0
; end of _ByteToBin

_generateStatusReport:

;GSM_EasyPIC7.mpas,189 :: 		begin
;GSM_EasyPIC7.mpas,190 :: 		pos := @dest;
	MOVF        FARG_generateStatusReport_dest+0, 0 
	MOVWF       generateStatusReport_pos+0 
	MOVF        FARG_generateStatusReport_dest+1, 0 
	MOVWF       generateStatusReport_pos+1 
;GSM_EasyPIC7.mpas,191 :: 		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.mpas,192 :: 		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.mpas,193 :: 		ByteToBin(PORTA, pos);
	MOVF        PORTA+0, 0 
	MOVWF       FARG_ByteToBin_input+0 
	MOVF        R0, 0 
	MOVWF       FARG_ByteToBin_output+0 
	MOVF        R1, 0 
	MOVWF       FARG_ByteToBin_output+1 
	CALL        _ByteToBin+0, 0
;GSM_EasyPIC7.mpas,194 :: 		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.mpas,195 :: 		pos^ := ',';
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVLW       44
	MOVWF       POSTINC1+0 
;GSM_EasyPIC7.mpas,196 :: 		Inc(pos);
	INFSNZ      generateStatusReport_pos+0, 1 
	INCF        generateStatusReport_pos+1, 1 
;GSM_EasyPIC7.mpas,197 :: 		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.mpas,198 :: 		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.mpas,199 :: 		ByteToBin(PORTB, pos);
	MOVF        PORTB+0, 0 
	MOVWF       FARG_ByteToBin_input+0 
	MOVF        R0, 0 
	MOVWF       FARG_ByteToBin_output+0 
	MOVF        R1, 0 
	MOVWF       FARG_ByteToBin_output+1 
	CALL        _ByteToBin+0, 0
;GSM_EasyPIC7.mpas,200 :: 		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.mpas,201 :: 		pos^ := ',';
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVLW       44
	MOVWF       POSTINC1+0 
;GSM_EasyPIC7.mpas,202 :: 		Inc(pos);
	INFSNZ      generateStatusReport_pos+0, 1 
	INCF        generateStatusReport_pos+1, 1 
;GSM_EasyPIC7.mpas,203 :: 		strcpy(pos, 'LATC:');
	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       67
	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.mpas,204 :: 		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.mpas,205 :: 		ByteToBin(LATC, pos);
	MOVF        LATC+0, 0 
	MOVWF       FARG_ByteToBin_input+0 
	MOVF        R0, 0 
	MOVWF       FARG_ByteToBin_output+0 
	MOVF        R1, 0 
	MOVWF       FARG_ByteToBin_output+1 
	CALL        _ByteToBin+0, 0
;GSM_EasyPIC7.mpas,206 :: 		end;
L_end_generateStatusReport:
	RETURN      0
; end of _generateStatusReport

_msgSend:

;GSM_EasyPIC7.mpas,209 :: 		begin
;GSM_EasyPIC7.mpas,210 :: 		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.mpas,211 :: 		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.mpas,212 :: 		UART2_Write_Text(':' + Chr(13) + Chr(10));
	MOVLW       58
	MOVWF       ?LocalText_msgSend_4+0 
	MOVLW       13
	MOVWF       ?LocalText_msgSend_4+1 
	MOVLW       10
	MOVWF       ?LocalText_msgSend_4+2 
	MOVLW       0
	MOVWF       ?LocalText_msgSend_4+3 
	MOVLW       ?LocalText_msgSend_4+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_msgSend_4+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mpas,213 :: 		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.mpas,214 :: 		UART2_Write_Text(':' + Chr(13) + Chr(10));
	MOVLW       58
	MOVWF       ?LocalText_msgSend_5+0 
	MOVLW       13
	MOVWF       ?LocalText_msgSend_5+1 
	MOVLW       10
	MOVWF       ?LocalText_msgSend_5+2 
	MOVLW       0
	MOVWF       ?LocalText_msgSend_5+3 
	MOVLW       ?LocalText_msgSend_5+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_msgSend_5+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mpas,215 :: 		if (strDestID[0] <> 0) then begin
	MOVF        _strDestID+0, 0 
	XORLW       0
	BTFSC       STATUS+0, 2 
	GOTO        L__msgSend21
;GSM_EasyPIC7.mpas,216 :: 		if (gsmMsgSendPending() = 1) then begin gsmMsgSendCancel(); end; // Cancel any message waiting to be sent
	CALL        _gsmMsgSendPending+0, 0
	MOVF        R0, 0 
	XORLW       1
	BTFSS       STATUS+0, 2 
	GOTO        L__msgSend24
	CALL        _gsmMsgSendCancel+0, 0
L__msgSend24:
;GSM_EasyPIC7.mpas,217 :: 		gsmMsgSend(strMsgSendTxt, strDestID); // Send the message
	MOVLW       _strMsgSendTxt+0
	MOVWF       FARG_gsmMsgSend_MessageText+0 
	MOVLW       hi_addr(_strMsgSendTxt+0)
	MOVWF       FARG_gsmMsgSend_MessageText+1 
	MOVLW       _strDestID+0
	MOVWF       FARG_gsmMsgSend_DestinationID+0 
	MOVLW       hi_addr(_strDestID+0)
	MOVWF       FARG_gsmMsgSend_DestinationID+1 
	CALL        _gsmMsgSend+0, 0
;GSM_EasyPIC7.mpas,218 :: 		end;
L__msgSend21:
;GSM_EasyPIC7.mpas,219 :: 		end;
L_end_msgSend:
	RETURN      0
; end of _msgSend

_gsmMissedCall:

;GSM_EasyPIC7.mpas,222 :: 		begin
;GSM_EasyPIC7.mpas,223 :: 		LATC1_bit := not LATC1_bit; // Toggle PortC.1
	BTG         LATC1_bit+0, BitPos(LATC1_bit+0) 
;GSM_EasyPIC7.mpas,224 :: 		if (strDestID[0] = 0) then begin  // If destination ID has not yet been set
	MOVF        _strDestID+0, 0 
	XORLW       0
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMissedCall28
;GSM_EasyPIC7.mpas,226 :: 		strcpy(strDestID, OriginatorID);
	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
;GSM_EasyPIC7.mpas,227 :: 		end;
L__gsmMissedCall28:
;GSM_EasyPIC7.mpas,228 :: 		LCD_Cmd(_LCD_CLEAR);
	MOVLW       1
	MOVWF       FARG_Lcd_Cmd_out_char+0 
	CALL        _Lcd_Cmd+0, 0
;GSM_EasyPIC7.mpas,229 :: 		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.mpas,230 :: 		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_6+0 
	MOVLW       77
	MOVWF       ?LocalText_gsmMissedCall_6+1 
	MOVLW       105
	MOVWF       ?LocalText_gsmMissedCall_6+2 
	MOVLW       115
	MOVWF       ?LocalText_gsmMissedCall_6+3 
	MOVLW       115
	MOVWF       ?LocalText_gsmMissedCall_6+4 
	MOVLW       101
	MOVWF       ?LocalText_gsmMissedCall_6+5 
	MOVLW       100
	MOVWF       ?LocalText_gsmMissedCall_6+6 
	MOVLW       32
	MOVWF       ?LocalText_gsmMissedCall_6+7 
	MOVLW       67
	MOVWF       ?LocalText_gsmMissedCall_6+8 
	MOVLW       97
	MOVWF       ?LocalText_gsmMissedCall_6+9 
	MOVLW       108
	MOVWF       ?LocalText_gsmMissedCall_6+10 
	MOVLW       108
	MOVWF       ?LocalText_gsmMissedCall_6+11 
	MOVLW       41
	MOVWF       ?LocalText_gsmMissedCall_6+12 
	CLRF        ?LocalText_gsmMissedCall_6+13 
	MOVLW       ?LocalText_gsmMissedCall_6+0
	MOVWF       FARG_Lcd_Out_text+0 
	MOVLW       hi_addr(?LocalText_gsmMissedCall_6+0)
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mpas,231 :: 		end;
L_end_gsmMissedCall:
	RETURN      0
; end of _gsmMissedCall

_gsmMsgRcvd:

;GSM_EasyPIC7.mpas,234 :: 		begin
;GSM_EasyPIC7.mpas,235 :: 		if (strDestID[0] = 0) then begin  // If destination ID has not yet been set
	MOVF        _strDestID+0, 0 
	XORLW       0
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd32
;GSM_EasyPIC7.mpas,237 :: 		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
;GSM_EasyPIC7.mpas,238 :: 		end;
L__gsmMsgRcvd32:
;GSM_EasyPIC7.mpas,239 :: 		if (gsmMsgJustArrived() = 1) then begin
	CALL        _gsmMsgJustArrived+0, 0
	MOVF        R0, 0 
	XORLW       1
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd35
;GSM_EasyPIC7.mpas,242 :: 		if (not bitRTCC_Set) then begin
	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.mpas,243 :: 		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.mpas,245 :: 		gsmDateTimeWrite();
	CALL        _gsmDateTimeWrite+0, 0
;GSM_EasyPIC7.mpas,246 :: 		end;
L__gsmMsgRcvd38:
;GSM_EasyPIC7.mpas,247 :: 		end;
L__gsmMsgRcvd35:
;GSM_EasyPIC7.mpas,248 :: 		lcase(MessageText); // Convert the entire message to lower case
	MOVF        FARG_gsmMsgRcvd_MessageText+0, 0 
	MOVWF       FARG_lcase_str+0 
	MOVF        FARG_gsmMsgRcvd_MessageText+1, 0 
	MOVWF       FARG_lcase_str+1 
	CALL        _lcase+0, 0
;GSM_EasyPIC7.mpas,250 :: 		if (MessageText[1] = 'n') then begin  // 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.mpas,251 :: 		LATC := 0xFF;
	MOVLW       255
	MOVWF       LATC+0 
;GSM_EasyPIC7.mpas,252 :: 		end else if (MessageText[1] = 'f') then begin  // Looking for 'off'
	GOTO        L__gsmMsgRcvd42
L__gsmMsgRcvd41:
	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.mpas,253 :: 		LATC := 0x00;
	CLRF        LATC+0 
;GSM_EasyPIC7.mpas,254 :: 		end else if (strncmp(MessageText, 'stat', 4) = 0) then begin  //Status report
	GOTO        L__gsmMsgRcvd45
L__gsmMsgRcvd44:
	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_7+0 
	MOVLW       116
	MOVWF       ?LocalText_gsmMsgRcvd_7+1 
	MOVLW       97
	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__gsmMsgRcvd112
	MOVLW       0
	XORWF       R0, 0 
L__gsmMsgRcvd112:
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmMsgRcvd47
;GSM_EasyPIC7.mpas,255 :: 		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.mpas,256 :: 		msgSend();
	CALL        _msgSend+0, 0
;GSM_EasyPIC7.mpas,257 :: 		end else if (strncmp(MessageText, 'please call ', 12) = 0) then begin  // 'Please Call Me'
	GOTO        L__gsmMsgRcvd48
L__gsmMsgRcvd47:
	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_8+0 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_8+1 
	MOVLW       101
	MOVWF       ?LocalText_gsmMsgRcvd_8+2 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_8+3 
	MOVLW       115
	MOVWF       ?LocalText_gsmMsgRcvd_8+4 
	MOVLW       101
	MOVWF       ?LocalText_gsmMsgRcvd_8+5 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_8+6 
	MOVLW       99
	MOVWF       ?LocalText_gsmMsgRcvd_8+7 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_8+8 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_8+9 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_8+10 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_8+11 
	CLRF        ?LocalText_gsmMsgRcvd_8+12 
	MOVLW       ?LocalText_gsmMsgRcvd_8+0
	MOVWF       FARG_strncmp_s2+0 
	MOVLW       hi_addr(?LocalText_gsmMsgRcvd_8+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.mpas,258 :: 		LATC2_bit := not LATC2_bit;
	BTG         LATC2_bit+0, BitPos(LATC2_bit+0) 
;GSM_EasyPIC7.mpas,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.mpas,260 :: 		msgSend();
	CALL        _msgSend+0, 0
;GSM_EasyPIC7.mpas,261 :: 		end else if (strncmp(MessageText, 'test', 4) = 0) then begin  //Test
	GOTO        L__gsmMsgRcvd51
L__gsmMsgRcvd50:
	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_9+0 
	MOVLW       101
	MOVWF       ?LocalText_gsmMsgRcvd_9+1 
	MOVLW       115
	MOVWF       ?LocalText_gsmMsgRcvd_9+2 
	MOVLW       116
	MOVWF       ?LocalText_gsmMsgRcvd_9+3 
	CLRF        ?LocalText_gsmMsgRcvd_9+4 
	MOVLW       ?LocalText_gsmMsgRcvd_9+0
	MOVWF       FARG_strncmp_s2+0 
	MOVLW       hi_addr(?LocalText_gsmMsgRcvd_9+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.mpas,262 :: 		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_10+0 
	MOVLW       83
	MOVWF       ?LocalText_gsmMsgRcvd_10+1 
	MOVLW       77
	MOVWF       ?LocalText_gsmMsgRcvd_10+2 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_10+3 
	MOVLW       76
	MOVWF       ?LocalText_gsmMsgRcvd_10+4 
	MOVLW       105
	MOVWF       ?LocalText_gsmMsgRcvd_10+5 
	MOVLW       98
	MOVWF       ?LocalText_gsmMsgRcvd_10+6 
	MOVLW       114
	MOVWF       ?LocalText_gsmMsgRcvd_10+7 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_10+8 
	MOVLW       114
	MOVWF       ?LocalText_gsmMsgRcvd_10+9 
	MOVLW       121
	MOVWF       ?LocalText_gsmMsgRcvd_10+10 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_10+11 
	MOVLW       97
	MOVWF       ?LocalText_gsmMsgRcvd_10+12 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_10+13 
	MOVLW       108
	MOVWF       ?LocalText_gsmMsgRcvd_10+14 
	MOVLW       32
	MOVWF       ?LocalText_gsmMsgRcvd_10+15 
	MOVLW       111
	MOVWF       ?LocalText_gsmMsgRcvd_10+16 
	MOVLW       107
	MOVWF       ?LocalText_gsmMsgRcvd_10+17 
	MOVLW       33
	MOVWF       ?LocalText_gsmMsgRcvd_10+18 
	CLRF        ?LocalText_gsmMsgRcvd_10+19 
	MOVLW       ?LocalText_gsmMsgRcvd_10+0
	MOVWF       FARG_strcpy_s2+0 
	MOVLW       hi_addr(?LocalText_gsmMsgRcvd_10+0)
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
;GSM_EasyPIC7.mpas,263 :: 		msgSend();
	CALL        _msgSend+0, 0
;GSM_EasyPIC7.mpas,264 :: 		end;
L__gsmMsgRcvd53:
L__gsmMsgRcvd51:
L__gsmMsgRcvd48:
L__gsmMsgRcvd45:
L__gsmMsgRcvd42:
;GSM_EasyPIC7.mpas,265 :: 		LCD_Cmd(_LCD_CLEAR);
	MOVLW       1
	MOVWF       FARG_Lcd_Cmd_out_char+0 
	CALL        _Lcd_Cmd+0, 0
;GSM_EasyPIC7.mpas,266 :: 		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.mpas,267 :: 		if (strlen(MessageText) > 16) then begin
	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.mpas,268 :: 		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 
;GSM_EasyPIC7.mpas,269 :: 		end;
L__gsmMsgRcvd56:
;GSM_EasyPIC7.mpas,270 :: 		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.mpas,271 :: 		end;
L_end_gsmMsgRcvd:
	RETURN      0
; end of _gsmMsgRcvd

_gsmEvent:

;GSM_EasyPIC7.mpas,275 :: 		begin
;GSM_EasyPIC7.mpas,277 :: 		gsmevntPIN_Request: begin
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       30
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent62
;GSM_EasyPIC7.mpas,280 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent62:
;GSM_EasyPIC7.mpas,281 :: 		gsmevntPIN_Fail: begin
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       31
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent65
;GSM_EasyPIC7.mpas,282 :: 		UART2_Write_Text('PIN entry failed' + Chr(13) + Chr(10));
	MOVLW       80
	MOVWF       ?LocalText_gsmEvent_11+0 
	MOVLW       73
	MOVWF       ?LocalText_gsmEvent_11+1 
	MOVLW       78
	MOVWF       ?LocalText_gsmEvent_11+2 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_11+3 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_11+4 
	MOVLW       110
	MOVWF       ?LocalText_gsmEvent_11+5 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_11+6 
	MOVLW       114
	MOVWF       ?LocalText_gsmEvent_11+7 
	MOVLW       121
	MOVWF       ?LocalText_gsmEvent_11+8 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_11+9 
	MOVLW       102
	MOVWF       ?LocalText_gsmEvent_11+10 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_11+11 
	MOVLW       105
	MOVWF       ?LocalText_gsmEvent_11+12 
	MOVLW       108
	MOVWF       ?LocalText_gsmEvent_11+13 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_11+14 
	MOVLW       100
	MOVWF       ?LocalText_gsmEvent_11+15 
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_11+16 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_11+17 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_11+18 
	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
;GSM_EasyPIC7.mpas,283 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent65:
;GSM_EasyPIC7.mpas,284 :: 		gsmevntMissedCall: begin
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       70
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent68
;GSM_EasyPIC7.mpas,285 :: 		gsmMissedCall(pstrGsmEventOriginatorID);
	MOVF        _pstrGsmEventOriginatorID+0, 0 
	MOVWF       FARG_gsmMissedCall_OriginatorID+0 
	MOVF        _pstrGsmEventOriginatorID+1, 0 
	MOVWF       FARG_gsmMissedCall_OriginatorID+1 
	CALL        _gsmMissedCall+0, 0
;GSM_EasyPIC7.mpas,286 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent68:
;GSM_EasyPIC7.mpas,287 :: 		gsmevntMsgRcvd: begin
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       80
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent71
;GSM_EasyPIC7.mpas,288 :: 		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
;GSM_EasyPIC7.mpas,289 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent71:
;GSM_EasyPIC7.mpas,290 :: 		gsmevntMsgSent: begin
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       83
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent74
;GSM_EasyPIC7.mpas,291 :: 		UART2_Write_Text('Message sent' + Chr(13) + Chr(10));
	MOVLW       77
	MOVWF       ?LocalText_gsmEvent_12+0 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_12+1 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_12+2 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_12+3 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_12+4 
	MOVLW       103
	MOVWF       ?LocalText_gsmEvent_12+5 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_12+6 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_12+7 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_12+8 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_12+9 
	MOVLW       110
	MOVWF       ?LocalText_gsmEvent_12+10 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_12+11 
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_12+12 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_12+13 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_12+14 
	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.mpas,292 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent74:
;GSM_EasyPIC7.mpas,293 :: 		gsmevntMsgDiscarded, gsmevntMsgSendFailed: begin
	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.mpas,294 :: 		UART2_Write_Text('Message send failed' + Chr(13) + Chr(10));
	MOVLW       77
	MOVWF       ?LocalText_gsmEvent_13+0 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_13+1 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_13+2 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_13+3 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_13+4 
	MOVLW       103
	MOVWF       ?LocalText_gsmEvent_13+5 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_13+6 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_13+7 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_13+8 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_13+9 
	MOVLW       110
	MOVWF       ?LocalText_gsmEvent_13+10 
	MOVLW       100
	MOVWF       ?LocalText_gsmEvent_13+11 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_13+12 
	MOVLW       102
	MOVWF       ?LocalText_gsmEvent_13+13 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_13+14 
	MOVLW       105
	MOVWF       ?LocalText_gsmEvent_13+15 
	MOVLW       108
	MOVWF       ?LocalText_gsmEvent_13+16 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_13+17 
	MOVLW       100
	MOVWF       ?LocalText_gsmEvent_13+18 
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_13+19 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_13+20 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_13+21 
	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.mpas,295 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent78:
;GSM_EasyPIC7.mpas,296 :: 		gsmevntDateTimeRead: begin
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       150
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent81
;GSM_EasyPIC7.mpas,297 :: 		if (dtmGsmEvent.Year > 10) then begin  // If the GSM modules date/time is valid
	MOVF        _dtmGsmEvent+0, 0 
	SUBLW       10
	BTFSC       STATUS+0, 0 
	GOTO        L__gsmEvent83
;GSM_EasyPIC7.mpas,301 :: 		UART2_Write_Text('Date/Time: ');
	MOVLW       68
	MOVWF       ?LocalText_gsmEvent_14+0 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_14+1 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_14+2 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_14+3 
	MOVLW       47
	MOVWF       ?LocalText_gsmEvent_14+4 
	MOVLW       84
	MOVWF       ?LocalText_gsmEvent_14+5 
	MOVLW       105
	MOVWF       ?LocalText_gsmEvent_14+6 
	MOVLW       109
	MOVWF       ?LocalText_gsmEvent_14+7 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_14+8 
	MOVLW       58
	MOVWF       ?LocalText_gsmEvent_14+9 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_14+10 
	CLRF        ?LocalText_gsmEvent_14+11 
	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.mpas,302 :: 		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.mpas,303 :: 		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.mpas,304 :: 		UART2_Write(13);
	MOVLW       13
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mpas,305 :: 		UART2_Write(10);
	MOVLW       10
	MOVWF       FARG_UART2_Write_data_+0 
	CALL        _UART2_Write+0, 0
;GSM_EasyPIC7.mpas,310 :: 		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.mpas,311 :: 		bitRTCC_Set := 1;
	BSF         _bitRTCC_Set+0, BitPos(_bitRTCC_Set+0) 
;GSM_EasyPIC7.mpas,312 :: 		end else begin
	GOTO        L__gsmEvent84
L__gsmEvent83:
;GSM_EasyPIC7.mpas,313 :: 		UART2_Write_Text('Date/Time not yet set.' + Chr(13) + Chr(10));
	MOVLW       68
	MOVWF       ?LocalText_gsmEvent_15+0 
	MOVLW       97
	MOVWF       ?LocalText_gsmEvent_15+1 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_15+2 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_15+3 
	MOVLW       47
	MOVWF       ?LocalText_gsmEvent_15+4 
	MOVLW       84
	MOVWF       ?LocalText_gsmEvent_15+5 
	MOVLW       105
	MOVWF       ?LocalText_gsmEvent_15+6 
	MOVLW       109
	MOVWF       ?LocalText_gsmEvent_15+7 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_15+8 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_15+9 
	MOVLW       110
	MOVWF       ?LocalText_gsmEvent_15+10 
	MOVLW       111
	MOVWF       ?LocalText_gsmEvent_15+11 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_15+12 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_15+13 
	MOVLW       121
	MOVWF       ?LocalText_gsmEvent_15+14 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_15+15 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_15+16 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_15+17 
	MOVLW       115
	MOVWF       ?LocalText_gsmEvent_15+18 
	MOVLW       101
	MOVWF       ?LocalText_gsmEvent_15+19 
	MOVLW       116
	MOVWF       ?LocalText_gsmEvent_15+20 
	MOVLW       46
	MOVWF       ?LocalText_gsmEvent_15+21 
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_15+22 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_15+23 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_15+24 
	MOVLW       ?LocalText_gsmEvent_15+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_15+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mpas,314 :: 		end;
L__gsmEvent84:
;GSM_EasyPIC7.mpas,315 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent81:
;GSM_EasyPIC7.mpas,316 :: 		gsmevntDateTimeWrite: begin
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       151
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent87
;GSM_EasyPIC7.mpas,318 :: 		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
;GSM_EasyPIC7.mpas,319 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent87:
;GSM_EasyPIC7.mpas,320 :: 		gsmevntIMEI_Read: begin
	MOVF        FARG_gsmEvent_GsmEventType+0, 0 
	XORLW       20
	BTFSS       STATUS+0, 2 
	GOTO        L__gsmEvent90
;GSM_EasyPIC7.mpas,321 :: 		UART2_Write_Text('IMEI: ');
	MOVLW       73
	MOVWF       ?LocalText_gsmEvent_16+0 
	MOVLW       77
	MOVWF       ?LocalText_gsmEvent_16+1 
	MOVLW       69
	MOVWF       ?LocalText_gsmEvent_16+2 
	MOVLW       73
	MOVWF       ?LocalText_gsmEvent_16+3 
	MOVLW       58
	MOVWF       ?LocalText_gsmEvent_16+4 
	MOVLW       32
	MOVWF       ?LocalText_gsmEvent_16+5 
	CLRF        ?LocalText_gsmEvent_16+6 
	MOVLW       ?LocalText_gsmEvent_16+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_16+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mpas,322 :: 		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.mpas,323 :: 		UART2_Write_Text('' + Chr(13) + Chr(10));
	MOVLW       13
	MOVWF       ?LocalText_gsmEvent_17+0 
	MOVLW       10
	MOVWF       ?LocalText_gsmEvent_17+1 
	MOVLW       0
	MOVWF       ?LocalText_gsmEvent_17+2 
	MOVLW       ?LocalText_gsmEvent_17+0
	MOVWF       FARG_UART2_Write_Text_uart_text+0 
	MOVLW       hi_addr(?LocalText_gsmEvent_17+0)
	MOVWF       FARG_UART2_Write_Text_uart_text+1 
	CALL        _UART2_Write_Text+0, 0
;GSM_EasyPIC7.mpas,324 :: 		end;
	GOTO        L__gsmEvent59
L__gsmEvent90:
L__gsmEvent59:
;GSM_EasyPIC7.mpas,326 :: 		end;
L_end_gsmEvent:
	RETURN      0
; end of _gsmEvent

_main:

;GSM_EasyPIC7.mpas,328 :: 		begin
;GSM_EasyPIC7.mpas,330 :: 		setup();
	CALL        _setup+0, 0
;GSM_EasyPIC7.mpas,331 :: 		startup();
	CALL        _startup+0, 0
;GSM_EasyPIC7.mpas,332 :: 		gsmDateTimeRead();
	CALL        _gsmDateTimeRead+0, 0
;GSM_EasyPIC7.mpas,333 :: 		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_18+0 
	MOVLW       32
	MOVWF       ?LocalText_main_18+1 
	MOVLW       71
	MOVWF       ?LocalText_main_18+2 
	MOVLW       83
	MOVWF       ?LocalText_main_18+3 
	MOVLW       77
	MOVWF       ?LocalText_main_18+4 
	MOVLW       32
	MOVWF       ?LocalText_main_18+5 
	MOVLW       76
	MOVWF       ?LocalText_main_18+6 
	MOVLW       105
	MOVWF       ?LocalText_main_18+7 
	MOVLW       98
	MOVWF       ?LocalText_main_18+8 
	MOVLW       114
	MOVWF       ?LocalText_main_18+9 
	MOVLW       97
	MOVWF       ?LocalText_main_18+10 
	MOVLW       114
	MOVWF       ?LocalText_main_18+11 
	MOVLW       121
	MOVWF       ?LocalText_main_18+12 
	MOVLW       32
	MOVWF       ?LocalText_main_18+13 
	MOVLW       32
	MOVWF       ?LocalText_main_18+14 
	MOVLW       32
	MOVWF       ?LocalText_main_18+15 
	CLRF        ?LocalText_main_18+16 
	MOVLW       ?LocalText_main_18+0
	MOVWF       FARG_Lcd_Out_text+0 
	MOVLW       hi_addr(?LocalText_main_18+0)
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mpas,334 :: 		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_19+0 
	MOVLW       119
	MOVWF       ?LocalText_main_19+1 
	MOVLW       119
	MOVWF       ?LocalText_main_19+2 
	MOVLW       46
	MOVWF       ?LocalText_main_19+3 
	MOVLW       100
	MOVWF       ?LocalText_main_19+4 
	MOVLW       105
	MOVWF       ?LocalText_main_19+5 
	MOVLW       122
	MOVWF       ?LocalText_main_19+6 
	MOVLW       122
	MOVWF       ?LocalText_main_19+7 
	MOVLW       121
	MOVWF       ?LocalText_main_19+8 
	MOVLW       46
	MOVWF       ?LocalText_main_19+9 
	MOVLW       99
	MOVWF       ?LocalText_main_19+10 
	MOVLW       111
	MOVWF       ?LocalText_main_19+11 
	MOVLW       46
	MOVWF       ?LocalText_main_19+12 
	MOVLW       122
	MOVWF       ?LocalText_main_19+13 
	MOVLW       97
	MOVWF       ?LocalText_main_19+14 
	MOVLW       32
	MOVWF       ?LocalText_main_19+15 
	CLRF        ?LocalText_main_19+16 
	MOVLW       ?LocalText_main_19+0
	MOVWF       FARG_Lcd_Out_text+0 
	MOVLW       hi_addr(?LocalText_main_19+0)
	MOVWF       FARG_Lcd_Out_text+1 
	CALL        _Lcd_Out+0, 0
;GSM_EasyPIC7.mpas,335 :: 		while (1) do begin
L__main93:
;GSM_EasyPIC7.mpas,336 :: 		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.mpas,337 :: 		gsmPoll(); // Keep the GSM library running
	CALL        _gsmPoll+0, 0
;GSM_EasyPIC7.mpas,340 :: 		if ((RB7_bit = 0) and (wrdRB7Tmr > 10000)) then begin
	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.mpas,341 :: 		strcpy(strMsgSendTxt, 'GSM Lib: RB7 pulled low.');
	MOVLW       _strMsgSendTxt+0
	MOVWF       FARG_strcpy_s1+0 
	MOVLW       hi_addr(_strMsgSendTxt+0)
	MOVWF       FARG_strcpy_s1+1 
	MOVLW       71
	MOVWF       ?LocalText_main_20+0 
	MOVLW       83
	MOVWF       ?LocalText_main_20+1 
	MOVLW       77
	MOVWF       ?LocalText_main_20+2 
	MOVLW       32
	MOVWF       ?LocalText_main_20+3 
	MOVLW       76
	MOVWF       ?LocalText_main_20+4 
	MOVLW       105
	MOVWF       ?LocalText_main_20+5 
	MOVLW       98
	MOVWF       ?LocalText_main_20+6 
	MOVLW       58
	MOVWF       ?LocalText_main_20+7 
	MOVLW       32
	MOVWF       ?LocalText_main_20+8 
	MOVLW       82
	MOVWF       ?LocalText_main_20+9 
	MOVLW       66
	MOVWF       ?LocalText_main_20+10 
	MOVLW       55
	MOVWF       ?LocalText_main_20+11 
	MOVLW       32
	MOVWF       ?LocalText_main_20+12 
	MOVLW       112
	MOVWF       ?LocalText_main_20+13 
	MOVLW       117
	MOVWF       ?LocalText_main_20+14 
	MOVLW       108
	MOVWF       ?LocalText_main_20+15 
	MOVLW       108
	MOVWF       ?LocalText_main_20+16 
	MOVLW       101
	MOVWF       ?LocalText_main_20+17 
	MOVLW       100
	MOVWF       ?LocalText_main_20+18 
	MOVLW       32
	MOVWF       ?LocalText_main_20+19 
	MOVLW       108
	MOVWF       ?LocalText_main_20+20 
	MOVLW       111
	MOVWF       ?LocalText_main_20+21 
	MOVLW       119
	MOVWF       ?LocalText_main_20+22 
	MOVLW       46
	MOVWF       ?LocalText_main_20+23 
	CLRF        ?LocalText_main_20+24 
	MOVLW       ?LocalText_main_20+0
	MOVWF       FARG_strcpy_s2+0 
	MOVLW       hi_addr(?LocalText_main_20+0)
	MOVWF       FARG_strcpy_s2+1 
	CALL        _strcpy+0, 0
;GSM_EasyPIC7.mpas,342 :: 		msgSend();
	CALL        _msgSend+0, 0
;GSM_EasyPIC7.mpas,343 :: 		wrdRB7Tmr := 0;
	CLRF        _wrdRB7Tmr+0 
	CLRF        _wrdRB7Tmr+1 
;GSM_EasyPIC7.mpas,344 :: 		end;
L__main98:
;GSM_EasyPIC7.mpas,347 :: 		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.mpas,348 :: 		end; // (while)
	GOTO        L__main93
;GSM_EasyPIC7.mpas,350 :: 		end.
L_end_main:
	GOTO        $+0
; end of _main
