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
# 17 "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\main.c"
	psect config,class=CONFIG,delta=2 ;#
# 17 "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\main.c"
	dw 0xFFF7 & 0xFFDF ;#
	FNCALL	_main,_init_PIC
	FNCALL	_main,_start
	FNCALL	_main,_rs232_init
	FNCALL	_main,_i2c_init
	FNCALL	_main,_rs232_send_byte
	FNCALL	_main,_rs232_send_text
	FNCALL	_main,_read_i2c
	FNCALL	_main,_acc_skaliranje
	FNCALL	_main,_gyro_skaliranje
	FNCALL	_main,_mag_skaliranje
	FNCALL	_read_i2c,_i2c_open
	FNCALL	_read_i2c,_rs232_send_text
	FNCALL	_read_i2c,_i2c_put_byte
	FNCALL	_read_i2c,_i2c_get_byte
	FNCALL	_i2c_init,_i2c_open
	FNCALL	_i2c_init,_rs232_send_text
	FNCALL	_i2c_init,_i2c_put_byte
	FNCALL	_i2c_init,_i2c_stop
	FNCALL	_i2c_open,_i2c_restart
	FNCALL	_i2c_open,_i2c_send_address
	FNCALL	_i2c_open,_i2c_read_ack
	FNCALL	_i2c_get_byte,_i2c_read_byte
	FNCALL	_i2c_get_byte,_i2c_send_ack
	FNCALL	_i2c_put_byte,_i2c_send_byte
	FNCALL	_i2c_put_byte,_i2c_read_ack
	FNCALL	_i2c_send_address,_i2c_send_byte
	FNCALL	_mag_skaliranje,_rs232_send_byte
	FNCALL	_mag_skaliranje,___lwtoft
	FNCALL	_mag_skaliranje,___ftdiv
	FNCALL	_mag_skaliranje,___ftmul
	FNCALL	_mag_skaliranje,___fttol
	FNCALL	_mag_skaliranje,___awdiv
	FNCALL	_mag_skaliranje,___awmod
	FNCALL	_gyro_skaliranje,_rs232_send_byte
	FNCALL	_gyro_skaliranje,___lwtoft
	FNCALL	_gyro_skaliranje,___ftdiv
	FNCALL	_gyro_skaliranje,___ftmul
	FNCALL	_gyro_skaliranje,___fttol
	FNCALL	_gyro_skaliranje,___awdiv
	FNCALL	_gyro_skaliranje,___awmod
	FNCALL	_acc_skaliranje,_rs232_send_byte
	FNCALL	_acc_skaliranje,___lwtoft
	FNCALL	_acc_skaliranje,___ftdiv
	FNCALL	_acc_skaliranje,___ftmul
	FNCALL	_acc_skaliranje,___fttol
	FNCALL	_acc_skaliranje,___awdiv
	FNCALL	_acc_skaliranje,___awmod
	FNCALL	_i2c_read_byte,_i2c_wait_for_SCL
	FNCALL	_i2c_read_ack,_i2c_wait_for_SCL
	FNCALL	_i2c_send_byte,_i2c_wait_for_SCL
	FNCALL	___lwtoft,___ftpack
	FNCALL	___ftmul,___ftpack
	FNCALL	___ftdiv,___ftpack
	FNCALL	_rs232_send_text,_rs232_send_byte
	FNROOT	_main
	global	_PORTA
psect	text646,local,class=CODE,delta=2
global __ptext646
__ptext646:
_PORTA	set	5
	global	_PORTB
_PORTB	set	6
	global	_PORTC
_PORTC	set	7
	global	_RCREG
_RCREG	set	26
	global	_RCSTA
_RCSTA	set	24
	global	_SSPCON
_SSPCON	set	20
	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	_RB4
_RB4	set	52
	global	_RB6
_RB6	set	54
	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	_TRISB4
_TRISB4	set	1076
	global	_TRISB6
_TRISB6	set	1078
	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	stringtab,__stringbase
stringtab:
;	String table - string pointers are 2 bytes each
	btfsc	(btemp+1),7
	ljmp	stringcode
	bcf	status,7
	btfsc	(btemp+1),0
	bsf	status,7
	movf	indf,w
	incf fsr
skipnz
incf btemp+1
	return
stringcode:
	movf btemp+1,w
andlw 7Fh
movwf	pclath
	movf	fsr,w
incf fsr
skipnz
incf btemp+1
	movwf pc
__stringbase:
psect	stringtext,class=STRCODE,delta=2,reloc=256
global __pstringtext
__pstringtext:
	
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	52	;'4'
	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	80	;'P'
	retlw	114	;'r'
	retlw	105	;'i'
	retlw	107	;'k'
	retlw	117	;'u'
	retlw	112	;'p'
	retlw	108	;'l'
	retlw	106	;'j'
	retlw	97	;'a'
	retlw	110	;'n'
	retlw	106	;'j'
	retlw	101	;'e'
	retlw	44	;','
	retlw	32	;' '
	retlw	115	;'s'
	retlw	107	;'k'
	retlw	108	;'l'
	retlw	97	;'a'
	retlw	105	;'i'
	retlw	114	;'r'
	retlw	97	;'a'
	retlw	110	;'n'
	retlw	106	;'j'
	retlw	101	;'e'
	retlw	32	;' '
	retlw	105	;'i'
	retlw	32	;' '
	retlw	105	;'i'
	retlw	115	;'s'
	retlw	112	;'p'
	retlw	105	;'i'
	retlw	115	;'s'
	retlw	32	;' '
	retlw	115	;'s'
	retlw	118	;'v'
	retlw	105	;'i'
	retlw	104	;'h'
	retlw	32	;' '
	retlw	112	;'p'
	retlw	111	;'o'
	retlw	100	;'d'
	retlw	97	;'a'
	retlw	116	;'t'
	retlw	97	;'a'
	retlw	107	;'k'
	retlw	97	;'a'
	retlw	32	;' '
	retlw	117	;'u'
	retlw	32	;' '
	retlw	51	;'3'
	retlw	32	;' '
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	105	;'i'
	retlw	32	;' '
	retlw	115	;'s'
	retlw	97	;'a'
	retlw	32	;' '
	retlw	73	;'I'
	retlw	77	;'M'
	retlw	85	;'U'
	retlw	45	;'-'
	retlw	97	;'a'
	retlw	46	;'.'
	retlw	13
	retlw	80	;'P'
	retlw	114	;'r'
	retlw	101	;'e'
	retlw	115	;'s'
	retlw	115	;'s'
	retlw	32	;' '
	retlw	97	;'a'
	retlw	110	;'n'
	retlw	121	;'y'
	retlw	32	;' '
	retlw	107	;'k'
	retlw	101	;'e'
	retlw	121	;'y'
	retlw	32	;' '
	retlw	116	;'t'
	retlw	111	;'o'
	retlw	32	;' '
	retlw	99	;'c'
	retlw	111	;'o'
	retlw	110	;'n'
	retlw	116	;'t'
	retlw	105	;'i'
	retlw	110	;'n'
	retlw	117	;'u'
	retlw	101	;'e'
	retlw	46	;'.'
	retlw	46	;'.'
	retlw	46	;'.'
	retlw	13
	retlw	0
psect	stringtext
	
STR_8:	
	retlw	71	;'G'
	retlw	121	;'y'
	retlw	114	;'r'
	retlw	111	;'o'
	retlw	32	;' '
	retlw	120	;'x'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_10:	
	retlw	71	;'G'
	retlw	121	;'y'
	retlw	114	;'r'
	retlw	111	;'o'
	retlw	32	;' '
	retlw	121	;'y'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_12:	
	retlw	71	;'G'
	retlw	121	;'y'
	retlw	114	;'r'
	retlw	111	;'o'
	retlw	32	;' '
	retlw	122	;'z'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_2:	
	retlw	65	;'A'
	retlw	99	;'c'
	retlw	99	;'c'
	retlw	32	;' '
	retlw	120	;'x'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_14:	
	retlw	77	;'M'
	retlw	97	;'a'
	retlw	103	;'g'
	retlw	32	;' '
	retlw	120	;'x'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_4:	
	retlw	65	;'A'
	retlw	99	;'c'
	retlw	99	;'c'
	retlw	32	;' '
	retlw	121	;'y'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_16:	
	retlw	77	;'M'
	retlw	97	;'a'
	retlw	103	;'g'
	retlw	32	;' '
	retlw	121	;'y'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_6:	
	retlw	65	;'A'
	retlw	99	;'c'
	retlw	99	;'c'
	retlw	32	;' '
	retlw	122	;'z'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_18:	
	retlw	77	;'M'
	retlw	97	;'a'
	retlw	103	;'g'
	retlw	32	;' '
	retlw	122	;'z'
	retlw	45	;'-'
	retlw	111	;'o'
	retlw	115	;'s'
	retlw	58	;':'
	retlw	32	;' '
	retlw	0
psect	stringtext
	
STR_20:	
	retlw	103	;'g'
	retlw	114	;'r'
	retlw	101	;'e'
	retlw	115	;'s'
	retlw	107	;'k'
	retlw	97	;'a'
	retlw	49	;'1'
	retlw	10
	retlw	0
psect	stringtext
	
STR_21:	
	retlw	103	;'g'
	retlw	114	;'r'
	retlw	101	;'e'
	retlw	115	;'s'
	retlw	107	;'k'
	retlw	97	;'a'
	retlw	50	;'2'
	retlw	10
	retlw	0
psect	stringtext
	
STR_22:	
	retlw	103	;'g'
	retlw	114	;'r'
	retlw	101	;'e'
	retlw	115	;'s'
	retlw	107	;'k'
	retlw	97	;'a'
	retlw	51	;'3'
	retlw	125	;'}'
	retlw	0
psect	stringtext
	
STR_13:	
	retlw	32	;' '
	retlw	114	;'r'
	retlw	97	;'a'
	retlw	100	;'d'
	retlw	47	;'/'
	retlw	115	;'s'
	retlw	13
	retlw	13
	retlw	0
psect	stringtext
	
STR_23:	
	retlw	101	;'e'
	retlw	114	;'r'
	retlw	114	;'r'
	retlw	111	;'o'
	retlw	114	;'r'
	retlw	49	;'1'
	retlw	10
	retlw	0
psect	stringtext
	
STR_24:	
	retlw	101	;'e'
	retlw	114	;'r'
	retlw	114	;'r'
	retlw	111	;'o'
	retlw	114	;'r'
	retlw	50	;'2'
	retlw	10
	retlw	0
psect	stringtext
	
STR_25:	
	retlw	101	;'e'
	retlw	114	;'r'
	retlw	114	;'r'
	retlw	111	;'o'
	retlw	114	;'r'
	retlw	51	;'3'
	retlw	10
	retlw	0
psect	stringtext
	
STR_9:	
	retlw	32	;' '
	retlw	114	;'r'
	retlw	97	;'a'
	retlw	100	;'d'
	retlw	47	;'/'
	retlw	115	;'s'
	retlw	13
	retlw	0
psect	stringtext
	
STR_15:	
	retlw	32	;' '
	retlw	103	;'g'
	retlw	97	;'a'
	retlw	117	;'u'
	retlw	115	;'s'
	retlw	115	;'s'
	retlw	13
	retlw	0
psect	stringtext
	
STR_7:	
	retlw	32	;' '
	retlw	103	;'g'
	retlw	13
	retlw	13
	retlw	0
psect	stringtext
	
STR_3:	
	retlw	32	;' '
	retlw	103	;'g'
	retlw	13
	retlw	0
psect	stringtext
STR_17	equ	STR_15+0
STR_19	equ	STR_15+0
STR_11	equ	STR_9+0
STR_5	equ	STR_3+0
	file	"Zadatak 4..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	??_i2c_wait_for_SCL
??_i2c_wait_for_SCL:	; 0 bytes @ 0x0
	global	?_init_PIC
?_init_PIC:	; 0 bytes @ 0x0
	global	??_init_PIC
??_init_PIC:	; 0 bytes @ 0x0
	global	?_start
?_start:	; 0 bytes @ 0x0
	global	?_i2c_stop
?_i2c_stop:	; 0 bytes @ 0x0
	global	??_i2c_stop
??_i2c_stop:	; 0 bytes @ 0x0
	global	?_i2c_restart
?_i2c_restart:	; 0 bytes @ 0x0
	global	??_i2c_restart
??_i2c_restart:	; 0 bytes @ 0x0
	global	?_i2c_send_ack
?_i2c_send_ack:	; 0 bytes @ 0x0
	global	??_i2c_send_ack
??_i2c_send_ack:	; 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	?_main
?_main:	; 0 bytes @ 0x0
	global	?_i2c_wait_for_SCL
?_i2c_wait_for_SCL:	; 1 bytes @ 0x0
	global	?_i2c_send_byte
?_i2c_send_byte:	; 1 bytes @ 0x0
	global	?_i2c_read_ack
?_i2c_read_ack:	; 1 bytes @ 0x0
	global	?_i2c_read_byte
?_i2c_read_byte:	; 1 bytes @ 0x0
	global	?_i2c_put_byte
?_i2c_put_byte:	; 1 bytes @ 0x0
	global	?_rs232_init
?_rs232_init:	; 1 bytes @ 0x0
	global	?___awmod
?___awmod:	; 2 bytes @ 0x0
	global	?___ftpack
?___ftpack:	; 3 bytes @ 0x0
	global	?___fttol
?___fttol:	; 4 bytes @ 0x0
	global	i2c_send_ack@status
i2c_send_ack@status:	; 1 bytes @ 0x0
	global	rs232_send_byte@x
rs232_send_byte@x:	; 1 bytes @ 0x0
	global	start@x
start@x:	; 2 bytes @ 0x0
	global	___awmod@divisor
___awmod@divisor:	; 2 bytes @ 0x0
	global	___fttol@f1
___fttol@f1:	; 3 bytes @ 0x0
	global	___ftpack@arg
___ftpack@arg:	; 3 bytes @ 0x0
	ds	1
	global	??_i2c_send_byte
??_i2c_send_byte:	; 0 bytes @ 0x1
	global	??_i2c_read_ack
??_i2c_read_ack:	; 0 bytes @ 0x1
	global	??_i2c_read_byte
??_i2c_read_byte:	; 0 bytes @ 0x1
	global	?_rs232_send_text
?_rs232_send_text:	; 0 bytes @ 0x1
	global	rs232_send_text@string
rs232_send_text@string:	; 2 bytes @ 0x1
	ds	1
	global	??_start
??_start:	; 0 bytes @ 0x2
	global	i2c_send_byte@byte
i2c_send_byte@byte:	; 1 bytes @ 0x2
	global	i2c_read_ack@ack
i2c_read_ack@ack:	; 1 bytes @ 0x2
	global	___awmod@dividend
___awmod@dividend:	; 2 bytes @ 0x2
	ds	1
	global	??_rs232_send_text
??_rs232_send_text:	; 0 bytes @ 0x3
	global	i2c_send_byte@i
i2c_send_byte@i:	; 1 bytes @ 0x3
	global	___ftpack@exp
___ftpack@exp:	; 1 bytes @ 0x3
	global	i2c_read_byte@i
i2c_read_byte@i:	; 2 bytes @ 0x3
	ds	1
	global	??_i2c_put_byte
??_i2c_put_byte:	; 0 bytes @ 0x4
	global	??___fttol
??___fttol:	; 0 bytes @ 0x4
	global	??___awmod
??___awmod:	; 0 bytes @ 0x4
	global	?_i2c_send_address
?_i2c_send_address:	; 1 bytes @ 0x4
	global	i2c_send_address@rw
i2c_send_address@rw:	; 1 bytes @ 0x4
	global	i2c_put_byte@data
i2c_put_byte@data:	; 1 bytes @ 0x4
	global	rs232_send_text@c
rs232_send_text@c:	; 1 bytes @ 0x4
	global	___ftpack@sign
___ftpack@sign:	; 1 bytes @ 0x4
	global	start@i
start@i:	; 2 bytes @ 0x4
	ds	1
	global	??___ftpack
??___ftpack:	; 0 bytes @ 0x5
	global	??_i2c_send_address
??_i2c_send_address:	; 0 bytes @ 0x5
	global	i2c_send_address@address
i2c_send_address@address:	; 1 bytes @ 0x5
	global	i2c_read_byte@byte
i2c_read_byte@byte:	; 1 bytes @ 0x5
	global	___awmod@counter
___awmod@counter:	; 1 bytes @ 0x5
	global	rs232_send_text@i
rs232_send_text@i:	; 2 bytes @ 0x5
	ds	1
	global	?_i2c_open
?_i2c_open:	; 1 bytes @ 0x6
	global	?_i2c_get_byte
?_i2c_get_byte:	; 2 bytes @ 0x6
	global	i2c_open@mode
i2c_open@mode:	; 1 bytes @ 0x6
	global	___awmod@sign
___awmod@sign:	; 1 bytes @ 0x6
	ds	1
	global	??_i2c_open
??_i2c_open:	; 0 bytes @ 0x7
	global	?___awdiv
?___awdiv:	; 2 bytes @ 0x7
	global	___awdiv@divisor
___awdiv@divisor:	; 2 bytes @ 0x7
	ds	1
	global	??_i2c_get_byte
??_i2c_get_byte:	; 0 bytes @ 0x8
	global	?___ftdiv
?___ftdiv:	; 3 bytes @ 0x8
	global	?___ftmul
?___ftmul:	; 3 bytes @ 0x8
	global	?___lwtoft
?___lwtoft:	; 3 bytes @ 0x8
	global	i2c_open@address
i2c_open@address:	; 1 bytes @ 0x8
	global	___fttol@sign1
___fttol@sign1:	; 1 bytes @ 0x8
	global	___lwtoft@c
___lwtoft@c:	; 2 bytes @ 0x8
	global	___ftdiv@f2
___ftdiv@f2:	; 3 bytes @ 0x8
	global	___ftmul@f1
___ftmul@f1:	; 3 bytes @ 0x8
	ds	1
	global	?_i2c_init
?_i2c_init:	; 2 bytes @ 0x9
	global	i2c_init@ADRESA2
i2c_init@ADRESA2:	; 1 bytes @ 0x9
	global	___awdiv@dividend
___awdiv@dividend:	; 2 bytes @ 0x9
	global	___fttol@lval
___fttol@lval:	; 4 bytes @ 0x9
	ds	1
	global	i2c_init@ADRESA3
i2c_init@ADRESA3:	; 1 bytes @ 0xA
	global	i2c_get_byte@byte
i2c_get_byte@byte:	; 2 bytes @ 0xA
	ds	1
	global	??_i2c_init
??_i2c_init:	; 0 bytes @ 0xB
	global	??___awdiv
??___awdiv:	; 0 bytes @ 0xB
	global	??___lwtoft
??___lwtoft:	; 0 bytes @ 0xB
	global	i2c_init@ADRESA1
i2c_init@ADRESA1:	; 1 bytes @ 0xB
	global	___ftdiv@f1
___ftdiv@f1:	; 3 bytes @ 0xB
	global	___ftmul@f2
___ftmul@f2:	; 3 bytes @ 0xB
	ds	1
	global	i2c_get_byte@more
i2c_get_byte@more:	; 1 bytes @ 0xC
	ds	1
	global	___fttol@exp1
___fttol@exp1:	; 1 bytes @ 0xD
	ds	1
psect	cstackBANK0,class=BANK0,space=1
global __pcstackBANK0
__pcstackBANK0:
	global	??___ftdiv
??___ftdiv:	; 0 bytes @ 0x0
	global	??___ftmul
??___ftmul:	; 0 bytes @ 0x0
	global	?_read_i2c
?_read_i2c:	; 2 bytes @ 0x0
	global	read_i2c@adr_reg
read_i2c@adr_reg:	; 1 bytes @ 0x0
	global	___awdiv@counter
___awdiv@counter:	; 1 bytes @ 0x0
	ds	1
	global	___awdiv@sign
___awdiv@sign:	; 1 bytes @ 0x1
	ds	1
	global	??_read_i2c
??_read_i2c:	; 0 bytes @ 0x2
	global	___awdiv@quotient
___awdiv@quotient:	; 2 bytes @ 0x2
	ds	2
	global	read_i2c@data
read_i2c@data:	; 1 bytes @ 0x4
	global	___ftdiv@cntr
___ftdiv@cntr:	; 1 bytes @ 0x4
	global	___ftmul@exp
___ftmul@exp:	; 1 bytes @ 0x4
	ds	1
	global	read_i2c@ADRESA
read_i2c@ADRESA:	; 1 bytes @ 0x5
	global	___ftdiv@f3
___ftdiv@f3:	; 3 bytes @ 0x5
	global	___ftmul@f3_as_product
___ftmul@f3_as_product:	; 3 bytes @ 0x5
	ds	3
	global	___ftdiv@exp
___ftdiv@exp:	; 1 bytes @ 0x8
	global	___ftmul@cntr
___ftmul@cntr:	; 1 bytes @ 0x8
	ds	1
	global	___ftdiv@sign
___ftdiv@sign:	; 1 bytes @ 0x9
	global	___ftmul@sign
___ftmul@sign:	; 1 bytes @ 0x9
	ds	1
	global	?_acc_skaliranje
?_acc_skaliranje:	; 0 bytes @ 0xA
	global	?_gyro_skaliranje
?_gyro_skaliranje:	; 0 bytes @ 0xA
	global	?_mag_skaliranje
?_mag_skaliranje:	; 0 bytes @ 0xA
	global	acc_skaliranje@low
acc_skaliranje@low:	; 1 bytes @ 0xA
	global	gyro_skaliranje@low
gyro_skaliranje@low:	; 1 bytes @ 0xA
	global	mag_skaliranje@low
mag_skaliranje@low:	; 1 bytes @ 0xA
	ds	1
	global	??_acc_skaliranje
??_acc_skaliranje:	; 0 bytes @ 0xB
	global	??_gyro_skaliranje
??_gyro_skaliranje:	; 0 bytes @ 0xB
	global	??_mag_skaliranje
??_mag_skaliranje:	; 0 bytes @ 0xB
	ds	2
	global	acc_skaliranje@high_int
acc_skaliranje@high_int:	; 2 bytes @ 0xD
	global	gyro_skaliranje@high_int
gyro_skaliranje@high_int:	; 2 bytes @ 0xD
	global	mag_skaliranje@high_int
mag_skaliranje@high_int:	; 2 bytes @ 0xD
	ds	2
	global	acc_skaliranje@low_int
acc_skaliranje@low_int:	; 2 bytes @ 0xF
	global	gyro_skaliranje@low_int
gyro_skaliranje@low_int:	; 2 bytes @ 0xF
	global	mag_skaliranje@low_int
mag_skaliranje@low_int:	; 2 bytes @ 0xF
	ds	2
	global	acc_skaliranje@mask
acc_skaliranje@mask:	; 1 bytes @ 0x11
	global	gyro_skaliranje@mask
gyro_skaliranje@mask:	; 1 bytes @ 0x11
	global	mag_skaliranje@mask
