opt subtitle "HI-TECH Software Omniscient Code Generator (Lite mode) build 10920"

opt pagewidth 120

	opt lm

	processor	16F690
clrc	macro
	bcf	3,0
	endm
clrz	macro
	bcf	3,2
	endm
setc	macro
	bsf	3,0
	endm
setz	macro
	bsf	3,2
	endm
skipc	macro
	btfss	3,0
	endm
skipz	macro
	btfss	3,2
	endm
skipnc	macro
	btfsc	3,0
	endm
skipnz	macro
	btfsc	3,2
	endm
indf	equ	0
indf0	equ	0
pc	equ	2
pcl	equ	2
status	equ	3
fsr	equ	4
fsr0	equ	4
c	equ	1
z	equ	0
pclath	equ	10
# 9 "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\main.c"
	psect config,class=CONFIG,delta=2 ;#
# 9 "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\main.c"
	dw 0xFFF7 & 0xFFDF ;#
	FNCALL	_main,_start
	FNCALL	_main,_rs232_init
	FNCALL	_main,_rs232_send_byte
	FNCALL	_main,_rs232_send_text
	FNCALL	_main,_rs232_read_byte
	FNCALL	_rs232_send_text,_rs232_send_byte
	FNROOT	_main
	global	_PORTB
psect	text118,local,class=CODE,delta=2
global __ptext118
__ptext118:
_PORTB	set	6
	global	_PORTC
_PORTC	set	7
	global	_RCREG
_RCREG	set	26
	global	_RCSTA
_RCSTA	set	24
	global	_TXREG
_TXREG	set	25
	global	_CARRY
_CARRY	set	24
	global	_CREN
_CREN	set	196
	global	_FERR
_FERR	set	194
	global	_GIE
_GIE	set	95
	global	_OERR
_OERR	set	193
	global	_RA3
_RA3	set	43
	global	_RCIF
_RCIF	set	101
	global	_SPBRG
_SPBRG	set	153
	global	_TRISA
_TRISA	set	133
	global	_TRISB
_TRISB	set	134
	global	_TRISC
_TRISC	set	135
	global	_TXSTA
_TXSTA	set	152
	global	_TRMT
_TRMT	set	1217
	global	_ANSEL
_ANSEL	set	286
	global	_ANSELH
_ANSELH	set	287
	global	_EEADR
_EEADR	set	269
	global	_EEDATA
_EEDATA	set	268
	global	_EECON1
_EECON1	set	396
	global	_EECON2
_EECON2	set	397
	global	_RD
_RD	set	3168
	global	_WR
_WR	set	3169
	global	_WREN
_WREN	set	3170
psect	strings,class=STRING,delta=2
global __pstrings
__pstrings:
;	global	stringdir,stringtab,__stringbase
stringtab:
;	String table - string pointers are 1 byte each
stringcode:stringdir:
movlw high(stringdir)
movwf pclath
movf fsr,w
incf fsr
	addwf pc
__stringbase:
	retlw	0
psect	strings
	
