
AVRASM ver. 2.1.30  C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm Sat Dec 08 01:02:05 2012

C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1051): warning: Register r4 already defined by the .DEF directive
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1052): warning: Register r7 already defined by the .DEF directive
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1053): warning: Register r6 already defined by the .DEF directive
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1054): warning: Register r9 already defined by the .DEF directive
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1055): warning: Register r8 already defined by the .DEF directive
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1056): warning: Register r11 already defined by the .DEF directive
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1057): warning: Register r10 already defined by the .DEF directive
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1058): warning: Register r13 already defined by the .DEF directive
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1059): warning: Register r12 already defined by the .DEF directive
                 
                 
                 ;CodeVisionAVR C Compiler V2.04.4a Advanced
                 ;(C) Copyright 1998-2009 Pavel Haiduc, HP InfoTech s.r.l.
                 ;http://www.hpinfotech.com
                 
                 ;Chip type                : ATmega8
                 ;Program type             : Application
                 ;Clock frequency          : 8,000000 MHz
                 ;Memory model             : Small
                 ;Optimize for             : Speed
                 ;(s)printf features       : int, width
                 ;(s)scanf features        : int, width
                 ;External RAM size        : 0
                 ;Data Stack size          : 256 byte(s)
                 ;Heap size                : 0 byte(s)
                 ;Promote 'char' to 'int'  : Yes
                 ;'char' is unsigned       : Yes
                 ;8 bit enums              : Yes
                 ;global 'const' stored in FLASH: No
                 ;Enhanced core instructions    : On
                 ;Smart register allocation     : On
                 ;Automatic register allocation : On
                 
                 	#pragma AVRPART ADMIN PART_NAME ATmega8
                 	#pragma AVRPART MEMORY PROG_FLASH 8192
                 	#pragma AVRPART MEMORY EEPROM 512
                 	#pragma AVRPART MEMORY INT_SRAM SIZE 1024
                 	#pragma AVRPART MEMORY INT_SRAM START_ADDR 0x60
                 
                 	.LISTMAC
                 	.EQU UDRE=0x5
                 	.EQU RXC=0x7
                 	.EQU USR=0xB
                 	.EQU UDR=0xC
                 	.EQU SPSR=0xE
                 	.EQU SPDR=0xF
                 	.EQU EERE=0x0
                 	.EQU EEWE=0x1
                 	.EQU EEMWE=0x2
                 	.EQU EECR=0x1C
                 	.EQU EEDR=0x1D
                 	.EQU EEARL=0x1E
                 	.EQU EEARH=0x1F
                 	.EQU WDTCR=0x21
                 	.EQU MCUCR=0x35
                 	.EQU GICR=0x3B
                 	.EQU SPL=0x3D
                 	.EQU SPH=0x3E
                 	.EQU SREG=0x3F
                 
                 	.DEF R0X0=R0
                 	.DEF R0X1=R1
                 	.DEF R0X2=R2
                 	.DEF R0X3=R3
                 	.DEF R0X4=R4
                 	.DEF R0X5=R5
                 	.DEF R0X6=R6
                 	.DEF R0X7=R7
                 	.DEF R0X8=R8
                 	.DEF R0X9=R9
                 	.DEF R0XA=R10
                 	.DEF R0XB=R11
                 	.DEF R0XC=R12
                 	.DEF R0XD=R13
                 	.DEF R0XE=R14
                 	.DEF R0XF=R15
                 	.DEF R0X10=R16
                 	.DEF R0X11=R17
                 	.DEF R0X12=R18
                 	.DEF R0X13=R19
                 	.DEF R0X14=R20
                 	.DEF R0X15=R21
                 	.DEF R0X16=R22
                 	.DEF R0X17=R23
                 	.DEF R0X18=R24
                 	.DEF R0X19=R25
                 	.DEF R0X1A=R26
                 	.DEF R0X1B=R27
                 	.DEF R0X1C=R28
                 	.DEF R0X1D=R29
                 	.DEF R0X1E=R30
                 	.DEF R0X1F=R31
                 
                 	.MACRO __CPD1N
                 	CPI  R30,LOW(@0)
                 	LDI  R26,HIGH(@0)
                 	CPC  R31,R26
                 	LDI  R26,BYTE3(@0)
                 	CPC  R22,R26
                 	LDI  R26,BYTE4(@0)
                 	CPC  R23,R26
                 	.ENDM
                 
                 	.MACRO __CPD2N
                 	CPI  R26,LOW(@0)
                 	LDI  R30,HIGH(@0)
                 	CPC  R27,R30
                 	LDI  R30,BYTE3(@0)
                 	CPC  R24,R30
                 	LDI  R30,BYTE4(@0)
                 	CPC  R25,R30
                 	.ENDM
                 
                 	.MACRO __CPWRR
                 	CP   R@0,R@2
                 	CPC  R@1,R@3
                 	.ENDM
                 
                 	.MACRO __CPWRN
                 	CPI  R@0,LOW(@2)
                 	LDI  R30,HIGH(@2)
                 	CPC  R@1,R30
                 	.ENDM
                 
                 	.MACRO __ADDB1MN
                 	SUBI R30,LOW(-@0-(@1))
                 	.ENDM
                 
                 	.MACRO __ADDB2MN
                 	SUBI R26,LOW(-@0-(@1))
                 	.ENDM
                 
                 	.MACRO __ADDW1MN
                 	SUBI R30,LOW(-@0-(@1))
                 	SBCI R31,HIGH(-@0-(@1))
                 	.ENDM
                 
                 	.MACRO __ADDW2MN
                 	SUBI R26,LOW(-@0-(@1))
                 	SBCI R27,HIGH(-@0-(@1))
                 	.ENDM
                 
                 	.MACRO __ADDW1FN
                 	SUBI R30,LOW(-2*@0-(@1))
                 	SBCI R31,HIGH(-2*@0-(@1))
                 	.ENDM
                 
                 	.MACRO __ADDD1FN
                 	SUBI R30,LOW(-2*@0-(@1))
                 	SBCI R31,HIGH(-2*@0-(@1))
                 	SBCI R22,BYTE3(-2*@0-(@1))
                 	.ENDM
                 
                 	.MACRO __ADDD1N
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	SBCI R22,BYTE3(-@0)
                 	SBCI R23,BYTE4(-@0)
                 	.ENDM
                 
                 	.MACRO __ADDD2N
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	SBCI R24,BYTE3(-@0)
                 	SBCI R25,BYTE4(-@0)
                 	.ENDM
                 
                 	.MACRO __SUBD1N
                 	SUBI R30,LOW(@0)
                 	SBCI R31,HIGH(@0)
                 	SBCI R22,BYTE3(@0)
                 	SBCI R23,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __SUBD2N
                 	SUBI R26,LOW(@0)
                 	SBCI R27,HIGH(@0)
                 	SBCI R24,BYTE3(@0)
                 	SBCI R25,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __ANDBMNN
                 	LDS  R30,@0+(@1)
                 	ANDI R30,LOW(@2)
                 	STS  @0+(@1),R30
                 	.ENDM
                 
                 	.MACRO __ANDWMNN
                 	LDS  R30,@0+(@1)
                 	ANDI R30,LOW(@2)
                 	STS  @0+(@1),R30
                 	LDS  R30,@0+(@1)+1
                 	ANDI R30,HIGH(@2)
                 	STS  @0+(@1)+1,R30
                 	.ENDM
                 
                 	.MACRO __ANDD1N
                 	ANDI R30,LOW(@0)
                 	ANDI R31,HIGH(@0)
                 	ANDI R22,BYTE3(@0)
                 	ANDI R23,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __ANDD2N
                 	ANDI R26,LOW(@0)
                 	ANDI R27,HIGH(@0)
                 	ANDI R24,BYTE3(@0)
                 	ANDI R25,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __ORBMNN
                 	LDS  R30,@0+(@1)
                 	ORI  R30,LOW(@2)
                 	STS  @0+(@1),R30
                 	.ENDM
                 
                 	.MACRO __ORWMNN
                 	LDS  R30,@0+(@1)
                 	ORI  R30,LOW(@2)
                 	STS  @0+(@1),R30
                 	LDS  R30,@0+(@1)+1
                 	ORI  R30,HIGH(@2)
                 	STS  @0+(@1)+1,R30
                 	.ENDM
                 
                 	.MACRO __ORD1N
                 	ORI  R30,LOW(@0)
                 	ORI  R31,HIGH(@0)
                 	ORI  R22,BYTE3(@0)
                 	ORI  R23,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __ORD2N
                 	ORI  R26,LOW(@0)
                 	ORI  R27,HIGH(@0)
                 	ORI  R24,BYTE3(@0)
                 	ORI  R25,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __DELAY_USB
                 	LDI  R24,LOW(@0)
                 __DELAY_USB_LOOP:
                 	DEC  R24
                 	BRNE __DELAY_USB_LOOP
                 	.ENDM
                 
                 	.MACRO __DELAY_USW
                 	LDI  R24,LOW(@0)
                 	LDI  R25,HIGH(@0)
                 __DELAY_USW_LOOP:
                 	SBIW R24,1
                 	BRNE __DELAY_USW_LOOP
                 	.ENDM
                 
                 	.MACRO __GETD1S
                 	LDD  R30,Y+@0
                 	LDD  R31,Y+@0+1
                 	LDD  R22,Y+@0+2
                 	LDD  R23,Y+@0+3
                 	.ENDM
                 
                 	.MACRO __GETD2S
                 	LDD  R26,Y+@0
                 	LDD  R27,Y+@0+1
                 	LDD  R24,Y+@0+2
                 	LDD  R25,Y+@0+3
                 	.ENDM
                 
                 	.MACRO __PUTD1S
                 	STD  Y+@0,R30
                 	STD  Y+@0+1,R31
                 	STD  Y+@0+2,R22
                 	STD  Y+@0+3,R23
                 	.ENDM
                 
                 	.MACRO __PUTD2S
                 	STD  Y+@0,R26
                 	STD  Y+@0+1,R27
                 	STD  Y+@0+2,R24
                 	STD  Y+@0+3,R25
                 	.ENDM
                 
                 	.MACRO __PUTDZ2
                 	STD  Z+@0,R26
                 	STD  Z+@0+1,R27
                 	STD  Z+@0+2,R24
                 	STD  Z+@0+3,R25
                 	.ENDM
                 
                 	.MACRO __CLRD1S
                 	STD  Y+@0,R30
                 	STD  Y+@0+1,R30
                 	STD  Y+@0+2,R30
                 	STD  Y+@0+3,R30
                 	.ENDM
                 
                 	.MACRO __POINTB1MN
                 	LDI  R30,LOW(@0+(@1))
                 	.ENDM
                 
                 	.MACRO __POINTW1MN
                 	LDI  R30,LOW(@0+(@1))
                 	LDI  R31,HIGH(@0+(@1))
                 	.ENDM
                 
                 	.MACRO __POINTD1M
                 	LDI  R30,LOW(@0)
                 	LDI  R31,HIGH(@0)
                 	LDI  R22,BYTE3(@0)
                 	LDI  R23,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __POINTW1FN
                 	LDI  R30,LOW(2*@0+(@1))
                 	LDI  R31,HIGH(2*@0+(@1))
                 	.ENDM
                 
                 	.MACRO __POINTD1FN
                 	LDI  R30,LOW(2*@0+(@1))
                 	LDI  R31,HIGH(2*@0+(@1))
                 	LDI  R22,BYTE3(2*@0+(@1))
                 	LDI  R23,BYTE4(2*@0+(@1))
                 	.ENDM
                 
                 	.MACRO __POINTB2MN
                 	LDI  R26,LOW(@0+(@1))
                 	.ENDM
                 
                 	.MACRO __POINTW2MN
                 	LDI  R26,LOW(@0+(@1))
                 	LDI  R27,HIGH(@0+(@1))
                 	.ENDM
                 
                 	.MACRO __POINTBRM
                 	LDI  R@0,LOW(@1)
                 	.ENDM
                 
                 	.MACRO __POINTWRM
                 	LDI  R@0,LOW(@2)
                 	LDI  R@1,HIGH(@2)
                 	.ENDM
                 
                 	.MACRO __POINTBRMN
                 	LDI  R@0,LOW(@1+(@2))
                 	.ENDM
                 
                 	.MACRO __POINTWRMN
                 	LDI  R@0,LOW(@2+(@3))
                 	LDI  R@1,HIGH(@2+(@3))
                 	.ENDM
                 
                 	.MACRO __POINTWRFN
                 	LDI  R@0,LOW(@2*2+(@3))
                 	LDI  R@1,HIGH(@2*2+(@3))
                 	.ENDM
                 
                 	.MACRO __GETD1N
                 	LDI  R30,LOW(@0)
                 	LDI  R31,HIGH(@0)
                 	LDI  R22,BYTE3(@0)
                 	LDI  R23,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __GETD2N
                 	LDI  R26,LOW(@0)
                 	LDI  R27,HIGH(@0)
                 	LDI  R24,BYTE3(@0)
                 	LDI  R25,BYTE4(@0)
                 	.ENDM
                 
                 	.MACRO __GETB1MN
                 	LDS  R30,@0+(@1)
                 	.ENDM
                 
                 	.MACRO __GETB1HMN
                 	LDS  R31,@0+(@1)
                 	.ENDM
                 
                 	.MACRO __GETW1MN
                 	LDS  R30,@0+(@1)
                 	LDS  R31,@0+(@1)+1
                 	.ENDM
                 
                 	.MACRO __GETD1MN
                 	LDS  R30,@0+(@1)
                 	LDS  R31,@0+(@1)+1
                 	LDS  R22,@0+(@1)+2
                 	LDS  R23,@0+(@1)+3
                 	.ENDM
                 
                 	.MACRO __GETBRMN
                 	LDS  R@0,@1+(@2)
                 	.ENDM
                 
                 	.MACRO __GETWRMN
                 	LDS  R@0,@2+(@3)
                 	LDS  R@1,@2+(@3)+1
                 	.ENDM
                 
                 	.MACRO __GETWRZ
                 	LDD  R@0,Z+@2
                 	LDD  R@1,Z+@2+1
                 	.ENDM
                 
                 	.MACRO __GETD2Z
                 	LDD  R26,Z+@0
                 	LDD  R27,Z+@0+1
                 	LDD  R24,Z+@0+2
                 	LDD  R25,Z+@0+3
                 	.ENDM
                 
                 	.MACRO __GETB2MN
                 	LDS  R26,@0+(@1)
                 	.ENDM
                 
                 	.MACRO __GETW2MN
                 	LDS  R26,@0+(@1)
                 	LDS  R27,@0+(@1)+1
                 	.ENDM
                 
                 	.MACRO __GETD2MN
                 	LDS  R26,@0+(@1)
                 	LDS  R27,@0+(@1)+1
                 	LDS  R24,@0+(@1)+2
                 	LDS  R25,@0+(@1)+3
                 	.ENDM
                 
                 	.MACRO __PUTB1MN
                 	STS  @0+(@1),R30
                 	.ENDM
                 
                 	.MACRO __PUTW1MN
                 	STS  @0+(@1),R30
                 	STS  @0+(@1)+1,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1MN
                 	STS  @0+(@1),R30
                 	STS  @0+(@1)+1,R31
                 	STS  @0+(@1)+2,R22
                 	STS  @0+(@1)+3,R23
                 	.ENDM
                 
                 	.MACRO __PUTB1EN
                 	LDI  R26,LOW(@0+(@1))
                 	LDI  R27,HIGH(@0+(@1))
                 	RCALL __EEPROMWRB
                 	.ENDM
                 
                 	.MACRO __PUTW1EN
                 	LDI  R26,LOW(@0+(@1))
                 	LDI  R27,HIGH(@0+(@1))
                 	RCALL __EEPROMWRW
                 	.ENDM
                 
                 	.MACRO __PUTD1EN
                 	LDI  R26,LOW(@0+(@1))
                 	LDI  R27,HIGH(@0+(@1))
                 	RCALL __EEPROMWRD
                 	.ENDM
                 
                 	.MACRO __PUTBR0MN
                 	STS  @0+(@1),R0
                 	.ENDM
                 
                 	.MACRO __PUTBMRN
                 	STS  @0+(@1),R@2
                 	.ENDM
                 
                 	.MACRO __PUTWMRN
                 	STS  @0+(@1),R@2
                 	STS  @0+(@1)+1,R@3
                 	.ENDM
                 
                 	.MACRO __PUTBZR
                 	STD  Z+@1,R@0
                 	.ENDM
                 
                 	.MACRO __PUTWZR
                 	STD  Z+@2,R@0
                 	STD  Z+@2+1,R@1
                 	.ENDM
                 
                 	.MACRO __GETW1R
                 	MOV  R30,R@0
                 	MOV  R31,R@1
                 	.ENDM
                 
                 	.MACRO __GETW2R
                 	MOV  R26,R@0
                 	MOV  R27,R@1
                 	.ENDM
                 
                 	.MACRO __GETWRN
                 	LDI  R@0,LOW(@2)
                 	LDI  R@1,HIGH(@2)
                 	.ENDM
                 
                 	.MACRO __PUTW1R
                 	MOV  R@0,R30
                 	MOV  R@1,R31
                 	.ENDM
                 
                 	.MACRO __PUTW2R
                 	MOV  R@0,R26
                 	MOV  R@1,R27
                 	.ENDM
                 
                 	.MACRO __ADDWRN
                 	SUBI R@0,LOW(-@2)
                 	SBCI R@1,HIGH(-@2)
                 	.ENDM
                 
                 	.MACRO __ADDWRR
                 	ADD  R@0,R@2
                 	ADC  R@1,R@3
                 	.ENDM
                 
                 	.MACRO __SUBWRN
                 	SUBI R@0,LOW(@2)
                 	SBCI R@1,HIGH(@2)
                 	.ENDM
                 
                 	.MACRO __SUBWRR
                 	SUB  R@0,R@2
                 	SBC  R@1,R@3
                 	.ENDM
                 
                 	.MACRO __ANDWRN
                 	ANDI R@0,LOW(@2)
                 	ANDI R@1,HIGH(@2)
                 	.ENDM
                 
                 	.MACRO __ANDWRR
                 	AND  R@0,R@2
                 	AND  R@1,R@3
                 	.ENDM
                 
                 	.MACRO __ORWRN
                 	ORI  R@0,LOW(@2)
                 	ORI  R@1,HIGH(@2)
                 	.ENDM
                 
                 	.MACRO __ORWRR
                 	OR   R@0,R@2
                 	OR   R@1,R@3
                 	.ENDM
                 
                 	.MACRO __EORWRR
                 	EOR  R@0,R@2
                 	EOR  R@1,R@3
                 	.ENDM
                 
                 	.MACRO __GETWRS
                 	LDD  R@0,Y+@2
                 	LDD  R@1,Y+@2+1
                 	.ENDM
                 
                 	.MACRO __PUTBSR
                 	STD  Y+@1,R@0
                 	.ENDM
                 
                 	.MACRO __PUTWSR
                 	STD  Y+@2,R@0
                 	STD  Y+@2+1,R@1
                 	.ENDM
                 
                 	.MACRO __MOVEWRR
                 	MOV  R@0,R@2
                 	MOV  R@1,R@3
                 	.ENDM
                 
                 	.MACRO __INWR
                 	IN   R@0,@2
                 	IN   R@1,@2+1
                 	.ENDM
                 
                 	.MACRO __OUTWR
                 	OUT  @2+1,R@1
                 	OUT  @2,R@0
                 	.ENDM
                 
                 	.MACRO __CALL1MN
                 	LDS  R30,@0+(@1)
                 	LDS  R31,@0+(@1)+1
                 	ICALL
                 	.ENDM
                 
                 	.MACRO __CALL1FN
                 	LDI  R30,LOW(2*@0+(@1))
                 	LDI  R31,HIGH(2*@0+(@1))
                 	RCALL __GETW1PF
                 	ICALL
                 	.ENDM
                 
                 	.MACRO __CALL2EN
                 	LDI  R26,LOW(@0+(@1))
                 	LDI  R27,HIGH(@0+(@1))
                 	RCALL __EEPROMRDW
                 	ICALL
                 	.ENDM
                 
                 	.MACRO __GETW1STACK
                 	IN   R26,SPL
                 	IN   R27,SPH
                 	ADIW R26,@0+1
                 	LD   R30,X+
                 	LD   R31,X
                 	.ENDM
                 
                 	.MACRO __GETD1STACK
                 	IN   R26,SPL
                 	IN   R27,SPH
                 	ADIW R26,@0+1
                 	LD   R30,X+
                 	LD   R31,X+
                 	LD   R22,X
                 	.ENDM
                 
                 	.MACRO __NBST
                 	BST  R@0,@1
                 	IN   R30,SREG
                 	LDI  R31,0x40
                 	EOR  R30,R31
                 	OUT  SREG,R30
                 	.ENDM
                 
                 
                 	.MACRO __PUTB1SN
                 	LDD  R26,Y+@0
                 	LDD  R27,Y+@0+1
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1SN
                 	LDD  R26,Y+@0
                 	LDD  R27,Y+@0+1
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1SN
                 	LDD  R26,Y+@0
                 	LDD  R27,Y+@0+1
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	RCALL __PUTDP1
                 	.ENDM
                 
                 	.MACRO __PUTB1SNS
                 	LDD  R26,Y+@0
                 	LDD  R27,Y+@0+1
                 	ADIW R26,@1
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1SNS
                 	LDD  R26,Y+@0
                 	LDD  R27,Y+@0+1
                 	ADIW R26,@1
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1SNS
                 	LDD  R26,Y+@0
                 	LDD  R27,Y+@0+1
                 	ADIW R26,@1
                 	RCALL __PUTDP1
                 	.ENDM
                 
                 	.MACRO __PUTB1PMN
                 	LDS  R26,@0
                 	LDS  R27,@0+1
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1PMN
                 	LDS  R26,@0
                 	LDS  R27,@0+1
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1PMN
                 	LDS  R26,@0
                 	LDS  R27,@0+1
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	RCALL __PUTDP1
                 	.ENDM
                 
                 	.MACRO __PUTB1PMNS
                 	LDS  R26,@0
                 	LDS  R27,@0+1
                 	ADIW R26,@1
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1PMNS
                 	LDS  R26,@0
                 	LDS  R27,@0+1
                 	ADIW R26,@1
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1PMNS
                 	LDS  R26,@0
                 	LDS  R27,@0+1
                 	ADIW R26,@1
                 	RCALL __PUTDP1
                 	.ENDM
                 
                 	.MACRO __PUTB1RN
                 	MOVW R26,R@0
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1RN
                 	MOVW R26,R@0
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1RN
                 	MOVW R26,R@0
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	RCALL __PUTDP1
                 	.ENDM
                 
                 	.MACRO __PUTB1RNS
                 	MOVW R26,R@0
                 	ADIW R26,@1
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1RNS
                 	MOVW R26,R@0
                 	ADIW R26,@1
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1RNS
                 	MOVW R26,R@0
                 	ADIW R26,@1
                 	RCALL __PUTDP1
                 	.ENDM
                 
                 	.MACRO __PUTB1RON
                 	MOV  R26,R@0
                 	MOV  R27,R@1
                 	SUBI R26,LOW(-@2)
                 	SBCI R27,HIGH(-@2)
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1RON
                 	MOV  R26,R@0
                 	MOV  R27,R@1
                 	SUBI R26,LOW(-@2)
                 	SBCI R27,HIGH(-@2)
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1RON
                 	MOV  R26,R@0
                 	MOV  R27,R@1
                 	SUBI R26,LOW(-@2)
                 	SBCI R27,HIGH(-@2)
                 	RCALL __PUTDP1
                 	.ENDM
                 
                 	.MACRO __PUTB1RONS
                 	MOV  R26,R@0
                 	MOV  R27,R@1
                 	ADIW R26,@2
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1RONS
                 	MOV  R26,R@0
                 	MOV  R27,R@1
                 	ADIW R26,@2
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1RONS
                 	MOV  R26,R@0
                 	MOV  R27,R@1
                 	ADIW R26,@2
                 	RCALL __PUTDP1
                 	.ENDM
                 
                 
                 	.MACRO __GETB1SX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	LD   R30,Z
                 	.ENDM
                 
                 	.MACRO __GETB1HSX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	LD   R31,Z
                 	.ENDM
                 
                 	.MACRO __GETW1SX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	LD   R0,Z+
                 	LD   R31,Z
                 	MOV  R30,R0
                 	.ENDM
                 
                 	.MACRO __GETD1SX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	LD   R0,Z+
                 	LD   R1,Z+
                 	LD   R22,Z+
                 	LD   R23,Z
                 	MOVW R30,R0
                 	.ENDM
                 
                 	.MACRO __GETB2SX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	LD   R26,X
                 	.ENDM
                 
                 	.MACRO __GETW2SX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	LD   R0,X+
                 	LD   R27,X
                 	MOV  R26,R0
                 	.ENDM
                 
                 	.MACRO __GETD2SX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	LD   R0,X+
                 	LD   R1,X+
                 	LD   R24,X+
                 	LD   R25,X
                 	MOVW R26,R0
                 	.ENDM
                 
                 	.MACRO __GETBRSX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@1)
                 	SBCI R31,HIGH(-@1)
                 	LD   R@0,Z
                 	.ENDM
                 
                 	.MACRO __GETWRSX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@2)
                 	SBCI R31,HIGH(-@2)
                 	LD   R@0,Z+
                 	LD   R@1,Z
                 	.ENDM
                 
                 	.MACRO __GETBRSX2
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	LD   R@0,X
                 	.ENDM
                 
                 	.MACRO __GETWRSX2
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@2)
                 	SBCI R27,HIGH(-@2)
                 	LD   R@0,X+
                 	LD   R@1,X
                 	.ENDM
                 
                 	.MACRO __LSLW8SX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	LD   R31,Z
                 	CLR  R30
                 	.ENDM
                 
                 	.MACRO __PUTB1SX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1SX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1SX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	ST   X+,R30
                 	ST   X+,R31
                 	ST   X+,R22
                 	ST   X,R23
                 	.ENDM
                 
                 	.MACRO __CLRW1SX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	ST   X+,R30
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __CLRD1SX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	ST   X+,R30
                 	ST   X+,R30
                 	ST   X+,R30
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTB2SX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	ST   Z,R26
                 	.ENDM
                 
                 	.MACRO __PUTW2SX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	ST   Z+,R26
                 	ST   Z,R27
                 	.ENDM
                 
                 	.MACRO __PUTD2SX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@0)
                 	SBCI R31,HIGH(-@0)
                 	ST   Z+,R26
                 	ST   Z+,R27
                 	ST   Z+,R24
                 	ST   Z,R25
                 	.ENDM
                 
                 	.MACRO __PUTBSRX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@1)
                 	SBCI R31,HIGH(-@1)
                 	ST   Z,R@0
                 	.ENDM
                 
                 	.MACRO __PUTWSRX
                 	MOVW R30,R28
                 	SUBI R30,LOW(-@2)
                 	SBCI R31,HIGH(-@2)
                 	ST   Z+,R@0
                 	ST   Z,R@1
                 	.ENDM
                 
                 	.MACRO __PUTB1SNX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	LD   R0,X+
                 	LD   R27,X
                 	MOV  R26,R0
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X,R30
                 	.ENDM
                 
                 	.MACRO __PUTW1SNX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	LD   R0,X+
                 	LD   R27,X
                 	MOV  R26,R0
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X+,R30
                 	ST   X,R31
                 	.ENDM
                 
                 	.MACRO __PUTD1SNX
                 	MOVW R26,R28
                 	SUBI R26,LOW(-@0)
                 	SBCI R27,HIGH(-@0)
                 	LD   R0,X+
                 	LD   R27,X
                 	MOV  R26,R0
                 	SUBI R26,LOW(-@1)
                 	SBCI R27,HIGH(-@1)
                 	ST   X+,R30
                 	ST   X+,R31
                 	ST   X+,R22
                 	ST   X,R23
                 	.ENDM
                 
                 	.MACRO __MULBRR
                 	MULS R@0,R@1
                 	MOVW R30,R0
                 	.ENDM
                 
                 	.MACRO __MULBRRU
                 	MUL  R@0,R@1
                 	MOVW R30,R0
                 	.ENDM
                 
                 	.MACRO __MULBRR0
                 	MULS R@0,R@1
                 	.ENDM
                 
                 	.MACRO __MULBRRU0
                 	MUL  R@0,R@1
                 	.ENDM
                 
                 	.MACRO __MULBNWRU
                 	LDI  R26,@2
                 	MUL  R26,R@0
                 	MOVW R30,R0
                 	MUL  R26,R@1
                 	ADD  R31,R0
                 	.ENDM
                 
                 ;NAME DEFINITIONS FOR GLOBAL VARIABLES ALLOCATED TO REGISTERS
                 	.DEF _gADC_result=R4
                 	.DEF _mdav=R7
                 	.DEF _mdav2=R6
                 	.DEF _mdav3=R9
                 	.DEF _idav=R8
                 	.DEF _Uzlaik=R11
                 	.DEF _davnr=R10
                 	.DEF _tmp=R13
                 	.DEF _PORTBOLD=R12
                 
                 	.CSEG
                 	.ORG 0x00
                 
                 ;INTERRUPT VECTORS