mag_skaliranje@mask:	; 1 bytes @ 0x11
	ds	1
	global	acc_skaliranje@dt
acc_skaliranje@dt:	; 2 bytes @ 0x12
	global	gyro_skaliranje@dt
gyro_skaliranje@dt:	; 2 bytes @ 0x12
	global	mag_skaliranje@dt
mag_skaliranje@dt:	; 2 bytes @ 0x12
	ds	2
	global	acc_skaliranje@t
acc_skaliranje@t:	; 2 bytes @ 0x14
	global	gyro_skaliranje@t
gyro_skaliranje@t:	; 2 bytes @ 0x14
	global	mag_skaliranje@t
mag_skaliranje@t:	; 2 bytes @ 0x14
	ds	2
	global	acc_skaliranje@s
acc_skaliranje@s:	; 2 bytes @ 0x16
	global	gyro_skaliranje@s
gyro_skaliranje@s:	; 2 bytes @ 0x16
	global	mag_skaliranje@s
mag_skaliranje@s:	; 2 bytes @ 0x16
	ds	2
	global	acc_skaliranje@d
acc_skaliranje@d:	; 2 bytes @ 0x18
	global	gyro_skaliranje@d
gyro_skaliranje@d:	; 2 bytes @ 0x18
	global	mag_skaliranje@d
mag_skaliranje@d:	; 2 bytes @ 0x18
	ds	2
	global	acc_skaliranje@j
acc_skaliranje@j:	; 2 bytes @ 0x1A
	global	gyro_skaliranje@j
gyro_skaliranje@j:	; 2 bytes @ 0x1A
	global	mag_skaliranje@j
mag_skaliranje@j:	; 2 bytes @ 0x1A
	ds	2
	global	acc_skaliranje@high
acc_skaliranje@high:	; 1 bytes @ 0x1C
	global	gyro_skaliranje@high
gyro_skaliranje@high:	; 1 bytes @ 0x1C
	global	mag_skaliranje@high
mag_skaliranje@high:	; 1 bytes @ 0x1C
	ds	1
	global	acc_skaliranje@rez
acc_skaliranje@rez:	; 3 bytes @ 0x1D
	global	gyro_skaliranje@rez
gyro_skaliranje@rez:	; 3 bytes @ 0x1D
	global	mag_skaliranje@rez
mag_skaliranje@rez:	; 3 bytes @ 0x1D
	ds	3
	global	acc_skaliranje@temp
acc_skaliranje@temp:	; 2 bytes @ 0x20
	global	gyro_skaliranje@temp
gyro_skaliranje@temp:	; 2 bytes @ 0x20
	global	mag_skaliranje@temp
mag_skaliranje@temp:	; 2 bytes @ 0x20
	ds	2
	global	??_main
??_main:	; 0 bytes @ 0x22
	ds	3
	global	main@high
main@high:	; 1 bytes @ 0x25
	ds	1
	global	main@low
main@low:	; 1 bytes @ 0x26
	ds	1
;;Data sizes: Strings 302, constant 0, data 0, bss 0, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14     14      14
;; BANK0           80     39      39
;; BANK1           80      0       0
;; BANK2           80      0       0

;;
;; Pointer list with targets:

;; ?___ftpack	float  size(1) Largest target is 0
;;
;; ?___awmod	int  size(1) Largest target is 0
;;
;; ?___awdiv	int  size(1) Largest target is 0
;;
;; ?___fttol	long  size(1) Largest target is 0
;;
;; ?___ftmul	float  size(1) Largest target is 0
;;
;; ?___ftdiv	float  size(1) Largest target is 0
;;
;; ?___lwtoft	float  size(1) Largest target is 0
;;
;; ?_read_i2c	int  size(1) Largest target is 0
;;
;; ?_i2c_get_byte	int  size(1) Largest target is 0
;;
;; rs232_send_text@string	PTR const unsigned char  size(2) Largest target is 115
;;		 -> STR_25(CODE[8]), STR_24(CODE[8]), STR_23(CODE[8]), STR_22(CODE[9]), 
;;		 -> STR_21(CODE[9]), STR_20(CODE[9]), STR_19(CODE[8]), STR_18(CODE[11]), 
;;		 -> STR_17(CODE[8]), STR_16(CODE[11]), STR_15(CODE[8]), STR_14(CODE[11]), 
;;		 -> STR_13(CODE[9]), STR_12(CODE[12]), STR_11(CODE[8]), STR_10(CODE[12]), 
;;		 -> STR_9(CODE[8]), STR_8(CODE[12]), STR_7(CODE[5]), STR_6(CODE[11]), 
;;		 -> STR_5(CODE[4]), STR_4(CODE[11]), STR_3(CODE[4]), STR_2(CODE[11]), 
;;		 -> STR_1(CODE[115]), 
;;


;;
;; Critical Paths under _main in COMMON
;;
;;   _read_i2c->_i2c_get_byte
;;   _i2c_init->_i2c_open
;;   _i2c_open->_i2c_send_address
;;   _i2c_get_byte->_i2c_read_byte
;;   _i2c_put_byte->_i2c_send_byte
;;   _i2c_send_address->_i2c_send_byte
;;   _mag_skaliranje->___ftdiv
;;   _mag_skaliranje->___ftmul
;;   _mag_skaliranje->___fttol
;;   _gyro_skaliranje->___ftdiv
;;   _gyro_skaliranje->___ftmul
;;   _gyro_skaliranje->___fttol
;;   _acc_skaliranje->___ftdiv
;;   _acc_skaliranje->___ftmul
;;   _acc_skaliranje->___fttol
;;   _i2c_read_byte->_i2c_wait_for_SCL
;;   _i2c_read_ack->_i2c_wait_for_SCL
;;   _i2c_send_byte->_i2c_wait_for_SCL
;;   ___lwtoft->___ftpack
;;   ___ftmul->___ftpack
;;   ___ftdiv->___ftpack
;;   _rs232_send_text->_rs232_send_byte
;;   ___awdiv->___awmod
;;
;; Critical Paths under _main in BANK0
;;
;;   _main->_acc_skaliranje
;;   _main->_gyro_skaliranje
;;   _main->_mag_skaliranje
;;   _mag_skaliranje->___ftdiv
;;   _mag_skaliranje->___ftmul
;;   _gyro_skaliranje->___ftdiv
;;   _gyro_skaliranje->___ftmul
;;   _acc_skaliranje->___ftdiv
;;   _acc_skaliranje->___ftmul
;;
;; 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                                                 5     5      0   10081
;;                                             34 BANK0      5     5      0
;;                           _init_PIC
;;                              _start
;;                         _rs232_init
;;                           _i2c_init
;;                    _rs232_send_byte
;;                    _rs232_send_text
;;                           _read_i2c
;;                     _acc_skaliranje
;;                    _gyro_skaliranje
;;                     _mag_skaliranje
;; ---------------------------------------------------------------------------------
;; (1) _read_i2c                                             6     4      2     808
;;                                              0 BANK0      6     4      2
;;                           _i2c_open
;;                    _rs232_send_text
;;                       _i2c_put_byte
;;                       _i2c_get_byte
;; ---------------------------------------------------------------------------------
;; (1) _i2c_init                                             3     1      2     625
;;                                              9 COMMON     3     1      2
;;                           _i2c_open
;;                    _rs232_send_text
;;                       _i2c_put_byte
;;                           _i2c_stop
;; ---------------------------------------------------------------------------------
;; (2) _i2c_open                                             3     2      1     245
;;                                              6 COMMON     3     2      1
;;                        _i2c_restart
;;                   _i2c_send_address
;;                       _i2c_read_ack
;; ---------------------------------------------------------------------------------
;; (2) _i2c_get_byte                                         7     5      2     160
;;                                              6 COMMON     7     5      2
;;                      _i2c_read_byte
;;                       _i2c_send_ack
;; ---------------------------------------------------------------------------------
;; (2) _i2c_put_byte                                         1     1      0     179
;;                                              4 COMMON     1     1      0
;;                      _i2c_send_byte
;;                       _i2c_read_ack
;; ---------------------------------------------------------------------------------
;; (3) _i2c_send_address                                     2     1      1     178
;;                                              4 COMMON     2     1      1
;;                      _i2c_send_byte
;; ---------------------------------------------------------------------------------
;; (1) _mag_skaliranje                                      24    23      1    2677
;;                                             10 BANK0     24    23      1
;;                    _rs232_send_byte
;;                           ___lwtoft
;;                            ___ftdiv
;;                            ___ftmul
;;                            ___fttol
;;                            ___awdiv
;;                            ___awmod
;; ---------------------------------------------------------------------------------
;; (1) _gyro_skaliranje                                     24    23      1    2677
;;                                             10 BANK0     24    23      1
;;                    _rs232_send_byte
;;                           ___lwtoft
;;                            ___ftdiv
;;                            ___ftmul
;;                            ___fttol
;;                            ___awdiv
;;                            ___awmod
;; ---------------------------------------------------------------------------------
;; (1) _acc_skaliranje                                      24    23      1    2677
;;                                             10 BANK0     24    23      1
;;                    _rs232_send_byte
;;                           ___lwtoft
;;                            ___ftdiv
;;                            ___ftmul
;;                            ___fttol
;;                            ___awdiv
;;                            ___awmod
;; ---------------------------------------------------------------------------------
;; (3) _i2c_read_byte                                        5     5      0      93
;;                                              1 COMMON     5     5      0
;;                   _i2c_wait_for_SCL
;; ---------------------------------------------------------------------------------
;; (3) _i2c_read_ack                                         2     2      0      23
;;                                              1 COMMON     2     2      0
;;                   _i2c_wait_for_SCL
;; ---------------------------------------------------------------------------------
;; (3) _i2c_send_byte                                        3     3      0     134
;;                                              1 COMMON     3     3      0
;;                   _i2c_wait_for_SCL
;; ---------------------------------------------------------------------------------
;; (2) ___lwtoft                                             4     1      3     231
;;                                              8 COMMON     4     1      3
;;                           ___ftpack
;; ---------------------------------------------------------------------------------
;; (2) ___ftmul                                             16    10      6     535
;;                                              8 COMMON     6     0      6
;;                                              0 BANK0     10    10      0
;;                           ___ftpack
;; ---------------------------------------------------------------------------------
;; (2) ___ftdiv                                             16    10      6     489
;;                                              8 COMMON     6     0      6
;;                                              0 BANK0     10    10      0
;;                           ___ftpack
;; ---------------------------------------------------------------------------------
;; (1) _start                                                6     4      2      46
;;                                              0 COMMON     6     4      2
;; ---------------------------------------------------------------------------------
;; (2) _rs232_send_text                                      6     4      2     135
;;                                              1 COMMON     6     4      2
;;                    _rs232_send_byte
;; ---------------------------------------------------------------------------------
;; (3) _i2c_send_ack                                         1     1      0      22
;;                                              0 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (4) _i2c_wait_for_SCL                                     1     1      0       0
;;                                              0 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (3) _i2c_restart                                          0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _i2c_stop                                             0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) ___awmod                                              7     3      4     296
;;                                              0 COMMON     7     3      4
;; ---------------------------------------------------------------------------------
;; (2) ___awdiv                                              9     5      4     300
;;                                              7 COMMON     5     1      4
;;                                              0 BANK0      4     4      0
;;                            ___awmod (ARG)
;; ---------------------------------------------------------------------------------
;; (2) ___fttol                                             14    10      4     252
;;                                              0 COMMON    14    10      4
;; ---------------------------------------------------------------------------------
;; (3) ___ftpack                                             8     3      5     209
;;                                              0 COMMON     8     3      5
;; ---------------------------------------------------------------------------------
;; (1) _init_PIC                                             0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _rs232_send_byte                                      1     1      0      22
;;                                              0 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (1) _rs232_init                                           0     0      0       0
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 4
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _init_PIC
;;   _start
;;   _rs232_init
;;   _i2c_init
;;     _i2c_open
;;       _i2c_restart
;;       _i2c_send_address
;;         _i2c_send_byte
;;           _i2c_wait_for_SCL
;;       _i2c_read_ack
;;         _i2c_wait_for_SCL
;;     _rs232_send_text
;;       _rs232_send_byte
;;     _i2c_put_byte
;;       _i2c_send_byte
;;         _i2c_wait_for_SCL
;;       _i2c_read_ack
;;         _i2c_wait_for_SCL
;;     _i2c_stop
;;   _rs232_send_byte
;;   _rs232_send_text
;;     _rs232_send_byte
;;   _read_i2c
;;     _i2c_open
;;       _i2c_restart
;;       _i2c_send_address
;;         _i2c_send_byte
;;           _i2c_wait_for_SCL
;;       _i2c_read_ack
;;         _i2c_wait_for_SCL
;;     _rs232_send_text
;;       _rs232_send_byte
;;     _i2c_put_byte
;;       _i2c_send_byte
;;         _i2c_wait_for_SCL
;;       _i2c_read_ack
;;         _i2c_wait_for_SCL
;;     _i2c_get_byte
;;       _i2c_read_byte
;;         _i2c_wait_for_SCL
;;       _i2c_send_ack
;;   _acc_skaliranje
;;     _rs232_send_byte
;;     ___lwtoft
;;       ___ftpack
;;     ___ftdiv
;;       ___ftpack
;;     ___ftmul
;;       ___ftpack
;;     ___fttol
;;     ___awdiv
;;       ___awmod (ARG)
;;     ___awmod
;;   _gyro_skaliranje
;;     _rs232_send_byte
;;     ___lwtoft
;;       ___ftpack
;;     ___ftdiv
;;       ___ftpack
;;     ___ftmul
;;       ___ftpack
;;     ___fttol
;;     ___awdiv
;;       ___awmod (ARG)
;;     ___awmod
;;   _mag_skaliranje
;;     _rs232_send_byte
;;     ___lwtoft
;;       ___ftpack
;;     ___ftdiv
;;       ___ftpack
;;     ___ftmul
;;       ___ftpack
;;     ___fttol
;;     ___awdiv
;;       ___awmod (ARG)
;;     ___awmod
;;