STR_1:	
	retlw	80	;'P'
	retlw	82	;'R'
	retlw	79	;'O'
	retlw	74	;'J'
	retlw	69	;'E'
	retlw	75	;'K'
	retlw	84	;'T'
	retlw	58	;':'
	retlw	32	;' '
	retlw	49	;'1'
	retlw	46	;'.'
	retlw	32	;' '
	retlw	122	;'z'
	retlw	97	;'a'
	retlw	100	;'d'
	retlw	97	;'a'
	retlw	116	;'t'
	retlw	97	;'a'
	retlw	107	;'k'
	retlw	13
	retlw	68	;'D'
	retlw	118	;'v'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	109	;'m'
	retlw	106	;'j'
	retlw	101	;'e'
	retlw	114	;'r'
	retlw	110	;'n'
	retlw	97	;'a'
	retlw	32	;' '
	retlw	80	;'P'
	retlw	73	;'I'
	retlw	67	;'C'
	retlw	32	;' '
	retlw	116	;'t'
	retlw	111	;'o'
	retlw	32	;' '
	retlw	80	;'P'
	retlw	67	;'C'
	retlw	32	;' '
	retlw	98	;'b'
	retlw	101	;'e'
	retlw	122	;'z'
	retlw	105	;'i'
	retlw	99	;'c'
	retlw	110	;'n'
	retlw	97	;'a'
	retlw	32	;' '
	retlw	107	;'k'
	retlw	111	;'o'
	retlw	109	;'m'
	retlw	117	;'u'
	retlw	110	;'n'
	retlw	105	;'i'
	retlw	107	;'k'
	retlw	97	;'a'
	retlw	99	;'c'
	retlw	105	;'i'
	retlw	106	;'j'
	retlw	97	;'a'
	retlw	32	;' '
	retlw	112	;'p'
	retlw	111	;'o'
	retlw	109	;'m'
	retlw	111	;'o'
	retlw	99	;'c'
	retlw	117	;'u'
	retlw	32	;' '
	retlw	88	;'X'
	retlw	66	;'B'
	retlw	101	;'e'
	retlw	101	;'e'
	retlw	32	;' '
	retlw	80	;'P'
	retlw	82	;'R'
	retlw	79	;'O'
	retlw	32	;' '
	retlw	119	;'w'
	retlw	105	;'i'
	retlw	114	;'r'
	retlw	101	;'e'
	retlw	108	;'l'
	retlw	101	;'e'
	retlw	115	;'s'
	retlw	115	;'s'
	retlw	32	;' '
	retlw	109	;'m'
	retlw	111	;'o'
	retlw	100	;'d'
	retlw	117	;'u'
	retlw	108	;'l'
	retlw	97	;'a'
	retlw	46	;'.'
	retlw	13
	retlw	13
	retlw	0
psect	strings
	
STR_2:	
	retlw	71	;'G'
	retlw	85	;'U'
	retlw	77	;'M'
	retlw	66	;'B'
	retlw	33	;'!'
	retlw	13
	retlw	0
psect	strings
	file	"Zadatak 1.as"
	line	#
psect cinit,class=CODE,delta=2
global start_initialization
start_initialization:

psect cinit,class=CODE,delta=2
global end_of_initialization

;End of C runtime variable initialization code

end_of_initialization:
clrf status
ljmp _main	;jump to C main() function
psect	cstackCOMMON,class=COMMON,space=1
global __pcstackCOMMON
__pcstackCOMMON:
	global	?_start
?_start:	; 0 bytes @ 0x0
	global	??_rs232_init
??_rs232_init:	; 0 bytes @ 0x0
	global	?_rs232_send_byte
?_rs232_send_byte:	; 0 bytes @ 0x0
	global	??_rs232_send_byte
??_rs232_send_byte:	; 0 bytes @ 0x0
	global	?_rs232_send_text
?_rs232_send_text:	; 0 bytes @ 0x0
	global	??_rs232_read_byte
??_rs232_read_byte:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	global	?_rs232_init
?_rs232_init:	; 1 bytes @ 0x0
	global	?_rs232_read_byte
?_rs232_read_byte:	; 1 bytes @ 0x0
	global	rs232_send_byte@x
rs232_send_byte@x:	; 1 bytes @ 0x0
	global	start@x
start@x:	; 2 bytes @ 0x0
	ds	1
	global	??_rs232_send_text
??_rs232_send_text:	; 0 bytes @ 0x1
	ds	1
	global	??_start
??_start:	; 0 bytes @ 0x2
	global	rs232_send_text@c
rs232_send_text@c:	; 1 bytes @ 0x2
	ds	1
	global	rs232_send_text@i
rs232_send_text@i:	; 2 bytes @ 0x3
	ds	1
	global	start@i
start@i:	; 2 bytes @ 0x4
	ds	1
	global	rs232_send_text@string
rs232_send_text@string:	; 1 bytes @ 0x5
	ds	1
	global	??_main
??_main:	; 0 bytes @ 0x6
	ds	3
	global	main@temp
main@temp:	; 1 bytes @ 0x9
	ds	1