000000 c027      	RJMP __RESET
000001 cffe      	RJMP 0x00
000002 cffd      	RJMP 0x00
000003 cffc      	RJMP 0x00
000004 cffb      	RJMP 0x00
000005 cffa      	RJMP 0x00
000006 cff9      	RJMP 0x00
000007 cff8      	RJMP 0x00
000008 c04e      	RJMP _timer1_ovf_isr
000009 cff6      	RJMP 0x00
00000a cff5      	RJMP 0x00
00000b cff4      	RJMP 0x00
00000c cff3      	RJMP 0x00
00000d cff2      	RJMP 0x00
00000e c0be      	RJMP _adc_isr
00000f cff0      	RJMP 0x00
000010 cfef      	RJMP 0x00
000011 cfee      	RJMP 0x00
000012 cfed      	RJMP 0x00
                 
                 ;REGISTER BIT VARIABLES INITIALIZATION
                 __REG_BIT_VARS:
000013 0000      	.DW  0x0000
                 
                 _0x3:
000014 0a05
000015 190f      	.DB  0x5,0xA,0xF,0x19
                 _0x20:
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1092): warning: .cseg .db misalignment - padding zero byte
000016 000f      	.DB  0xF
                 _0x200005F:
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1094): warning: .cseg .db misalignment - padding zero byte
000017 0001      	.DB  0x1
                 _0x2000000:
000018 4e2d
000019 4e41
C:\Users\Arnoldas\Desktop\ROBOTAS\DOCUMENTS\SSC dav16_4\ATmega8_ssc32\List\IR_dav.asm(1096): warning: .cseg .db misalignment - padding zero byte
00001a 0000      	.DB  0x2D,0x4E,0x41,0x4E,0x0
                 
                 __GLOBAL_INI_TBL:
00001b 0001      	.DW  0x01
00001c 0002      	.DW  0x02
00001d 0026      	.DW  __REG_BIT_VARS*2
                 
00001e 0004      	.DW  0x04
00001f 0161      	.DW  _lygispr
000020 0028      	.DW  _0x3*2
                 
000021 0001      	.DW  0x01
000022 0006      	.DW  0x06
000023 002c      	.DW  _0x20*2
                 
000024 0001      	.DW  0x01
000025 016b      	.DW  __seed_G100
000026 002e      	.DW  _0x200005F*2
                 
                 _0xFFFFFFFF:
000027 0000      	.DW  0
                 
                 __RESET:
000028 94f8      	CLI
000029 27ee      	CLR  R30
00002a bbec      	OUT  EECR,R30
                 
                 ;INTERRUPT VECTORS ARE PLACED
                 ;AT THE START OF FLASH