;; 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      E       E       1      100.0%
;;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       5       2        0.0%
;;BANK0               50     27      27       3       48.8%
;;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 20 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  low             1   38[BANK0 ] unsigned char 
;;  high            1   37[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, btemp+1, 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:         0       2       0       0
;;      Temps:          0       3       0       0
;;      Totals:         0       5       0       0
;;Total ram usage:        5 bytes
;; Hardware stack levels required when called:    5
;; This function calls:
;;		_init_PIC
;;		_start
;;		_rs232_init
;;		_i2c_init
;;		_rs232_send_byte
;;		_rs232_send_text
;;		_read_i2c
;;		_acc_skaliranje
;;		_gyro_skaliranje
;;		_mag_skaliranje
;; 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 4\main.c"
	line	20
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 3
; Regs used in _main: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
	line	22
	
l7863:	
;main.c: 21: char high, low;
;main.c: 22: init_PIC();
	fcall	_init_PIC
	line	23
;main.c: 23: start(5);
	movlw	low(05h)
	movwf	(?_start)
	movlw	high(05h)
	movwf	((?_start))+1
	fcall	_start
	line	24
;main.c: 24: rs232_init();
	fcall	_rs232_init
	line	26
;main.c: 26: while(!i2c_init((0x30), 0x20, 0b00100111));
	goto	l7865
	
l2779:	
	goto	l7865
	
l2778:	
	
l7865:	
	movlw	(020h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_i2c_init)
	movlw	(027h)
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	0+(?_i2c_init)+01h
	movlw	(030h)
	fcall	_i2c_init
	movf	(1+(?_i2c_init)),w
	iorwf	(0+(?_i2c_init)),w
	skipnz
	goto	u4291
	goto	u4290
u4291:
	goto	l7865
u4290:
	goto	l7867
	
l2780:	
	line	27
;main.c: 27: while(!i2c_init((0xD2), 0x20, 0b00101111));
	goto	l7867
	
l2782:	
	goto	l7867
	
l2781:	
	
l7867:	
	movlw	(020h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_i2c_init)
	movlw	(02Fh)
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	0+(?_i2c_init)+01h
	movlw	(0D2h)
	fcall	_i2c_init
	movf	(1+(?_i2c_init)),w
	iorwf	(0+(?_i2c_init)),w
	skipnz
	goto	u4301
	goto	u4300
u4301:
	goto	l7867
u4300:
	goto	l7869
	
l2783:	
	line	29
;main.c: 29: while(!i2c_init((0x3C), 0x00, 0b00111000));
	goto	l7869
	
l2785:	
	goto	l7869
	
l2784:	
	
l7869:	
	clrf	(?_i2c_init)
	movlw	(038h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	0+(?_i2c_init)+01h
	movlw	(03Ch)
	fcall	_i2c_init
	movf	(1+(?_i2c_init)),w
	iorwf	(0+(?_i2c_init)),w
	skipnz
	goto	u4311
	goto	u4310
u4311:
	goto	l7869
u4310:
	goto	l7871
	
l2786:	
	line	30
;main.c: 30: while(!i2c_init((0x3C), 0x01, 0b00100000));
	goto	l7871
	
l2788:	
	goto	l7871
	
l2787:	
	
l7871:	
	clrf	(?_i2c_init)
	bsf	status,0
	rlf	(?_i2c_init),f
	movlw	(020h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	0+(?_i2c_init)+01h
	movlw	(03Ch)
	fcall	_i2c_init
	movf	(1+(?_i2c_init)),w
	iorwf	(0+(?_i2c_init)),w
	skipnz
	goto	u4321
	goto	u4320
u4321:
	goto	l7871
u4320:
	goto	l7873
	
l2789:	
	line	31
;main.c: 31: while(!i2c_init((0x3C), 0x02, 0b00000000));
	goto	l7873
	
l2791:	
	goto	l7873
	
l2790:	
	
l7873:	
	movlw	(02h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_i2c_init)
	clrf	0+(?_i2c_init)+01h
	movlw	(03Ch)
	fcall	_i2c_init
	movf	(1+(?_i2c_init)),w
	iorwf	(0+(?_i2c_init)),w
	skipnz
	goto	u4331
	goto	u4330
u4331:
	goto	l7873
u4330:
	goto	l7875
	
l2792:	
	line	34
	
l7875:	
;main.c: 34: rs232_send_byte(0x0C);
	movlw	(0Ch)
	fcall	_rs232_send_byte
	line	35
	
l7877:	
;main.c: 35: rs232_send_text("PROJEKT: 4. zadatak\rPrikupljanje, sklairanje i ispis svih podataka u 3 osi sa IMU-a.\rPress any key to continue...\r");
	movlw	low(STR_1|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_1|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	37
;main.c: 37: while(RA3==1);
	goto	l2793
	
l2794:	
	
l2793:	
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfsc	(43/8),(43)&7
	goto	u4341
	goto	u4340
u4341:
	goto	l2793
u4340:
	goto	l7879
	
l2795:	
	line	38
	
l7879:	
;main.c: 38: _delay((unsigned long)((1000)*(4000000/4000.0)));
	opt asmopt_off
movlw  6
movwf	((??_main+0)+0+2),f
movlw	19
movwf	((??_main+0)+0+1),f
	movlw	177
movwf	((??_main+0)+0),f
u4357:
	decfsz	((??_main+0)+0),f
	goto	u4357
	decfsz	((??_main+0)+0+1),f
	goto	u4357
	decfsz	((??_main+0)+0+2),f
	goto	u4357
	nop2
opt asmopt_on

	line	39
	
l7881:	
;main.c: 39: rs232_send_byte(0x0C);
	movlw	(0Ch)
	fcall	_rs232_send_byte
	goto	l7883
	line	41
;main.c: 41: while(1)
	
l2796:	
	line	47
	
l7883:	
;main.c: 42: {
;main.c: 47: low = read_i2c ((0x30), 0x28);
	movlw	(028h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(030h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	48
	
l7885:	
;main.c: 48: high = read_i2c ((0x30), 0x29);
	movlw	(029h)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(030h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	49
	
l7887:	
;main.c: 49: rs232_send_text("Acc x-os: ");
	movlw	low(STR_2|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_2|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	50
	
l7889:	
;main.c: 50: acc_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_acc_skaliranje)
	movf	(main@high),w
	fcall	_acc_skaliranje
	line	51
	
l7891:	
;main.c: 51: rs232_send_text(" g\r");
	movlw	low(STR_3|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_3|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	53
	
l7893:	
;main.c: 53: low = read_i2c ((0x30), 0x2A);
	movlw	(02Ah)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(030h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	54
	
l7895:	
;main.c: 54: high = read_i2c ((0x30), 0x2B);
	movlw	(02Bh)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(030h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	55
	
l7897:	
;main.c: 55: rs232_send_text("Acc y-os: ");
	movlw	low(STR_4|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_4|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	56
	
l7899:	
;main.c: 56: acc_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_acc_skaliranje)
	movf	(main@high),w
	fcall	_acc_skaliranje
	line	57
	
l7901:	
;main.c: 57: rs232_send_text(" g\r");
	movlw	low(STR_5|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_5|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	59
	
l7903:	
;main.c: 59: low = read_i2c ((0x30), 0x2C);
	movlw	(02Ch)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(030h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	60
	
l7905:	
;main.c: 60: high = read_i2c ((0x30), 0x2D);
	movlw	(02Dh)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(030h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	61
	
l7907:	
;main.c: 61: rs232_send_text("Acc z-os: ");
	movlw	low(STR_6|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_6|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	62
	
l7909:	
;main.c: 62: acc_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_acc_skaliranje)
	movf	(main@high),w
	fcall	_acc_skaliranje
	line	63
	
l7911:	
;main.c: 63: rs232_send_text(" g\r\r");
	movlw	low(STR_7|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_7|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	69
	
l7913:	
;main.c: 69: low = read_i2c ((0xD2), 0x28);
	movlw	(028h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(0D2h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	70
	
l7915:	
;main.c: 70: high = read_i2c ((0xD2), 0x29);
	movlw	(029h)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(0D2h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	71
	
l7917:	
;main.c: 71: rs232_send_text("Gyro x-os: ");
	movlw	low(STR_8|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_8|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	72
	
l7919:	
;main.c: 72: gyro_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_gyro_skaliranje)
	movf	(main@high),w
	fcall	_gyro_skaliranje
	line	73
	
l7921:	
;main.c: 73: rs232_send_text(" rad/s\r");
	movlw	low(STR_9|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_9|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	75
	
l7923:	
;main.c: 75: low = read_i2c ((0xD2), 0x2A);
	movlw	(02Ah)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(0D2h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	76
	
l7925:	
;main.c: 76: high = read_i2c ((0xD2), 0x2B);
	movlw	(02Bh)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(0D2h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	77
	
l7927:	
;main.c: 77: rs232_send_text("Gyro y-os: ");
	movlw	low(STR_10|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_10|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	78
	
l7929:	
;main.c: 78: gyro_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_gyro_skaliranje)
	movf	(main@high),w
	fcall	_gyro_skaliranje
	line	79
	
l7931:	
;main.c: 79: rs232_send_text(" rad/s\r");
	movlw	low(STR_11|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_11|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	81
	
l7933:	
;main.c: 81: low = read_i2c ((0xD2), 0x2C);
	movlw	(02Ch)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(0D2h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	82
	
l7935:	
;main.c: 82: high = read_i2c ((0xD2), 0x2D);
	movlw	(02Dh)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(0D2h)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	83
	
l7937:	
;main.c: 83: rs232_send_text("Gyro z-os: ");
	movlw	low(STR_12|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_12|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	84
	
l7939:	
;main.c: 84: gyro_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_gyro_skaliranje)
	movf	(main@high),w
	fcall	_gyro_skaliranje
	line	85
	
l7941:	
;main.c: 85: rs232_send_text(" rad/s\r\r");
	movlw	low(STR_13|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_13|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	90
	
l7943:	
;main.c: 90: PORTC = 0x01;
	movlw	(01h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(7)	;volatile
	line	91
	
l7945:	
;main.c: 91: low = read_i2c ((0x3C), 0x04);
	movlw	(04h)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(03Ch)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	92
	
l7947:	
;main.c: 92: high = read_i2c ((0x3C), 0x03);
	movlw	(03h)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(03Ch)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	93
	
l7949:	
;main.c: 93: rs232_send_text("Mag x-os: ");
	movlw	low(STR_14|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_14|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	94
	
l7951:	
;main.c: 94: mag_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_mag_skaliranje)
	movf	(main@high),w
	fcall	_mag_skaliranje
	line	95
	
l7953:	
;main.c: 95: rs232_send_text(" gauss\r");
	movlw	low(STR_15|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_15|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	98
	
l7955:	
;main.c: 98: low = read_i2c ((0x3C), 0x08);
	movlw	(08h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(03Ch)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	99
	
l7957:	
;main.c: 99: high = read_i2c ((0x3C), 0x07);
	movlw	(07h)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(03Ch)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	100
	
l7959:	
;main.c: 100: rs232_send_text("Mag y-os: ");
	movlw	low(STR_16|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_16|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	101
	
l7961:	
;main.c: 101: mag_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_mag_skaliranje)
	movf	(main@high),w
	fcall	_mag_skaliranje
	line	102
	
l7963:	
;main.c: 102: rs232_send_text(" gauss\r");
	movlw	low(STR_17|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_17|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	105
	
l7965:	
;main.c: 105: low = read_i2c ((0x3C), 0x06);
	movlw	(06h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(03Ch)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@low)
	line	106
	
l7967:	
;main.c: 106: high = read_i2c ((0x3C), 0x05);
	movlw	(05h)
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_read_i2c)
	movlw	(03Ch)
	fcall	_read_i2c
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(0+(?_read_i2c)),w
	movwf	(??_main+1)+0
	movf	(??_main+1)+0,w
	movwf	(main@high)
	line	107
	
l7969:	
;main.c: 107: rs232_send_text("Mag z-os: ");
	movlw	low(STR_18|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_18|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	108
	
l7971:	
;main.c: 108: mag_skaliranje (high, low);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@low),w
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(?_mag_skaliranje)
	movf	(main@high),w
	fcall	_mag_skaliranje
	line	109
	
l7973:	
;main.c: 109: rs232_send_text(" gauss\r");
	movlw	low(STR_19|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_19|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	line	111
	
l7975:	
;main.c: 111: _delay((unsigned long)((100)*(4000000/4000.0)));
	opt asmopt_off
movlw	130
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
movwf	((??_main+0)+0+1),f
	movlw	221
movwf	((??_main+0)+0),f
u4367:
	decfsz	((??_main+0)+0),f
	goto	u4367
	decfsz	((??_main+0)+0+1),f
	goto	u4367
	nop2
opt asmopt_on

	line	112
	
l7977:	
;main.c: 112: rs232_send_byte(0x0C);
	movlw	(0Ch)
	fcall	_rs232_send_byte
	goto	l7883
	line	113
	
l2797:	
	line	41
	goto	l7883
	
l2798:	
	line	114
	
l2799:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_read_i2c
psect	text647,local,class=CODE,delta=2
global __ptext647
__ptext647:

;; *************** function _read_i2c *****************
;; Defined at:
;;		line 46 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
;; Parameters:    Size  Location     Type
;;  ADRESA          1    wreg     unsigned char 
;;  adr_reg         1    0[BANK0 ] unsigned char 
;; Auto vars:     Size  Location     Type
;;  ADRESA          1    5[BANK0 ] unsigned char 
;;  data            1    4[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;                  2    0[BANK0 ] int 
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       2       0       0
;;      Locals:         0       2       0       0
;;      Temps:          0       2       0       0
;;      Totals:         0       6       0       0
;;Total ram usage:        6 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    4
;; This function calls:
;;		_i2c_open
;;		_rs232_send_text
;;		_i2c_put_byte
;;		_i2c_get_byte
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text647
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
	line	46
	global	__size_of_read_i2c
	__size_of_read_i2c	equ	__end_of_read_i2c-_read_i2c
	
_read_i2c:	
	opt	stack 3
; Regs used in _read_i2c: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
;read_i2c@ADRESA stored from wreg
	line	49
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(read_i2c@ADRESA)
	
l7833:	
;svastara.c: 47: char data;
;svastara.c: 49: if(i2c_open(ADRESA, 0x00)) {rs232_send_text("error1\n"); return -1;}
	clrf	(?_i2c_open)
	movf	(read_i2c@ADRESA),w
	fcall	_i2c_open
	xorlw	0
	skipnz
	goto	u4261
	goto	u4260
u4261:
	goto	l7841
u4260:
	
l7835:	
	movlw	low(STR_23|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_23|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	
l7837:	
	movlw	low(-1)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(?_read_i2c)
	movlw	high(-1)
	movwf	((?_read_i2c))+1
	goto	l3716
	
l7839:	
	goto	l3716
	
l3715:	
	line	50
	
l7841:	
;svastara.c: 50: if(i2c_put_byte(adr_reg) !=0) {rs232_send_text("error2\n"); return -1;}
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(read_i2c@adr_reg),w
	fcall	_i2c_put_byte
	xorlw	0
	skipnz
	goto	u4271
	goto	u4270
u4271:
	goto	l7849
u4270:
	
l7843:	
	movlw	low(STR_24|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_24|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	
l7845:	
	movlw	low(-1)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(?_read_i2c)
	movlw	high(-1)
	movwf	((?_read_i2c))+1
	goto	l3716
	
l7847:	
	goto	l3716
	
l3717:	
	line	52
	
l7849:	
;svastara.c: 52: if(i2c_open(ADRESA, 0x01)) {rs232_send_text("error3\n"); return -1;}
	clrf	(?_i2c_open)
	bsf	status,0
	rlf	(?_i2c_open),f
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(read_i2c@ADRESA),w
	fcall	_i2c_open
	xorlw	0
	skipnz
	goto	u4281
	goto	u4280
u4281:
	goto	l7857
u4280:
	
l7851:	
	movlw	low(STR_25|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_25|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	
l7853:	
	movlw	low(-1)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(?_read_i2c)
	movlw	high(-1)
	movwf	((?_read_i2c))+1
	goto	l3716
	
l7855:	
	goto	l3716
	
l3718:	
	line	53
	
l7857:	
;svastara.c: 53: data = i2c_get_byte(0);
	movlw	(0)
	fcall	_i2c_get_byte
	movf	(0+(?_i2c_get_byte)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_read_i2c+0)+0
	movf	(??_read_i2c+0)+0,w
	movwf	(read_i2c@data)
	line	55
	
l7859:	
;svastara.c: 55: return data;
	movf	(read_i2c@data),w
	movwf	(??_read_i2c+0)+0
	clrf	(??_read_i2c+0)+0+1
	movf	0+(??_read_i2c+0)+0,w
	movwf	(?_read_i2c)
	movf	1+(??_read_i2c+0)+0,w
	movwf	(?_read_i2c+1)
	goto	l3716
	
l7861:	
	line	56
	
l3716:	
	return
	opt stack 0
GLOBAL	__end_of_read_i2c
	__end_of_read_i2c:
;; =============== function _read_i2c ends ============

	signat	_read_i2c,8314
	global	_i2c_init
psect	text648,local,class=CODE,delta=2
global __ptext648
__ptext648:

;; *************** function _i2c_init *****************
;; Defined at:
;;		line 37 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
;; Parameters:    Size  Location     Type
;;  ADRESA1         1    wreg     unsigned char 
;;  ADRESA2         1    9[COMMON] unsigned char 
;;  ADRESA3         1   10[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  ADRESA1         1   11[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  2    9[COMMON] int 
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, btemp+1, pclath, cstack
;; 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:         1       0       0       0
;;      Temps:          0       0       0       0
;;      Totals:         3       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    4
;; This function calls:
;;		_i2c_open
;;		_rs232_send_text
;;		_i2c_put_byte
;;		_i2c_stop
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text648
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
	line	37
	global	__size_of_i2c_init
	__size_of_i2c_init	equ	__end_of_i2c_init-_i2c_init
	
_i2c_init:	
	opt	stack 3
; Regs used in _i2c_init: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
;i2c_init@ADRESA1 stored from wreg
	movwf	(i2c_init@ADRESA1)
	line	38
	
l7803:	
;svastara.c: 38: if (i2c_open(ADRESA1, 0x00)) { rs232_send_text("greska1\n"); return 0; }
	clrf	(?_i2c_open)
	movf	(i2c_init@ADRESA1),w
	fcall	_i2c_open
	xorlw	0
	skipnz
	goto	u4231
	goto	u4230
u4231:
	goto	l7811
u4230:
	
l7805:	
	movlw	low(STR_20|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_20|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	
l7807:	
	clrf	(?_i2c_init)
	clrf	(?_i2c_init+1)
	goto	l3710
	
l7809:	
	goto	l3710
	
l3709:	
	line	39
	
l7811:	
;svastara.c: 39: if (i2c_put_byte(ADRESA2) != 0) { rs232_send_text("greska2\n"); return 0; }
	movf	(i2c_init@ADRESA2),w
	fcall	_i2c_put_byte
	xorlw	0
	skipnz
	goto	u4241
	goto	u4240
u4241:
	goto	l7819
u4240:
	
l7813:	
	movlw	low(STR_21|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_21|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	
l7815:	
	clrf	(?_i2c_init)
	clrf	(?_i2c_init+1)
	goto	l3710
	
l7817:	
	goto	l3710
	
l3711:	
	line	40
	
l7819:	
;svastara.c: 40: if (i2c_put_byte(ADRESA3) ) {rs232_send_text("greska3\}"); return 0;}
	movf	(i2c_init@ADRESA3),w
	fcall	_i2c_put_byte
	xorlw	0
	skipnz
	goto	u4251
	goto	u4250
u4251:
	goto	l7827
u4250:
	
l7821:	
	movlw	low(STR_22|8000h)
	movwf	(?_rs232_send_text)
	movlw	high(STR_22|8000h)
	movwf	((?_rs232_send_text))+1
	fcall	_rs232_send_text
	
l7823:	
	clrf	(?_i2c_init)
	clrf	(?_i2c_init+1)
	goto	l3710
	
l7825:	
	goto	l3710
	
l3712:	
	line	41
	
l7827:	
;svastara.c: 41: i2c_stop();
	fcall	_i2c_stop
	line	42
	
l7829:	
;svastara.c: 42: return 1;
	movlw	low(01h)
	movwf	(?_i2c_init)
	movlw	high(01h)
	movwf	((?_i2c_init))+1
	goto	l3710
	
l7831:	
	line	43
	
l3710:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_init
	__end_of_i2c_init:
;; =============== function _i2c_init ends ============

	signat	_i2c_init,12410
	global	_i2c_open
psect	text649,local,class=CODE,delta=2
global __ptext649
__ptext649:

;; *************** function _i2c_open *****************
;; Defined at:
;;		line 241 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;  address         1    wreg     unsigned char 
;;  mode            1    6[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  address         1    8[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  1    wreg      unsigned char 
;; Registers used:
;;		wreg, 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:         1       0       0       0
;;      Locals:         1       0       0       0
;;      Temps:          1       0       0       0
;;      Totals:         3       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    3
;; This function calls:
;;		_i2c_restart
;;		_i2c_send_address
;;		_i2c_read_ack
;; This function is called by:
;;		_i2c_init
;;		_read_i2c
;;		_i2c_read
;; This function uses a non-reentrant model
;;
psect	text649
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	241
	global	__size_of_i2c_open
	__size_of_i2c_open	equ	__end_of_i2c_open-_i2c_open
	
_i2c_open:	
	opt	stack 3
; Regs used in _i2c_open: [wreg+status,2+status,0+pclath+cstack]
;i2c_open@address stored from wreg
	movwf	(i2c_open@address)
	line	242
	
l7789:	
;i2c.c: 242: i2c_restart();
	fcall	_i2c_restart
	line	243
	
l7791:	
;i2c.c: 243: i2c_send_address(address, mode);
	movf	(i2c_open@mode),w
	movwf	(??_i2c_open+0)+0
	movf	(??_i2c_open+0)+0,w
	movwf	(?_i2c_send_address)
	movf	(i2c_open@address),w
	fcall	_i2c_send_address
	line	244
	
l7793:	
;i2c.c: 244: if(i2c_read_ack())
	fcall	_i2c_read_ack
	xorlw	0
	skipnz
	goto	u4221
	goto	u4220
u4221:
	goto	l7799
u4220:
	line	245
	
l7795:	
;i2c.c: 245: return !0;
	movlw	(01h)
	goto	l954
	
l7797:	
	goto	l954
	
l953:	
	line	247
	
l7799:	
;i2c.c: 247: return 0;
	movlw	(0)
	goto	l954
	
l7801:	
	line	248
	
l954:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_open
	__end_of_i2c_open:
;; =============== function _i2c_open ends ============

	signat	_i2c_open,8313
	global	_i2c_get_byte
psect	text650,local,class=CODE,delta=2
global __ptext650
__ptext650:

;; *************** function _i2c_get_byte *****************
;; Defined at:
;;		line 164 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;  more            1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  more            1   12[COMMON] unsigned char 
;;  byte            2   10[COMMON] int 
;; Return value:  Size  Location     Type
;;                  2    6[COMMON] int 
;; Registers used:
;;		wreg, status,2, status,0, btemp+1, pclath, cstack
;; 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:         3       0       0       0
;;      Temps:          2       0       0       0
;;      Totals:         7       0       0       0
;;Total ram usage:        7 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_i2c_read_byte
;;		_i2c_send_ack
;; This function is called by:
;;		_read_i2c
;;		_i2c_get_string
;;		_i2c_read
;; This function uses a non-reentrant model
;;
psect	text650
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	164
	global	__size_of_i2c_get_byte
	__size_of_i2c_get_byte	equ	__end_of_i2c_get_byte-_i2c_get_byte
	
_i2c_get_byte:	
	opt	stack 4
; Regs used in _i2c_get_byte: [wreg+status,2+status,0+btemp+1+pclath+cstack]
;i2c_get_byte@more stored from wreg
	line	167
	movwf	(i2c_get_byte@more)
	
l7777:	
;i2c.c: 165: int byte;
;i2c.c: 167: if((byte = i2c_read_byte()) == (-1))
	fcall	_i2c_read_byte
	movwf	(??_i2c_get_byte+0)+0
	clrf	(??_i2c_get_byte+0)+0+1
	movf	0+(??_i2c_get_byte+0)+0,w
	movwf	(i2c_get_byte@byte)
	movf	1+(??_i2c_get_byte+0)+0,w
	movwf	(i2c_get_byte@byte+1)
	movlw	high(-1)
	xorwf	((i2c_get_byte@byte+1)),w
	skipz
	goto	u4215
	movlw	low(-1)
	xorwf	((i2c_get_byte@byte)),w
u4215:

	skipz
	goto	u4211
	goto	u4210
u4211:
	goto	l7783
u4210:
	line	168
	
l7779:	
;i2c.c: 168: return (-1);
	movlw	low(-1)
	movwf	(?_i2c_get_byte)
	movlw	high(-1)
	movwf	((?_i2c_get_byte))+1
	goto	l928
	
l7781:	
	goto	l928
	
l927:	
	line	169
	
l7783:	
;i2c.c: 169: i2c_send_ack(more);
	movf	(i2c_get_byte@more),w
	fcall	_i2c_send_ack
	line	171
	
l7785:	
;i2c.c: 171: return byte;
	movf	(i2c_get_byte@byte+1),w
	clrf	(?_i2c_get_byte+1)
	addwf	(?_i2c_get_byte+1)
	movf	(i2c_get_byte@byte),w
	clrf	(?_i2c_get_byte)
	addwf	(?_i2c_get_byte)

	goto	l928
	
l7787:	
	line	172
	
l928:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_get_byte
	__end_of_i2c_get_byte:
;; =============== function _i2c_get_byte ends ============

	signat	_i2c_get_byte,4218
	global	_i2c_put_byte
psect	text651,local,class=CODE,delta=2
global __ptext651
__ptext651:

;; *************** function _i2c_put_byte *****************
;; Defined at:
;;		line 153 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;  data            1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  data            1    4[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  1    wreg      char 
;; Registers used:
;;		wreg, 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:         1       0       0       0
;;      Temps:          0       0       0       0
;;      Totals:         1       0       0       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_i2c_send_byte
;;		_i2c_read_ack
;; This function is called by:
;;		_i2c_init
;;		_read_i2c
;;		_i2c_put_string
;; This function uses a non-reentrant model
;;
psect	text651
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	153
	global	__size_of_i2c_put_byte
	__size_of_i2c_put_byte	equ	__end_of_i2c_put_byte-_i2c_put_byte
	
_i2c_put_byte:	
	opt	stack 4
; Regs used in _i2c_put_byte: [wreg+status,2+status,0+pclath+cstack]
;i2c_put_byte@data stored from wreg
	movwf	(i2c_put_byte@data)
	line	154
	
l7767:	
;i2c.c: 154: if(i2c_send_byte(data))
	movf	(i2c_put_byte@data),w
	fcall	_i2c_send_byte
	xorlw	0
	skipnz
	goto	u4201
	goto	u4200
u4201:
	goto	l7773
u4200:
	line	155
	
l7769:	
;i2c.c: 155: return (-1);
	movlw	(-1)
	goto	l924
	
l7771:	
	goto	l924
	
l923:	
	line	156
	
l7773:	
;i2c.c: 156: return i2c_read_ack();
	fcall	_i2c_read_ack
	goto	l924
	
l7775:	
	line	157
	
l924:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_put_byte
	__end_of_i2c_put_byte:
;; =============== function _i2c_put_byte ends ============

	signat	_i2c_put_byte,4217
	global	_i2c_send_address
psect	text652,local,class=CODE,delta=2
global __ptext652
__ptext652:

;; *************** function _i2c_send_address *****************
;; Defined at:
;;		line 75 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;  address         1    wreg     unsigned char 
;;  rw              1    4[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  address         1    5[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  1    wreg      unsigned char 
;; Registers used:
;;		wreg, 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:         1       0       0       0
;;      Locals:         1       0       0       0
;;      Temps:          0       0       0       0
;;      Totals:         2       0       0       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_i2c_send_byte
;; This function is called by:
;;		_i2c_open
;; This function uses a non-reentrant model
;;
psect	text652
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	75
	global	__size_of_i2c_send_address
	__size_of_i2c_send_address	equ	__end_of_i2c_send_address-_i2c_send_address
	
_i2c_send_address:	
	opt	stack 3
; Regs used in _i2c_send_address: [wreg+status,2+status,0+pclath+cstack]
;i2c_send_address@address stored from wreg
	movwf	(i2c_send_address@address)
	line	76
	
l7763:	
;i2c.c: 76: return i2c_send_byte(address | (rw?1:0));
;	Return value of _i2c_send_address is never used
	movlw	0
	movf	(i2c_send_address@rw),f
	skipz
	movlw	1
	iorwf	(i2c_send_address@address),w
	fcall	_i2c_send_byte
	goto	l905
	
l7765:	
	line	77
	
l905:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_send_address
	__end_of_i2c_send_address:
;; =============== function _i2c_send_address ends ============

	signat	_i2c_send_address,8313
	global	_mag_skaliranje
psect	text653,local,class=CODE,delta=2
global __ptext653
__ptext653:

;; *************** function _mag_skaliranje *****************
;; Defined at:
;;		line 163 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
;; Parameters:    Size  Location     Type
;;  high            1    wreg     unsigned char 
;;  low             1   10[BANK0 ] unsigned char 
;; Auto vars:     Size  Location     Type
;;  high            1   28[BANK0 ] unsigned char 
;;  rez             3   29[BANK0 ] float 
;;  temp            2   32[BANK0 ] int 
;;  j               2   26[BANK0 ] int 
;;  d               2   24[BANK0 ] int 
;;  s               2   22[BANK0 ] int 
;;  t               2   20[BANK0 ] int 
;;  dt              2   18[BANK0 ] int 
;;  low_int         2   15[BANK0 ] unsigned int 
;;  high_int        2   13[BANK0 ] unsigned int 
;;  mask            1   17[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       1       0       0
;;      Locals:         0      21       0       0
;;      Temps:          0       2       0       0
;;      Totals:         0      24       0       0
;;Total ram usage:       24 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_rs232_send_byte
;;		___lwtoft
;;		___ftdiv
;;		___ftmul
;;		___fttol
;;		___awdiv
;;		___awmod
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text653
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
	line	163
	global	__size_of_mag_skaliranje
	__size_of_mag_skaliranje	equ	__end_of_mag_skaliranje-_mag_skaliranje
	
_mag_skaliranje:	
	opt	stack 5
; Regs used in _mag_skaliranje: [wreg+status,2+status,0+btemp+1+pclath+cstack]
;mag_skaliranje@high stored from wreg
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(mag_skaliranje@high)
	line	164
	
l7699:	
;svastara.c: 164: unsigned int high_int = 0,low_int = 0;
	clrf	(mag_skaliranje@high_int)
	clrf	(mag_skaliranje@high_int+1)
	clrf	(mag_skaliranje@low_int)
	clrf	(mag_skaliranje@low_int+1)
	line	165
;svastara.c: 165: int dt=0,t=0,s=0,d=0,j=0, temp=0;
	clrf	(mag_skaliranje@dt)
	clrf	(mag_skaliranje@dt+1)
	clrf	(mag_skaliranje@t)
	clrf	(mag_skaliranje@t+1)
	clrf	(mag_skaliranje@s)
	clrf	(mag_skaliranje@s+1)
	clrf	(mag_skaliranje@d)
	clrf	(mag_skaliranje@d+1)
	clrf	(mag_skaliranje@j)
	clrf	(mag_skaliranje@j+1)
	clrf	(mag_skaliranje@temp)
	clrf	(mag_skaliranje@temp+1)
	line	166
	
l7701:	
;svastara.c: 166: float rez = 0;
	movlw	0x0
	movwf	(mag_skaliranje@rez)
	movlw	0x0
	movwf	(mag_skaliranje@rez+1)
	movlw	0x0
	movwf	(mag_skaliranje@rez+2)
	line	167
	
l7703:	
;svastara.c: 167: unsigned char mask = 0x80;
	movlw	(080h)
	movwf	(??_mag_skaliranje+0)+0
	movf	(??_mag_skaliranje+0)+0,w
	movwf	(mag_skaliranje@mask)
	line	169
	
l7705:	
;svastara.c: 169: if(high&mask)
	movf	(mag_skaliranje@high),w
	andwf	(mag_skaliranje@mask),w
	btfsc	status,2
	goto	u4141
	goto	u4140
u4141:
	goto	l7711
u4140:
	line	171
	
l7707:	
;svastara.c: 170: {
;svastara.c: 171: high^=0xFF;
	movlw	(0FFh)
	movwf	(??_mag_skaliranje+0)+0
	movf	(??_mag_skaliranje+0)+0,w
	xorwf	(mag_skaliranje@high),f
	line	172
;svastara.c: 172: low^=0xFF;
	movlw	(0FFh)
	movwf	(??_mag_skaliranje+0)+0
	movf	(??_mag_skaliranje+0)+0,w
	xorwf	(mag_skaliranje@low),f
	line	173
;svastara.c: 173: low+=0x01;
	movlw	(01h)
	movwf	(??_mag_skaliranje+0)+0
	movf	(??_mag_skaliranje+0)+0,w
	addwf	(mag_skaliranje@low),f
	line	174
	
l7709:	
;svastara.c: 174: rs232_send_byte('-');
	movlw	(02Dh)
	fcall	_rs232_send_byte
	goto	l7711
	line	175
	
l3749:	
	line	177
	
l7711:	
;svastara.c: 175: }
;svastara.c: 177: high_int = high<<8;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(mag_skaliranje@high),w
	movwf	(??_mag_skaliranje+0)+0
	clrf	(??_mag_skaliranje+0)+0+1
	movf	(??_mag_skaliranje+0)+0,w
	movwf	(??_mag_skaliranje+0)+1
	clrf	(??_mag_skaliranje+0)+0
	movf	0+(??_mag_skaliranje+0)+0,w
	movwf	(mag_skaliranje@high_int)
	movf	1+(??_mag_skaliranje+0)+0,w
	movwf	(mag_skaliranje@high_int+1)
	line	178
	
l7713:	
;svastara.c: 178: low_int = low;
	movf	(mag_skaliranje@low),w
	movwf	(??_mag_skaliranje+0)+0
	clrf	(??_mag_skaliranje+0)+0+1
	movf	0+(??_mag_skaliranje+0)+0,w
	movwf	(mag_skaliranje@low_int)
	movf	1+(??_mag_skaliranje+0)+0,w
	movwf	(mag_skaliranje@low_int+1)
	line	179
	
l7715:	
;svastara.c: 179: rez = high_int + low_int;
	movf	(mag_skaliranje@low_int),w
	addwf	(mag_skaliranje@high_int),w
	movwf	(?___lwtoft)
	movf	(mag_skaliranje@low_int+1),w
	skipnc
	incf	(mag_skaliranje@low_int+1),w
	addwf	(mag_skaliranje@high_int+1),w
	movwf	1+(?___lwtoft)
	fcall	___lwtoft
	movf	(0+(?___lwtoft)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(mag_skaliranje@rez)
	movf	(1+(?___lwtoft)),w
	movwf	(mag_skaliranje@rez+1)
	movf	(2+(?___lwtoft)),w
	movwf	(mag_skaliranje@rez+2)
	line	182
	
l7717:	
;svastara.c: 182: rez /= 1575.38;
	movlw	0xec
	movwf	(?___ftdiv)
	movlw	0xc4
	movwf	(?___ftdiv+1)
	movlw	0x44
	movwf	(?___ftdiv+2)
	movf	(mag_skaliranje@rez),w
	movwf	0+(?___ftdiv)+03h
	movf	(mag_skaliranje@rez+1),w
	movwf	1+(?___ftdiv)+03h
	movf	(mag_skaliranje@rez+2),w
	movwf	2+(?___ftdiv)+03h
	fcall	___ftdiv
	movf	(0+(?___ftdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(mag_skaliranje@rez)
	movf	(1+(?___ftdiv)),w
	movwf	(mag_skaliranje@rez+1)
	movf	(2+(?___ftdiv)),w
	movwf	(mag_skaliranje@rez+2)
	line	183
	
l7719:	
;svastara.c: 183: rez *= 10000.0;
	movlw	0x40
	movwf	(?___ftmul)
	movlw	0x1c
	movwf	(?___ftmul+1)
	movlw	0x46
	movwf	(?___ftmul+2)
	movf	(mag_skaliranje@rez),w
	movwf	0+(?___ftmul)+03h
	movf	(mag_skaliranje@rez+1),w
	movwf	1+(?___ftmul)+03h
	movf	(mag_skaliranje@rez+2),w
	movwf	2+(?___ftmul)+03h
	fcall	___ftmul
	movf	(0+(?___ftmul)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(mag_skaliranje@rez)
	movf	(1+(?___ftmul)),w
	movwf	(mag_skaliranje@rez+1)
	movf	(2+(?___ftmul)),w
	movwf	(mag_skaliranje@rez+2)
	line	184
	
l7721:	
;svastara.c: 184: temp = (int)rez;
	movf	(mag_skaliranje@rez),w
	movwf	(?___fttol)
	movf	(mag_skaliranje@rez+1),w
	movwf	(?___fttol+1)
	movf	(mag_skaliranje@rez+2),w
	movwf	(?___fttol+2)
	fcall	___fttol
	movf	1+(((0+(?___fttol)))),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(mag_skaliranje@temp+1)
	addwf	(mag_skaliranje@temp+1)
	movf	0+(((0+(?___fttol)))),w
	clrf	(mag_skaliranje@temp)
	addwf	(mag_skaliranje@temp)

	line	186
	
l7723:	
;svastara.c: 186: dt = temp/10000;
	movlw	low(02710h)
	movwf	(?___awdiv)
	movlw	high(02710h)
	movwf	((?___awdiv))+1
	movf	(mag_skaliranje@temp+1),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(mag_skaliranje@temp),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(mag_skaliranje@dt+1)
	addwf	(mag_skaliranje@dt+1)
	movf	(0+(?___awdiv)),w
	clrf	(mag_skaliranje@dt)
	addwf	(mag_skaliranje@dt)

	line	187
	
l7725:	
;svastara.c: 187: t = (temp%10000)/1000;
	movlw	low(03E8h)
	movwf	(?___awdiv)
	movlw	high(03E8h)
	movwf	((?___awdiv))+1
	movf	(mag_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(mag_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(02710h)
	movwf	(?___awmod)
	movlw	high(02710h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(mag_skaliranje@t+1)
	addwf	(mag_skaliranje@t+1)
	movf	(0+(?___awdiv)),w
	clrf	(mag_skaliranje@t)
	addwf	(mag_skaliranje@t)

	line	188
	
l7727:	
;svastara.c: 188: s = (temp%1000)/100;
	movlw	low(064h)
	movwf	(?___awdiv)
	movlw	high(064h)
	movwf	((?___awdiv))+1
	movf	(mag_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(mag_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(03E8h)
	movwf	(?___awmod)
	movlw	high(03E8h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(mag_skaliranje@s+1)
	addwf	(mag_skaliranje@s+1)
	movf	(0+(?___awdiv)),w
	clrf	(mag_skaliranje@s)
	addwf	(mag_skaliranje@s)

	line	189
	
l7729:	
;svastara.c: 189: d = (temp%100)/10;
	movlw	low(0Ah)
	movwf	(?___awdiv)
	movlw	high(0Ah)
	movwf	((?___awdiv))+1
	movf	(mag_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(mag_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(064h)
	movwf	(?___awmod)
	movlw	high(064h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(mag_skaliranje@d+1)
	addwf	(mag_skaliranje@d+1)
	movf	(0+(?___awdiv)),w
	clrf	(mag_skaliranje@d)
	addwf	(mag_skaliranje@d)

	line	190
	
l7731:	
;svastara.c: 190: j = temp%10;
	movlw	low(0Ah)
	movwf	(?___awmod)
	movlw	high(0Ah)
	movwf	((?___awmod))+1
	movf	(mag_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(mag_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	fcall	___awmod
	movf	(1+(?___awmod)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(mag_skaliranje@j+1)
	addwf	(mag_skaliranje@j+1)
	movf	(0+(?___awmod)),w
	clrf	(mag_skaliranje@j)
	addwf	(mag_skaliranje@j)

	line	192
	
l7733:	
;svastara.c: 192: if (dt)
	movf	(mag_skaliranje@dt+1),w
	iorwf	(mag_skaliranje@dt),w
	skipnz
	goto	u4151
	goto	u4150
u4151:
	goto	l7737
u4150:
	line	193
	
l7735:	
;svastara.c: 193: rs232_send_byte(48+dt);
	movf	(mag_skaliranje@dt),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l3751
	line	194
	
l3750:	
	line	195
	
l7737:	
;svastara.c: 194: else
;svastara.c: 195: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	
l3751:	
	line	196
;svastara.c: 196: rs232_send_byte('.');
	movlw	(02Eh)
	fcall	_rs232_send_byte
	line	197
	
l7739:	
;svastara.c: 197: if (t)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(mag_skaliranje@t+1),w
	iorwf	(mag_skaliranje@t),w
	skipnz
	goto	u4161
	goto	u4160
u4161:
	goto	l7743
u4160:
	line	198
	
l7741:	
;svastara.c: 198: rs232_send_byte(48+t);
	movf	(mag_skaliranje@t),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7745
	line	199
	
l3752:	
	line	200
	
l7743:	
;svastara.c: 199: else
;svastara.c: 200: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7745
	
l3753:	
	line	201
	
l7745:	
;svastara.c: 201: if (s)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(mag_skaliranje@s+1),w
	iorwf	(mag_skaliranje@s),w
	skipnz
	goto	u4171
	goto	u4170
u4171:
	goto	l7749
u4170:
	line	202
	
l7747:	
;svastara.c: 202: rs232_send_byte(48+s);
	movf	(mag_skaliranje@s),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7751
	line	203
	
l3754:	
	line	204
	
l7749:	
;svastara.c: 203: else
;svastara.c: 204: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7751
	
l3755:	
	line	205
	
l7751:	
;svastara.c: 205: if (d)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(mag_skaliranje@d+1),w
	iorwf	(mag_skaliranje@d),w
	skipnz
	goto	u4181
	goto	u4180
u4181:
	goto	l7755
u4180:
	line	206
	
l7753:	
;svastara.c: 206: rs232_send_byte(48+d);
	movf	(mag_skaliranje@d),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7757
	line	207
	
l3756:	
	line	208
	
l7755:	
;svastara.c: 207: else
;svastara.c: 208: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7757
	
l3757:	
	line	209
	
l7757:	
;svastara.c: 209: if (j)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(mag_skaliranje@j+1),w
	iorwf	(mag_skaliranje@j),w
	skipnz
	goto	u4191
	goto	u4190
u4191:
	goto	l7761
u4190:
	line	210
	
l7759:	
;svastara.c: 210: rs232_send_byte(48+j);
	movf	(mag_skaliranje@j),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l3760
	line	211
	
l3758:	
	line	212
	
l7761:	
;svastara.c: 211: else
;svastara.c: 212: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l3760
	
l3759:	
	line	213
	
l3760:	
	return
	opt stack 0
GLOBAL	__end_of_mag_skaliranje
	__end_of_mag_skaliranje:
;; =============== function _mag_skaliranje ends ============

	signat	_mag_skaliranje,8312
	global	_gyro_skaliranje
psect	text654,local,class=CODE,delta=2
global __ptext654
__ptext654:

;; *************** function _gyro_skaliranje *****************
;; Defined at:
;;		line 111 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
;; Parameters:    Size  Location     Type
;;  high            1    wreg     unsigned char 
;;  low             1   10[BANK0 ] unsigned char 
;; Auto vars:     Size  Location     Type
;;  high            1   28[BANK0 ] unsigned char 
;;  rez             3   29[BANK0 ] float 
;;  temp            2   32[BANK0 ] int 
;;  j               2   26[BANK0 ] int 
;;  d               2   24[BANK0 ] int 
;;  s               2   22[BANK0 ] int 
;;  t               2   20[BANK0 ] int 
;;  dt              2   18[BANK0 ] int 
;;  low_int         2   15[BANK0 ] unsigned int 
;;  high_int        2   13[BANK0 ] unsigned int 
;;  mask            1   17[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       1       0       0
;;      Locals:         0      21       0       0
;;      Temps:          0       2       0       0
;;      Totals:         0      24       0       0
;;Total ram usage:       24 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_rs232_send_byte
;;		___lwtoft
;;		___ftdiv
;;		___ftmul
;;		___fttol
;;		___awdiv
;;		___awmod
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text654
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
	line	111
	global	__size_of_gyro_skaliranje
	__size_of_gyro_skaliranje	equ	__end_of_gyro_skaliranje-_gyro_skaliranje
	
_gyro_skaliranje:	
	opt	stack 5
; Regs used in _gyro_skaliranje: [wreg+status,2+status,0+btemp+1+pclath+cstack]
;gyro_skaliranje@high stored from wreg
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(gyro_skaliranje@high)
	line	112
	
l7635:	
;svastara.c: 112: unsigned int high_int = 0,low_int = 0;
	clrf	(gyro_skaliranje@high_int)
	clrf	(gyro_skaliranje@high_int+1)
	clrf	(gyro_skaliranje@low_int)
	clrf	(gyro_skaliranje@low_int+1)
	line	113
;svastara.c: 113: int dt=0,t=0,s=0,d=0,j=0, temp=0;
	clrf	(gyro_skaliranje@dt)
	clrf	(gyro_skaliranje@dt+1)
	clrf	(gyro_skaliranje@t)
	clrf	(gyro_skaliranje@t+1)
	clrf	(gyro_skaliranje@s)
	clrf	(gyro_skaliranje@s+1)
	clrf	(gyro_skaliranje@d)
	clrf	(gyro_skaliranje@d+1)
	clrf	(gyro_skaliranje@j)
	clrf	(gyro_skaliranje@j+1)
	clrf	(gyro_skaliranje@temp)
	clrf	(gyro_skaliranje@temp+1)
	line	114
	
l7637:	
;svastara.c: 114: float rez = 0;
	movlw	0x0
	movwf	(gyro_skaliranje@rez)
	movlw	0x0
	movwf	(gyro_skaliranje@rez+1)
	movlw	0x0
	movwf	(gyro_skaliranje@rez+2)
	line	115
	
l7639:	
;svastara.c: 115: unsigned char mask = 0x80;
	movlw	(080h)
	movwf	(??_gyro_skaliranje+0)+0
	movf	(??_gyro_skaliranje+0)+0,w
	movwf	(gyro_skaliranje@mask)
	line	117
	
l7641:	
;svastara.c: 117: if(high&mask)
	movf	(gyro_skaliranje@high),w
	andwf	(gyro_skaliranje@mask),w
	btfsc	status,2
	goto	u4081
	goto	u4080
u4081:
	goto	l7647
u4080:
	line	119
	
l7643:	
;svastara.c: 118: {
;svastara.c: 119: high^=0xFF;
	movlw	(0FFh)
	movwf	(??_gyro_skaliranje+0)+0
	movf	(??_gyro_skaliranje+0)+0,w
	xorwf	(gyro_skaliranje@high),f
	line	120
;svastara.c: 120: low^=0xFF;
	movlw	(0FFh)
	movwf	(??_gyro_skaliranje+0)+0
	movf	(??_gyro_skaliranje+0)+0,w
	xorwf	(gyro_skaliranje@low),f
	line	121
;svastara.c: 121: low+=0x01;
	movlw	(01h)
	movwf	(??_gyro_skaliranje+0)+0
	movf	(??_gyro_skaliranje+0)+0,w
	addwf	(gyro_skaliranje@low),f
	line	122
	
l7645:	
;svastara.c: 122: rs232_send_byte('-');
	movlw	(02Dh)
	fcall	_rs232_send_byte
	goto	l7647
	line	123
	
l3735:	
	line	125
	
l7647:	
;svastara.c: 123: }
;svastara.c: 125: high_int = high<<8;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(gyro_skaliranje@high),w
	movwf	(??_gyro_skaliranje+0)+0
	clrf	(??_gyro_skaliranje+0)+0+1
	movf	(??_gyro_skaliranje+0)+0,w
	movwf	(??_gyro_skaliranje+0)+1
	clrf	(??_gyro_skaliranje+0)+0
	movf	0+(??_gyro_skaliranje+0)+0,w
	movwf	(gyro_skaliranje@high_int)
	movf	1+(??_gyro_skaliranje+0)+0,w
	movwf	(gyro_skaliranje@high_int+1)
	line	126
	
l7649:	
;svastara.c: 126: low_int = low;
	movf	(gyro_skaliranje@low),w
	movwf	(??_gyro_skaliranje+0)+0
	clrf	(??_gyro_skaliranje+0)+0+1
	movf	0+(??_gyro_skaliranje+0)+0,w
	movwf	(gyro_skaliranje@low_int)
	movf	1+(??_gyro_skaliranje+0)+0,w
	movwf	(gyro_skaliranje@low_int+1)
	line	127
	
l7651:	
;svastara.c: 127: rez = high_int + low_int;
	movf	(gyro_skaliranje@low_int),w
	addwf	(gyro_skaliranje@high_int),w
	movwf	(?___lwtoft)
	movf	(gyro_skaliranje@low_int+1),w
	skipnc
	incf	(gyro_skaliranje@low_int+1),w
	addwf	(gyro_skaliranje@high_int+1),w
	movwf	1+(?___lwtoft)
	fcall	___lwtoft
	movf	(0+(?___lwtoft)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(gyro_skaliranje@rez)
	movf	(1+(?___lwtoft)),w
	movwf	(gyro_skaliranje@rez+1)
	movf	(2+(?___lwtoft)),w
	movwf	(gyro_skaliranje@rez+2)
	line	129
	
l7653:	
;svastara.c: 129: rez /= 131.072;
	movlw	0x12
	movwf	(?___ftdiv)
	movlw	0x3
	movwf	(?___ftdiv+1)
	movlw	0x43
	movwf	(?___ftdiv+2)
	movf	(gyro_skaliranje@rez),w
	movwf	0+(?___ftdiv)+03h
	movf	(gyro_skaliranje@rez+1),w
	movwf	1+(?___ftdiv)+03h
	movf	(gyro_skaliranje@rez+2),w
	movwf	2+(?___ftdiv)+03h
	fcall	___ftdiv
	movf	(0+(?___ftdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(gyro_skaliranje@rez)
	movf	(1+(?___ftdiv)),w
	movwf	(gyro_skaliranje@rez+1)
	movf	(2+(?___ftdiv)),w
	movwf	(gyro_skaliranje@rez+2)
	line	130
	
l7655:	
;svastara.c: 130: rez *= 100.0;
	movlw	0x0
	movwf	(?___ftmul)
	movlw	0xc8
	movwf	(?___ftmul+1)
	movlw	0x42
	movwf	(?___ftmul+2)
	movf	(gyro_skaliranje@rez),w
	movwf	0+(?___ftmul)+03h
	movf	(gyro_skaliranje@rez+1),w
	movwf	1+(?___ftmul)+03h
	movf	(gyro_skaliranje@rez+2),w
	movwf	2+(?___ftmul)+03h
	fcall	___ftmul
	movf	(0+(?___ftmul)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(gyro_skaliranje@rez)
	movf	(1+(?___ftmul)),w
	movwf	(gyro_skaliranje@rez+1)
	movf	(2+(?___ftmul)),w
	movwf	(gyro_skaliranje@rez+2)
	line	131
	
l7657:	
;svastara.c: 131: temp = (int) rez;
	movf	(gyro_skaliranje@rez),w
	movwf	(?___fttol)
	movf	(gyro_skaliranje@rez+1),w
	movwf	(?___fttol+1)
	movf	(gyro_skaliranje@rez+2),w
	movwf	(?___fttol+2)
	fcall	___fttol
	movf	1+(((0+(?___fttol)))),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(gyro_skaliranje@temp+1)
	addwf	(gyro_skaliranje@temp+1)
	movf	0+(((0+(?___fttol)))),w
	clrf	(gyro_skaliranje@temp)
	addwf	(gyro_skaliranje@temp)

	line	133
	
l7659:	
;svastara.c: 133: dt = temp/10000;
	movlw	low(02710h)
	movwf	(?___awdiv)
	movlw	high(02710h)
	movwf	((?___awdiv))+1
	movf	(gyro_skaliranje@temp+1),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(gyro_skaliranje@temp),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(gyro_skaliranje@dt+1)
	addwf	(gyro_skaliranje@dt+1)
	movf	(0+(?___awdiv)),w
	clrf	(gyro_skaliranje@dt)
	addwf	(gyro_skaliranje@dt)

	line	134
	
l7661:	
;svastara.c: 134: t = (temp%10000)/1000;
	movlw	low(03E8h)
	movwf	(?___awdiv)
	movlw	high(03E8h)
	movwf	((?___awdiv))+1
	movf	(gyro_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(gyro_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(02710h)
	movwf	(?___awmod)
	movlw	high(02710h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(gyro_skaliranje@t+1)
	addwf	(gyro_skaliranje@t+1)
	movf	(0+(?___awdiv)),w
	clrf	(gyro_skaliranje@t)
	addwf	(gyro_skaliranje@t)

	line	135
	
l7663:	
;svastara.c: 135: s = (temp%1000)/100;
	movlw	low(064h)
	movwf	(?___awdiv)
	movlw	high(064h)
	movwf	((?___awdiv))+1
	movf	(gyro_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(gyro_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(03E8h)
	movwf	(?___awmod)
	movlw	high(03E8h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(gyro_skaliranje@s+1)
	addwf	(gyro_skaliranje@s+1)
	movf	(0+(?___awdiv)),w
	clrf	(gyro_skaliranje@s)
	addwf	(gyro_skaliranje@s)

	line	136
	
l7665:	
;svastara.c: 136: d = (temp%100)/10;
	movlw	low(0Ah)
	movwf	(?___awdiv)
	movlw	high(0Ah)
	movwf	((?___awdiv))+1
	movf	(gyro_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(gyro_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(064h)
	movwf	(?___awmod)
	movlw	high(064h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(gyro_skaliranje@d+1)
	addwf	(gyro_skaliranje@d+1)
	movf	(0+(?___awdiv)),w
	clrf	(gyro_skaliranje@d)
	addwf	(gyro_skaliranje@d)

	line	137
	
l7667:	
;svastara.c: 137: j = temp%10;
	movlw	low(0Ah)
	movwf	(?___awmod)
	movlw	high(0Ah)
	movwf	((?___awmod))+1
	movf	(gyro_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(gyro_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	fcall	___awmod
	movf	(1+(?___awmod)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(gyro_skaliranje@j+1)
	addwf	(gyro_skaliranje@j+1)
	movf	(0+(?___awmod)),w
	clrf	(gyro_skaliranje@j)
	addwf	(gyro_skaliranje@j)

	line	139
	
l7669:	
;svastara.c: 139: if (dt)
	movf	(gyro_skaliranje@dt+1),w
	iorwf	(gyro_skaliranje@dt),w
	skipnz
	goto	u4091
	goto	u4090
u4091:
	goto	l7673
u4090:
	line	140
	
l7671:	
;svastara.c: 140: rs232_send_byte(48+dt);
	movf	(gyro_skaliranje@dt),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7675
	line	141
	
l3736:	
	line	142
	
l7673:	
;svastara.c: 141: else
;svastara.c: 142: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7675
	
l3737:	
	line	143
	
l7675:	
;svastara.c: 143: if (t)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(gyro_skaliranje@t+1),w
	iorwf	(gyro_skaliranje@t),w
	skipnz
	goto	u4101
	goto	u4100
u4101:
	goto	l7679
u4100:
	line	144
	
l7677:	
;svastara.c: 144: rs232_send_byte(48+t);
	movf	(gyro_skaliranje@t),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7681
	line	145
	
l3738:	
	line	146
	
l7679:	
;svastara.c: 145: else
;svastara.c: 146: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7681
	
l3739:	
	line	147
	
l7681:	
;svastara.c: 147: if (s)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(gyro_skaliranje@s+1),w
	iorwf	(gyro_skaliranje@s),w
	skipnz
	goto	u4111
	goto	u4110
u4111:
	goto	l7685
u4110:
	line	148
	
l7683:	
;svastara.c: 148: rs232_send_byte(48+s);
	movf	(gyro_skaliranje@s),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l3741
	line	149
	
l3740:	
	line	150
	
l7685:	
;svastara.c: 149: else
;svastara.c: 150: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	
l3741:	
	line	151
;svastara.c: 151: rs232_send_byte('.');
	movlw	(02Eh)
	fcall	_rs232_send_byte
	line	152
	
l7687:	
;svastara.c: 152: if (d)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(gyro_skaliranje@d+1),w
	iorwf	(gyro_skaliranje@d),w
	skipnz
	goto	u4121
	goto	u4120
u4121:
	goto	l7691
u4120:
	line	153
	
l7689:	
;svastara.c: 153: rs232_send_byte(48+d);
	movf	(gyro_skaliranje@d),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7693
	line	154
	
l3742:	
	line	155
	
l7691:	
;svastara.c: 154: else
;svastara.c: 155: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7693
	
l3743:	
	line	156
	
l7693:	
;svastara.c: 156: if (j)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(gyro_skaliranje@j+1),w
	iorwf	(gyro_skaliranje@j),w
	skipnz
	goto	u4131
	goto	u4130
u4131:
	goto	l7697
u4130:
	line	157
	
l7695:	
;svastara.c: 157: rs232_send_byte(48+j);
	movf	(gyro_skaliranje@j),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l3746
	line	158
	
l3744:	
	line	159
	
l7697:	
;svastara.c: 158: else
;svastara.c: 159: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l3746
	
l3745:	
	line	160
	
l3746:	
	return
	opt stack 0
GLOBAL	__end_of_gyro_skaliranje
	__end_of_gyro_skaliranje:
;; =============== function _gyro_skaliranje ends ============

	signat	_gyro_skaliranje,8312
	global	_acc_skaliranje
psect	text655,local,class=CODE,delta=2
global __ptext655
__ptext655:

;; *************** function _acc_skaliranje *****************
;; Defined at:
;;		line 59 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
;; Parameters:    Size  Location     Type
;;  high            1    wreg     unsigned char 
;;  low             1   10[BANK0 ] unsigned char 
;; Auto vars:     Size  Location     Type
;;  high            1   28[BANK0 ] unsigned char 
;;  rez             3   29[BANK0 ] float 
;;  temp            2   32[BANK0 ] int 
;;  j               2   26[BANK0 ] int 
;;  d               2   24[BANK0 ] int 
;;  s               2   22[BANK0 ] int 
;;  t               2   20[BANK0 ] int 
;;  dt              2   18[BANK0 ] int 
;;  low_int         2   15[BANK0 ] unsigned int 
;;  high_int        2   13[BANK0 ] unsigned int 
;;  mask            1   17[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         0       1       0       0
;;      Locals:         0      21       0       0
;;      Temps:          0       2       0       0
;;      Totals:         0      24       0       0
;;Total ram usage:       24 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_rs232_send_byte
;;		___lwtoft
;;		___ftdiv
;;		___ftmul
;;		___fttol
;;		___awdiv
;;		___awmod
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text655
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
	line	59
	global	__size_of_acc_skaliranje
	__size_of_acc_skaliranje	equ	__end_of_acc_skaliranje-_acc_skaliranje
	
_acc_skaliranje:	
	opt	stack 5
; Regs used in _acc_skaliranje: [wreg+status,2+status,0+btemp+1+pclath+cstack]
;acc_skaliranje@high stored from wreg
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(acc_skaliranje@high)
	line	60
	
l7571:	
;svastara.c: 60: unsigned int high_int = 0,low_int = 0;
	clrf	(acc_skaliranje@high_int)
	clrf	(acc_skaliranje@high_int+1)
	clrf	(acc_skaliranje@low_int)
	clrf	(acc_skaliranje@low_int+1)
	line	61
;svastara.c: 61: int dt=0,t=0,s=0,d=0,j=0, temp=0;
	clrf	(acc_skaliranje@dt)
	clrf	(acc_skaliranje@dt+1)
	clrf	(acc_skaliranje@t)
	clrf	(acc_skaliranje@t+1)
	clrf	(acc_skaliranje@s)
	clrf	(acc_skaliranje@s+1)
	clrf	(acc_skaliranje@d)
	clrf	(acc_skaliranje@d+1)
	clrf	(acc_skaliranje@j)
	clrf	(acc_skaliranje@j+1)
	clrf	(acc_skaliranje@temp)
	clrf	(acc_skaliranje@temp+1)
	line	62
	
l7573:	
;svastara.c: 62: float rez = 0;
	movlw	0x0
	movwf	(acc_skaliranje@rez)
	movlw	0x0
	movwf	(acc_skaliranje@rez+1)
	movlw	0x0
	movwf	(acc_skaliranje@rez+2)
	line	63
	
l7575:	
;svastara.c: 63: unsigned char mask = 0x80;
	movlw	(080h)
	movwf	(??_acc_skaliranje+0)+0
	movf	(??_acc_skaliranje+0)+0,w
	movwf	(acc_skaliranje@mask)
	line	65
	
l7577:	
;svastara.c: 65: if(high&mask)
	movf	(acc_skaliranje@high),w
	andwf	(acc_skaliranje@mask),w
	btfsc	status,2
	goto	u4021
	goto	u4020
u4021:
	goto	l7583
u4020:
	line	67
	
l7579:	
;svastara.c: 66: {
;svastara.c: 67: high^=0xFF;
	movlw	(0FFh)
	movwf	(??_acc_skaliranje+0)+0
	movf	(??_acc_skaliranje+0)+0,w
	xorwf	(acc_skaliranje@high),f
	line	68
;svastara.c: 68: low^=0xFF;
	movlw	(0FFh)
	movwf	(??_acc_skaliranje+0)+0
	movf	(??_acc_skaliranje+0)+0,w
	xorwf	(acc_skaliranje@low),f
	line	69
;svastara.c: 69: low+=0x01;
	movlw	(01h)
	movwf	(??_acc_skaliranje+0)+0
	movf	(??_acc_skaliranje+0)+0,w
	addwf	(acc_skaliranje@low),f
	line	70
	
l7581:	
;svastara.c: 70: rs232_send_byte('-');
	movlw	(02Dh)
	fcall	_rs232_send_byte
	goto	l7583
	line	71
	
l3721:	
	line	73
	
l7583:	
;svastara.c: 71: }
;svastara.c: 73: high_int = high<<8;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(acc_skaliranje@high),w
	movwf	(??_acc_skaliranje+0)+0
	clrf	(??_acc_skaliranje+0)+0+1
	movf	(??_acc_skaliranje+0)+0,w
	movwf	(??_acc_skaliranje+0)+1
	clrf	(??_acc_skaliranje+0)+0
	movf	0+(??_acc_skaliranje+0)+0,w
	movwf	(acc_skaliranje@high_int)
	movf	1+(??_acc_skaliranje+0)+0,w
	movwf	(acc_skaliranje@high_int+1)
	line	74
	
l7585:	
;svastara.c: 74: low_int = low;
	movf	(acc_skaliranje@low),w
	movwf	(??_acc_skaliranje+0)+0
	clrf	(??_acc_skaliranje+0)+0+1
	movf	0+(??_acc_skaliranje+0)+0,w
	movwf	(acc_skaliranje@low_int)
	movf	1+(??_acc_skaliranje+0)+0,w
	movwf	(acc_skaliranje@low_int+1)
	line	75
	
l7587:	
;svastara.c: 75: rez = high_int + low_int;
	movf	(acc_skaliranje@low_int),w
	addwf	(acc_skaliranje@high_int),w
	movwf	(?___lwtoft)
	movf	(acc_skaliranje@low_int+1),w
	skipnc
	incf	(acc_skaliranje@low_int+1),w
	addwf	(acc_skaliranje@high_int+1),w
	movwf	1+(?___lwtoft)
	fcall	___lwtoft
	movf	(0+(?___lwtoft)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(acc_skaliranje@rez)
	movf	(1+(?___lwtoft)),w
	movwf	(acc_skaliranje@rez+1)
	movf	(2+(?___lwtoft)),w
	movwf	(acc_skaliranje@rez+2)
	line	77
	
l7589:	
;svastara.c: 77: rez /= 16384.0;
	movlw	0x0
	movwf	(?___ftdiv)
	movlw	0x80
	movwf	(?___ftdiv+1)
	movlw	0x46
	movwf	(?___ftdiv+2)
	movf	(acc_skaliranje@rez),w
	movwf	0+(?___ftdiv)+03h
	movf	(acc_skaliranje@rez+1),w
	movwf	1+(?___ftdiv)+03h
	movf	(acc_skaliranje@rez+2),w
	movwf	2+(?___ftdiv)+03h
	fcall	___ftdiv
	movf	(0+(?___ftdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(acc_skaliranje@rez)
	movf	(1+(?___ftdiv)),w
	movwf	(acc_skaliranje@rez+1)
	movf	(2+(?___ftdiv)),w
	movwf	(acc_skaliranje@rez+2)
	line	78
	
l7591:	
;svastara.c: 78: rez *= 10000.0;
	movlw	0x40
	movwf	(?___ftmul)
	movlw	0x1c
	movwf	(?___ftmul+1)
	movlw	0x46
	movwf	(?___ftmul+2)
	movf	(acc_skaliranje@rez),w
	movwf	0+(?___ftmul)+03h
	movf	(acc_skaliranje@rez+1),w
	movwf	1+(?___ftmul)+03h
	movf	(acc_skaliranje@rez+2),w
	movwf	2+(?___ftmul)+03h
	fcall	___ftmul
	movf	(0+(?___ftmul)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(acc_skaliranje@rez)
	movf	(1+(?___ftmul)),w
	movwf	(acc_skaliranje@rez+1)
	movf	(2+(?___ftmul)),w
	movwf	(acc_skaliranje@rez+2)
	line	79
	
l7593:	
;svastara.c: 79: temp = (int) rez;
	movf	(acc_skaliranje@rez),w
	movwf	(?___fttol)
	movf	(acc_skaliranje@rez+1),w
	movwf	(?___fttol+1)
	movf	(acc_skaliranje@rez+2),w
	movwf	(?___fttol+2)
	fcall	___fttol
	movf	1+(((0+(?___fttol)))),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(acc_skaliranje@temp+1)
	addwf	(acc_skaliranje@temp+1)
	movf	0+(((0+(?___fttol)))),w
	clrf	(acc_skaliranje@temp)
	addwf	(acc_skaliranje@temp)

	line	81
	
l7595:	
;svastara.c: 81: dt = temp/10000;
	movlw	low(02710h)
	movwf	(?___awdiv)
	movlw	high(02710h)
	movwf	((?___awdiv))+1
	movf	(acc_skaliranje@temp+1),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(acc_skaliranje@temp),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(acc_skaliranje@dt+1)
	addwf	(acc_skaliranje@dt+1)
	movf	(0+(?___awdiv)),w
	clrf	(acc_skaliranje@dt)
	addwf	(acc_skaliranje@dt)

	line	82
	
l7597:	
;svastara.c: 82: t = (temp%10000)/1000;
	movlw	low(03E8h)
	movwf	(?___awdiv)
	movlw	high(03E8h)
	movwf	((?___awdiv))+1
	movf	(acc_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(acc_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(02710h)
	movwf	(?___awmod)
	movlw	high(02710h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(acc_skaliranje@t+1)
	addwf	(acc_skaliranje@t+1)
	movf	(0+(?___awdiv)),w
	clrf	(acc_skaliranje@t)
	addwf	(acc_skaliranje@t)

	line	83
	
l7599:	
;svastara.c: 83: s = (temp%1000)/100;
	movlw	low(064h)
	movwf	(?___awdiv)
	movlw	high(064h)
	movwf	((?___awdiv))+1
	movf	(acc_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(acc_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(03E8h)
	movwf	(?___awmod)
	movlw	high(03E8h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(acc_skaliranje@s+1)
	addwf	(acc_skaliranje@s+1)
	movf	(0+(?___awdiv)),w
	clrf	(acc_skaliranje@s)
	addwf	(acc_skaliranje@s)

	line	84
	
l7601:	
;svastara.c: 84: d = (temp%100)/10;
	movlw	low(0Ah)
	movwf	(?___awdiv)
	movlw	high(0Ah)
	movwf	((?___awdiv))+1
	movf	(acc_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(acc_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	movlw	low(064h)
	movwf	(?___awmod)
	movlw	high(064h)
	movwf	((?___awmod))+1
	fcall	___awmod
	movf	(1+(?___awmod)),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(0+(?___awmod)),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(acc_skaliranje@d+1)
	addwf	(acc_skaliranje@d+1)
	movf	(0+(?___awdiv)),w
	clrf	(acc_skaliranje@d)
	addwf	(acc_skaliranje@d)

	line	85
	
l7603:	
;svastara.c: 85: j = temp%10;
	movlw	low(0Ah)
	movwf	(?___awmod)
	movlw	high(0Ah)
	movwf	((?___awmod))+1
	movf	(acc_skaliranje@temp+1),w
	clrf	1+(?___awmod)+02h
	addwf	1+(?___awmod)+02h
	movf	(acc_skaliranje@temp),w
	clrf	0+(?___awmod)+02h
	addwf	0+(?___awmod)+02h

	fcall	___awmod
	movf	(1+(?___awmod)),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(acc_skaliranje@j+1)
	addwf	(acc_skaliranje@j+1)
	movf	(0+(?___awmod)),w
	clrf	(acc_skaliranje@j)
	addwf	(acc_skaliranje@j)

	line	87
	
l7605:	
;svastara.c: 87: if (dt)
	movf	(acc_skaliranje@dt+1),w
	iorwf	(acc_skaliranje@dt),w
	skipnz
	goto	u4031
	goto	u4030
u4031:
	goto	l7609
u4030:
	line	88
	
l7607:	
;svastara.c: 88: rs232_send_byte(48+dt);
	movf	(acc_skaliranje@dt),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l3723
	line	89
	
l3722:	
	line	90
	
l7609:	
;svastara.c: 89: else
;svastara.c: 90: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	
l3723:	
	line	91
;svastara.c: 91: rs232_send_byte('.');
	movlw	(02Eh)
	fcall	_rs232_send_byte
	line	92
	
l7611:	
;svastara.c: 92: if (t)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(acc_skaliranje@t+1),w
	iorwf	(acc_skaliranje@t),w
	skipnz
	goto	u4041
	goto	u4040
u4041:
	goto	l7615
u4040:
	line	93
	
l7613:	
;svastara.c: 93: rs232_send_byte(48+t);
	movf	(acc_skaliranje@t),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7617
	line	94
	
l3724:	
	line	95
	
l7615:	
;svastara.c: 94: else
;svastara.c: 95: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7617
	
l3725:	
	line	96
	
l7617:	
;svastara.c: 96: if (s)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(acc_skaliranje@s+1),w
	iorwf	(acc_skaliranje@s),w
	skipnz
	goto	u4051
	goto	u4050
u4051:
	goto	l7621
u4050:
	line	97
	
l7619:	
;svastara.c: 97: rs232_send_byte(48+s);
	movf	(acc_skaliranje@s),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7623
	line	98
	
l3726:	
	line	99
	
l7621:	
;svastara.c: 98: else
;svastara.c: 99: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7623
	
l3727:	
	line	100
	
l7623:	
;svastara.c: 100: if (d)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(acc_skaliranje@d+1),w
	iorwf	(acc_skaliranje@d),w
	skipnz
	goto	u4061
	goto	u4060
u4061:
	goto	l7627
u4060:
	line	101
	
l7625:	
;svastara.c: 101: rs232_send_byte(48+d);
	movf	(acc_skaliranje@d),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l7629
	line	102
	
l3728:	
	line	103
	
l7627:	
;svastara.c: 102: else
;svastara.c: 103: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l7629
	
l3729:	
	line	104
	
l7629:	
;svastara.c: 104: if (j)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(acc_skaliranje@j+1),w
	iorwf	(acc_skaliranje@j),w
	skipnz
	goto	u4071
	goto	u4070
u4071:
	goto	l7633
u4070:
	line	105
	
l7631:	
;svastara.c: 105: rs232_send_byte(48+j);
	movf	(acc_skaliranje@j),w
	addlw	030h
	fcall	_rs232_send_byte
	goto	l3732
	line	106
	
l3730:	
	line	107
	
l7633:	
;svastara.c: 106: else
;svastara.c: 107: rs232_send_byte(48);
	movlw	(030h)
	fcall	_rs232_send_byte
	goto	l3732
	
l3731:	
	line	108
	
l3732:	
	return
	opt stack 0
GLOBAL	__end_of_acc_skaliranje
	__end_of_acc_skaliranje:
;; =============== function _acc_skaliranje ends ============

	signat	_acc_skaliranje,8312
	global	_i2c_read_byte
psect	text656,local,class=CODE,delta=2
global __ptext656
__ptext656:

;; *************** function _i2c_read_byte *****************
;; Defined at:
;;		line 106 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  i               2    3[COMMON] int 
;;  byte            1    5[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  1    wreg      unsigned char 
;; Registers used:
;;		wreg, status,2, status,0, btemp+1, 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:         3       0       0       0
;;      Temps:          2       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:
;;		_i2c_wait_for_SCL
;; This function is called by:
;;		_i2c_get_byte
;; This function uses a non-reentrant model
;;
psect	text656
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	106
	global	__size_of_i2c_read_byte
	__size_of_i2c_read_byte	equ	__end_of_i2c_read_byte-_i2c_read_byte
	
_i2c_read_byte:	
	opt	stack 4
; Regs used in _i2c_read_byte: [wreg+status,2+status,0+btemp+1+pclath+cstack]
	line	108
	
l7547:	
;i2c.c: 107: int i;
;i2c.c: 108: unsigned char byte = 0;
	clrf	(i2c_read_byte@byte)
	line	110
	
l7549:	
;i2c.c: 110: for(i=0; i<8; i++)
	clrf	(i2c_read_byte@i)
	clrf	(i2c_read_byte@i+1)
	
l7551:	
	movf	(i2c_read_byte@i+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(08h))^80h
	subwf	btemp+1,w
	skipz
	goto	u3995
	movlw	low(08h)
	subwf	(i2c_read_byte@i),w
u3995:

	skipc
	goto	u3991
	goto	u3990
u3991:
	goto	l912
u3990:
	goto	l7567
	
l7553:	
	goto	l7567
	line	111
	
l912:	
	line	112
;i2c.c: 111: {
;i2c.c: 112: TRISB6 = 0;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1078/8)^080h,(1078)&7
	line	113
;i2c.c: 113: _delay((unsigned long)((5)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	clrwdt
	opt asmopt_on

	line	114
;i2c.c: 114: TRISB4 = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1076/8)^080h,(1076)&7
	line	116
;i2c.c: 116: TRISB6 = 1;
	bsf	(1078/8)^080h,(1078)&7
	line	117
	
l7555:	
;i2c.c: 117: if(i2c_wait_for_SCL())
	fcall	_i2c_wait_for_SCL
	xorlw	0
	skipnz
	goto	u4001
	goto	u4000
u4001:
	goto	l914
u4000:
	line	118
	
l7557:	
;i2c.c: 118: return (-1);
	movlw	(0FFh)
	goto	l915
	
l7559:	
	goto	l915
	
l914:	
	line	120
;i2c.c: 120: _delay((unsigned long)((4)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on

	line	121
	
l7561:	
;i2c.c: 121: byte = byte << 1;
	movf	(i2c_read_byte@byte),w
	movwf	(??_i2c_read_byte+0)+0
	addwf	(??_i2c_read_byte+0)+0,w
	movwf	(??_i2c_read_byte+1)+0
	movf	(??_i2c_read_byte+1)+0,w
	movwf	(i2c_read_byte@byte)
	line	122
;i2c.c: 122: byte |= RB4;
	movlw	0
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfsc	(52/8),(52)&7
	movlw	1
	movwf	(??_i2c_read_byte+0)+0
	movf	(??_i2c_read_byte+0)+0,w
	iorwf	(i2c_read_byte@byte),f
	line	110
	
l7563:	
	movlw	low(01h)
	addwf	(i2c_read_byte@i),f
	skipnc
	incf	(i2c_read_byte@i+1),f
	movlw	high(01h)
	addwf	(i2c_read_byte@i+1),f
	
l7565:	
	movf	(i2c_read_byte@i+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(08h))^80h
	subwf	btemp+1,w
	skipz
	goto	u4015
	movlw	low(08h)
	subwf	(i2c_read_byte@i),w
u4015:

	skipc
	goto	u4011
	goto	u4010
u4011:
	goto	l912
u4010:
	goto	l7567
	
l913:	
	line	124
	
l7567:	
;i2c.c: 123: }
;i2c.c: 124: return byte;
	movf	(i2c_read_byte@byte),w
	goto	l915
	
l7569:	
	line	125
	
l915:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_read_byte
	__end_of_i2c_read_byte:
;; =============== function _i2c_read_byte ends ============

	signat	_i2c_read_byte,89
	global	_i2c_read_ack
psect	text657,local,class=CODE,delta=2
global __ptext657
__ptext657:

;; *************** function _i2c_read_ack *****************
;; Defined at:
;;		line 85 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  ack             1    2[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  1    wreg      char 
;; Registers used:
;;		wreg, 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:         1       0       0       0
;;      Temps:          1       0       0       0
;;      Totals:         2       0       0       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_i2c_wait_for_SCL
;; This function is called by:
;;		_i2c_put_byte
;;		_i2c_open
;; This function uses a non-reentrant model
;;
psect	text657
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	85
	global	__size_of_i2c_read_ack
	__size_of_i2c_read_ack	equ	__end_of_i2c_read_ack-_i2c_read_ack
	
_i2c_read_ack:	
	opt	stack 4
; Regs used in _i2c_read_ack: [wreg+pclath+cstack]
	line	88
	
l7533:	
;i2c.c: 86: unsigned char ack;
;i2c.c: 88: TRISB6 = 0;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1078/8)^080h,(1078)&7
	line	89
;i2c.c: 89: TRISB4 = 1;
	bsf	(1076/8)^080h,(1076)&7
	line	90
;i2c.c: 90: _delay((unsigned long)((4)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on

	line	91
;i2c.c: 91: TRISB6 = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1078/8)^080h,(1078)&7
	line	92
;i2c.c: 92: _delay((unsigned long)((1)*(4000000/4000000.0)));
		opt asmopt_off
	clrwdt
	opt asmopt_on

	line	93
	
l7535:	
;i2c.c: 93: ack = RB4;
	movlw	0
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfsc	(52/8),(52)&7
	movlw	1
	movwf	(??_i2c_read_ack+0)+0
	movf	(??_i2c_read_ack+0)+0,w
	movwf	(i2c_read_ack@ack)
	line	96
	
l7537:	
;i2c.c: 96: if(i2c_wait_for_SCL())
	fcall	_i2c_wait_for_SCL
	xorlw	0
	skipnz
	goto	u3981
	goto	u3980
u3981:
	goto	l7543
u3980:
	line	97
	
l7539:	
;i2c.c: 97: return (-1);
	movlw	(-1)
	goto	l909
	
l7541:	
	goto	l909
	
l908:	
	line	98
	
l7543:	
;i2c.c: 98: return ack;
	movf	(i2c_read_ack@ack),w
	goto	l909
	
l7545:	
	line	99
	
l909:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_read_ack
	__end_of_i2c_read_ack:
;; =============== function _i2c_read_ack ends ============

	signat	_i2c_read_ack,89
	global	_i2c_send_byte
psect	text658,local,class=CODE,delta=2
global __ptext658
__ptext658:

;; *************** function _i2c_send_byte *****************
;; Defined at:
;;		line 42 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;  byte            1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  byte            1    2[COMMON] unsigned char 
;;  i               1    3[COMMON] char 
;; Return value:  Size  Location     Type
;;                  1    wreg      unsigned char 
;; Registers used:
;;		wreg, 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:         2       0       0       0
;;      Temps:          1       0       0       0
;;      Totals:         3       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_i2c_wait_for_SCL
;; This function is called by:
;;		_i2c_send_address
;;		_i2c_put_byte
;; This function uses a non-reentrant model
;;
psect	text658
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	42
	global	__size_of_i2c_send_byte
	__size_of_i2c_send_byte	equ	__end_of_i2c_send_byte-_i2c_send_byte
	
_i2c_send_byte:	
	opt	stack 4
; Regs used in _i2c_send_byte: [wreg+status,2+status,0+pclath+cstack]
;i2c_send_byte@byte stored from wreg
	line	45
	movwf	(i2c_send_byte@byte)
	
l7509:	
;i2c.c: 43: signed char i;
;i2c.c: 45: for(i=7; i>=0; i--)
	movlw	(07h)
	movwf	(??_i2c_send_byte+0)+0
	movf	(??_i2c_send_byte+0)+0,w
	movwf	(i2c_send_byte@i)
	
l7511:	
	btfss	(i2c_send_byte@i),7
	goto	u3901
	goto	u3900
u3901:
	goto	l897
u3900:
	goto	l7529
	
l7513:	
	goto	l7529
	line	46
	
l897:	
	line	47
;i2c.c: 46: {
;i2c.c: 47: TRISB6 = 0;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1078/8)^080h,(1078)&7
	line	50
	
l7515:	
;i2c.c: 50: TRISB4 = ((byte>>i)&0x01);
	movf	(i2c_send_byte@byte),w
	movwf	(??_i2c_send_byte+0)+0
	incf	(i2c_send_byte@i),w
	goto	u3914
u3915:
	clrc
	rrf	(??_i2c_send_byte+0)+0,f
u3914:
	addlw	-1
	skipz
	goto	u3915
	btfsc	0+(??_i2c_send_byte+0)+0,0
	goto	u3921
	goto	u3920
	
u3921:
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1076/8)^080h,(1076)&7
	goto	u3934
u3920:
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1076/8)^080h,(1076)&7
u3934:
	line	51
;i2c.c: 51: if ((byte>>i)&0x01) {
	movf	(i2c_send_byte@byte),w
	movwf	(??_i2c_send_byte+0)+0
	incf	(i2c_send_byte@i),w
	goto	u3944
u3945:
	clrc
	rrf	(??_i2c_send_byte+0)+0,f
u3944:
	addlw	-1
	skipz
	goto	u3945
	btfss	0+(??_i2c_send_byte+0)+0,(0)&7
	goto	u3951
	goto	u3950
u3951:
	goto	l899
u3950:
	line	52
	
l7517:	
;i2c.c: 52: TRISB4 = 1;
	bsf	(1076/8)^080h,(1076)&7
	line	53
;i2c.c: 53: }else {
	goto	l900
	
l899:	
	line	54
;i2c.c: 54: TRISB4 = 0;
	bcf	(1076/8)^080h,(1076)&7
	line	55
	
l900:	
	line	56
;i2c.c: 55: }
;i2c.c: 56: _delay((unsigned long)((1)*(4000000/4000000.0)));
		opt asmopt_off
	clrwdt
	opt asmopt_on

	line	57
;i2c.c: 57: TRISB6 = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1078/8)^080h,(1078)&7
	line	59
	
l7519:	
;i2c.c: 59: if(i2c_wait_for_SCL())
	fcall	_i2c_wait_for_SCL
	xorlw	0
	skipnz
	goto	u3961
	goto	u3960
u3961:
	goto	l901
u3960:
	line	60
	
l7521:	
;i2c.c: 60: return !0;
	movlw	(01h)
	goto	l902
	
l7523:	
	goto	l902
	
l901:	
	line	62
;i2c.c: 62: _delay((unsigned long)((4)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on

	line	45
	
l7525:	
	movlw	(-1)
	movwf	(??_i2c_send_byte+0)+0
	movf	(??_i2c_send_byte+0)+0,w
	addwf	(i2c_send_byte@i),f
	
l7527:	
	btfss	(i2c_send_byte@i),7
	goto	u3971
	goto	u3970
u3971:
	goto	l897
u3970:
	goto	l7529
	
l898:	
	line	65
	
l7529:	
;i2c.c: 63: }
;i2c.c: 65: return 0;
	movlw	(0)
	goto	l902
	
l7531:	
	line	66
	
l902:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_send_byte
	__end_of_i2c_send_byte:
;; =============== function _i2c_send_byte ends ============

	signat	_i2c_send_byte,4217
	global	___lwtoft
psect	text659,local,class=CODE,delta=2
global __ptext659
__ptext659:

;; *************** function ___lwtoft *****************
;; Defined at:
;;		line 29 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\lwtoft.c"
;; Parameters:    Size  Location     Type
;;  c               2    8[COMMON] unsigned int 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;                  3    8[COMMON] float 
;; Registers used:
;;		wreg, 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:         3       0       0       0
;;      Locals:         0       0       0       0
;;      Temps:          1       0       0       0
;;      Totals:         4       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		___ftpack
;; This function is called by:
;;		_acc_skaliranje
;;		_gyro_skaliranje
;;		_mag_skaliranje
;; This function uses a non-reentrant model
;;
psect	text659
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\lwtoft.c"
	line	29
	global	__size_of___lwtoft
	__size_of___lwtoft	equ	__end_of___lwtoft-___lwtoft
	
___lwtoft:	
	opt	stack 5
; Regs used in ___lwtoft: [wreg+status,2+status,0+pclath+cstack]
	line	30
	
l7505:	
	movf	(___lwtoft@c),w
	movwf	(?___ftpack)
	movf	(___lwtoft@c+1),w
	movwf	(?___ftpack+1)
	clrf	(?___ftpack+2)
	movlw	(08Eh)
	movwf	(??___lwtoft+0)+0
	movf	(??___lwtoft+0)+0,w
	movwf	0+(?___ftpack)+03h
	clrf	0+(?___ftpack)+04h
	fcall	___ftpack
	movf	(0+(?___ftpack)),w
	movwf	(?___lwtoft)
	movf	(1+(?___ftpack)),w
	movwf	(?___lwtoft+1)
	movf	(2+(?___ftpack)),w
	movwf	(?___lwtoft+2)
	goto	l4842
	
l7507:	
	line	31
	
l4842:	
	return
	opt stack 0
GLOBAL	__end_of___lwtoft
	__end_of___lwtoft:
;; =============== function ___lwtoft ends ============

	signat	___lwtoft,4219
	global	___ftmul
psect	text660,local,class=CODE,delta=2
global __ptext660
__ptext660:

;; *************** function ___ftmul *****************
;; Defined at:
;;		line 52 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\ftmul.c"
;; Parameters:    Size  Location     Type
;;  f1              3    8[COMMON] float 
;;  f2              3   11[COMMON] float 
;; Auto vars:     Size  Location     Type
;;  f3_as_produc    3    5[BANK0 ] unsigned um
;;  sign            1    9[BANK0 ] unsigned char 
;;  cntr            1    8[BANK0 ] unsigned char 
;;  exp             1    4[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;                  3    8[COMMON] float 
;; Registers used:
;;		wreg, 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:         6       0       0       0
;;      Locals:         0       6       0       0
;;      Temps:          0       4       0       0
;;      Totals:         6      10       0       0
;;Total ram usage:       16 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		___ftpack
;; This function is called by:
;;		_acc_skaliranje
;;		_gyro_skaliranje
;;		_mag_skaliranje
;; This function uses a non-reentrant model
;;
psect	text660
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\ftmul.c"
	line	52
	global	__size_of___ftmul
	__size_of___ftmul	equ	__end_of___ftmul-___ftmul
	
___ftmul:	
	opt	stack 5
; Regs used in ___ftmul: [wreg+status,2+status,0+pclath+cstack]
	line	56
	
l7455:	
	movf	(___ftmul@f1),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	((??___ftmul+0)+0)
	movf	(___ftmul@f1+1),w
	movwf	((??___ftmul+0)+0+1)
	movf	(___ftmul@f1+2),w
	movwf	((??___ftmul+0)+0+2)
	clrc
	rlf	(??___ftmul+0)+1,w
	rlf	(??___ftmul+0)+2,w
	movwf	(??___ftmul+3)+0
	movf	(??___ftmul+3)+0,w
	movwf	(___ftmul@exp)
	movf	((___ftmul@exp)),f
	skipz
	goto	u3761
	goto	u3760
u3761:
	goto	l7461
u3760:
	line	57
	
l7457:	
	movlw	0x0
	movwf	(?___ftmul)
	movlw	0x0
	movwf	(?___ftmul+1)
	movlw	0x0
	movwf	(?___ftmul+2)
	goto	l4718
	
l7459:	
	goto	l4718
	
l4717:	
	line	58
	
l7461:	
	movf	(___ftmul@f2),w
	movwf	((??___ftmul+0)+0)
	movf	(___ftmul@f2+1),w
	movwf	((??___ftmul+0)+0+1)
	movf	(___ftmul@f2+2),w
	movwf	((??___ftmul+0)+0+2)
	clrc
	rlf	(??___ftmul+0)+1,w
	rlf	(??___ftmul+0)+2,w
	movwf	(??___ftmul+3)+0
	movf	(??___ftmul+3)+0,w
	movwf	(___ftmul@sign)
	movf	((___ftmul@sign)),f
	skipz
	goto	u3771
	goto	u3770
u3771:
	goto	l7467
u3770:
	line	59
	
l7463:	
	movlw	0x0
	movwf	(?___ftmul)
	movlw	0x0
	movwf	(?___ftmul+1)
	movlw	0x0
	movwf	(?___ftmul+2)
	goto	l4718
	
l7465:	
	goto	l4718
	
l4719:	
	line	60
	
l7467:	
	movf	(___ftmul@sign),w
	addlw	07Bh
	movwf	(??___ftmul+0)+0
	movf	(??___ftmul+0)+0,w
	addwf	(___ftmul@exp),f
	line	61
	movf	(___ftmul@f1),w
	movwf	((??___ftmul+0)+0)
	movf	(___ftmul@f1+1),w
	movwf	((??___ftmul+0)+0+1)
	movf	(___ftmul@f1+2),w
	movwf	((??___ftmul+0)+0+2)
	movlw	010h
u3785:
	clrc
	rrf	(??___ftmul+0)+2,f
	rrf	(??___ftmul+0)+1,f
	rrf	(??___ftmul+0)+0,f
u3780:
	addlw	-1
	skipz
	goto	u3785
	movf	0+(??___ftmul+0)+0,w
	movwf	(??___ftmul+3)+0
	movf	(??___ftmul+3)+0,w
	movwf	(___ftmul@sign)
	line	62
	movf	(___ftmul@f2),w
	movwf	((??___ftmul+0)+0)
	movf	(___ftmul@f2+1),w
	movwf	((??___ftmul+0)+0+1)
	movf	(___ftmul@f2+2),w
	movwf	((??___ftmul+0)+0+2)
	movlw	010h
u3795:
	clrc
	rrf	(??___ftmul+0)+2,f
	rrf	(??___ftmul+0)+1,f
	rrf	(??___ftmul+0)+0,f
u3790:
	addlw	-1
	skipz
	goto	u3795
	movf	0+(??___ftmul+0)+0,w
	movwf	(??___ftmul+3)+0
	movf	(??___ftmul+3)+0,w
	xorwf	(___ftmul@sign),f
	line	63
	movlw	(080h)
	movwf	(??___ftmul+0)+0
	movf	(??___ftmul+0)+0,w
	andwf	(___ftmul@sign),f
	line	64
	
l7469:	
	bsf	(___ftmul@f1)+(15/8),(15)&7
	line	66
	
l7471:	
	bsf	(___ftmul@f2)+(15/8),(15)&7
	line	67
	
l7473:	
	movlw	0FFh
	andwf	(___ftmul@f2),f
	movlw	0FFh
	andwf	(___ftmul@f2+1),f
	movlw	0
	andwf	(___ftmul@f2+2),f
	line	68
	
l7475:	
	movlw	0
	movwf	(___ftmul@f3_as_product)
	movlw	0
	movwf	(___ftmul@f3_as_product+1)
	movlw	0
	movwf	(___ftmul@f3_as_product+2)
	line	69
	
l7477:	
	movlw	(07h)
	movwf	(??___ftmul+0)+0
	movf	(??___ftmul+0)+0,w
	movwf	(___ftmul@cntr)
	goto	l7479
	line	70
	
l4720:	
	line	71
	
l7479:	
	btfss	(___ftmul@f1),(0)&7
	goto	u3801
	goto	u3800
u3801:
	goto	l7483
u3800:
	line	72
	
l7481:	
	movf	(___ftmul@f2),w
	addwf	(___ftmul@f3_as_product),f
	movf	(___ftmul@f2+1),w
	clrz
	skipnc
	incf	(___ftmul@f2+1),w
	skipnz
	goto	u3811
	addwf	(___ftmul@f3_as_product+1),f
u3811:
	movf	(___ftmul@f2+2),w
	clrz
	skipnc
	incf	(___ftmul@f2+2),w
	skipnz
	goto	u3812
	addwf	(___ftmul@f3_as_product+2),f
u3812:

	goto	l7483
	
l4721:	
	line	73
	
l7483:	
	movlw	01h
u3825:
	clrc
	rrf	(___ftmul@f1+2),f
	rrf	(___ftmul@f1+1),f
	rrf	(___ftmul@f1),f
	addlw	-1
	skipz
	goto	u3825

	line	74
	
l7485:	
	movlw	01h
u3835:
	clrc
	rlf	(___ftmul@f2),f
	rlf	(___ftmul@f2+1),f
	rlf	(___ftmul@f2+2),f
	addlw	-1
	skipz
	goto	u3835
	line	75
	
l7487:	
	movlw	low(01h)
	subwf	(___ftmul@cntr),f
	btfss	status,2
	goto	u3841
	goto	u3840
u3841:
	goto	l7479
u3840:
	goto	l7489
	
l4722:	
	line	76
	
l7489:	
	movlw	(09h)
	movwf	(??___ftmul+0)+0
	movf	(??___ftmul+0)+0,w
	movwf	(___ftmul@cntr)
	goto	l7491
	line	77
	
l4723:	
	line	78
	
l7491:	
	btfss	(___ftmul@f1),(0)&7
	goto	u3851
	goto	u3850
u3851:
	goto	l7495
u3850:
	line	79
	
l7493:	
	movf	(___ftmul@f2),w
	addwf	(___ftmul@f3_as_product),f
	movf	(___ftmul@f2+1),w
	clrz
	skipnc
	incf	(___ftmul@f2+1),w
	skipnz
	goto	u3861
	addwf	(___ftmul@f3_as_product+1),f
u3861:
	movf	(___ftmul@f2+2),w
	clrz
	skipnc
	incf	(___ftmul@f2+2),w
	skipnz
	goto	u3862
	addwf	(___ftmul@f3_as_product+2),f
u3862:

	goto	l7495
	
l4724:	
	line	80
	
l7495:	
	movlw	01h
u3875:
	clrc
	rrf	(___ftmul@f1+2),f
	rrf	(___ftmul@f1+1),f
	rrf	(___ftmul@f1),f
	addlw	-1
	skipz
	goto	u3875

	line	81
	
l7497:	
	movlw	01h
u3885:
	clrc
	rrf	(___ftmul@f3_as_product+2),f
	rrf	(___ftmul@f3_as_product+1),f
	rrf	(___ftmul@f3_as_product),f
	addlw	-1
	skipz
	goto	u3885

	line	82
	
l7499:	
	movlw	low(01h)
	subwf	(___ftmul@cntr),f
	btfss	status,2
	goto	u3891
	goto	u3890
u3891:
	goto	l7491
u3890:
	goto	l7501
	
l4725:	
	line	83
	
l7501:	
	movf	(___ftmul@f3_as_product),w
	movwf	(?___ftpack)
	movf	(___ftmul@f3_as_product+1),w
	movwf	(?___ftpack+1)
	movf	(___ftmul@f3_as_product+2),w
	movwf	(?___ftpack+2)
	movf	(___ftmul@exp),w
	movwf	(??___ftmul+0)+0
	movf	(??___ftmul+0)+0,w
	movwf	0+(?___ftpack)+03h
	movf	(___ftmul@sign),w
	movwf	(??___ftmul+1)+0
	movf	(??___ftmul+1)+0,w
	movwf	0+(?___ftpack)+04h
	fcall	___ftpack
	movf	(0+(?___ftpack)),w
	movwf	(?___ftmul)
	movf	(1+(?___ftpack)),w
	movwf	(?___ftmul+1)
	movf	(2+(?___ftpack)),w
	movwf	(?___ftmul+2)
	goto	l4718
	
l7503:	
	line	84
	
l4718:	
	return
	opt stack 0
GLOBAL	__end_of___ftmul
	__end_of___ftmul:
;; =============== function ___ftmul ends ============

	signat	___ftmul,8315
	global	___ftdiv
psect	text661,local,class=CODE,delta=2
global __ptext661
__ptext661:

;; *************** function ___ftdiv *****************
;; Defined at:
;;		line 50 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\ftdiv.c"
;; Parameters:    Size  Location     Type
;;  f2              3    8[COMMON] float 
;;  f1              3   11[COMMON] float 
;; Auto vars:     Size  Location     Type
;;  f3              3    5[BANK0 ] float 
;;  sign            1    9[BANK0 ] unsigned char 
;;  exp             1    8[BANK0 ] unsigned char 
;;  cntr            1    4[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;                  3    8[COMMON] float 
;; Registers used:
;;		wreg, 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:         6       0       0       0
;;      Locals:         0       6       0       0
;;      Temps:          0       4       0       0
;;      Totals:         6      10       0       0
;;Total ram usage:       16 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		___ftpack
;; This function is called by:
;;		_acc_skaliranje
;;		_gyro_skaliranje
;;		_mag_skaliranje
;; This function uses a non-reentrant model
;;
psect	text661
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\ftdiv.c"
	line	50
	global	__size_of___ftdiv
	__size_of___ftdiv	equ	__end_of___ftdiv-___ftdiv
	
___ftdiv:	
	opt	stack 5
; Regs used in ___ftdiv: [wreg+status,2+status,0+pclath+cstack]
	line	55
	
l7413:	
	movf	(___ftdiv@f1),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	((??___ftdiv+0)+0)
	movf	(___ftdiv@f1+1),w
	movwf	((??___ftdiv+0)+0+1)
	movf	(___ftdiv@f1+2),w
	movwf	((??___ftdiv+0)+0+2)
	clrc
	rlf	(??___ftdiv+0)+1,w
	rlf	(??___ftdiv+0)+2,w
	movwf	(??___ftdiv+3)+0
	movf	(??___ftdiv+3)+0,w
	movwf	(___ftdiv@exp)
	movf	((___ftdiv@exp)),f
	skipz
	goto	u3681
	goto	u3680
u3681:
	goto	l7419
u3680:
	line	56
	
l7415:	
	movlw	0x0
	movwf	(?___ftdiv)
	movlw	0x0
	movwf	(?___ftdiv+1)
	movlw	0x0
	movwf	(?___ftdiv+2)
	goto	l4708
	
l7417:	
	goto	l4708
	
l4707:	
	line	57
	
l7419:	
	movf	(___ftdiv@f2),w
	movwf	((??___ftdiv+0)+0)
	movf	(___ftdiv@f2+1),w
	movwf	((??___ftdiv+0)+0+1)
	movf	(___ftdiv@f2+2),w
	movwf	((??___ftdiv+0)+0+2)
	clrc
	rlf	(??___ftdiv+0)+1,w
	rlf	(??___ftdiv+0)+2,w
	movwf	(??___ftdiv+3)+0
	movf	(??___ftdiv+3)+0,w
	movwf	(___ftdiv@sign)
	movf	((___ftdiv@sign)),f
	skipz
	goto	u3691
	goto	u3690
u3691:
	goto	l7425
u3690:
	line	58
	
l7421:	
	movlw	0x0
	movwf	(?___ftdiv)
	movlw	0x0
	movwf	(?___ftdiv+1)
	movlw	0x0
	movwf	(?___ftdiv+2)
	goto	l4708
	
l7423:	
	goto	l4708
	
l4709:	
	line	59
	
l7425:	
	movlw	0
	movwf	(___ftdiv@f3)
	movlw	0
	movwf	(___ftdiv@f3+1)
	movlw	0
	movwf	(___ftdiv@f3+2)
	line	60
	
l7427:	
	movlw	(089h)
	addwf	(___ftdiv@sign),w
	movwf	(??___ftdiv+0)+0
	movf	0+(??___ftdiv+0)+0,w
	subwf	(___ftdiv@exp),f
	line	61
	
l7429:	
	movf	(___ftdiv@f1),w
	movwf	((??___ftdiv+0)+0)
	movf	(___ftdiv@f1+1),w
	movwf	((??___ftdiv+0)+0+1)
	movf	(___ftdiv@f1+2),w
	movwf	((??___ftdiv+0)+0+2)
	movlw	010h
u3705:
	clrc
	rrf	(??___ftdiv+0)+2,f
	rrf	(??___ftdiv+0)+1,f
	rrf	(??___ftdiv+0)+0,f
u3700:
	addlw	-1
	skipz
	goto	u3705
	movf	0+(??___ftdiv+0)+0,w
	movwf	(??___ftdiv+3)+0
	movf	(??___ftdiv+3)+0,w
	movwf	(___ftdiv@sign)
	line	62
	
l7431:	
	movf	(___ftdiv@f2),w
	movwf	((??___ftdiv+0)+0)
	movf	(___ftdiv@f2+1),w
	movwf	((??___ftdiv+0)+0+1)
	movf	(___ftdiv@f2+2),w
	movwf	((??___ftdiv+0)+0+2)
	movlw	010h
u3715:
	clrc
	rrf	(??___ftdiv+0)+2,f
	rrf	(??___ftdiv+0)+1,f
	rrf	(??___ftdiv+0)+0,f
u3710:
	addlw	-1
	skipz
	goto	u3715
	movf	0+(??___ftdiv+0)+0,w
	movwf	(??___ftdiv+3)+0
	movf	(??___ftdiv+3)+0,w
	xorwf	(___ftdiv@sign),f
	line	63
	
l7433:	
	movlw	(080h)
	movwf	(??___ftdiv+0)+0
	movf	(??___ftdiv+0)+0,w
	andwf	(___ftdiv@sign),f
	line	64
	
l7435:	
	bsf	(___ftdiv@f1)+(15/8),(15)&7
	line	65
	movlw	0FFh
	andwf	(___ftdiv@f1),f
	movlw	0FFh
	andwf	(___ftdiv@f1+1),f
	movlw	0
	andwf	(___ftdiv@f1+2),f
	line	66
	
l7437:	
	bsf	(___ftdiv@f2)+(15/8),(15)&7
	line	67
	movlw	0FFh
	andwf	(___ftdiv@f2),f
	movlw	0FFh
	andwf	(___ftdiv@f2+1),f
	movlw	0
	andwf	(___ftdiv@f2+2),f
	line	68
	movlw	(018h)
	movwf	(??___ftdiv+0)+0
	movf	(??___ftdiv+0)+0,w
	movwf	(___ftdiv@cntr)
	goto	l7439
	line	69
	
l4710:	
	line	70
	
l7439:	
	movlw	01h
u3725:
	clrc
	rlf	(___ftdiv@f3),f
	rlf	(___ftdiv@f3+1),f
	rlf	(___ftdiv@f3+2),f
	addlw	-1
	skipz
	goto	u3725
	line	71
	
l7441:	
	movf	(___ftdiv@f2+2),w
	subwf	(___ftdiv@f1+2),w
	skipz
	goto	u3735
	movf	(___ftdiv@f2+1),w
	subwf	(___ftdiv@f1+1),w
	skipz
	goto	u3735
	movf	(___ftdiv@f2),w
	subwf	(___ftdiv@f1),w
u3735:
	skipc
	goto	u3731
	goto	u3730
u3731:
	goto	l7447
u3730:
	line	72
	
l7443:	
	movf	(___ftdiv@f2),w
	subwf	(___ftdiv@f1),f
	movf	(___ftdiv@f2+1),w
	skipc
	incfsz	(___ftdiv@f2+1),w
	subwf	(___ftdiv@f1+1),f
	movf	(___ftdiv@f2+2),w
	skipc
	incf	(___ftdiv@f2+2),w
	subwf	(___ftdiv@f1+2),f
	line	73
	
l7445:	
	bsf	(___ftdiv@f3)+(0/8),(0)&7
	goto	l7447
	line	74
	
l4711:	
	line	75
	
l7447:	
	movlw	01h
u3745:
	clrc
	rlf	(___ftdiv@f1),f
	rlf	(___ftdiv@f1+1),f
	rlf	(___ftdiv@f1+2),f
	addlw	-1
	skipz
	goto	u3745
	line	76
	
l7449:	
	movlw	low(01h)
	subwf	(___ftdiv@cntr),f
	btfss	status,2
	goto	u3751
	goto	u3750
u3751:
	goto	l7439
u3750:
	goto	l7451
	
l4712:	
	line	77
	
l7451:	
	movf	(___ftdiv@f3),w
	movwf	(?___ftpack)
	movf	(___ftdiv@f3+1),w
	movwf	(?___ftpack+1)
	movf	(___ftdiv@f3+2),w
	movwf	(?___ftpack+2)
	movf	(___ftdiv@exp),w
	movwf	(??___ftdiv+0)+0
	movf	(??___ftdiv+0)+0,w
	movwf	0+(?___ftpack)+03h
	movf	(___ftdiv@sign),w
	movwf	(??___ftdiv+1)+0
	movf	(??___ftdiv+1)+0,w
	movwf	0+(?___ftpack)+04h
	fcall	___ftpack
	movf	(0+(?___ftpack)),w
	movwf	(?___ftdiv)
	movf	(1+(?___ftpack)),w
	movwf	(?___ftdiv+1)
	movf	(2+(?___ftpack)),w
	movwf	(?___ftdiv+2)
	goto	l4708
	
l7453:	
	line	78
	
l4708:	
	return
	opt stack 0
GLOBAL	__end_of___ftdiv
	__end_of___ftdiv:
;; =============== function ___ftdiv ends ============

	signat	___ftdiv,8315
	global	_start
psect	text662,local,class=CODE,delta=2
global __ptext662
__ptext662:

;; *************** function _start *****************
;; Defined at:
;;		line 26 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.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	text662
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
	line	26
	global	__size_of_start
	__size_of_start	equ	__end_of_start-_start
	
_start:	
	opt	stack 7
; Regs used in _start: [wreg+status,2]
	line	27
	
l7401:	
;svastara.c: 27: for (int i=0; i<x; i++)
	clrf	(start@i)
	clrf	(start@i+1)
	goto	l7411
	line	28
	
l3704:	
	line	29
	
l7403:	
;svastara.c: 28: {
;svastara.c: 29: PORTC = 0x0F;
	movlw	(0Fh)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(7)	;volatile
	line	30
;svastara.c: 30: _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
u4377:
	decfsz	((??_start+0)+0),f
	goto	u4377
	decfsz	((??_start+0)+0+1),f
	goto	u4377
	nop2
opt asmopt_on

	line	31
	
l7405:	
;svastara.c: 31: PORTC = 0x00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	line	32
	
l7407:	
;svastara.c: 32: _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
u4387:
	decfsz	((??_start+0)+0),f
	goto	u4387
	decfsz	((??_start+0)+0+1),f
	goto	u4387
	nop2
opt asmopt_on

	line	27
	
l7409:	
	movlw	low(01h)
	addwf	(start@i),f
	skipnc
	incf	(start@i+1),f
	movlw	high(01h)
	addwf	(start@i+1),f
	goto	l7411
	
l3703:	
	
l7411:	
	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	u3675
	movf	(start@x),w
	subwf	(start@i),w
u3675:

	skipc
	goto	u3671
	goto	u3670
u3671:
	goto	l7403
u3670:
	goto	l3706
	
l3705:	
	line	34
	
l3706:	
	return
	opt stack 0
GLOBAL	__end_of_start
	__end_of_start:
;; =============== function _start ends ============

	signat	_start,4216
	global	_rs232_send_text
psect	text663,local,class=CODE,delta=2
global __ptext663
__ptext663:

;; *************** function _rs232_send_text *****************
;; Defined at:
;;		line 42 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\rs232.c"
;; Parameters:    Size  Location     Type
;;  string          2    1[COMMON] PTR const unsigned char 
;;		 -> STR_25(8), STR_24(8), STR_23(8), STR_22(9), 
;;		 -> STR_21(9), STR_20(9), STR_19(8), STR_18(11), 
;;		 -> STR_17(8), STR_16(11), STR_15(8), STR_14(11), 
;;		 -> STR_13(9), STR_12(12), STR_11(8), STR_10(12), 
;;		 -> STR_9(8), STR_8(12), STR_7(5), STR_6(11), 
;;		 -> STR_5(4), STR_4(11), STR_3(4), STR_2(11), 
;;		 -> STR_1(115), 
;; Auto vars:     Size  Location     Type
;;  i               2    5[COMMON] int 
;;  c               1    4[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, btemp+1, pclath, cstack
;; 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:         3       0       0       0
;;      Temps:          1       0       0       0
;;      Totals:         6       0       0       0
;;Total ram usage:        6 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
;;		_i2c_init
;;		_read_i2c
;; This function uses a non-reentrant model
;;
psect	text663
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\rs232.c"
	line	42
	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 5
; Regs used in _rs232_send_text: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
	line	43
	
l7391:	
;rs232.c: 43: int i=0;
	clrf	(rs232_send_text@i)
	clrf	(rs232_send_text@i+1)
	line	46
;rs232.c: 44: char c;
;rs232.c: 46: while(string[i]!='\0')
	goto	l7399
	
l1867:	
	line	48
	
l7393:	
;rs232.c: 47: {
;rs232.c: 48: c = string[i];
	movf	(rs232_send_text@i),w
	addwf	(rs232_send_text@string),w
	movwf	fsr0
	movf	(rs232_send_text@string+1),w
	skipnc
	incf	(rs232_send_text@string+1),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	btemp+1
	fcall	stringtab
	movwf	(??_rs232_send_text+0)+0
	movf	(??_rs232_send_text+0)+0,w
	movwf	(rs232_send_text@c)
	line	49
	
l7395:	
;rs232.c: 49: rs232_send_byte(c);
	movf	(rs232_send_text@c),w
	fcall	_rs232_send_byte
	line	50
	
l7397:	
;rs232.c: 50: 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	l7399
	line	51
	
l1866:	
	line	46
	
l7399:	
	movf	(rs232_send_text@i),w
	addwf	(rs232_send_text@string),w
	movwf	fsr0
	movf	(rs232_send_text@string+1),w
	skipnc
	incf	(rs232_send_text@string+1),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	btemp+1
	fcall	stringtab
	iorlw	0
	skipz
	goto	u3661
	goto	u3660
u3661:
	goto	l7393
u3660:
	goto	l1869
	
l1868:	
	line	53
;rs232.c: 51: }
;rs232.c: 52: return;
	
l1869:	
	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	_i2c_send_ack
psect	text664,local,class=CODE,delta=2
global __ptext664
__ptext664:

;; *************** function _i2c_send_ack *****************
;; Defined at:
;;		line 132 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;  status          1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  status          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:
;;		_i2c_get_byte
;; This function uses a non-reentrant model
;;
psect	text664
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	132
	global	__size_of_i2c_send_ack
	__size_of_i2c_send_ack	equ	__end_of_i2c_send_ack-_i2c_send_ack
	
_i2c_send_ack:	
	opt	stack 5
; Regs used in _i2c_send_ack: [wreg]
;i2c_send_ack@status stored from wreg
	movwf	(i2c_send_ack@status)
	line	133
	
l7387:	
;i2c.c: 133: TRISB6 = 0;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1078/8)^080h,(1078)&7
	line	134
;i2c.c: 134: if ( status & 0x01) {
	btfss	(i2c_send_ack@status),(0)&7
	goto	u3651
	goto	u3650
u3651:
	goto	l918
u3650:
	line	135
	
l7389:	
;i2c.c: 135: TRISB4 = 0;
	bcf	(1076/8)^080h,(1076)&7
	line	138
;i2c.c: 138: }else {
	goto	l919
	
l918:	
	line	139
;i2c.c: 139: TRISB4 = 1;
	bsf	(1076/8)^080h,(1076)&7
	line	141
	
l919:	
	line	142
;i2c.c: 141: }
;i2c.c: 142: _delay((unsigned long)((1)*(4000000/4000000.0)));
		opt asmopt_off
	clrwdt
	opt asmopt_on

	line	143
;i2c.c: 143: TRISB6 = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1078/8)^080h,(1078)&7
	line	144
;i2c.c: 144: _delay((unsigned long)((4)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on

	line	146
;i2c.c: 145: return;
	
l920:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_send_ack
	__end_of_i2c_send_ack:
;; =============== function _i2c_send_ack ends ============

	signat	_i2c_send_ack,4216
	global	_i2c_wait_for_SCL
psect	text665,local,class=CODE,delta=2
global __ptext665
__ptext665:

;; *************** function _i2c_wait_for_SCL *****************
;; Defined at:
;;		line 223 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.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:          1       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:
;;		_i2c_send_byte
;;		_i2c_read_ack
;;		_i2c_read_byte
;; This function uses a non-reentrant model
;;
psect	text665
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	223
	global	__size_of_i2c_wait_for_SCL
	__size_of_i2c_wait_for_SCL	equ	__end_of_i2c_wait_for_SCL-_i2c_wait_for_SCL
	
_i2c_wait_for_SCL:	
	opt	stack 4
; Regs used in _i2c_wait_for_SCL: [wreg]
	line	225
	
l7373:	
;i2c.c: 225: if(!RB6)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfsc	(54/8),(54)&7
	goto	u3631
	goto	u3630
u3631:
	goto	l7383
u3630:
	line	227
	
l7375:	
;i2c.c: 226: {
;i2c.c: 227: _delay((unsigned long)((10)*(4000000/4000000.0)));
	opt asmopt_off
movlw	3
movwf	(??_i2c_wait_for_SCL+0)+0,f
u4397:
decfsz	(??_i2c_wait_for_SCL+0)+0,f
	goto	u4397
opt asmopt_on

	line	229
	
l7377:	
;i2c.c: 229: if(!RB6)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfsc	(54/8),(54)&7
	goto	u3641
	goto	u3640
u3641:
	goto	l7383
u3640:
	line	230
	
l7379:	
;i2c.c: 230: return !0;
	movlw	(01h)
	goto	l950
	
l7381:	
	goto	l950
	
l949:	
	goto	l7383
	line	231
	
l948:	
	line	232
	
l7383:	
;i2c.c: 231: }
;i2c.c: 232: return 0;
	movlw	(0)
	goto	l950
	
l7385:	
	line	233
	
l950:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_wait_for_SCL
	__end_of_i2c_wait_for_SCL:
;; =============== function _i2c_wait_for_SCL ends ============

	signat	_i2c_wait_for_SCL,89
	global	_i2c_restart
psect	text666,local,class=CODE,delta=2
global __ptext666
__ptext666:

;; *************** function _i2c_restart *****************
;; Defined at:
;;		line 26 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		None
;; 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:
;;		_i2c_open
;; This function uses a non-reentrant model
;;
psect	text666
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	26
	global	__size_of_i2c_restart
	__size_of_i2c_restart	equ	__end_of_i2c_restart-_i2c_restart
	
_i2c_restart:	
	opt	stack 5
; Regs used in _i2c_restart: []
	line	27
	
l7371:	
;i2c.c: 27: TRISB6 = 0;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1078/8)^080h,(1078)&7
	line	28
;i2c.c: 28: TRISB4 = 1;
	bsf	(1076/8)^080h,(1076)&7
	line	30
;i2c.c: 30: _delay((unsigned long)((1)*(4000000/4000000.0)));
		opt asmopt_off
	clrwdt
	opt asmopt_on

	line	32
;i2c.c: 32: TRISB6 = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1078/8)^080h,(1078)&7
	line	33
;i2c.c: 33: _delay((unsigned long)((4)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on

	line	35
;i2c.c: 35: TRISB4 = 0;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1076/8)^080h,(1076)&7
	line	36
;i2c.c: 36: _delay((unsigned long)((4)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on

	line	39
;i2c.c: 38: return;
	
l894:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_restart
	__end_of_i2c_restart:
;; =============== function _i2c_restart ends ============

	signat	_i2c_restart,88
	global	_i2c_stop
psect	text667,local,class=CODE,delta=2
global __ptext667
__ptext667:

;; *************** function _i2c_stop *****************
;; Defined at:
;;		line 7 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		None
;; 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:
;;		_i2c_init
;;		_i2c_read
;; This function uses a non-reentrant model
;;
psect	text667
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\i2c.c"
	line	7
	global	__size_of_i2c_stop
	__size_of_i2c_stop	equ	__end_of_i2c_stop-_i2c_stop
	
_i2c_stop:	
	opt	stack 6
; Regs used in _i2c_stop: []
	line	8
	
l7369:	
;i2c.c: 8: TRISB6 = 0;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1078/8)^080h,(1078)&7
	line	9
;i2c.c: 9: TRISB4 = 0;
	bcf	(1076/8)^080h,(1076)&7
	line	11
;i2c.c: 11: _delay((unsigned long)((1)*(4000000/4000000.0)));
		opt asmopt_off
	clrwdt
	opt asmopt_on

	line	12
;i2c.c: 12: TRISB6 = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1078/8)^080h,(1078)&7
	line	13
;i2c.c: 13: _delay((unsigned long)((4)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on

	line	14
;i2c.c: 14: TRISB4 = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1076/8)^080h,(1076)&7
	line	15
;i2c.c: 15: _delay((unsigned long)((5)*(4000000/4000000.0)));
		opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	nop2	;2 cycle nop
	opt asmopt_on
	opt asmopt_off
	clrwdt
	opt asmopt_on

	line	16
;i2c.c: 16: TRISB4 = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1076/8)^080h,(1076)&7
	line	18
;i2c.c: 17: return;
	
l891:	
	return
	opt stack 0
GLOBAL	__end_of_i2c_stop
	__end_of_i2c_stop:
;; =============== function _i2c_stop ends ============

	signat	_i2c_stop,88
	global	___awmod
psect	text668,local,class=CODE,delta=2
global __ptext668
__ptext668:

;; *************** function ___awmod *****************
;; Defined at:
;;		line 5 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\awmod.c"
;; Parameters:    Size  Location     Type
;;  divisor         2    0[COMMON] int 
;;  dividend        2    2[COMMON] int 
;; Auto vars:     Size  Location     Type
;;  sign            1    6[COMMON] unsigned char 
;;  counter         1    5[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         4       0       0       0
;;      Locals:         2       0       0       0
;;      Temps:          1       0       0       0
;;      Totals:         7       0       0       0
;;Total ram usage:        7 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_acc_skaliranje
;;		_gyro_skaliranje
;;		_mag_skaliranje
;; This function uses a non-reentrant model
;;
psect	text668
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\awmod.c"
	line	5
	global	__size_of___awmod
	__size_of___awmod	equ	__end_of___awmod-___awmod
	
___awmod:	
	opt	stack 6
; Regs used in ___awmod: [wreg+status,2+status,0]
	line	8
	
l7293:	
	clrf	(___awmod@sign)
	line	9
	btfss	(___awmod@dividend+1),7
	goto	u3481
	goto	u3480
u3481:
	goto	l7297
u3480:
	line	10
	
l7295:	
	comf	(___awmod@dividend),f
	comf	(___awmod@dividend+1),f
	incf	(___awmod@dividend),f
	skipnz
	incf	(___awmod@dividend+1),f
	line	11
	clrf	(___awmod@sign)
	bsf	status,0
	rlf	(___awmod@sign),f
	goto	l7297
	line	12
	
l4827:	
	line	13
	
l7297:	
	btfss	(___awmod@divisor+1),7
	goto	u3491
	goto	u3490
u3491:
	goto	l7301
u3490:
	line	14
	
l7299:	
	comf	(___awmod@divisor),f
	comf	(___awmod@divisor+1),f
	incf	(___awmod@divisor),f
	skipnz
	incf	(___awmod@divisor+1),f
	goto	l7301
	
l4828:	
	line	15
	
l7301:	
	movf	(___awmod@divisor+1),w
	iorwf	(___awmod@divisor),w
	skipnz
	goto	u3501
	goto	u3500
u3501:
	goto	l7319
u3500:
	line	16
	
l7303:	
	clrf	(___awmod@counter)
	bsf	status,0
	rlf	(___awmod@counter),f
	line	17
	goto	l7309
	
l4831:	
	line	18
	
l7305:	
	movlw	01h
	
u3515:
	clrc
	rlf	(___awmod@divisor),f
	rlf	(___awmod@divisor+1),f
	addlw	-1
	skipz
	goto	u3515
	line	19
	
l7307:	
	movlw	(01h)
	movwf	(??___awmod+0)+0
	movf	(??___awmod+0)+0,w
	addwf	(___awmod@counter),f
	goto	l7309
	line	20
	
l4830:	
	line	17
	
l7309:	
	btfss	(___awmod@divisor+1),(15)&7
	goto	u3521
	goto	u3520
u3521:
	goto	l7305
u3520:
	goto	l7311
	
l4832:	
	goto	l7311
	line	21
	
l4833:	
	line	22
	
l7311:	
	movf	(___awmod@divisor+1),w
	subwf	(___awmod@dividend+1),w
	skipz
	goto	u3535
	movf	(___awmod@divisor),w
	subwf	(___awmod@dividend),w
u3535:
	skipc
	goto	u3531
	goto	u3530
u3531:
	goto	l7315
u3530:
	line	23
	
l7313:	
	movf	(___awmod@divisor),w
	subwf	(___awmod@dividend),f
	movf	(___awmod@divisor+1),w
	skipc
	decf	(___awmod@dividend+1),f
	subwf	(___awmod@dividend+1),f
	goto	l7315
	
l4834:	
	line	24
	
l7315:	
	movlw	01h
	
u3545:
	clrc
	rrf	(___awmod@divisor+1),f
	rrf	(___awmod@divisor),f
	addlw	-1
	skipz
	goto	u3545
	line	25
	
l7317:	
	movlw	low(01h)
	subwf	(___awmod@counter),f
	btfss	status,2
	goto	u3551
	goto	u3550
u3551:
	goto	l7311
u3550:
	goto	l7319
	
l4835:	
	goto	l7319
	line	26
	
l4829:	
	line	27
	
l7319:	
	movf	(___awmod@sign),w
	skipz
	goto	u3560
	goto	l7323
u3560:
	line	28
	
l7321:	
	comf	(___awmod@dividend),f
	comf	(___awmod@dividend+1),f
	incf	(___awmod@dividend),f
	skipnz
	incf	(___awmod@dividend+1),f
	goto	l7323
	
l4836:	
	line	29
	
l7323:	
	movf	(___awmod@dividend+1),w
	clrf	(?___awmod+1)
	addwf	(?___awmod+1)
	movf	(___awmod@dividend),w
	clrf	(?___awmod)
	addwf	(?___awmod)

	goto	l4837
	
l7325:	
	line	30
	
l4837:	
	return
	opt stack 0
GLOBAL	__end_of___awmod
	__end_of___awmod:
;; =============== function ___awmod ends ============

	signat	___awmod,8314
	global	___awdiv
psect	text669,local,class=CODE,delta=2
global __ptext669
__ptext669:

;; *************** function ___awdiv *****************
;; Defined at:
;;		line 5 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\awdiv.c"
;; Parameters:    Size  Location     Type
;;  divisor         2    7[COMMON] int 
;;  dividend        2    9[COMMON] int 
;; Auto vars:     Size  Location     Type
;;  quotient        2    2[BANK0 ] int 
;;  sign            1    1[BANK0 ] unsigned char 
;;  counter         1    0[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;                  2    7[COMMON] int 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         4       0       0       0
;;      Locals:         0       4       0       0
;;      Temps:          1       0       0       0
;;      Totals:         5       4       0       0
;;Total ram usage:        9 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_acc_skaliranje
;;		_gyro_skaliranje
;;		_mag_skaliranje
;; This function uses a non-reentrant model
;;
psect	text669
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\awdiv.c"
	line	5
	global	__size_of___awdiv
	__size_of___awdiv	equ	__end_of___awdiv-___awdiv
	
___awdiv:	
	opt	stack 6
; Regs used in ___awdiv: [wreg+status,2+status,0]
	line	9
	
l7253:	
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(___awdiv@sign)
	line	10
	btfss	(___awdiv@divisor+1),7
	goto	u3381
	goto	u3380
u3381:
	goto	l7257
u3380:
	line	11
	
l7255:	
	comf	(___awdiv@divisor),f
	comf	(___awdiv@divisor+1),f
	incf	(___awdiv@divisor),f
	skipnz
	incf	(___awdiv@divisor+1),f
	line	12
	clrf	(___awdiv@sign)
	bsf	status,0
	rlf	(___awdiv@sign),f
	goto	l7257
	line	13
	
l4759:	
	line	14
	
l7257:	
	btfss	(___awdiv@dividend+1),7
	goto	u3391
	goto	u3390
u3391:
	goto	l7263
u3390:
	line	15
	
l7259:	
	comf	(___awdiv@dividend),f
	comf	(___awdiv@dividend+1),f
	incf	(___awdiv@dividend),f
	skipnz
	incf	(___awdiv@dividend+1),f
	line	16
	
l7261:	
	movlw	(01h)
	movwf	(??___awdiv+0)+0
	movf	(??___awdiv+0)+0,w
	xorwf	(___awdiv@sign),f
	goto	l7263
	line	17
	
l4760:	
	line	18
	
l7263:	
	clrf	(___awdiv@quotient)
	clrf	(___awdiv@quotient+1)
	line	19
	
l7265:	
	movf	(___awdiv@divisor+1),w
	iorwf	(___awdiv@divisor),w
	skipnz
	goto	u3401
	goto	u3400
u3401:
	goto	l7285
u3400:
	line	20
	
l7267:	
	clrf	(___awdiv@counter)
	bsf	status,0
	rlf	(___awdiv@counter),f
	line	21
	goto	l7273
	
l4763:	
	line	22
	
l7269:	
	movlw	01h
	
u3415:
	clrc
	rlf	(___awdiv@divisor),f
	rlf	(___awdiv@divisor+1),f
	addlw	-1
	skipz
	goto	u3415
	line	23
	
l7271:	
	movlw	(01h)
	movwf	(??___awdiv+0)+0
	movf	(??___awdiv+0)+0,w
	addwf	(___awdiv@counter),f
	goto	l7273
	line	24
	
l4762:	
	line	21
	
l7273:	
	btfss	(___awdiv@divisor+1),(15)&7
	goto	u3421
	goto	u3420
u3421:
	goto	l7269
u3420:
	goto	l7275
	
l4764:	
	goto	l7275
	line	25
	
l4765:	
	line	26
	
l7275:	
	movlw	01h
	
u3435:
	clrc
	rlf	(___awdiv@quotient),f
	rlf	(___awdiv@quotient+1),f
	addlw	-1
	skipz
	goto	u3435
	line	27
	movf	(___awdiv@divisor+1),w
	subwf	(___awdiv@dividend+1),w
	skipz
	goto	u3445
	movf	(___awdiv@divisor),w
	subwf	(___awdiv@dividend),w
u3445:
	skipc
	goto	u3441
	goto	u3440
u3441:
	goto	l7281
u3440:
	line	28
	
l7277:	
	movf	(___awdiv@divisor),w
	subwf	(___awdiv@dividend),f
	movf	(___awdiv@divisor+1),w
	skipc
	decf	(___awdiv@dividend+1),f
	subwf	(___awdiv@dividend+1),f
	line	29
	
l7279:	
	bsf	(___awdiv@quotient)+(0/8),(0)&7
	goto	l7281
	line	30
	
l4766:	
	line	31
	
l7281:	
	movlw	01h
	
u3455:
	clrc
	rrf	(___awdiv@divisor+1),f
	rrf	(___awdiv@divisor),f
	addlw	-1
	skipz
	goto	u3455
	line	32
	
l7283:	
	movlw	low(01h)
	subwf	(___awdiv@counter),f
	btfss	status,2
	goto	u3461
	goto	u3460
u3461:
	goto	l7275
u3460:
	goto	l7285
	
l4767:	
	goto	l7285
	line	33
	
l4761:	
	line	34
	
l7285:	
	movf	(___awdiv@sign),w
	skipz
	goto	u3470
	goto	l7289
u3470:
	line	35
	
l7287:	
	comf	(___awdiv@quotient),f
	comf	(___awdiv@quotient+1),f
	incf	(___awdiv@quotient),f
	skipnz
	incf	(___awdiv@quotient+1),f
	goto	l7289
	
l4768:	
	line	36
	
l7289:	
	movf	(___awdiv@quotient+1),w
	clrf	(?___awdiv+1)
	addwf	(?___awdiv+1)
	movf	(___awdiv@quotient),w
	clrf	(?___awdiv)
	addwf	(?___awdiv)

	goto	l4769
	
l7291:	
	line	37
	
l4769:	
	return
	opt stack 0
GLOBAL	__end_of___awdiv
	__end_of___awdiv:
;; =============== function ___awdiv ends ============

	signat	___awdiv,8314
	global	___fttol
psect	text670,local,class=CODE,delta=2
global __ptext670
__ptext670:

;; *************** function ___fttol *****************
;; Defined at:
;;		line 45 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\fttol.c"
;; Parameters:    Size  Location     Type
;;  f1              3    0[COMMON] float 
;; Auto vars:     Size  Location     Type
;;  lval            4    9[COMMON] unsigned long 
;;  exp1            1   13[COMMON] unsigned char 
;;  sign1           1    8[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  4    0[COMMON] long 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         4       0       0       0
;;      Locals:         6       0       0       0
;;      Temps:          4       0       0       0
;;      Totals:        14       0       0       0
;;Total ram usage:       14 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_acc_skaliranje
;;		_gyro_skaliranje
;;		_mag_skaliranje
;; This function uses a non-reentrant model
;;
psect	text670
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\fttol.c"
	line	45
	global	__size_of___fttol
	__size_of___fttol	equ	__end_of___fttol-___fttol
	
___fttol:	
	opt	stack 6
; Regs used in ___fttol: [wreg+status,2+status,0]
	line	49
	
l7189:	
	movf	(___fttol@f1),w
	movwf	((??___fttol+0)+0)
	movf	(___fttol@f1+1),w
	movwf	((??___fttol+0)+0+1)
	movf	(___fttol@f1+2),w
	movwf	((??___fttol+0)+0+2)
	clrc
	rlf	(??___fttol+0)+1,w
	rlf	(??___fttol+0)+2,w
	movwf	(??___fttol+3)+0
	movf	(??___fttol+3)+0,w
	movwf	(___fttol@exp1)
	movf	((___fttol@exp1)),f
	skipz
	goto	u3261
	goto	u3260
u3261:
	goto	l7195
u3260:
	line	50
	
l7191:	
	movlw	0
	movwf	(?___fttol+3)
	movlw	0
	movwf	(?___fttol+2)
	movlw	0
	movwf	(?___fttol+1)
	movlw	0
	movwf	(?___fttol)

	goto	l4729
	
l7193:	
	goto	l4729
	
l4728:	
	line	51
	
l7195:	
	movf	(___fttol@f1),w
	movwf	((??___fttol+0)+0)
	movf	(___fttol@f1+1),w
	movwf	((??___fttol+0)+0+1)
	movf	(___fttol@f1+2),w
	movwf	((??___fttol+0)+0+2)
	movlw	017h
u3275:
	clrc
	rrf	(??___fttol+0)+2,f
	rrf	(??___fttol+0)+1,f
	rrf	(??___fttol+0)+0,f
u3270:
	addlw	-1
	skipz
	goto	u3275
	movf	0+(??___fttol+0)+0,w
	movwf	(??___fttol+3)+0
	movf	(??___fttol+3)+0,w
	movwf	(___fttol@sign1)
	line	52
	
l7197:	
	bsf	(___fttol@f1)+(15/8),(15)&7
	line	53
	
l7199:	
	movlw	0FFh
	andwf	(___fttol@f1),f
	movlw	0FFh
	andwf	(___fttol@f1+1),f
	movlw	0
	andwf	(___fttol@f1+2),f
	line	54
	
l7201:	
	movf	(___fttol@f1),w
	movwf	(___fttol@lval)
	movf	(___fttol@f1+1),w
	movwf	((___fttol@lval))+1
	movf	(___fttol@f1+2),w
	movwf	((___fttol@lval))+2
	clrf	((___fttol@lval))+3
	line	55
	
l7203:	
	movlw	low(08Eh)
	subwf	(___fttol@exp1),f
	line	56
	
l7205:	
	btfss	(___fttol@exp1),7
	goto	u3281
	goto	u3280
u3281:
	goto	l7215
u3280:
	line	57
	
l7207:	
	movf	(___fttol@exp1),w
	xorlw	80h
	addlw	-((-15)^80h)
	skipnc
	goto	u3291
	goto	u3290
u3291:
	goto	l7213
u3290:
	line	58
	
l7209:	
	movlw	0
	movwf	(?___fttol+3)
	movlw	0
	movwf	(?___fttol+2)
	movlw	0
	movwf	(?___fttol+1)
	movlw	0
	movwf	(?___fttol)

	goto	l4729
	
l7211:	
	goto	l4729
	
l4731:	
	goto	l7213
	line	59
	
l4732:	
	line	60
	
l7213:	
	movlw	01h
u3305:
	clrc
	rrf	(___fttol@lval+3),f
	rrf	(___fttol@lval+2),f
	rrf	(___fttol@lval+1),f
	rrf	(___fttol@lval),f
	addlw	-1
	skipz
	goto	u3305

	line	61
	movlw	(01h)
	movwf	(??___fttol+0)+0
	movf	(??___fttol+0)+0,w
	addwf	(___fttol@exp1),f
	btfss	status,2
	goto	u3311
	goto	u3310
u3311:
	goto	l7213
u3310:
	goto	l7225
	
l4733:	
	line	62
	goto	l7225
	
l4730:	
	line	63
	
l7215:	
	movlw	(018h)
	subwf	(___fttol@exp1),w
	skipc
	goto	u3321
	goto	u3320
u3321:
	goto	l7223
u3320:
	line	64
	
l7217:	
	movlw	0
	movwf	(?___fttol+3)
	movlw	0
	movwf	(?___fttol+2)
	movlw	0
	movwf	(?___fttol+1)
	movlw	0
	movwf	(?___fttol)

	goto	l4729
	
l7219:	
	goto	l4729
	
l4735:	
	line	65
	goto	l7223
	
l4737:	
	line	66
	
l7221:	
	movlw	01h
	movwf	(??___fttol+0)+0
u3335:
	clrc
	rlf	(___fttol@lval),f
	rlf	(___fttol@lval+1),f
	rlf	(___fttol@lval+2),f
	rlf	(___fttol@lval+3),f
	decfsz	(??___fttol+0)+0
	goto	u3335
	line	67
	movlw	low(01h)
	subwf	(___fttol@exp1),f
	goto	l7223
	line	68
	
l4736:	
	line	65
	
l7223:	
	movf	(___fttol@exp1),f
	skipz
	goto	u3341
	goto	u3340
u3341:
	goto	l7221
u3340:
	goto	l7225
	
l4738:	
	goto	l7225
	line	69
	
l4734:	
	line	70
	
l7225:	
	movf	(___fttol@sign1),w
	skipz
	goto	u3350
	goto	l7229
u3350:
	line	71
	
l7227:	
	comf	(___fttol@lval),f
	comf	(___fttol@lval+1),f
	comf	(___fttol@lval+2),f
	comf	(___fttol@lval+3),f
	incf	(___fttol@lval),f
	skipnz
	incf	(___fttol@lval+1),f
	skipnz
	incf	(___fttol@lval+2),f
	skipnz
	incf	(___fttol@lval+3),f
	goto	l7229
	
l4739:	
	line	72
	
l7229:	
	movf	(___fttol@lval+3),w
	movwf	(?___fttol+3)
	movf	(___fttol@lval+2),w
	movwf	(?___fttol+2)
	movf	(___fttol@lval+1),w
	movwf	(?___fttol+1)
	movf	(___fttol@lval),w
	movwf	(?___fttol)

	goto	l4729
	
l7231:	
	line	73
	
l4729:	
	return
	opt stack 0
GLOBAL	__end_of___fttol
	__end_of___fttol:
;; =============== function ___fttol ends ============

	signat	___fttol,4220
	global	___ftpack
psect	text671,local,class=CODE,delta=2
global __ptext671
__ptext671:

;; *************** function ___ftpack *****************
;; Defined at:
;;		line 63 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\float.c"
;; Parameters:    Size  Location     Type
;;  arg             3    0[COMMON] unsigned um
;;  exp             1    3[COMMON] unsigned char 
;;  sign            1    4[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;                  3    0[COMMON] float 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2
;;      Params:         5       0       0       0
;;      Locals:         0       0       0       0
;;      Temps:          3       0       0       0
;;      Totals:         8       0       0       0
;;Total ram usage:        8 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		___ftdiv
;;		___ftmul
;;		___lwtoft
;;		___ftadd
;;		___lbtoft
;;		___abtoft
;;		___awtoft
;;		___altoft
;;		___lltoft
;;		___attoft
;;		___lttoft
;; This function uses a non-reentrant model
;;
psect	text671
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\float.c"
	line	63
	global	__size_of___ftpack
	__size_of___ftpack	equ	__end_of___ftpack-___ftpack
	
___ftpack:	
	opt	stack 5
; Regs used in ___ftpack: [wreg+status,2+status,0]
	line	64
	
l7153:	
	movf	(___ftpack@exp),w
	skipz
	goto	u3150
	goto	l7157
u3150:
	
l7155:	
	movf	(___ftpack@arg+2),w
	iorwf	(___ftpack@arg+1),w
	iorwf	(___ftpack@arg),w
	skipz
	goto	u3161
	goto	u3160
u3161:
	goto	l7163
u3160:
	goto	l7157
	
l4953:	
	line	65
	
l7157:	
	movlw	0x0
	movwf	(?___ftpack)
	movlw	0x0
	movwf	(?___ftpack+1)
	movlw	0x0
	movwf	(?___ftpack+2)
	goto	l4954
	
l7159:	
	goto	l4954
	
l4951:	
	line	66
	goto	l7163
	
l4956:	
	line	67
	
l7161:	
	movlw	(01h)
	movwf	(??___ftpack+0)+0
	movf	(??___ftpack+0)+0,w
	addwf	(___ftpack@exp),f
	line	68
	movlw	01h
u3175:
	clrc
	rrf	(___ftpack@arg+2),f
	rrf	(___ftpack@arg+1),f
	rrf	(___ftpack@arg),f
	addlw	-1
	skipz
	goto	u3175

	goto	l7163
	line	69
	
l4955:	
	line	66
	
l7163:	
	movlw	low highword(0FE0000h)
	andwf	(___ftpack@arg+2),w
	btfss	status,2
	goto	u3181
	goto	u3180
u3181:
	goto	l7161
u3180:
	goto	l4958
	
l4957:	
	line	70
	goto	l4958
	
l4959:	
	line	71
	
l7165:	
	movlw	(01h)
	movwf	(??___ftpack+0)+0
	movf	(??___ftpack+0)+0,w
	addwf	(___ftpack@exp),f
	line	72
	
l7167:	
	movlw	01h
	addwf	(___ftpack@arg),f
	movlw	0
	skipnc
movlw 1
	addwf	(___ftpack@arg+1),f
	movlw	0
	skipnc
movlw 1
	addwf	(___ftpack@arg+2),f
	line	73
	
l7169:	
	movlw	01h
u3195:
	clrc
	rrf	(___ftpack@arg+2),f
	rrf	(___ftpack@arg+1),f
	rrf	(___ftpack@arg),f
	addlw	-1
	skipz
	goto	u3195

	line	74
	
l4958:	
	line	70
	movlw	low highword(0FF0000h)
	andwf	(___ftpack@arg+2),w
	btfss	status,2
	goto	u3201
	goto	u3200
u3201:
	goto	l7165
u3200:
	goto	l7173
	
l4960:	
	line	75
	goto	l7173
	
l4962:	
	line	76
	
l7171:	
	movlw	low(01h)
	subwf	(___ftpack@exp),f
	line	77
	movlw	01h
u3215:
	clrc
	rlf	(___ftpack@arg),f
	rlf	(___ftpack@arg+1),f
	rlf	(___ftpack@arg+2),f
	addlw	-1
	skipz
	goto	u3215
	goto	l7173
	line	78
	
l4961:	
	line	75
	
l7173:	
	btfss	(___ftpack@arg+1),(15)&7
	goto	u3221
	goto	u3220
u3221:
	goto	l7171
u3220:
	
l4963:	
	line	79
	btfsc	(___ftpack@exp),(0)&7
	goto	u3231
	goto	u3230
u3231:
	goto	l4964
u3230:
	line	80
	
l7175:	
	movlw	0FFh
	andwf	(___ftpack@arg),f
	movlw	07Fh
	andwf	(___ftpack@arg+1),f
	movlw	0FFh
	andwf	(___ftpack@arg+2),f
	
l4964:	
	line	81
	clrc
	rrf	(___ftpack@exp),f

	line	82
	
l7177:	
	movf	(___ftpack@exp),w
	movwf	((??___ftpack+0)+0)
	clrf	((??___ftpack+0)+0+1)
	clrf	((??___ftpack+0)+0+2)
	movlw	010h
u3245:
	clrc
	rlf	(??___ftpack+0)+0,f
	rlf	(??___ftpack+0)+1,f
	rlf	(??___ftpack+0)+2,f
u3240:
	addlw	-1
	skipz
	goto	u3245
	movf	0+(??___ftpack+0)+0,w
	iorwf	(___ftpack@arg),f
	movf	1+(??___ftpack+0)+0,w
	iorwf	(___ftpack@arg+1),f
	movf	2+(??___ftpack+0)+0,w
	iorwf	(___ftpack@arg+2),f
	line	83
	
l7179:	
	movf	(___ftpack@sign),w
	skipz
	goto	u3250
	goto	l4965
u3250:
	line	84
	
l7181:	
	bsf	(___ftpack@arg)+(23/8),(23)&7
	
l4965:	
	line	85
	line	86
	
l4954:	
	return
	opt stack 0
GLOBAL	__end_of___ftpack
	__end_of___ftpack:
;; =============== function ___ftpack ends ============

	signat	___ftpack,12411
	global	_init_PIC
psect	text672,local,class=CODE,delta=2
global __ptext672
__ptext672:

;; *************** function _init_PIC *****************
;; Defined at:
;;		line 15 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; 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:         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	text672
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\svastara.c"
	line	15
	global	__size_of_init_PIC
	__size_of_init_PIC	equ	__end_of_init_PIC-_init_PIC
	
_init_PIC:	
	opt	stack 7
; Regs used in _init_PIC: [wreg+status,2]
	line	16
	
l7077:	
;svastara.c: 16: ANSEL = 0x00;
	bcf	status, 5	;RP0=0, select bank2
	bsf	status, 6	;RP1=1, select bank2
	clrf	(286)^0100h	;volatile
	line	17
;svastara.c: 17: ANSELH = 0x00;
	clrf	(287)^0100h	;volatile
	line	18
;svastara.c: 18: TRISA = 0x00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(133)^080h	;volatile
	line	19
;svastara.c: 19: TRISC = 0x00;
	clrf	(135)^080h	;volatile
	line	20
;svastara.c: 20: PORTA = 0x00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(5)	;volatile
	line	21
	
l7079:	
;svastara.c: 21: TRISB = 0xF0;
	movlw	(0F0h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(134)^080h	;volatile
	line	22
	
l7081:	
;svastara.c: 22: SSPCON = 0b00111011;
	movlw	(03Bh)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(20)	;volatile
	line	23
	
l3700:	
	return
	opt stack 0
GLOBAL	__end_of_init_PIC
	__end_of_init_PIC:
;; =============== function _init_PIC ends ============

	signat	_init_PIC,88
	global	_rs232_send_byte
psect	text673,local,class=CODE,delta=2
global __ptext673
__ptext673:

;; *************** function _rs232_send_byte *****************
;; Defined at:
;;		line 20 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\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:
;;		_rs232_send_text
;;		_main
;;		_acc_skaliranje
;;		_gyro_skaliranje
;;		_mag_skaliranje
;; This function uses a non-reentrant model
;;
psect	text673
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\rs232.c"
	line	20
	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	21
	
l7075:	
;rs232.c: 21: 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	22
;rs232.c: 22: while(!TRMT);
	goto	l1853
	
l1854:	
	
l1853:	
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfss	(1217/8)^080h,(1217)&7
	goto	u2901
	goto	u2900
u2901:
	goto	l1853
u2900:
	goto	l1856
	
l1855:	
	line	24
;rs232.c: 23: return;
	
l1856:	
	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	text674,local,class=CODE,delta=2
global __ptext674
__ptext674:

;; *************** function _rs232_init *****************
;; Defined at:
;;		line 9 in file "C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\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	text674
	file	"C:\Program Files (x86)\Microchip\MPLAB Projekti\PROJEKT\Zadatak 4\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
	
l7065:	
;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
	
l7067:	
;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
	
l7069:	
;rs232.c: 13: TXSTA = 0b00100110;
	movlw	(026h)
	movwf	(152)^080h	;volatile
	line	14
	
l7071:	
;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	l1850
	line	16
	
l7073:	
	line	17
;rs232.c: 16: return(0);
;	Return value of _rs232_init is never used
	
l1850:	
	return
	opt stack 0
GLOBAL	__end_of_rs232_init
	__end_of_rs232_init:
;; =============== function _rs232_init ends ============

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

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