;;Data sizes: Strings 104, constant 0, data 0, bss 0, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14     10      10
;; BANK0           80      0       0
;; BANK1           80      0       0
;; BANK2           80      0       0

;;
;; Pointer list with targets:

;; rs232_send_text@string	PTR const unsigned char  size(1) Largest target is 97
;;		 -> STR_2(CODE[7]), STR_1(CODE[97]), 
;;


;;
;; Critical Paths under _main in COMMON
;;
;;   _main->_start
;;   _main->_rs232_send_text
;;   _rs232_send_text->_rs232_send_byte
;;
;; Critical Paths under _main in BANK0
;;
;;   None.
;;
;; Critical Paths under _main in BANK1
;;
;;   None.
;;
;; Critical Paths under _main in BANK2
;;
;;   None.

;;
;;Main: autosize = 0, tempsize = 3, incstack = 0, save=0
;;

;;
;;Call Graph Tables:
;;
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (0) _main                                                 4     4      0     150
;;                                              6 COMMON     4     4      0
;;                              _start
;;                         _rs232_init
;;                    _rs232_send_byte
;;                    _rs232_send_text
;;                    _rs232_read_byte
;; ---------------------------------------------------------------------------------
;; (1) _rs232_send_text                                      5     5      0      90
;;                                              1 COMMON     5     5      0
;;                    _rs232_send_byte
;; ---------------------------------------------------------------------------------
;; (1) _start                                                6     4      2      30
;;                                              0 COMMON     6     4      2
;; ---------------------------------------------------------------------------------
;; (1) _rs232_read_byte                                      0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _rs232_send_byte                                      1     1      0      15
;;                                              0 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (1) _rs232_init                                           0     0      0       0
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 2
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _start
;;   _rs232_init
;;   _rs232_send_byte
;;   _rs232_send_text
;;     _rs232_send_byte
;;   _rs232_read_byte
;;

;; Address spaces:

;;Name               Size   Autos  Total    Cost      Usage
;;BITCOMMON            E      0       0       0        0.0%
;;EEDATA             100      0       0       0        0.0%
;;NULL                 0      0       0       0        0.0%
;;CODE                 0      0       0       0        0.0%
;;COMMON               E      A       A       1       71.4%
;;BITSFR0              0      0       0       1        0.0%
;;SFR0                 0      0       0       1        0.0%
;;BITSFR1              0      0       0       2        0.0%
;;SFR1                 0      0       0       2        0.0%
;;STACK                0      0       2       2        0.0%
;;BANK0               50      0       0       3        0.0%
;;BITBANK1            50      0       0       4        0.0%
;;BITSFR3              0      0       0       4        0.0%
;;SFR3                 0      0       0       4        0.0%
;;BANK1               50      0       0       5        0.0%
;;BITSFR2              0      0       0       5        0.0%
;;SFR2                 0      0       0       5        0.0%
;;BITBANK2            50      0       0       6        0.0%
;;BANK2               50      0       0       7        0.0%
;;ABS                  0      0       0       8        0.0%
;;BITBANK0            50      0       0       9        0.0%
;;DATA                 0      0       0      10        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 14 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  temp            1    9[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 17F/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       0       0       0
;;      Locals:         1       0       0       0
;;      Temps:          3       0       0       0
;;      Totals:         4       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_start
;;		_rs232_init
;;		_rs232_send_byte
;;		_rs232_send_text
;;		_rs232_read_byte
;; This function is called by:
;;		Startup code after reset
;; This function uses a non-reentrant model
;;
psect	maintext
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\main.c"
	line	14
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 6
; Regs used in _main: [wreg-fsr0h+status,2+status,0+pclath+cstack]
	line	15
	
l3950:	
;main.c: 15: ANSEL = 0x00;
	bcf	status, 5	;RP0=0, select bank2
	bsf	status, 6	;RP1=1, select bank2
	clrf	(286)^0100h	;volatile
	line	16
;main.c: 16: ANSELH = 0x00;
	clrf	(287)^0100h	;volatile
	line	17
;main.c: 17: TRISA = 0x00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(133)^080h	;volatile
	line	18
;main.c: 18: TRISC = 0x00;
	clrf	(135)^080h	;volatile
	line	19
;main.c: 19: PORTC = 0x00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	line	20
	
l3952:	
;main.c: 20: _delay((unsigned long)((2000)*(4000000/4000.0)));
	opt asmopt_off
movlw  11
movwf	((??_main+0)+0+2),f
movlw	38
movwf	((??_main+0)+0+1),f
	movlw	102
movwf	((??_main+0)+0),f
u2307:
	decfsz	((??_main+0)+0),f
	goto	u2307
	decfsz	((??_main+0)+0+1),f
	goto	u2307
	decfsz	((??_main+0)+0+2),f
	goto	u2307
	nop2
opt asmopt_on

	line	21
	
l3954:	
;main.c: 21: start(5);
	movlw	low(05h)
	movwf	(?_start)
	movlw	high(05h)
	movwf	((?_start))+1
	fcall	_start
	line	22
	
l3956:	
;main.c: 22: rs232_init();
	fcall	_rs232_init
	line	23
	
l3958:	
;main.c: 23: unsigned char temp=0;
	clrf	(main@temp)
	line	24
	
l3960:	
;main.c: 24: rs232_send_byte(0x0C);
	movlw	(0Ch)
	fcall	_rs232_send_byte
	line	25
	
l3962:	
;main.c: 25: rs232_send_text("PROJEKT: 1. zadatak\rDvosmjerna PIC to PC bezicna komunikacija pomocu XBee PRO wireless modula.\r\r");
	movlw	((STR_1-__stringbase))&0ffh
	fcall	_rs232_send_text
	goto	l3964
	line	26
;main.c: 26: while(1)
	
l899:	
	line	28
	
l3964:	
;main.c: 27: {
;main.c: 28: if(1==RA3)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfss	(43/8),(43)&7
	goto	u2281
	goto	u2280
u2281:
	goto	l3976
u2280:
	line	30
	
l3966:	
;main.c: 29: {
;main.c: 30: PORTC = 0x00;
	clrf	(7)	;volatile
	line	31
	
l3968:	
;main.c: 31: temp = rs232_read_byte();
	fcall	_rs232_read_byte
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(main@temp)
	line	32
	
l3970:	
;main.c: 32: if(temp == 'a')
	movf	(main@temp),w
	xorlw	061h
	skipz
	goto	u2291
	goto	u2290
u2291:
	goto	l3964
u2290:
	line	34
	
l3972:	
;main.c: 33: {
;main.c: 34: PORTC = 0x01;
	movlw	(01h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(7)	;volatile
	line	35
;main.c: 35: _delay((unsigned long)((20)*(4000000/4000.0)));
	opt asmopt_off
movlw	26
movwf	((??_main+0)+0+1),f
	movlw	248
movwf	((??_main+0)+0),f
u2317:
	decfsz	((??_main+0)+0),f
	goto	u2317
	decfsz	((??_main+0)+0+1),f
	goto	u2317
	clrwdt
opt asmopt_on

	line	36
	
l3974:	
;main.c: 36: PORTC = 0x00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	goto	l3964
	line	37
	
l901:	
	line	41
;main.c: 37: }
;main.c: 41: }
	goto	l3964
	line	42
	
l900:	
	line	44
	
l3976:	
;main.c: 42: else
;main.c: 43: {
;main.c: 44: rs232_send_text("GUMB!\r");
	movlw	((STR_2-__stringbase))&0ffh
	fcall	_rs232_send_text
	line	45
	
l3978:	
;main.c: 45: PORTC = 0x02;
	movlw	(02h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(7)	;volatile
	line	46
	
l3980:	
;main.c: 46: _delay((unsigned long)((200)*(4000000/4000.0)));
	opt asmopt_off
movlw  2
movwf	((??_main+0)+0+2),f
movlw	4
movwf	((??_main+0)+0+1),f
	movlw	186
movwf	((??_main+0)+0),f
u2327:
	decfsz	((??_main+0)+0),f
	goto	u2327
	decfsz	((??_main+0)+0+1),f
	goto	u2327
	decfsz	((??_main+0)+0+2),f
	goto	u2327
	clrwdt
opt asmopt_on

	line	47
	
l3982:	
;main.c: 47: PORTC = 0x00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	goto	l3964
	line	48
	
l902:	
	goto	l3964
	line	49
	
l903:	
	line	26
	goto	l3964
	
l904:	
	line	50
	
l905:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_rs232_send_text
psect	text119,local,class=CODE,delta=2
global __ptext119
__ptext119:

;; *************** function _rs232_send_text *****************
;; Defined at:
;;		line 41 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\rs232.c"
;; Parameters:    Size  Location     Type
;;  string          1    wreg     PTR const unsigned char 
;;		 -> STR_2(7), STR_1(97), 
;; Auto vars:     Size  Location     Type
;;  string          1    5[COMMON] PTR const unsigned char 
;;		 -> STR_2(7), STR_1(97), 
;;  i               2    3[COMMON] int 
;;  c               1    2[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       0       0       0
;;      Locals:         4       0       0       0
;;      Temps:          1       0       0       0
;;      Totals:         5       0       0       0
;;Total ram usage:        5 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_rs232_send_byte
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text119
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\rs232.c"
	line	41
	global	__size_of_rs232_send_text
	__size_of_rs232_send_text	equ	__end_of_rs232_send_text-_rs232_send_text
	
_rs232_send_text:	
	opt	stack 6
; Regs used in _rs232_send_text: [wreg-fsr0h+status,2+status,0+pclath+cstack]
;rs232_send_text@string stored from wreg
	movwf	(rs232_send_text@string)
	line	42
	
l3940:	
;rs232.c: 42: int i=0;
	clrf	(rs232_send_text@i)
	clrf	(rs232_send_text@i+1)
	line	45
;rs232.c: 43: char c;
;rs232.c: 45: while(string[i]!='\0')
	goto	l3948
	
l1815:	
	line	47
	
l3942:	
;rs232.c: 46: {
;rs232.c: 47: c = string[i];
	movf	(rs232_send_text@i),w
	addwf	(rs232_send_text@string),w
	movwf	fsr0
	fcall	stringdir
	movwf	(??_rs232_send_text+0)+0
	movf	(??_rs232_send_text+0)+0,w
	movwf	(rs232_send_text@c)
	line	48
	
l3944:	
;rs232.c: 48: rs232_send_byte(c);
	movf	(rs232_send_text@c),w
	fcall	_rs232_send_byte
	line	49
	
l3946:	
;rs232.c: 49: i++;
	movlw	low(01h)
	addwf	(rs232_send_text@i),f
	skipnc
	incf	(rs232_send_text@i+1),f
	movlw	high(01h)
	addwf	(rs232_send_text@i+1),f
	goto	l3948
	line	50
	
l1814:	
	line	45
	
l3948:	
	movf	(rs232_send_text@i),w
	addwf	(rs232_send_text@string),w
	movwf	fsr0
	fcall	stringdir
	iorlw	0
	skipz
	goto	u2271
	goto	u2270
u2271:
	goto	l3942
u2270:
	goto	l1817
	
l1816:	
	line	52
;rs232.c: 50: }
;rs232.c: 51: return;
	
l1817:	
	return
	opt stack 0
GLOBAL	__end_of_rs232_send_text
	__end_of_rs232_send_text:
;; =============== function _rs232_send_text ends ============

	signat	_rs232_send_text,4216
	global	_start
psect	text120,local,class=CODE,delta=2
global __ptext120
__ptext120:

;; *************** function _start *****************
;; Defined at:
;;		line 53 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\main.c"
;; Parameters:    Size  Location     Type
;;  x               2    0[COMMON] int 
;; Auto vars:     Size  Location     Type
;;  i               2    4[COMMON] int 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         2       0       0       0
;;      Locals:         2       0       0       0
;;      Temps:          2       0       0       0
;;      Totals:         6       0       0       0
;;Total ram usage:        6 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text120
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\main.c"
	line	53
	global	__size_of_start
	__size_of_start	equ	__end_of_start-_start
	
_start:	
	opt	stack 7
; Regs used in _start: [wreg+status,2]
	line	54
	
l3928:	
;main.c: 54: for(int i=0; i<x; i++)
	clrf	(start@i)
	clrf	(start@i+1)
	goto	l3938
	line	55
	
l909:	
	line	56
	
l3930:	
;main.c: 55: {
;main.c: 56: PORTC = 0x0F;
	movlw	(0Fh)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(7)	;volatile
	line	57
;main.c: 57: _delay((unsigned long)((100)*(4000000/4000.0)));
	opt asmopt_off
movlw	130
movwf	((??_start+0)+0+1),f
	movlw	221
movwf	((??_start+0)+0),f
u2337:
	decfsz	((??_start+0)+0),f
	goto	u2337
	decfsz	((??_start+0)+0+1),f
	goto	u2337
	nop2
opt asmopt_on

	line	58
	
l3932:	
;main.c: 58: PORTC = 0x00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	line	59
	
l3934:	
;main.c: 59: _delay((unsigned long)((100)*(4000000/4000.0)));
	opt asmopt_off
movlw	130
movwf	((??_start+0)+0+1),f
	movlw	221
movwf	((??_start+0)+0),f
u2347:
	decfsz	((??_start+0)+0),f
	goto	u2347
	decfsz	((??_start+0)+0+1),f
	goto	u2347
	nop2
opt asmopt_on

	line	54
	
l3936:	
	movlw	low(01h)
	addwf	(start@i),f
	skipnc
	incf	(start@i+1),f
	movlw	high(01h)
	addwf	(start@i+1),f
	goto	l3938
	
l908:	
	
l3938:	
	movf	(start@i+1),w
	xorlw	80h
	movwf	(??_start+0)+0
	movf	(start@x+1),w
	xorlw	80h
	subwf	(??_start+0)+0,w
	skipz
	goto	u2265
	movf	(start@x),w
	subwf	(start@i),w
u2265:

	skipc
	goto	u2261
	goto	u2260
u2261:
	goto	l3930
u2260:
	goto	l911
	
l910:	
	line	61
	
l911:	
	return
	opt stack 0
GLOBAL	__end_of_start
	__end_of_start:
;; =============== function _start ends ============

	signat	_start,4216
	global	_rs232_read_byte
psect	text121,local,class=CODE,delta=2
global __ptext121
__ptext121:

;; *************** function _rs232_read_byte *****************
;; Defined at:
;;		line 26 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\rs232.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;                  1    wreg      unsigned char 
;; Registers used:
;;		wreg
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       0       0       0
;;      Locals:         0       0       0       0
;;      Temps:          0       0       0       0
;;      Totals:         0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text121
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\rs232.c"
	line	26
	global	__size_of_rs232_read_byte
	__size_of_rs232_read_byte	equ	__end_of_rs232_read_byte-_rs232_read_byte
	
_rs232_read_byte:	
	opt	stack 7
; Regs used in _rs232_read_byte: [wreg]
	line	27
	
l3052:	
;rs232.c: 27: if(OERR)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfss	(193/8),(193)&7
	goto	u21
	goto	u20
u21:
	goto	l1807
u20:
	line	29
	
l3054:	
;rs232.c: 28: {
;rs232.c: 29: CREN=0;
	bcf	(196/8),(196)&7
	line	30
;rs232.c: 30: CREN=1;
	bsf	(196/8),(196)&7
	line	31
	
l1807:	
	line	32
;rs232.c: 31: }
;rs232.c: 32: if(FERR)
	btfss	(194/8),(194)&7
	goto	u31
	goto	u30
u31:
	goto	l3058
u30:
	line	33
	
l3056:	
;rs232.c: 33: RCREG;
	movf	(26),w	;volatile
	goto	l3058
	
l1808:	
	line	34
	
l3058:	
;rs232.c: 34: if(RCIF)
	btfss	(101/8),(101)&7
	goto	u41
	goto	u40
u41:
	goto	l3066
u40:
	line	35
	
l3060:	
;rs232.c: 35: return (RCREG);
	movf	(26),w	;volatile
	goto	l1810
	
l3062:	
	goto	l1810
	
l3064:	
	goto	l1810
	line	36
	
l1809:	
	line	37
	
l3066:	
;rs232.c: 36: else
;rs232.c: 37: return 0;
	movlw	(0)
	goto	l1810
	
l3068:	
	goto	l1810
	
l1811:	
	line	38
	
l1810:	
	return
	opt stack 0
GLOBAL	__end_of_rs232_read_byte
	__end_of_rs232_read_byte:
;; =============== function _rs232_read_byte ends ============

	signat	_rs232_read_byte,89
	global	_rs232_send_byte
psect	text122,local,class=CODE,delta=2
global __ptext122
__ptext122:

;; *************** function _rs232_send_byte *****************
;; Defined at:
;;		line 19 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\rs232.c"
;; Parameters:    Size  Location     Type
;;  x               1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  x               1    0[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       0       0       0
;;      Locals:         1       0       0       0
;;      Temps:          0       0       0       0
;;      Totals:         1       0       0       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;;		_rs232_send_text
;; This function uses a non-reentrant model
;;
psect	text122
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\rs232.c"
	line	19
	global	__size_of_rs232_send_byte
	__size_of_rs232_send_byte	equ	__end_of_rs232_send_byte-_rs232_send_byte
	
_rs232_send_byte:	
	opt	stack 6
; Regs used in _rs232_send_byte: [wreg]
;rs232_send_byte@x stored from wreg
	movwf	(rs232_send_byte@x)
	line	20
	
l3050:	
;rs232.c: 20: TXREG = x;
	movf	(rs232_send_byte@x),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(25)	;volatile
	line	21
;rs232.c: 21: while(!TRMT);
	goto	l1801
	
l1802:	
	
l1801:	
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfss	(1217/8)^080h,(1217)&7
	goto	u11
	goto	u10
u11:
	goto	l1801
u10:
	goto	l1804
	
l1803:	
	line	23
;rs232.c: 22: return;
	
l1804:	
	return
	opt stack 0
GLOBAL	__end_of_rs232_send_byte
	__end_of_rs232_send_byte:
;; =============== function _rs232_send_byte ends ============

	signat	_rs232_send_byte,4216
	global	_rs232_init
psect	text123,local,class=CODE,delta=2
global __ptext123
__ptext123:

;; *************** function _rs232_init *****************
;; Defined at:
;;		line 9 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\rs232.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;                  1    wreg      unsigned char 
;; Registers used:
;;		wreg, status,2
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       0       0       0
;;      Locals:         0       0       0       0
;;      Temps:          0       0       0       0
;;      Totals:         0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text123
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 1\rs232.c"
	line	9
	global	__size_of_rs232_init
	__size_of_rs232_init	equ	__end_of_rs232_init-_rs232_init
	
_rs232_init:	
	opt	stack 7
; Regs used in _rs232_init: [wreg+status,2]
	line	10
	
l3040:	
;rs232.c: 10: TRISB = 0x00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(134)^080h	;volatile
	line	11
;rs232.c: 11: PORTB = 0x00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(6)	;volatile
	line	12
	
l3042:	
;rs232.c: 12: SPBRG = 25;
	movlw	(019h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(153)^080h	;volatile
	line	13
	
l3044:	
;rs232.c: 13: TXSTA = 0b00100110;
	movlw	(026h)
	movwf	(152)^080h	;volatile
	line	14
	
l3046:	
;rs232.c: 14: RCSTA = 0b10010000;
	movlw	(090h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(24)	;volatile
	goto	l1798
	line	15
	
l3048:	
	line	16
;rs232.c: 15: return(0);
;	Return value of _rs232_init is never used
	
l1798:	
	return
	opt stack 0
GLOBAL	__end_of_rs232_init
	__end_of_rs232_init:
;; =============== function _rs232_init ends ============

	signat	_rs232_init,89
psect	text124,local,class=CODE,delta=2
global __ptext124
__ptext124:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