00002b e0f1      	LDI  R31,1
00002c bffb      	OUT  GICR,R31
00002d bfeb      	OUT  GICR,R30
00002e bfe5      	OUT  MCUCR,R30
                 
                 ;DISABLE WATCHDOG
00002f e1f8      	LDI  R31,0x18
000030 bdf1      	OUT  WDTCR,R31
000031 bde1      	OUT  WDTCR,R30
                 
                 ;CLEAR R2-R14
000032 e08d      	LDI  R24,(14-2)+1
000033 e0a2      	LDI  R26,2
000034 27bb      	CLR  R27
                 __CLEAR_REG:
000035 93ed      	ST   X+,R30
000036 958a      	DEC  R24
000037 f7e9      	BRNE __CLEAR_REG
                 
                 ;CLEAR SRAM
000038 e080      	LDI  R24,LOW(0x400)
000039 e094      	LDI  R25,HIGH(0x400)
00003a e6a0      	LDI  R26,0x60
                 __CLEAR_SRAM:
00003b 93ed      	ST   X+,R30
00003c 9701      	SBIW R24,1
00003d f7e9      	BRNE __CLEAR_SRAM
                 
                 ;GLOBAL VARIABLES INITIALIZATION
00003e e3e6      	LDI  R30,LOW(__GLOBAL_INI_TBL*2)
00003f e0f0      	LDI  R31,HIGH(__GLOBAL_INI_TBL*2)
                 __GLOBAL_INI_NEXT:
000040 9185      	LPM  R24,Z+
000041 9195      	LPM  R25,Z+
000042 9700      	SBIW R24,0
000043 f061      	BREQ __GLOBAL_INI_END
000044 91a5      	LPM  R26,Z+
000045 91b5      	LPM  R27,Z+
000046 9005      	LPM  R0,Z+
000047 9015      	LPM  R1,Z+
000048 01bf      	MOVW R22,R30
000049 01f0      	MOVW R30,R0
                 __GLOBAL_INI_LOOP:
00004a 9005      	LPM  R0,Z+
00004b 920d      	ST   X+,R0
00004c 9701      	SBIW R24,1
00004d f7e1      	BRNE __GLOBAL_INI_LOOP
00004e 01fb      	MOVW R30,R22
00004f cff0      	RJMP __GLOBAL_INI_NEXT
                 __GLOBAL_INI_END:
                 
                 ;STACK POINTER INITIALIZATION
000050 e5ef      	LDI  R30,LOW(0x45F)
000051 bfed      	OUT  SPL,R30
000052 e0e4      	LDI  R30,HIGH(0x45F)
000053 bfee      	OUT  SPH,R30
                 
                 ;DATA STACK POINTER INITIALIZATION
000054 e6c0      	LDI  R28,LOW(0x160)
000055 e0d1      	LDI  R29,HIGH(0x160)
                 
000056 c00b      	RJMP _main
                 
                 	.ESEG
                 	.ORG 0
                 
                 	.DSEG
                 	.ORG 0x160
                 
                 	.CSEG
                 ;//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                 ;// SSC32 4 bitu iejimu ispletimas  (3+3)  + 4
                 ;// Kas suveike konkreciai, nes davikliai "persidengia",
                 ;// galima perpatikrinti su SSC32 roboto valdymo programa
                 ;// Autorius: Arnoldas Cerniakovas 2012m, Kaunas
                 ;//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                 ;#include <mega8.h> //Prijungti mk Atmega8 biblioteka
                 	#ifndef __SLEEP_DEFINED__
                 	#define __SLEEP_DEFINED__
                 	.EQU __se_bit=0x80
                 	.EQU __sm_mask=0x70
                 	.EQU __sm_powerdown=0x20
                 	.EQU __sm_powersave=0x30
                 	.EQU __sm_standby=0x60
                 	.EQU __sm_ext_standby=0x70
                 	.EQU __sm_adc_noise_red=0x10
                 	.SET power_ctrl_reg=mcucr
                 	#endif
                 ;#include <delay.h>
                 ;#include <stdlib.h>
                 ;#define ADC_VREF_TYPE 0x20   //  ar  0x40
                 ;#define true 1   //  kartais nesupranta
                 ;#define false 0   //  kartais nesupranta
                 ;
                 ;bit ADC_complete;     //analogas-kodas keitiklio busena kai ADC_complete==1, skaitine reiksme gADC_result jau yra...
                 ;unsigned int gADC_result;      // analogas-kodas keitiklio reiksme
                 ;//unsigned char mdav1;    //
                 ;unsigned char mdav;
                 ;unsigned char mdav2=0b00001111;
                 ;unsigned char mdav3;
                 ;unsigned char idav;   //sroves davikliai
                 ;unsigned char Uzlaik; //timerio uzlaikymas
                 ;unsigned char davnr;
                 ;bit t1=0;  // taimeris 1   , jei =1 tai laiko tarpas praejo
                 ;unsigned char tmp;
                 ;unsigned char  PORTBOLD;
                 ;unsigned char  kanalas;
                 ;unsigned char lygispr[]={5,10,15,25};    //adc suveikimo pradiniai lygiai  pagal konkrecius varikliu galingumus
                 
                 	.DSEG
                 ;unsigned char lygis[]={0,0,0,0};    //adc suveikimo lygiai  pagal konkrecius varikliu galingumus
                 ;unsigned int adcjautrumas;
                 ;
                 ;// **************  Paprogramiu sarasas  *********************************************
                 ;    static  void  delay_ns(unsigned char __count);
                 ;    void Uzlaikymas ();
                 ;    void adcnust();     //  infrared davikliu inicializacija
                 ;   void adcDavApkl();
                 ;   void Jautrumas();
                 ;   void adcSuveikes();
                 ;
                 ;//** Taimerio [1] perpildymo pertraukimas
                 ;interrupt [TIM1_OVF] void timer1_ovf_isr(void){  //interrupt [TIM0_OVF] void timer0_ovf_isr(void)   //~3.4sek,kai TCNT0=0xFF; cik_sk=100;
                 ; 0000 0028 interrupt [9] void timer1_ovf_isr(void){
                 
                 	.CSEG
                 _timer1_ovf_isr:
000057 93ea      	ST   -Y,R30
000058 b7ef      	IN   R30,SREG
000059 93ea      	ST   -Y,R30
                 ; 0000 0029       TIMSK=0x00;
00005a e0e0      	LDI  R30,LOW(0)
00005b bfe9      	OUT  0x39,R30
                 ; 0000 002A     t1=false;
00005c 94e8      	CLT
00005d f821      	BLD  R2,1
                 ; 0000 002B     //  idav= 0x0F;
                 ; 0000 002C     }
00005e 91e9      	LD   R30,Y+
00005f bfef      	OUT  SREG,R30
000060 91e9      	LD   R30,Y+
000061 9518      	RETI
                 ;//##############################################################################################
                 ;void main(void)
                 ; 0000 002F {// Declare your local variables here
                 _main:
                 ; 0000 0030 
                 ; 0000 0031 
                 ; 0000 0032 //****************   Port B initialization
                 ; 0000 0033 PORTB=0xFF;
000062 efef      	LDI  R30,LOW(255)
000063 bbe8      	OUT  0x18,R30
                 ; 0000 0034 DDRB=0x0F;
000064 e0ef      	LDI  R30,LOW(15)
000065 bbe7      	OUT  0x17,R30
                 ; 0000 0035 //****************   Port C initialization
                 ; 0000 0036 PORTC=0x00;
000066 e0e0      	LDI  R30,LOW(0)
000067 bbe5      	OUT  0x15,R30
                 ; 0000 0037 DDRC=0x00;
000068 bbe4      	OUT  0x14,R30
                 ; 0000 0038 //****************   Port D initialization
                 ; 0000 0039 PORTD=0xFF;
000069 efef      	LDI  R30,LOW(255)
00006a bbe2      	OUT  0x12,R30
                 ; 0000 003A DDRD=0x00;
00006b e0e0      	LDI  R30,LOW(0)
00006c bbe1      	OUT  0x11,R30
                 ; 0000 003B //****************  ADC  initialization
                 ; 0000 003C    adcnust();  //ADC nustatymas
00006d d057      	RCALL _adcnust
                 ; 0000 003D 
                 ; 0000 003E  #asm("sei")
00006e 9478      	sei
                 ; 0000 003F while (1)
                 _0x4:
                 ; 0000 0040  {
                 ; 0000 0041       if (!t1)  {Uzlaikymas (); Jautrumas();  //taimerio reiksme
00006f fc21      	SBRC R2,1
000070 c009      	RJMP _0x7
000071 d067      	RCALL _Uzlaikymas
000072 d09d      	RCALL _Jautrumas
                 ; 0000 0042          mdav= 0x0F; mdav3= 0x0F; mdav2= 0x0F; idav= 0x0F;
000073 e0ef      	LDI  R30,LOW(15)
000074 2e7e      	MOV  R7,R30
000075 2e9e      	MOV  R9,R30
000076 2e6e      	MOV  R6,R30
000077 2e8e      	MOV  R8,R30
                 ; 0000 0043          PORTB=0xFF;  }
000078 efef      	LDI  R30,LOW(255)
000079 bbe8      	OUT  0x18,R30
                 ; 0000 0044 
                 ; 0000 0045    tmp=(0xF0&(PINB));     //mech davikliu 0 apklausa
                 _0x7:
00007a b3e6      	IN   R30,0x16
00007b 7fe0      	ANDI R30,LOW(0xF0)
00007c 2ede      	MOV  R13,R30
                 ; 0000 0046       if (((tmp)<0xF0)){    tmp=tmp>>4; mdav=(mdav&tmp)&0x0F;  }
00007d efe0      	LDI  R30,LOW(240)
00007e 16de      	CP   R13,R30
00007f f440      	BRSH _0x8
000080 2ded      	MOV  R30,R13
000081 e0f0      	LDI  R31,0
000082 d0f4      	RCALL __ASRW4
000083 2ede      	MOV  R13,R30
000084 2ded      	MOV  R30,R13
000085 21e7      	AND  R30,R7
000086 70ef      	ANDI R30,LOW(0xF)
000087 2e7e      	MOV  R7,R30
                 ; 0000 0047 
                 ; 0000 0048    tmp=(0x0F&(PIND));     //mech davikliu 2 apklausa
                 _0x8:
000088 b3e0      	IN   R30,0x10
000089 70ef      	ANDI R30,LOW(0xF)
00008a 2ede      	MOV  R13,R30
                 ; 0000 0049       if (((tmp)<0x0F)){  mdav2=(mdav2&tmp);}
00008b e0ef      	LDI  R30,LOW(15)
00008c 16de      	CP   R13,R30
00008d f408      	BRSH _0x9
00008e 206d      	AND  R6,R13
                 ; 0000 004A 
                 ; 0000 004B     tmp=(0xF0&(PIND));     //mech davikliu 3 apklausa
                 _0x9:
00008f b3e0      	IN   R30,0x10
000090 7fe0      	ANDI R30,LOW(0xF0)
000091 2ede      	MOV  R13,R30
                 ; 0000 004C       if (((tmp)<0xF0)){   tmp=tmp>>4;  mdav3=(mdav3&tmp); }
000092 efe0      	LDI  R30,LOW(240)
000093 16de      	CP   R13,R30
000094 f428      	BRSH _0xA
000095 2ded      	MOV  R30,R13
000096 e0f0      	LDI  R31,0
000097 d0df      	RCALL __ASRW4
000098 2ede      	MOV  R13,R30
000099 209d      	AND  R9,R13
                 ; 0000 004D 
                 ; 0000 004E      adcSuveikes();  //apkrovu tikrinimas
                 _0xA:
00009a d0af      	RCALL _adcSuveikes
                 ; 0000 004F     tmp= ((mdav)&(mdav2)&(mdav3))|0xF0; //
00009b 2de6      	MOV  R30,R6
00009c 21e7      	AND  R30,R7
00009d 21e9      	AND  R30,R9
00009e 6fe0      	ORI  R30,LOW(0xF0)
00009f 2ede      	MOV  R13,R30
                 ; 0000 0050    if  (((idav)<0x0F)){  tmp= ((idav)&(tmp)&(0b11110111))|0xF0;} //
0000a0 e0ef      	LDI  R30,LOW(15)
0000a1 168e      	CP   R8,R30
0000a2 f428      	BRSH _0xB
0000a3 2ded      	MOV  R30,R13
0000a4 21e8      	AND  R30,R8
0000a5 7fe7      	ANDI R30,0XF7
0000a6 6fe0      	ORI  R30,LOW(0xF0)
0000a7 2ede      	MOV  R13,R30
                 ; 0000 0051 
                 ; 0000 0052        if  (tmp!=PORTBOLD) { TIMSK=0x00;  //
                 _0xB:
0000a8 14cd      	CP   R12,R13
0000a9 f0b9      	BREQ _0xC
0000aa e0e0      	LDI  R30,LOW(0)
0000ab bfe9      	OUT  0x39,R30
                 ; 0000 0053         TCCR1A=0x00;TCCR1B=0x00;  TCNT1L=0x0F; TCNT1H=0x0F;
0000ac bdef      	OUT  0x2F,R30
0000ad bdee      	OUT  0x2E,R30
0000ae e0ef      	LDI  R30,LOW(15)
0000af bdec      	OUT  0x2C,R30
0000b0 bded      	OUT  0x2D,R30
                 ; 0000 0054         ICR1L=0x00;ICR1H=0x00; OCR1AL=0x00;OCR1AH=0x00; OCR1BL=0x00; OCR1BH=0x00;
0000b1 e0e0      	LDI  R30,LOW(0)
0000b2 bde6      	OUT  0x26,R30
0000b3 bde7      	OUT  0x27,R30
0000b4 bdea      	OUT  0x2A,R30
0000b5 bdeb      	OUT  0x2B,R30
0000b6 bde8      	OUT  0x28,R30
0000b7 bde9      	OUT  0x29,R30
                 ; 0000 0055         delay_ns(10);  //  gal ir nereikia  to viso vircuj jei netesti dar karta uzlaikyno
0000b8 e0ea      	LDI  R30,LOW(10)
0000b9 93ea      	ST   -Y,R30
0000ba d0b4      	RCALL _delay_ns_G000
                 ; 0000 0056         t1=true;TCNT1H=Uzlaik;   TCCR1B=0x04; TIMSK=0x04;
0000bb 9468      	SET
0000bc f821      	BLD  R2,1
0000bd bcbd      	OUT  0x2D,R11
0000be e0e4      	LDI  R30,LOW(4)
0000bf bdee      	OUT  0x2E,R30
0000c0 bfe9      	OUT  0x39,R30
                 ; 0000 0057        }    // PORTD.6=t1;
                 ; 0000 0058 
                 ; 0000 0059       PORTB =  tmp;
                 _0xC:
0000c1 bad8      	OUT  0x18,R13
                 ; 0000 005A       PORTBOLD = tmp;
0000c2 2ccd      	MOV  R12,R13
                 ; 0000 005B 
                 ; 0000 005C  } //while pabaiga
0000c3 cfab      	RJMP _0x4
                 ; 0000 005D }  //main pabaiga
                 _0xD:
0000c4 cfff      	RJMP _0xD
                 ;
                 ;//*********************  ADC inicializavimas ******************************
                 ;void adcnust (void)
                 ; 0000 0061 {ACSR=0x80; SFIOR=0x00;
                 _adcnust:
0000c5 e8e0      	LDI  R30,LOW(128)
0000c6 b9e8      	OUT  0x8,R30
0000c7 e0e0      	LDI  R30,LOW(0)
0000c8 bfe0      	OUT  0x30,R30
                 ; 0000 0062 ADMUX=ADC_VREF_TYPE & 20;//ADC Voltage Reference: AVCC pin
0000c9 b9e7      	OUT  0x7,R30
                 ; 0000 0063 ADCSRA=0x8F;  // 8000000/64=>0x8F 0x8C buvo //gale trys bitai:101 tai ADC_F=F/16 , 110 tai ADC_F=F/32 , 111 tai ADC_F=F/64(предделитель, ст бит - разрешение или запрешен  8B originale)
0000ca e8ef      	LDI  R30,LOW(143)
0000cb b9e6      	OUT  0x6,R30
                 ; 0000 0064 }
0000cc 9508      	RET
                 ;
                 ;//*********************  ADC pertraukimo aptarnavimas ******************************************
                 ;interrupt [ADC_INT] void adc_isr(void) //ADC pertraukimas
                 ; 0000 0068 {unsigned int adc_data;
                 _adc_isr:
0000cd 93ea      	ST   -Y,R30
0000ce b7ef      	IN   R30,SREG
                 ; 0000 0069 adc_data=ADCW;
0000cf d0d1      	RCALL __SAVELOCR2
                 ;	adc_data -> R16,R17
                +
0000d0 b104     +IN R16 , 4
0000d1 b115     +IN R17 , 4 + 1
                 	__INWR 16,17,4
                 ; 0000 006A gADC_result=adc_data; //ADC reiksme
0000d2 0128      	MOVW R4,R16
                 ; 0000 006B ADC_complete=1;// nustatom veliavele
0000d3 9468      	SET
0000d4 f820      	BLD  R2,0
                 ; 0000 006C }
0000d5 d0ce      	RCALL __LOADLOCR2P
0000d6 bfef      	OUT  SREG,R30
0000d7 91e9      	LD   R30,Y+
0000d8 9518      	RETI
                 ;
                 ;
                 ;//*********************  Uzlaikymas ******************************************
                 ;void Uzlaikymas (void)
                 ; 0000 0071 {ADMUX=(ADC_VREF_TYPE & 20)|05; //perjungiam adc i PA5
                 _Uzlaikymas:
0000d9 e0e5      	LDI  R30,LOW(5)
0000da b9e7      	OUT  0x7,R30
                 ; 0000 0072 ADCSRA|=0x40;
0000db 9a36      	SBI  0x6,6
                 ; 0000 0073 while(ADC_complete!=1);
                 _0xE:
0000dc fe20      	SBRS R2,0
0000dd cffe      	RJMP _0xE
                 ; 0000 0074 Uzlaik=(unsigned char)((gADC_result>>2));//
0000de 01f2      	MOVW R30,R4
0000df d0a4      	RCALL __LSRW2
0000e0 2ebe      	MOV  R11,R30
                 ; 0000 0075 ADC_complete=0;	}	//numetam adc velevele
0000e1 94e8      	CLT
0000e2 f820      	BLD  R2,0
0000e3 9508      	RET
                 ;
                 ;//*********************  IR davikliu apklausa ******************************************
                 ;void adcDavApkl(void)  //
                 ; 0000 0079 {ADMUX=(ADC_VREF_TYPE & 20)|kanalas; //perjungiam i PC i-taji
                 _adcDavApkl:
0000e4 91e0 0160 	LDS  R30,_kanalas
0000e6 b9e7      	OUT  0x7,R30
                 ; 0000 007A ADCSRA|=0x40;         //paleisti adc
0000e7 9a36      	SBI  0x6,6
                 ; 0000 007B while(ADC_complete!=1); //ar adc pabaige - laukiam
                 _0x11:
0000e8 fe20      	SBRS R2,0
0000e9 cffe      	RJMP _0x11
                 ; 0000 007C ADC_complete=0;		//numetam adc velevele
0000ea 94e8      	CLT
0000eb f820      	BLD  R2,0
                 ; 0000 007D 
                 ; 0000 007E if (gADC_result>lygis[kanalas]){
0000ec 91e0 0160 	LDS  R30,_kanalas
0000ee e0f0      	LDI  R31,0
0000ef 59eb      	SUBI R30,LOW(-_lygis)
0000f0 4ffe      	SBCI R31,HIGH(-_lygis)
0000f1 81e0      	LD   R30,Z
0000f2 01d2      	MOVW R26,R4
0000f3 e0f0      	LDI  R31,0
0000f4 17ea      	CP   R30,R26
0000f5 07fb      	CPC  R31,R27
0000f6 f4c0      	BRSH _0x14
                 ; 0000 007F //****kur virsyja srove****
                 ; 0000 0080  if (kanalas==0) idav= idav & 0b00001110;
0000f7 91e0 0160 	LDS  R30,_kanalas
0000f9 30e0      	CPI  R30,0
0000fa f411      	BRNE _0x15
0000fb e0ee      	LDI  R30,LOW(14)
0000fc 228e      	AND  R8,R30
                 ; 0000 0081  if (kanalas==1) idav= idav & 0b00001101;
                 _0x15:
0000fd 91a0 0160 	LDS  R26,_kanalas
0000ff 30a1      	CPI  R26,LOW(0x1)
000100 f411      	BRNE _0x16
000101 e0ed      	LDI  R30,LOW(13)
000102 228e      	AND  R8,R30
                 ; 0000 0082  if (kanalas==2) idav= idav & 0b00001011;
                 _0x16:
000103 91a0 0160 	LDS  R26,_kanalas
000105 30a2      	CPI  R26,LOW(0x2)
000106 f411      	BRNE _0x17
000107 e0eb      	LDI  R30,LOW(11)
000108 228e      	AND  R8,R30
                 ; 0000 0083  if (kanalas==3) idav= idav & 0b00000111;
                 _0x17:
000109 91a0 0160 	LDS  R26,_kanalas
00010b 30a3      	CPI  R26,LOW(0x3)
00010c f411      	BRNE _0x18
00010d e0e7      	LDI  R30,LOW(7)
00010e 228e      	AND  R8,R30
                 ; 0000 0084  }
                 _0x18:
                 ; 0000 0085 }
                 _0x14:
00010f 9508      	RET
                 ;
                 ;//*********************  adc jautrumas ******************************************
                 ;void Jautrumas (void)
                 ; 0000 0089 {ADMUX=(ADC_VREF_TYPE & 20) | 04; //perjungiam adc i PC4
                 _Jautrumas:
000110 e0e4      	LDI  R30,LOW(4)
000111 b9e7      	OUT  0x7,R30
                 ; 0000 008A  ADCSRA|=0x40;
000112 9a36      	SBI  0x6,6
                 ; 0000 008B while(ADC_complete!=1);
                 _0x19:
000113 fe20      	SBRS R2,0
000114 cffe      	RJMP _0x19
                 ; 0000 008C adcjautrumas=(gADC_result);//
                +
000115 9240 0169+STS _adcjautrumas + ( 0 ) , R4
000117 9250 016a+STS _adcjautrumas + ( 0 ) + 1 , R5
                 	__PUTWMRN _adcjautrumas,0,4,5
                 ; 0000 008D ADC_complete=0;		//numetam adc velevele
000119 94e8      	CLT
00011a f820      	BLD  R2,0
                 ; 0000 008E lygis[0]=lygispr[0]+adcjautrumas/128; //paskui reikes subalansuoti skaicius realiom apkrovom
00011b 91a0 0169 	LDS  R26,_adcjautrumas
00011d 91b0 016a 	LDS  R27,_adcjautrumas+1
00011f e8e0      	LDI  R30,LOW(128)
000120 e0f0      	LDI  R31,HIGH(128)
000121 d06c      	RCALL __DIVW21U
000122 91a0 0161 	LDS  R26,_lygispr
000124 0fea      	ADD  R30,R26
000125 93e0 0165 	STS  _lygis,R30
                 ; 0000 008F lygis[1]=lygispr[1]+adcjautrumas/64; //paskui reikes subalabnuoti skaicius realiom apkrovom
000127 91a0 0169 	LDS  R26,_adcjautrumas
000129 91b0 016a 	LDS  R27,_adcjautrumas+1
00012b e4e0      	LDI  R30,LOW(64)
00012c e0f0      	LDI  R31,HIGH(64)
00012d d060      	RCALL __DIVW21U
                +
00012e 91a0 0162+LDS R26 , _lygispr + ( 1 )
                 	__GETB2MN _lygispr,1
000130 0fea      	ADD  R30,R26
                +
000131 93e0 0166+STS _lygis + ( 1 ) , R30
                 	__PUTB1MN _lygis,1
                 ; 0000 0090 lygis[2]=lygispr[2]+adcjautrumas/32 ; //paskui reikes subalansuoti skaicius realiom apkrovom
000133 91a0 0169 	LDS  R26,_adcjautrumas
000135 91b0 016a 	LDS  R27,_adcjautrumas+1
000137 e2e0      	LDI  R30,LOW(32)
000138 e0f0      	LDI  R31,HIGH(32)
000139 d054      	RCALL __DIVW21U
                +
00013a 91a0 0163+LDS R26 , _lygispr + ( 2 )
                 	__GETB2MN _lygispr,2
00013c 0fea      	ADD  R30,R26
                +
00013d 93e0 0167+STS _lygis + ( 2 ) , R30
                 	__PUTB1MN _lygis,2
                 ; 0000 0091 lygis[3]=lygispr[3]+ adcjautrumas/16; //paskui reikes subalansuoti skaicius realiom apkrovom
                +
00013f 91a0 0164+LDS R26 , _lygispr + ( 3 )
                 	__GETB2MN _lygispr,3
000141 91e0 0169 	LDS  R30,_adcjautrumas
000143 91f0 016a 	LDS  R31,_adcjautrumas+1
000145 d03a      	RCALL __LSRW4
000146 0fea      	ADD  R30,R26
                +
000147 93e0 0168+STS _lygis + ( 3 ) , R30
                 	__PUTB1MN _lygis,3
                 ; 0000 0092 }
000149 9508      	RET
                 ;
                 ;//********************* adc Suveikes **********************************************
                 ;void adcSuveikes (void)
                 ; 0000 0096  {
                 _adcSuveikes:
                 ; 0000 0097         davnr=0b00000001; kanalas=0;
00014a e0e1      	LDI  R30,LOW(1)
00014b 2eae      	MOV  R10,R30
00014c e0e0      	LDI  R30,LOW(0)
00014d 93e0 0160 	STS  _kanalas,R30
                 ; 0000 0098         adcDavApkl();
00014f df94      	RCALL _adcDavApkl
                 ; 0000 0099      if (! (idav) & (davnr))   ;
000150 2de8      	MOV  R30,R8
000151 d037      	RCALL __LNEGB1
000152 21ea      	AND  R30,R10
                 ; 0000 009A         davnr=0b00000010; kanalas=1;
000153 e0e2      	LDI  R30,LOW(2)
000154 2eae      	MOV  R10,R30
000155 e0e1      	LDI  R30,LOW(1)
000156 93e0 0160 	STS  _kanalas,R30
                 ; 0000 009B         adcDavApkl();
000158 df8b      	RCALL _adcDavApkl
                 ; 0000 009C      if (! (idav) & (davnr))   ;
000159 2de8      	MOV  R30,R8
00015a d02e      	RCALL __LNEGB1
00015b 21ea      	AND  R30,R10
                 ; 0000 009D        davnr=0b00000100;   kanalas =2;
00015c e0e4      	LDI  R30,LOW(4)
00015d 2eae      	MOV  R10,R30
00015e e0e2      	LDI  R30,LOW(2)
00015f 93e0 0160 	STS  _kanalas,R30
                 ; 0000 009E         adcDavApkl();
000161 df82      	RCALL _adcDavApkl
                 ; 0000 009F      if (! (idav) & (davnr))   ;
000162 2de8      	MOV  R30,R8
000163 d025      	RCALL __LNEGB1
000164 21ea      	AND  R30,R10
                 ; 0000 00A0         davnr=0b00001000; kanalas=3;
000165 e0e8      	LDI  R30,LOW(8)
000166 2eae      	MOV  R10,R30
000167 e0e3      	LDI  R30,LOW(3)
000168 93e0 0160 	STS  _kanalas,R30
                 ; 0000 00A1         adcDavApkl();
00016a df79      	RCALL _adcDavApkl
                 ; 0000 00A2      if (! (idav) & (davnr))  ;
00016b 2de8      	MOV  R30,R8
00016c d01c      	RCALL __LNEGB1
00016d 21ea      	AND  R30,R10
                 ; 0000 00A3 }
00016e 9508      	RET
                 ;
                 ;
                 ;//*********************  Uzlaikymas ns 22vienetu~13us******************************************
                 ;static  void  delay_ns(char __count)
                 ; 0000 00A8 {#asm  volatile
                 _delay_ns_G000:
                 ;	__count -> Y+0
                 ; 0000 00A9             ld r26,y;
00016f 81a8                  ld r26,y;
                 ; 0000 00AA  _zyme:     dec r26;
000170 95aa       _zyme:     dec r26;
                 ; 0000 00AB                nop;
000171 0000                     nop;
                 ; 0000 00AC             brne  _zyme;
000172 f7e9                  brne  _zyme;
                 ; 0000 00AD #endasm
                 ; 0000 00AE __count=0;
000173 e0e0      	LDI  R30,LOW(0)
000174 83e8      	ST   Y,R30
                 ; 0000 00AF }
000175 9621      	ADIW R28,1
000176 9508      	RET
                 
                 	.CSEG
                 
                 	.DSEG
                 
                 	.CSEG
                 
                 	.CSEG
                 
                 	.CSEG
                 
                 	.CSEG
                 
                 	.DSEG
                 _kanalas:
000160           	.BYTE 0x1
                 _lygispr:
000161           	.BYTE 0x4
                 _lygis:
000165           	.BYTE 0x4
                 _adcjautrumas:
000169           	.BYTE 0x2
                 __seed_G100:
00016b           	.BYTE 0x4
                 
                 	.CSEG
                 
                 	.CSEG
                 __ASRW4:
000177 95f5      	ASR  R31
000178 95e7      	ROR  R30
                 __ASRW3:
000179 95f5      	ASR  R31
00017a 95e7      	ROR  R30
                 __ASRW2:
00017b 95f5      	ASR  R31
00017c 95e7      	ROR  R30
00017d 95f5      	ASR  R31
00017e 95e7      	ROR  R30
00017f 9508      	RET
                 
                 __LSRW4:
000180 95f6      	LSR  R31
000181 95e7      	ROR  R30
                 __LSRW3:
000182 95f6      	LSR  R31
000183 95e7      	ROR  R30
                 __LSRW2:
000184 95f6      	LSR  R31
000185 95e7      	ROR  R30
000186 95f6      	LSR  R31
000187 95e7      	ROR  R30
000188 9508      	RET
                 
                 __LNEGB1:
000189 23ee      	TST  R30
00018a e0e1      	LDI  R30,1
00018b f009      	BREQ __LNEGB1F
00018c 27ee      	CLR  R30
                 __LNEGB1F:
00018d 9508      	RET
                 
                 __DIVW21U:
00018e 2400      	CLR  R0
00018f 2411      	CLR  R1
000190 e190      	LDI  R25,16
                 __DIVW21U1:
000191 0faa      	LSL  R26
000192 1fbb      	ROL  R27
000193 1c00      	ROL  R0
000194 1c11      	ROL  R1
000195 1a0e      	SUB  R0,R30
000196 0a1f      	SBC  R1,R31
000197 f418      	BRCC __DIVW21U2
000198 0e0e      	ADD  R0,R30
000199 1e1f      	ADC  R1,R31
00019a c001      	RJMP __DIVW21U3
                 __DIVW21U2:
00019b 60a1      	SBR  R26,1
                 __DIVW21U3:
00019c 959a      	DEC  R25
00019d f799      	BRNE __DIVW21U1
00019e 01fd      	MOVW R30,R26
00019f 01d0      	MOVW R26,R0
0001a0 9508      	RET
                 
                 __SAVELOCR2:
0001a1 931a      	ST   -Y,R17
0001a2 930a      	ST   -Y,R16
0001a3 9508      	RET
                 
                 __LOADLOCR2P:
0001a4 9109      	LD   R16,Y+
0001a5 9119      	LD   R17,Y+
0001a6 9508      	RET
                 
                 ;END OF CODE MARKER
                 __END_OF_CODE:


RESOURCE USE INFORMATION
------------------------

Notice:
The register and instruction counts are symbol table hit counts,
and hence implicitly used resources are not counted, eg, the
'lpm' instruction without operands implicitly uses r0 and z,
none of which are counted.

x,y,z are separate entities in the symbol table and are
counted separately from r26..r31 here.

.dseg memory usage only counts static data declared with .byte

ATmega8 register use summary:
r0 :   9 r1 :   5 r2 :  10 r3 :   0 r4 :   4 r5 :   1 r6 :   3 r7 :   4 
r8 :  11 r9 :   3 r10:   8 r11:   2 r12:   2 r13:  19 r14:   0 r15:   0 
r16:   4 r17:   3 r18:   0 r19:   0 r20:   0 r21:   0 r22:   2 r23:   0 
r24:   7 r25:   4 r26:  28 r27:   7 r28:   2 r29:   1 r30: 180 r31:  25 
x  :   3 y  :  13 z  :   8 
Registers used: 27 out of 35 (77.1%)

ATmega8 instruction use summary:
.lds  :   0 .lds.l:   0 .sts  :   0 .sts.l:   0 adc   :   1 add   :   5 
adiw  :   1 and   :  14 andi  :   5 asr   :   4 bclr  :   0 bld   :   6 
brbc  :   0 brbs  :   0 brcc  :   1 brcs  :   0 break :   0 breq  :   3 
brge  :   0 brhc  :   0 brhs  :   0 brid  :   0 brie  :   0 brlo  :   0 
brlt  :   0 brmi  :   0 brne  :   9 brpl  :   0 brsh  :   5 brtc  :   0 
brts  :   0 brvc  :   0 brvs  :   0 bset  :   0 bst   :   0 cbi   :   0 
cbr   :   0 clc   :   0 clh   :   0 cli   :   1 cln   :   0 clr   :   5 
cls   :   0 clt   :   4 clv   :   0 clz   :   0 com   :   0 cp    :   6 
cpc   :   1 cpi   :   4 cpse  :   0 dec   :   3 des   :   0 eor   :   0 
fmul  :   0 fmuls :   0 fmulsu:   0 icall :   0 ijmp  :   0 in    :   7 
inc   :   0 ld    :   7 ldd   :   0 ldi   :  60 lds   :  18 lpm   :   7 
lsl   :   1 lsr   :   4 mov   :  27 movw  :   8 mul   :   0 muls  :   0 
mulsu :   0 neg   :   0 nop   :   1 or    :   0 ori   :   2 out   :  40 
pop   :   0 push  :   0 rcall :  22 ret   :  12 reti  :   2 rjmp  :  28 
rol   :   3 ror   :   8 sbc   :   1 sbci  :   1 sbi   :   3 sbic  :   0 
sbis  :   0 sbiw  :   3 sbr   :   1 sbrc  :   1 sbrs  :   3 sec   :   0 
seh   :   0 sei   :   1 sen   :   0 ser   :   0 ses   :   0 set   :   2 
sev   :   0 sez   :   0 sleep :   0 spm   :   0 st    :  10 std   :   0 
sts   :  10 sub   :   1 subi  :   1 swap  :   0 tst   :   1 wdr   :   0 

Instructions used: 50 out of 114 (43.9%)

ATmega8 memory use summary [bytes]:
Segment   Begin    End      Code   Data   Used    Size   Use%
---------------------------------------------------------------
[.cseg] 0x000000 0x00034e    804     42    846    8192  10.3%
[.dseg] 0x000060 0x00016f      0     15     15    1024   1.5%
[.eseg] 0x000000 0x000000      0      0      0     512   0.0%

Assembly complete, 0 errors, 12 warnings
