heater3.elf: file format elf32-avr Sections: Idx Name Size VMA LMA File off Algn 0 .data 000001f2 00800100 00003cc8 00003d5c 2**0 CONTENTS, ALLOC, LOAD, DATA 1 .text 00003cc8 00000000 00000000 00000094 2**1 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .bss 000003c0 008002f2 008002f2 00003f4e 2**0 ALLOC 3 .comment 0000005c 00000000 00000000 00003f4e 2**0 CONTENTS, READONLY 4 .note.gnu.avr.deviceinfo 00000040 00000000 00000000 00003fac 2**2 CONTENTS, READONLY 5 .debug_aranges 000001d8 00000000 00000000 00003fec 2**0 CONTENTS, READONLY, DEBUGGING 6 .debug_info 00003ef3 00000000 00000000 000041c4 2**0 CONTENTS, READONLY, DEBUGGING 7 .debug_abbrev 00001218 00000000 00000000 000080b7 2**0 CONTENTS, READONLY, DEBUGGING 8 .debug_line 00001e26 00000000 00000000 000092cf 2**0 CONTENTS, READONLY, DEBUGGING 9 .debug_frame 00000734 00000000 00000000 0000b0f8 2**2 CONTENTS, READONLY, DEBUGGING 10 .debug_str 00000b2d 00000000 00000000 0000b82c 2**0 CONTENTS, READONLY, DEBUGGING 11 .debug_loc 0000349c 00000000 00000000 0000c359 2**0 CONTENTS, READONLY, DEBUGGING 12 .debug_ranges 00000230 00000000 00000000 0000f7f5 2**0 CONTENTS, READONLY, DEBUGGING Disassembly of section .text: 00000000 <__vectors>: 0: c8 c0 rjmp .+400 ; 0x192 <__ctors_end> 2: 00 00 nop 4: 54 c1 rjmp .+680 ; 0x2ae <__vector_1> 6: 00 00 nop 8: 81 c1 rjmp .+770 ; 0x30c <__vector_2> a: 00 00 nop c: df c0 rjmp .+446 ; 0x1cc <__bad_interrupt> e: 00 00 nop 10: dd c0 rjmp .+442 ; 0x1cc <__bad_interrupt> 12: 00 00 nop 14: db c0 rjmp .+438 ; 0x1cc <__bad_interrupt> 16: 00 00 nop 18: d9 c0 rjmp .+434 ; 0x1cc <__bad_interrupt> 1a: 00 00 nop 1c: 2d c1 rjmp .+602 ; 0x278 <__vector_7> 1e: 00 00 nop 20: d5 c0 rjmp .+426 ; 0x1cc <__bad_interrupt> 22: 00 00 nop 24: d3 c0 rjmp .+422 ; 0x1cc <__bad_interrupt> 26: 00 00 nop 28: d1 c0 rjmp .+418 ; 0x1cc <__bad_interrupt> 2a: 00 00 nop 2c: cf c0 rjmp .+414 ; 0x1cc <__bad_interrupt> 2e: 00 00 nop 30: cd c0 rjmp .+410 ; 0x1cc <__bad_interrupt> 32: 00 00 nop 34: f9 c1 rjmp .+1010 ; 0x428 <__vector_13> 36: 00 00 nop 38: c9 c0 rjmp .+402 ; 0x1cc <__bad_interrupt> 3a: 00 00 nop 3c: c7 c0 rjmp .+398 ; 0x1cc <__bad_interrupt> 3e: 00 00 nop 40: e4 c1 rjmp .+968 ; 0x40a <__vector_16> 42: 00 00 nop 44: c3 c0 rjmp .+390 ; 0x1cc <__bad_interrupt> 46: 00 00 nop 48: c1 c0 rjmp .+386 ; 0x1cc <__bad_interrupt> 4a: 00 00 nop 4c: bf c0 rjmp .+382 ; 0x1cc <__bad_interrupt> 4e: 00 00 nop 50: 8c c1 rjmp .+792 ; 0x36a <__vector_20> 52: 00 00 nop 54: a7 c1 rjmp .+846 ; 0x3a4 <__vector_21> 56: 00 00 nop 58: b9 c0 rjmp .+370 ; 0x1cc <__bad_interrupt> 5a: 00 00 nop 5c: b7 c0 rjmp .+366 ; 0x1cc <__bad_interrupt> 5e: 00 00 nop 60: b5 c0 rjmp .+362 ; 0x1cc <__bad_interrupt> 62: 00 00 nop 64: b3 c0 rjmp .+358 ; 0x1cc <__bad_interrupt> 66: 00 00 nop 68: b1 c0 rjmp .+354 ; 0x1cc <__bad_interrupt> 6a: 00 00 nop 6c: af c0 rjmp .+350 ; 0x1cc <__bad_interrupt> 6e: 00 00 nop 70: ad c0 rjmp .+346 ; 0x1cc <__bad_interrupt> 72: 00 00 nop 74: ab c0 rjmp .+342 ; 0x1cc <__bad_interrupt> 76: 00 00 nop 78: a9 c0 rjmp .+338 ; 0x1cc <__bad_interrupt> 7a: 00 00 nop 7c: 67 0c add r6, r7 7e: 68 0c add r6, r8 80: 6d 0c add r6, r13 82: 20 0c add r2, r0 84: 81 0c add r8, r1 86: 97 0c add r9, r7 88: be 0c add r11, r14 8a: cc 0c add r12, r12 8c: 2e 0c add r2, r14 8e: 40 0c add r4, r0 00000090 <__trampolines_end>: 90: 6e 61 ori r22, 0x1E ; 30 92: 6e 00 .word 0x006e ; ???? 00000094 <__c.2332>: 94: 69 6e 66 00 00 40 7a 10 f3 5a 00 a0 72 4e 18 09 inf..@z..Z..rN.. a4: 00 10 a5 d4 e8 00 00 e8 76 48 17 00 00 e4 0b 54 ........vH.....T b4: 02 00 00 ca 9a 3b 00 00 00 e1 f5 05 00 00 80 96 .....;.......... c4: 98 00 00 00 40 42 0f 00 00 00 a0 86 01 00 00 00 ....@B.......... d4: 10 27 00 00 00 00 e8 03 00 00 00 00 64 00 00 00 .'..........d... e4: 00 00 0a 00 00 00 00 00 01 00 00 00 00 00 2c 76 ..............,v f4: d8 88 dc 67 4f 08 23 df c1 df ae 59 e1 b1 b7 96 ...gO.#....Y.... 104: e5 e3 e4 53 c6 3a e6 51 99 76 96 e8 e6 c2 84 26 ...S.:.Q.v.....& 114: eb 89 8c 9b 62 ed 40 7c 6f fc ef bc 9c 9f 40 f2 ....b.@|o.....@. 124: ba a5 6f a5 f4 90 05 5a 2a f7 5c 93 6b 6c f9 67 ..o....Z*.\.kl.g 134: 6d c1 1b fc e0 e4 0d 47 fe f5 20 e6 b5 00 d0 ed m......G.. ..... 144: 90 2e 03 00 94 35 77 05 00 80 84 1e 08 00 00 20 .....5w........ 154: 4e 0a 00 00 00 c8 0c 33 33 33 33 0f 98 6e 12 83 N......3333..n.. 164: 11 41 ef 8d 21 14 89 3b e6 55 16 cf fe e6 db 18 .A..!..;.U...... 174: d1 84 4b 38 1b f7 7c 1d 90 1d a4 bb e4 24 20 32 ..K8..|......$ 2 184: 84 72 5e 22 81 00 c9 f1 24 ec a1 e5 3d 27 .r^"....$...=' 00000192 <__ctors_end>: 192: 11 24 eor r1, r1 194: 1f be out 0x3f, r1 ; 63 196: cf ef ldi r28, 0xFF ; 255 198: d0 e1 ldi r29, 0x10 ; 16 19a: de bf out 0x3e, r29 ; 62 19c: cd bf out 0x3d, r28 ; 61 0000019e <__do_copy_data>: 19e: 12 e0 ldi r17, 0x02 ; 2 1a0: a0 e0 ldi r26, 0x00 ; 0 1a2: b1 e0 ldi r27, 0x01 ; 1 1a4: e8 ec ldi r30, 0xC8 ; 200 1a6: fc e3 ldi r31, 0x3C ; 60 1a8: 02 c0 rjmp .+4 ; 0x1ae <__do_copy_data+0x10> 1aa: 05 90 lpm r0, Z+ 1ac: 0d 92 st X+, r0 1ae: a2 3f cpi r26, 0xF2 ; 242 1b0: b1 07 cpc r27, r17 1b2: d9 f7 brne .-10 ; 0x1aa <__do_copy_data+0xc> 000001b4 <__do_clear_bss>: 1b4: 26 e0 ldi r18, 0x06 ; 6 1b6: a2 ef ldi r26, 0xF2 ; 242 1b8: b2 e0 ldi r27, 0x02 ; 2 1ba: 01 c0 rjmp .+2 ; 0x1be <.do_clear_bss_start> 000001bc <.do_clear_bss_loop>: 1bc: 1d 92 st X+, r1 000001be <.do_clear_bss_start>: 1be: a2 3b cpi r26, 0xB2 ; 178 1c0: b2 07 cpc r27, r18 1c2: e1 f7 brne .-8 ; 0x1bc <.do_clear_bss_loop> 1c4: 0e 94 4a 0e call 0x1c94 ; 0x1c94
1c8: 0c 94 62 1e jmp 0x3cc4 ; 0x3cc4 <_exit> 000001cc <__bad_interrupt>: 1cc: 19 cf rjmp .-462 ; 0x0 <__vectors> 000001ce : return 0; } int uart_putchar(char c, FILE *stream) { cli(); 1ce: f8 94 cli if(!FIFO_IS_FULL(fifo0)) 1d0: 20 91 e8 05 lds r18, 0x05E8 ; 0x8005e8 1d4: 30 91 e9 05 lds r19, 0x05E9 ; 0x8005e9 1d8: 40 91 e6 05 lds r20, 0x05E6 ; 0x8005e6 1dc: 50 91 e7 05 lds r21, 0x05E7 ; 0x8005e7 1e0: b9 01 movw r22, r18 1e2: 64 1b sub r22, r20 1e4: 75 0b sbc r23, r21 1e6: ab 01 movw r20, r22 1e8: 41 15 cp r20, r1 1ea: 52 40 sbci r21, 0x02 ; 2 1ec: 81 f0 breq .+32 ; 0x20e { FIFO_PUSH(fifo0, c); 1ee: f9 01 movw r30, r18 1f0: f1 70 andi r31, 0x01 ; 1 1f2: ea 51 subi r30, 0x1A ; 26 1f4: fc 4f sbci r31, 0xFC ; 252 1f6: 80 83 st Z, r24 1f8: 2f 5f subi r18, 0xFF ; 255 1fa: 3f 4f sbci r19, 0xFF ; 255 1fc: 30 93 e9 05 sts 0x05E9, r19 ; 0x8005e9 200: 20 93 e8 05 sts 0x05E8, r18 ; 0x8005e8 UCSR0B |= (1 << UDRIE0); 204: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> 208: 80 62 ori r24, 0x20 ; 32 20a: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> } sei(); 20e: 78 94 sei return 0; } 210: 80 e0 ldi r24, 0x00 ; 0 212: 90 e0 ldi r25, 0x00 ; 0 214: 08 95 ret 00000216 : return (heater[ch].current); } int lcd_putchar(char c, FILE *stream) { if(c >= 0xC0) 216: 80 3c cpi r24, 0xC0 ; 192 218: 28 f0 brcs .+10 ; 0x224 c = cyrillic[c - 0xC0]; 21a: e8 2f mov r30, r24 21c: f0 e0 ldi r31, 0x00 ; 0 21e: ed 55 subi r30, 0x5D ; 93 220: fe 4f sbci r31, 0xFE ; 254 222: 80 81 ld r24, Z LCD_SendData(c); 224: 0e 94 86 12 call 0x250c ; 0x250c return 0; } 228: 80 e0 ldi r24, 0x00 ; 0 22a: 90 e0 ldi r25, 0x00 ; 0 22c: 08 95 ret 0000022e : void SwitchHeating(uint8_t ch, uint8_t onoff) { if(onoff) { GATEPORT &= ~(1 << (GATE1 + (ch & 0x01))); 22e: 68 b1 in r22, 0x08 ; 8 230: 48 2f mov r20, r24 232: 41 70 andi r20, 0x01 ; 1 234: 50 e0 ldi r21, 0x00 ; 0 236: fa 01 movw r30, r20 238: 36 96 adiw r30, 0x06 ; 6 23a: 21 e0 ldi r18, 0x01 ; 1 23c: 30 e0 ldi r19, 0x00 ; 0 23e: d9 01 movw r26, r18 240: 02 c0 rjmp .+4 ; 0x246 242: aa 0f add r26, r26 244: bb 1f adc r27, r27 246: ea 95 dec r30 248: e2 f7 brpl .-8 ; 0x242 24a: 9a 2f mov r25, r26 24c: 90 95 com r25 24e: 96 23 and r25, r22 250: 98 b9 out 0x08, r25 ; 8 LEDPORT |= (1 << (LED1 + (ch & 0x01))); 252: 98 b1 in r25, 0x08 ; 8 254: 4e 5f subi r20, 0xFE ; 254 256: 5f 4f sbci r21, 0xFF ; 255 258: 01 c0 rjmp .+2 ; 0x25c 25a: 22 0f add r18, r18 25c: 4a 95 dec r20 25e: ea f7 brpl .-6 ; 0x25a 260: 29 2b or r18, r25 262: 28 b9 out 0x08, r18 ; 8 heater[ch].status.heating = 1; 264: b3 e1 ldi r27, 0x13 ; 19 266: 8b 9f mul r24, r27 268: f0 01 movw r30, r0 26a: 11 24 eor r1, r1 26c: e0 5e subi r30, 0xE0 ; 224 26e: fc 4f sbci r31, 0xFC ; 252 270: 80 81 ld r24, Z 272: 84 60 ori r24, 0x04 ; 4 274: 80 83 st Z, r24 276: 08 95 ret 00000278 <__vector_7>: static FILE uart_stdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE); FIFO(512) fifo0; ISR(PCINT3_vect) { 278: 1f 92 push r1 27a: 0f 92 push r0 27c: 0f b6 in r0, 0x3f ; 63 27e: 0f 92 push r0 280: 11 24 eor r1, r1 282: 8f 93 push r24 btn_act = 1; 284: 81 e0 ldi r24, 0x01 ; 1 286: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 if(((BTNPIN >> 4) | 0xF0) == 0xF0) 28a: 89 b1 in r24, 0x09 ; 9 28c: 82 95 swap r24 28e: 8f 70 andi r24, 0x0F ; 15 290: 80 6f ori r24, 0xF0 ; 240 292: 80 3f cpi r24, 0xF0 ; 240 294: 31 f4 brne .+12 ; 0x2a2 <__vector_7+0x2a> { cli(); 296: f8 94 cli WDTCSR |= (1 << WDCE) | (1 << WDE); 298: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060> 29c: 88 61 ori r24, 0x18 ; 24 29e: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060> } } 2a2: 8f 91 pop r24 2a4: 0f 90 pop r0 2a6: 0f be out 0x3f, r0 ; 63 2a8: 0f 90 pop r0 2aa: 1f 90 pop r1 2ac: 18 95 reti 000002ae <__vector_1>: ISR(INT0_vect) /*OVERCURRENT PROTECTION 1*/ { 2ae: 1f 92 push r1 2b0: 0f 92 push r0 2b2: 0f b6 in r0, 0x3f ; 63 2b4: 0f 92 push r0 2b6: 11 24 eor r1, r1 2b8: 8f 93 push r24 2ba: af 93 push r26 2bc: bf 93 push r27 2be: ef 93 push r30 2c0: ff 93 push r31 cli(); 2c2: f8 94 cli GATEPORT |= (1 << GATE1) | (1 << GATE2); 2c4: 88 b1 in r24, 0x08 ; 8 2c6: 80 6c ori r24, 0xC0 ; 192 2c8: 88 b9 out 0x08, r24 ; 8 LEDPORT &= ~((1 << LED1) | (1 << LED2)); 2ca: 88 b1 in r24, 0x08 ; 8 2cc: 83 7f andi r24, 0xF3 ; 243 2ce: 88 b9 out 0x08, r24 ; 8 PORTC &= ~(1 << V12POWER); 2d0: 44 98 cbi 0x08, 4 ; 8 heater[0].status.heating = heater[1].status.heating = 0; 2d2: a3 e3 ldi r26, 0x33 ; 51 2d4: b3 e0 ldi r27, 0x03 ; 3 2d6: 8c 91 ld r24, X 2d8: 8b 7f andi r24, 0xFB ; 251 2da: 8c 93 st X, r24 2dc: e0 e2 ldi r30, 0x20 ; 32 2de: f3 e0 ldi r31, 0x03 ; 3 2e0: 80 81 ld r24, Z 2e2: 8b 7f andi r24, 0xFB ; 251 2e4: 80 83 st Z, r24 heater[0].status.onoff = heater[1].status.onoff = 0; 2e6: 8c 91 ld r24, X 2e8: 8d 7f andi r24, 0xFD ; 253 2ea: 8c 93 st X, r24 2ec: 80 81 ld r24, Z 2ee: 8d 7f andi r24, 0xFD ; 253 2f0: 80 83 st Z, r24 heater[0].status.ocp = 1; 2f2: 80 81 ld r24, Z 2f4: 88 60 ori r24, 0x08 ; 8 2f6: 80 83 st Z, r24 } 2f8: ff 91 pop r31 2fa: ef 91 pop r30 2fc: bf 91 pop r27 2fe: af 91 pop r26 300: 8f 91 pop r24 302: 0f 90 pop r0 304: 0f be out 0x3f, r0 ; 63 306: 0f 90 pop r0 308: 1f 90 pop r1 30a: 18 95 reti 0000030c <__vector_2>: ISR(INT1_vect) /*OVERCURRENT PROTECTION 2*/ { 30c: 1f 92 push r1 30e: 0f 92 push r0 310: 0f b6 in r0, 0x3f ; 63 312: 0f 92 push r0 314: 11 24 eor r1, r1 316: 8f 93 push r24 318: af 93 push r26 31a: bf 93 push r27 31c: ef 93 push r30 31e: ff 93 push r31 cli(); 320: f8 94 cli GATEPORT |= (1 << GATE1) | (1 << GATE2); 322: 88 b1 in r24, 0x08 ; 8 324: 80 6c ori r24, 0xC0 ; 192 326: 88 b9 out 0x08, r24 ; 8 LEDPORT &= ~((1 << LED1) | (1 << LED2)); 328: 88 b1 in r24, 0x08 ; 8 32a: 83 7f andi r24, 0xF3 ; 243 32c: 88 b9 out 0x08, r24 ; 8 PORTC &= ~(1 << V12POWER); 32e: 44 98 cbi 0x08, 4 ; 8 heater[0].status.heating = heater[1].status.heating = 0; 330: e3 e3 ldi r30, 0x33 ; 51 332: f3 e0 ldi r31, 0x03 ; 3 334: 80 81 ld r24, Z 336: 8b 7f andi r24, 0xFB ; 251 338: 80 83 st Z, r24 33a: a0 e2 ldi r26, 0x20 ; 32 33c: b3 e0 ldi r27, 0x03 ; 3 33e: 8c 91 ld r24, X 340: 8b 7f andi r24, 0xFB ; 251 342: 8c 93 st X, r24 heater[0].status.onoff = heater[1].status.onoff = 0; 344: 80 81 ld r24, Z 346: 8d 7f andi r24, 0xFD ; 253 348: 80 83 st Z, r24 34a: 8c 91 ld r24, X 34c: 8d 7f andi r24, 0xFD ; 253 34e: 8c 93 st X, r24 heater[1].status.ocp = 1; 350: 80 81 ld r24, Z 352: 88 60 ori r24, 0x08 ; 8 354: 80 83 st Z, r24 } 356: ff 91 pop r31 358: ef 91 pop r30 35a: bf 91 pop r27 35c: af 91 pop r26 35e: 8f 91 pop r24 360: 0f 90 pop r0 362: 0f be out 0x3f, r0 ; 63 364: 0f 90 pop r0 366: 1f 90 pop r1 368: 18 95 reti 0000036a <__vector_20>: ISR(USART0_RX_vect) { 36a: 1f 92 push r1 36c: 0f 92 push r0 36e: 0f b6 in r0, 0x3f ; 63 370: 0f 92 push r0 372: 11 24 eor r1, r1 374: 8f 93 push r24 376: ef 93 push r30 378: ff 93 push r31 count++; 37a: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 37e: 8f 5f subi r24, 0xFF ; 255 380: 80 93 f6 02 sts 0x02F6, r24 ; 0x8002f6 rxbuf[count - 1] = UDR0; 384: e0 91 f6 02 lds r30, 0x02F6 ; 0x8002f6 388: f0 e0 ldi r31, 0x00 ; 0 38a: 80 91 c6 00 lds r24, 0x00C6 ; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7e00c6> 38e: e9 50 subi r30, 0x09 ; 9 390: fd 4f sbci r31, 0xFD ; 253 392: 80 83 st Z, r24 } 394: ff 91 pop r31 396: ef 91 pop r30 398: 8f 91 pop r24 39a: 0f 90 pop r0 39c: 0f be out 0x3f, r0 ; 63 39e: 0f 90 pop r0 3a0: 1f 90 pop r1 3a2: 18 95 reti 000003a4 <__vector_21>: ISR(USART0_UDRE_vect) { 3a4: 1f 92 push r1 3a6: 0f 92 push r0 3a8: 0f b6 in r0, 0x3f ; 63 3aa: 0f 92 push r0 3ac: 11 24 eor r1, r1 3ae: 2f 93 push r18 3b0: 3f 93 push r19 3b2: 8f 93 push r24 3b4: 9f 93 push r25 3b6: ef 93 push r30 3b8: ff 93 push r31 if(FIFO_IS_EMPTY(fifo0)) 3ba: 80 91 e6 05 lds r24, 0x05E6 ; 0x8005e6 3be: 90 91 e7 05 lds r25, 0x05E7 ; 0x8005e7 3c2: 20 91 e8 05 lds r18, 0x05E8 ; 0x8005e8 3c6: 30 91 e9 05 lds r19, 0x05E9 ; 0x8005e9 3ca: 82 17 cp r24, r18 3cc: 93 07 cpc r25, r19 3ce: b9 f0 breq .+46 ; 0x3fe <__vector_21+0x5a> { UCSR0B &= ~(1 << UDRIE0); } else { UDR0 = FIFO_FRONT(fifo0); 3d0: fc 01 movw r30, r24 3d2: f1 70 andi r31, 0x01 ; 1 3d4: ea 51 subi r30, 0x1A ; 26 3d6: fc 4f sbci r31, 0xFC ; 252 3d8: 20 81 ld r18, Z 3da: 20 93 c6 00 sts 0x00C6, r18 ; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7e00c6> FIFO_POP(fifo0); 3de: 01 96 adiw r24, 0x01 ; 1 3e0: 90 93 e7 05 sts 0x05E7, r25 ; 0x8005e7 3e4: 80 93 e6 05 sts 0x05E6, r24 ; 0x8005e6 } } 3e8: ff 91 pop r31 3ea: ef 91 pop r30 3ec: 9f 91 pop r25 3ee: 8f 91 pop r24 3f0: 3f 91 pop r19 3f2: 2f 91 pop r18 3f4: 0f 90 pop r0 3f6: 0f be out 0x3f, r0 ; 63 3f8: 0f 90 pop r0 3fa: 1f 90 pop r1 3fc: 18 95 reti ISR(USART0_UDRE_vect) { if(FIFO_IS_EMPTY(fifo0)) { UCSR0B &= ~(1 << UDRIE0); 3fe: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> 402: 8f 7d andi r24, 0xDF ; 223 404: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> 408: ef cf rjmp .-34 ; 0x3e8 <__vector_21+0x44> 0000040a <__vector_16>: FIFO_POP(fifo0); } } ISR(TIMER0_COMPA_vect) { 40a: 1f 92 push r1 40c: 0f 92 push r0 40e: 0f b6 in r0, 0x3f ; 63 410: 0f 92 push r0 412: 11 24 eor r1, r1 414: 8f 93 push r24 tick1 = 1; 416: 81 e0 ldi r24, 0x01 ; 1 418: 80 93 f5 02 sts 0x02F5, r24 ; 0x8002f5 } 41c: 8f 91 pop r24 41e: 0f 90 pop r0 420: 0f be out 0x3f, r0 ; 63 422: 0f 90 pop r0 424: 1f 90 pop r1 426: 18 95 reti 00000428 <__vector_13>: ISR(TIMER1_COMPA_vect) { 428: 1f 92 push r1 42a: 0f 92 push r0 42c: 0f b6 in r0, 0x3f ; 63 42e: 0f 92 push r0 430: 11 24 eor r1, r1 432: 8f 93 push r24 tick2 = 1; 434: 81 e0 ldi r24, 0x01 ; 1 436: 80 93 f4 02 sts 0x02F4, r24 ; 0x8002f4 } 43a: 8f 91 pop r24 43c: 0f 90 pop r0 43e: 0f be out 0x3f, r0 ; 63 440: 0f 90 pop r0 442: 1f 90 pop r1 444: 18 95 reti 00000446 : void init() { /* Watchdog clear*/ MCUSR &= ~(1 << WDRF); 446: 84 b7 in r24, 0x34 ; 52 448: 87 7f andi r24, 0xF7 ; 247 44a: 84 bf out 0x34, r24 ; 52 WDTCSR |= (1 << WDCE) | (1 << WDE); 44c: e0 e6 ldi r30, 0x60 ; 96 44e: f0 e0 ldi r31, 0x00 ; 0 450: 80 81 ld r24, Z 452: 88 61 ori r24, 0x18 ; 24 454: 80 83 st Z, r24 WDTCSR = 0x00; 456: 10 82 st Z, r1 /* External interrupts initialization */ EICRA |= (1 << ISC01) | (1 << ISC11); 458: e9 e6 ldi r30, 0x69 ; 105 45a: f0 e0 ldi r31, 0x00 ; 0 45c: 80 81 ld r24, Z 45e: 8a 60 ori r24, 0x0A ; 10 460: 80 83 st Z, r24 EIMSK |= (1 << INT0) | (1 << INT1); 462: 8d b3 in r24, 0x1d ; 29 464: 83 60 ori r24, 0x03 ; 3 466: 8d bb out 0x1d, r24 ; 29 /* GPIO Initialization */ PORTC |= (1 << GATE1) | (1 << GATE2) | (1 << V12POWER); 468: 88 b1 in r24, 0x08 ; 8 46a: 80 6d ori r24, 0xD0 ; 208 46c: 88 b9 out 0x08, r24 ; 8 DDRC |= (1 << LED1) | (1 << LED2) | (1 << GATE1) | (1 << GATE2) | (1 << V12POWER); 46e: 87 b1 in r24, 0x07 ; 7 470: 8c 6d ori r24, 0xDC ; 220 472: 87 b9 out 0x07, r24 ; 7 /* UART Initialization */ TXD_PORT |= (1 << TXD_BIT); 474: 59 9a sbi 0x0b, 1 ; 11 TXD_DDR |= (1 << TXD_BIT); 476: 51 9a sbi 0x0a, 1 ; 10 #if U2X0_SET UBRR0H = (uint8_t)(((F_CPU / (8 * BAUD_RATE)) - 1) >> 8); 478: 10 92 c5 00 sts 0x00C5, r1 ; 0x8000c5 <__TEXT_REGION_LENGTH__+0x7e00c5> UBRR0L = (uint8_t)((F_CPU / (8 * BAUD_RATE)) - 1); 47c: 86 e2 ldi r24, 0x26 ; 38 47e: 80 93 c4 00 sts 0x00C4, r24 ; 0x8000c4 <__TEXT_REGION_LENGTH__+0x7e00c4> UCSR0A = (1 << U2X0); 482: 82 e0 ldi r24, 0x02 ; 2 484: 80 93 c0 00 sts 0x00C0, r24 ; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7e00c0> #elif UBRR0H = (uint8_t)(((F_CPU / (16 * BAUD_RATE)) - 1) >> 8); UBRR0L = (uint8_t)((F_CPU / (16 * BAUD_RATE)) - 1); #endif UCSR0B = (1 << RXCIE0) | (1 << RXEN0) | (1 << TXEN0); 488: 98 e9 ldi r25, 0x98 ; 152 48a: 90 93 c1 00 sts 0x00C1, r25 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> UCSR0C = (1 << UCSZ00) | (1 << UCSZ01); 48e: 96 e0 ldi r25, 0x06 ; 6 490: 90 93 c2 00 sts 0x00C2, r25 ; 0x8000c2 <__TEXT_REGION_LENGTH__+0x7e00c2> /* SPI Initialization */ DDRB |= (1 << MOSI_BIT) | (1 << SCK_BIT) | (1 << SS_BIT) | (7 << PORTB0); 494: 94 b1 in r25, 0x04 ; 4 496: 97 6b ori r25, 0xB7 ; 183 498: 94 b9 out 0x04, r25 ; 4 PORTB |= (1 << MOSI_BIT) | (1 << SCK_BIT) | (1 << SS_BIT); 49a: 95 b1 in r25, 0x05 ; 5 49c: 90 6b ori r25, 0xB0 ; 176 49e: 95 b9 out 0x05, r25 ; 5 SPCR = (1 << SPE) | (1 << MSTR); 4a0: 90 e5 ldi r25, 0x50 ; 80 4a2: 9c bd out 0x2c, r25 ; 44 /* TWI Initialization */ TWBR = (uint8_t)(((F_CPU / TWI_FREQ) - 16) / 2); 4a4: 94 e0 ldi r25, 0x04 ; 4 4a6: 90 93 b8 00 sts 0x00B8, r25 ; 0x8000b8 <__TEXT_REGION_LENGTH__+0x7e00b8> TWCR = (1 << TWEN); 4aa: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> /* Timer0 Initialization */ TCCR0A = (1 << WGM01); 4ae: 84 bd out 0x24, r24 ; 36 OCR0A = 0x80; 4b0: 90 e8 ldi r25, 0x80 ; 128 4b2: 97 bd out 0x27, r25 ; 39 TCCR0B = (1 << CS00) | (1 << CS02); 4b4: 95 e0 ldi r25, 0x05 ; 5 4b6: 95 bd out 0x25, r25 ; 37 TIMSK0 = (1 << OCIE0A); 4b8: 80 93 6e 00 sts 0x006E, r24 ; 0x80006e <__TEXT_REGION_LENGTH__+0x7e006e> /* Timer1 Initialization */ TCCR1B = (1 << CS12) | (1 << CS10) | (1 << WGM12); 4bc: 9d e0 ldi r25, 0x0D ; 13 4be: 90 93 81 00 sts 0x0081, r25 ; 0x800081 <__TEXT_REGION_LENGTH__+0x7e0081> OCR1A = 0x400; 4c2: 20 e0 ldi r18, 0x00 ; 0 4c4: 34 e0 ldi r19, 0x04 ; 4 4c6: 30 93 89 00 sts 0x0089, r19 ; 0x800089 <__TEXT_REGION_LENGTH__+0x7e0089> 4ca: 20 93 88 00 sts 0x0088, r18 ; 0x800088 <__TEXT_REGION_LENGTH__+0x7e0088> TIMSK1 = (1 << OCIE1A); 4ce: 80 93 6f 00 sts 0x006F, r24 ; 0x80006f <__TEXT_REGION_LENGTH__+0x7e006f> /* ADC Initialization */ ADMUX |= (1 << REFS0) | (1 << REFS1); 4d2: ec e7 ldi r30, 0x7C ; 124 4d4: f0 e0 ldi r31, 0x00 ; 0 4d6: 80 81 ld r24, Z 4d8: 80 6c ori r24, 0xC0 ; 192 4da: 80 83 st Z, r24 ADCSRA = (1 << ADEN) | (1 << ADPS0) | (1 << ADPS1); 4dc: 83 e8 ldi r24, 0x83 ; 131 4de: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> DIDR0 = 0xFF; 4e2: 8f ef ldi r24, 0xFF ; 255 4e4: 80 93 7e 00 sts 0x007E, r24 ; 0x80007e <__TEXT_REGION_LENGTH__+0x7e007e> PCICR = (1 << PCIE3); 4e8: 88 e0 ldi r24, 0x08 ; 8 4ea: 80 93 68 00 sts 0x0068, r24 ; 0x800068 <__TEXT_REGION_LENGTH__+0x7e0068> PCMSK3 = 0xF0; 4ee: 80 ef ldi r24, 0xF0 ; 240 4f0: 80 93 73 00 sts 0x0073, r24 ; 0x800073 <__TEXT_REGION_LENGTH__+0x7e0073> 4f4: 08 95 ret 000004f6 : } void MAX_ReadData() { 4f6: 0f 93 push r16 4f8: 1f 93 push r17 4fa: cf 93 push r28 4fc: df 93 push r29 4fe: 00 d0 rcall .+0 ; 0x500 500: 00 d0 rcall .+0 ; 0x502 502: cd b7 in r28, 0x3d ; 61 504: de b7 in r29, 0x3e ; 62 uint8_t i = 0; max31855_t data; btw32_t *dptr = (btw32_t*)&data; PORTB = (PORTB & 0xF8) | MAXADDR; 506: 85 b1 in r24, 0x05 ; 5 508: 88 7f andi r24, 0xF8 ; 248 50a: 86 60 ori r24, 0x06 ; 6 50c: 85 b9 out 0x05, r24 ; 5 PORTB &= ~(1 << SS_BIT); 50e: 2c 98 cbi 0x05, 4 ; 5 510: fe 01 movw r30, r28 512: 35 96 adiw r30, 0x05 ; 5 514: 9e 01 movw r18, r28 516: 2f 5f subi r18, 0xFF ; 255 518: 3f 4f sbci r19, 0xFF ; 255 for(i = 0; i < 4; i++) { SPDR = 0xFF; 51a: 9f ef ldi r25, 0xFF ; 255 51c: 9e bd out 0x2e, r25 ; 46 while(!(SPSR & (1 << SPIF))); 51e: 0d b4 in r0, 0x2d ; 45 520: 07 fe sbrs r0, 7 522: fd cf rjmp .-6 ; 0x51e dptr->byte[3 - i] = SPDR; 524: 8e b5 in r24, 0x2e ; 46 526: 82 93 st -Z, r24 uint8_t i = 0; max31855_t data; btw32_t *dptr = (btw32_t*)&data; PORTB = (PORTB & 0xF8) | MAXADDR; PORTB &= ~(1 << SS_BIT); for(i = 0; i < 4; i++) 528: e2 17 cp r30, r18 52a: f3 07 cpc r31, r19 52c: b9 f7 brne .-18 ; 0x51c { SPDR = 0xFF; while(!(SPSR & (1 << SPIF))); dptr->byte[3 - i] = SPDR; } PORTB |= (1 << SS_BIT); 52e: 2c 9a sbi 0x05, 4 ; 5 heater[CH0].tintr = heater[CH1].tintr = (int8_t)data.intt_int; 530: 0a 81 ldd r16, Y+2 ; 0x02 532: 00 93 36 03 sts 0x0336, r16 ; 0x800336 536: 00 93 23 03 sts 0x0323, r16 ; 0x800323 if(data.intt_frac * (100.0 / 16.0) >= 50) 53a: 19 81 ldd r17, Y+1 ; 0x01 53c: 61 2f mov r22, r17 53e: 62 95 swap r22 540: 6f 70 andi r22, 0x0F ; 15 542: 70 e0 ldi r23, 0x00 ; 0 544: 80 e0 ldi r24, 0x00 ; 0 546: 90 e0 ldi r25, 0x00 ; 0 548: 0e 94 57 16 call 0x2cae ; 0x2cae <__floatsisf> 54c: 20 e0 ldi r18, 0x00 ; 0 54e: 30 e0 ldi r19, 0x00 ; 0 550: 48 ec ldi r20, 0xC8 ; 200 552: 50 e4 ldi r21, 0x40 ; 64 554: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3> 558: 20 e0 ldi r18, 0x00 ; 0 55a: 30 e0 ldi r19, 0x00 ; 0 55c: 48 e4 ldi r20, 0x48 ; 72 55e: 52 e4 ldi r21, 0x42 ; 66 560: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2> 564: 87 fd sbrc r24, 7 566: 03 c0 rjmp .+6 ; 0x56e heater[CH0].tintr++; 568: 0f 5f subi r16, 0xFF ; 255 56a: 00 93 23 03 sts 0x0323, r16 ; 0x800323 if(data.oc | data.scg | data.scg) 56e: 81 2f mov r24, r17 570: 81 70 andi r24, 0x01 ; 1 572: 11 fb bst r17, 1 574: 99 27 eor r25, r25 576: 90 f9 bld r25, 0 578: 89 2b or r24, r25 57a: d9 f5 brne .+118 ; 0x5f2 heater[CH0].status.couple = heater[CH1].status.couple = dptr->byte[0] & 0x07; heater[CH0].tcouple = heater[CH1].tcouple = 0; } else { heater[CH0].status.couple = heater[CH1].status.couple = 0; 57c: 80 91 34 03 lds r24, 0x0334 ; 0x800334 580: 81 7f andi r24, 0xF1 ; 241 582: 80 93 34 03 sts 0x0334, r24 ; 0x800334 586: 80 91 21 03 lds r24, 0x0321 ; 0x800321 58a: 81 7f andi r24, 0xF1 ; 241 58c: 80 93 21 03 sts 0x0321, r24 ; 0x800321 heater[CH0].tcouple = heater[CH1].tcouple = ((int16_t)data.tct_int ^ 0x0800) - 0x0800; 590: 8b 81 ldd r24, Y+3 ; 0x03 592: 48 2f mov r20, r24 594: 42 95 swap r20 596: 4f 70 andi r20, 0x0F ; 15 598: 9c 81 ldd r25, Y+4 ; 0x04 59a: 59 2f mov r21, r25 59c: 52 95 swap r21 59e: 50 7f andi r21, 0xF0 ; 240 5a0: 25 2f mov r18, r21 5a2: 24 2b or r18, r20 5a4: 39 2f mov r19, r25 5a6: 32 95 swap r19 5a8: 3f 70 andi r19, 0x0F ; 15 5aa: 48 e0 ldi r20, 0x08 ; 8 5ac: 34 27 eor r19, r20 5ae: a9 01 movw r20, r18 5b0: 58 50 subi r21, 0x08 ; 8 5b2: 50 93 38 03 sts 0x0338, r21 ; 0x800338 5b6: 40 93 37 03 sts 0x0337, r20 ; 0x800337 5ba: 50 93 25 03 sts 0x0325, r21 ; 0x800325 5be: 40 93 24 03 sts 0x0324, r20 ; 0x800324 if((data.tct_frac * (100 / 4)) >= 50) 5c2: 86 95 lsr r24 5c4: 86 95 lsr r24 5c6: 83 70 andi r24, 0x03 ; 3 5c8: 49 e1 ldi r20, 0x19 ; 25 5ca: 84 9f mul r24, r20 5cc: c0 01 movw r24, r0 5ce: 11 24 eor r1, r1 5d0: c2 97 sbiw r24, 0x32 ; 50 5d2: 34 f0 brlt .+12 ; 0x5e0 heater[CH0].tcouple = heater[CH1].tcouple++; 5d4: 2f 5f subi r18, 0xFF ; 255 5d6: 37 40 sbci r19, 0x07 ; 7 5d8: 30 93 38 03 sts 0x0338, r19 ; 0x800338 5dc: 20 93 37 03 sts 0x0337, r18 ; 0x800337 } } 5e0: 0f 90 pop r0 5e2: 0f 90 pop r0 5e4: 0f 90 pop r0 5e6: 0f 90 pop r0 5e8: df 91 pop r29 5ea: cf 91 pop r28 5ec: 1f 91 pop r17 5ee: 0f 91 pop r16 5f0: 08 95 ret if(data.intt_frac * (100.0 / 16.0) >= 50) heater[CH0].tintr++; if(data.oc | data.scg | data.scg) { heater[CH0].status.couple = heater[CH1].status.couple = dptr->byte[0] & 0x07; 5f2: 17 70 andi r17, 0x07 ; 7 5f4: 11 0f add r17, r17 5f6: 80 91 34 03 lds r24, 0x0334 ; 0x800334 5fa: 81 7f andi r24, 0xF1 ; 241 5fc: 81 2b or r24, r17 5fe: 80 93 34 03 sts 0x0334, r24 ; 0x800334 602: 80 91 21 03 lds r24, 0x0321 ; 0x800321 606: 81 7f andi r24, 0xF1 ; 241 608: 18 2b or r17, r24 60a: 10 93 21 03 sts 0x0321, r17 ; 0x800321 heater[CH0].tcouple = heater[CH1].tcouple = 0; 60e: 10 92 38 03 sts 0x0338, r1 ; 0x800338 612: 10 92 37 03 sts 0x0337, r1 ; 0x800337 616: 10 92 25 03 sts 0x0325, r1 ; 0x800325 61a: 10 92 24 03 sts 0x0324, r1 ; 0x800324 61e: e0 cf rjmp .-64 ; 0x5e0 00000620 : heater[CH0].tcouple = heater[CH1].tcouple++; } } int16_t CalculateTemp(uint16_t data, uint8_t ch) { 620: 2f 92 push r2 622: 3f 92 push r3 624: 4f 92 push r4 626: 5f 92 push r5 628: 6f 92 push r6 62a: 7f 92 push r7 62c: 8f 92 push r8 62e: 9f 92 push r9 630: af 92 push r10 632: bf 92 push r11 634: cf 92 push r12 636: df 92 push r13 638: ef 92 push r14 63a: ff 92 push r15 63c: 0f 93 push r16 63e: 1f 93 push r17 640: cf 93 push r28 642: df 93 push r29 if(data > preset[ch].curve[0].adcdata) 644: 26 2f mov r18, r22 646: 30 e0 ldi r19, 0x00 ; 0 648: 40 e5 ldi r20, 0x50 ; 80 64a: 64 9f mul r22, r20 64c: f0 01 movw r30, r0 64e: 11 24 eor r1, r1 650: ea 5b subi r30, 0xBA ; 186 652: fc 4f sbci r31, 0xFC ; 252 654: 02 89 ldd r16, Z+18 ; 0x12 656: 13 89 ldd r17, Z+19 ; 0x13 658: 08 17 cp r16, r24 65a: 19 07 cpc r17, r25 65c: 80 f1 brcs .+96 ; 0x6be return 0; if(data < preset[ch].curve[15].adcdata) 65e: e2 5b subi r30, 0xB2 ; 178 660: ff 4f sbci r31, 0xFF ; 255 662: 40 81 ld r20, Z 664: 51 81 ldd r21, Z+1 ; 0x01 666: 84 17 cp r24, r20 668: 95 07 cpc r25, r21 66a: a8 f4 brcc .+42 ; 0x696 return 150; 66c: 86 e9 ldi r24, 0x96 ; 150 66e: 90 e0 ldi r25, 0x00 ; 0 return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata, preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data); } } return (-1); } 670: df 91 pop r29 672: cf 91 pop r28 674: 1f 91 pop r17 676: 0f 91 pop r16 678: ff 90 pop r15 67a: ef 90 pop r14 67c: df 90 pop r13 67e: cf 90 pop r12 680: bf 90 pop r11 682: af 90 pop r10 684: 9f 90 pop r9 686: 8f 90 pop r8 688: 7f 90 pop r7 68a: 6f 90 pop r6 68c: 5f 90 pop r5 68e: 4f 90 pop r4 690: 3f 90 pop r3 692: 2f 90 pop r2 694: 08 95 ret 696: 40 e5 ldi r20, 0x50 ; 80 698: 64 9f mul r22, r20 69a: f0 01 movw r30, r0 69c: 11 24 eor r1, r1 69e: e4 5a subi r30, 0xA4 ; 164 6a0: fc 4f sbci r31, 0xFC ; 252 int16_t CalculateTemp(uint16_t data, uint8_t ch) { if(data > preset[ch].curve[0].adcdata) return 0; if(data < preset[ch].curve[15].adcdata) 6a2: c0 e0 ldi r28, 0x00 ; 0 6a4: 03 c0 rjmp .+6 ; 0x6ac 6a6: 00 81 ld r16, Z 6a8: 11 81 ldd r17, Z+1 ; 0x01 6aa: 34 96 adiw r30, 0x04 ; 4 return 150; for(uint8_t i = 0; i < 16; i++) { if(data >= preset[ch].curve[i].adcdata) 6ac: 80 17 cp r24, r16 6ae: 91 07 cpc r25, r17 6b0: 48 f4 brcc .+18 ; 0x6c4 return 0; if(data < preset[ch].curve[15].adcdata) return 150; for(uint8_t i = 0; i < 16; i++) 6b2: cf 5f subi r28, 0xFF ; 255 6b4: c0 31 cpi r28, 0x10 ; 16 6b6: b9 f7 brne .-18 ; 0x6a6 { return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata, preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data); } } return (-1); 6b8: 8f ef ldi r24, 0xFF ; 255 6ba: 9f ef ldi r25, 0xFF ; 255 6bc: d9 cf rjmp .-78 ; 0x670 } int16_t CalculateTemp(uint16_t data, uint8_t ch) { if(data > preset[ch].curve[0].adcdata) return 0; 6be: 80 e0 ldi r24, 0x00 ; 0 6c0: 90 e0 ldi r25, 0x00 ; 0 6c2: d6 cf rjmp .-84 ; 0x670 6c4: 1c 01 movw r2, r24 if(data < preset[ch].curve[15].adcdata) return 150; for(uint8_t i = 0; i < 16; i++) { if(data >= preset[ch].curve[i].adcdata) 6c6: d0 e0 ldi r29, 0x00 ; 0 { return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata, preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data); 6c8: 7e 01 movw r14, r28 6ca: 81 e0 ldi r24, 0x01 ; 1 6cc: e8 1a sub r14, r24 6ce: f1 08 sbc r15, r1 6d0: 84 e1 ldi r24, 0x14 ; 20 6d2: 82 9f mul r24, r18 6d4: 60 01 movw r12, r0 6d6: 83 9f mul r24, r19 6d8: d0 0c add r13, r0 6da: 11 24 eor r1, r1 6dc: ec 0c add r14, r12 6de: fd 1c adc r15, r13 6e0: f7 01 movw r30, r14 6e2: ee 0f add r30, r30 6e4: ff 1f adc r31, r31 6e6: ee 0f add r30, r30 6e8: ff 1f adc r31, r31 6ea: ea 5a subi r30, 0xAA ; 170 6ec: fc 4f sbci r31, 0xFC ; 252 for(uint8_t i = 0; i < 16; i++) { if(data >= preset[ch].curve[i].adcdata) { return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata, 6ee: 60 81 ld r22, Z 6f0: 71 81 ldd r23, Z+1 ; 0x01 6f2: 80 e0 ldi r24, 0x00 ; 0 6f4: 90 e0 ldi r25, 0x00 ; 0 6f6: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 6fa: 4b 01 movw r8, r22 6fc: 5c 01 movw r10, r24 6fe: f7 01 movw r30, r14 700: ee 0f add r30, r30 702: ff 1f adc r31, r31 704: ee 0f add r30, r30 706: ff 1f adc r31, r31 708: ea 5b subi r30, 0xBA ; 186 70a: fc 4f sbci r31, 0xFC ; 252 70c: 62 89 ldd r22, Z+18 ; 0x12 70e: 73 89 ldd r23, Z+19 ; 0x13 710: 80 e0 ldi r24, 0x00 ; 0 712: 90 e0 ldi r25, 0x00 ; 0 714: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 718: 2b 01 movw r4, r22 71a: 3c 01 movw r6, r24 preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data); 71c: cc 0d add r28, r12 71e: dd 1d adc r29, r13 720: cc 0f add r28, r28 722: dd 1f adc r29, r29 724: cc 0f add r28, r28 726: dd 1f adc r29, r29 728: ca 5a subi r28, 0xAA ; 170 72a: dc 4f sbci r29, 0xFC ; 252 for(uint8_t i = 0; i < 16; i++) { if(data >= preset[ch].curve[i].adcdata) { return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata, 72c: 68 81 ld r22, Y 72e: 79 81 ldd r23, Y+1 ; 0x01 730: 80 e0 ldi r24, 0x00 ; 0 732: 90 e0 ldi r25, 0x00 ; 0 734: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 738: a5 01 movw r20, r10 73a: 94 01 movw r18, r8 73c: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 740: 6b 01 movw r12, r22 742: 7c 01 movw r14, r24 744: b1 01 movw r22, r2 746: 80 e0 ldi r24, 0x00 ; 0 748: 90 e0 ldi r25, 0x00 ; 0 74a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 74e: a3 01 movw r20, r6 750: 92 01 movw r18, r4 752: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 756: 9b 01 movw r18, r22 758: ac 01 movw r20, r24 75a: c7 01 movw r24, r14 75c: b6 01 movw r22, r12 75e: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3> 762: 6b 01 movw r12, r22 764: 7c 01 movw r14, r24 766: b8 01 movw r22, r16 768: 80 e0 ldi r24, 0x00 ; 0 76a: 90 e0 ldi r25, 0x00 ; 0 76c: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 770: a3 01 movw r20, r6 772: 92 01 movw r18, r4 774: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 778: 9b 01 movw r18, r22 77a: ac 01 movw r20, r24 77c: c7 01 movw r24, r14 77e: b6 01 movw r22, r12 780: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3> 784: a5 01 movw r20, r10 786: 94 01 movw r18, r8 788: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3> 78c: 0e 94 24 16 call 0x2c48 ; 0x2c48 <__fixsfsi> 790: cb 01 movw r24, r22 792: 6e cf rjmp .-292 ; 0x670 00000794 : } return (-1); } int16_t TMeasure(uint8_t ch) { 794: cf 93 push r28 796: df 93 push r29 798: e8 2f mov r30, r24 uint16_t addata = 0; uint16_t avg_data = 0; uint8_t i = 0; ADMUX = (ADMUX & 0xF8) | (ch & 0x01); 79a: 80 91 7c 00 lds r24, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c> 79e: 98 2f mov r25, r24 7a0: 98 7f andi r25, 0xF8 ; 248 7a2: 8e 2f mov r24, r30 7a4: 81 70 andi r24, 0x01 ; 1 7a6: 89 2b or r24, r25 7a8: 80 93 7c 00 sts 0x007C, r24 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c> #else //round up by default __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); #endif __builtin_avr_delay_cycles(__ticks_dc); 7ac: 8b e2 ldi r24, 0x2B ; 43 7ae: 91 e0 ldi r25, 0x01 ; 1 7b0: 01 97 sbiw r24, 0x01 ; 1 7b2: f1 f7 brne .-4 ; 0x7b0 7b4: 00 c0 rjmp .+0 ; 0x7b6 7b6: 00 00 nop 7b8: 3a e0 ldi r19, 0x0A ; 10 _delay_us(100); avg_data = 0; 7ba: 40 e0 ldi r20, 0x00 ; 0 7bc: 50 e0 ldi r21, 0x00 ; 0 for(i = 0; i < 10; i++) { ADCSRA |= (1 << ADSC); 7be: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> 7c2: 80 64 ori r24, 0x40 ; 64 7c4: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> while(!(ADCSRA & (1 << ADIF))); 7c8: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> 7cc: 84 ff sbrs r24, 4 7ce: fc cf rjmp .-8 ; 0x7c8 addata = ADCL; 7d0: 80 91 78 00 lds r24, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078> addata |= ((uint16_t)ADCH) << 8; 7d4: 20 91 79 00 lds r18, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079> avg_data += addata; 7d8: 90 e0 ldi r25, 0x00 ; 0 7da: 92 2b or r25, r18 7dc: 48 0f add r20, r24 7de: 59 1f adc r21, r25 7e0: 31 50 subi r19, 0x01 ; 1 uint8_t i = 0; ADMUX = (ADMUX & 0xF8) | (ch & 0x01); _delay_us(100); avg_data = 0; for(i = 0; i < 10; i++) 7e2: 69 f7 brne .-38 ; 0x7be while(!(ADCSRA & (1 << ADIF))); addata = ADCL; addata |= ((uint16_t)ADCH) << 8; avg_data += addata; } addata = avg_data / 10; 7e4: 9a 01 movw r18, r20 7e6: ad ec ldi r26, 0xCD ; 205 7e8: bc ec ldi r27, 0xCC ; 204 7ea: 0e 94 e5 1a call 0x35ca ; 0x35ca <__umulhisi3> 7ee: 96 95 lsr r25 7f0: 87 95 ror r24 7f2: 96 95 lsr r25 7f4: 87 95 ror r24 7f6: 96 95 lsr r25 7f8: 87 95 ror r24 heater[ch].tmeas_raw = addata; 7fa: 23 e1 ldi r18, 0x13 ; 19 7fc: e2 9f mul r30, r18 7fe: e0 01 movw r28, r0 800: 11 24 eor r1, r1 802: c0 5e subi r28, 0xE0 ; 224 804: dc 4f sbci r29, 0xFC ; 252 806: 99 87 std Y+9, r25 ; 0x09 808: 88 87 std Y+8, r24 ; 0x08 heater[ch].tmeas = CalculateTemp(addata, ch); 80a: 6e 2f mov r22, r30 80c: 09 df rcall .-494 ; 0x620 80e: 9f 83 std Y+7, r25 ; 0x07 810: 8e 83 std Y+6, r24 ; 0x06 return (heater[ch].tmeas); } 812: df 91 pop r29 814: cf 91 pop r28 816: 08 95 ret 00000818 : uint16_t CurrMeasure(uint8_t ch) { 818: cf 93 push r28 81a: c8 2f mov r28, r24 uint16_t addata = 0; ADMUX = (ADMUX & 0xF8) | (ADC_CUR1 + (ch & 0x01)); 81c: 80 91 7c 00 lds r24, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c> 820: 9c 2f mov r25, r28 822: 91 70 andi r25, 0x01 ; 1 824: 9e 5f subi r25, 0xFE ; 254 826: 88 7f andi r24, 0xF8 ; 248 828: 89 2b or r24, r25 82a: 80 93 7c 00 sts 0x007C, r24 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c> 82e: 8b e2 ldi r24, 0x2B ; 43 830: 91 e0 ldi r25, 0x01 ; 1 832: 01 97 sbiw r24, 0x01 ; 1 834: f1 f7 brne .-4 ; 0x832 836: 00 c0 rjmp .+0 ; 0x838 838: 00 00 nop _delay_us(100); ADCSRA |= (1 << ADSC); 83a: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> 83e: 80 64 ori r24, 0x40 ; 64 840: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> while(!(ADCSRA & (1 << ADIF))); 844: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> 848: 84 ff sbrs r24, 4 84a: fc cf rjmp .-8 ; 0x844 addata = ADCL; 84c: 60 91 78 00 lds r22, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078> addata |= ((uint16_t)ADCH) << 8; 850: 80 91 79 00 lds r24, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079> heater[ch].current = ((float)addata * 2.4); 854: 70 e0 ldi r23, 0x00 ; 0 856: 78 2b or r23, r24 858: 80 e0 ldi r24, 0x00 ; 0 85a: 90 e0 ldi r25, 0x00 ; 0 85c: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 860: 2a e9 ldi r18, 0x9A ; 154 862: 39 e9 ldi r19, 0x99 ; 153 864: 49 e1 ldi r20, 0x19 ; 25 866: 50 e4 ldi r21, 0x40 ; 64 868: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3> 86c: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi> 870: 23 e1 ldi r18, 0x13 ; 19 872: c2 9f mul r28, r18 874: f0 01 movw r30, r0 876: 11 24 eor r1, r1 878: e0 5e subi r30, 0xE0 ; 224 87a: fc 4f sbci r31, 0xFC ; 252 87c: 77 87 std Z+15, r23 ; 0x0f 87e: 66 87 std Z+14, r22 ; 0x0e return (heater[ch].current); } 880: cb 01 movw r24, r22 882: cf 91 pop r28 884: 08 95 ret 00000886 : return 0; } int uart_putchar(char c, FILE *stream) { cli(); 886: f8 94 cli if(!FIFO_IS_FULL(fifo0)) 888: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 88c: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 890: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 894: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 898: ac 01 movw r20, r24 89a: 42 1b sub r20, r18 89c: 53 0b sbc r21, r19 89e: 9a 01 movw r18, r20 8a0: 21 15 cp r18, r1 8a2: 32 40 sbci r19, 0x02 ; 2 8a4: 81 f0 breq .+32 ; 0x8c6 { FIFO_PUSH(fifo0, c); 8a6: fc 01 movw r30, r24 8a8: f1 70 andi r31, 0x01 ; 1 8aa: ea 51 subi r30, 0x1A ; 26 8ac: fc 4f sbci r31, 0xFC ; 252 8ae: 25 e5 ldi r18, 0x55 ; 85 8b0: 20 83 st Z, r18 8b2: 01 96 adiw r24, 0x01 ; 1 8b4: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 8b8: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 UCSR0B |= (1 << UDRIE0); 8bc: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> 8c0: 80 62 ori r24, 0x20 ; 32 8c2: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> } sei(); 8c6: 78 94 sei return 0; } int uart_putchar(char c, FILE *stream) { cli(); 8c8: f8 94 cli if(!FIFO_IS_FULL(fifo0)) 8ca: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 8ce: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 8d2: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 8d6: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 8da: bc 01 movw r22, r24 8dc: 62 1b sub r22, r18 8de: 73 0b sbc r23, r19 8e0: 9b 01 movw r18, r22 8e2: 21 15 cp r18, r1 8e4: 32 40 sbci r19, 0x02 ; 2 8e6: 81 f0 breq .+32 ; 0x908 { FIFO_PUSH(fifo0, c); 8e8: fc 01 movw r30, r24 8ea: f1 70 andi r31, 0x01 ; 1 8ec: ea 51 subi r30, 0x1A ; 26 8ee: fc 4f sbci r31, 0xFC ; 252 8f0: 25 e4 ldi r18, 0x45 ; 69 8f2: 20 83 st Z, r18 8f4: 01 96 adiw r24, 0x01 ; 1 8f6: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 8fa: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 UCSR0B |= (1 << UDRIE0); 8fe: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> 902: 80 62 ori r24, 0x20 ; 32 904: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> } sei(); 908: 78 94 sei return 0; } int uart_putchar(char c, FILE *stream) { cli(); 90a: f8 94 cli if(!FIFO_IS_FULL(fifo0)) 90c: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 910: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 914: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 918: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 91c: fc 01 movw r30, r24 91e: e2 1b sub r30, r18 920: f3 0b sbc r31, r19 922: 9f 01 movw r18, r30 924: 21 15 cp r18, r1 926: 32 40 sbci r19, 0x02 ; 2 928: 81 f0 breq .+32 ; 0x94a { FIFO_PUSH(fifo0, c); 92a: fc 01 movw r30, r24 92c: f1 70 andi r31, 0x01 ; 1 92e: ea 51 subi r30, 0x1A ; 26 930: fc 4f sbci r31, 0xFC ; 252 932: 25 e8 ldi r18, 0x85 ; 133 934: 20 83 st Z, r18 936: 01 96 adiw r24, 0x01 ; 1 938: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 93c: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 UCSR0B |= (1 << UDRIE0); 940: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> 944: 80 62 ori r24, 0x20 ; 32 946: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> } sei(); 94a: 78 94 sei 94c: ad e3 ldi r26, 0x3D ; 61 94e: b0 e0 ldi r27, 0x00 ; 0 return 0; } void TransmitPresets() { uint8_t checksum = 0x1F; 950: 5f e1 ldi r21, 0x1F ; 31 952: 9d 01 movw r18, r26 954: 2d 50 subi r18, 0x0D ; 13 956: 31 09 sbc r19, r1 for(uint8_t pn = 0; pn < 25; pn++) { for(uint8_t offs = 0; offs < 13; offs++) { EEAR = 0x30 + (pn * sizeof(preset_str)) + offs; 958: 32 bd out 0x22, r19 ; 34 95a: 21 bd out 0x21, r18 ; 33 EECR |= (1 << EERE); 95c: f8 9a sbi 0x1f, 0 ; 31 uint8_t data = EEDR; 95e: 40 b5 in r20, 0x20 ; 32 return 0; } int uart_putchar(char c, FILE *stream) { cli(); 960: f8 94 cli if(!FIFO_IS_FULL(fifo0)) 962: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 966: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 96a: 60 91 e6 05 lds r22, 0x05E6 ; 0x8005e6 96e: 70 91 e7 05 lds r23, 0x05E7 ; 0x8005e7 972: fc 01 movw r30, r24 974: e6 1b sub r30, r22 976: f7 0b sbc r31, r23 978: bf 01 movw r22, r30 97a: 61 15 cp r22, r1 97c: 72 40 sbci r23, 0x02 ; 2 97e: 79 f0 breq .+30 ; 0x99e { FIFO_PUSH(fifo0, c); 980: fc 01 movw r30, r24 982: f1 70 andi r31, 0x01 ; 1 984: ea 51 subi r30, 0x1A ; 26 986: fc 4f sbci r31, 0xFC ; 252 988: 40 83 st Z, r20 98a: 01 96 adiw r24, 0x01 ; 1 98c: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 990: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 UCSR0B |= (1 << UDRIE0); 994: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> 998: 80 62 ori r24, 0x20 ; 32 99a: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> } sei(); 99e: 78 94 sei { EEAR = 0x30 + (pn * sizeof(preset_str)) + offs; EECR |= (1 << EERE); uint8_t data = EEDR; uart_putchar(data, NULL); checksum += data; 9a0: 54 0f add r21, r20 9a2: 2f 5f subi r18, 0xFF ; 255 9a4: 3f 4f sbci r19, 0xFF ; 255 uart_putchar(0x45, NULL); uart_putchar(0x85, NULL); for(uint8_t pn = 0; pn < 25; pn++) { for(uint8_t offs = 0; offs < 13; offs++) 9a6: 2a 17 cp r18, r26 9a8: 3b 07 cpc r19, r27 9aa: b1 f6 brne .-84 ; 0x958 9ac: d9 01 movw r26, r18 9ae: a0 5b subi r26, 0xB0 ; 176 9b0: bf 4f sbci r27, 0xFF ; 255 uart_putchar(0x55, NULL); // fprintf(&uart_stdout, "BEG"); uart_putchar(0x45, NULL); uart_putchar(0x85, NULL); for(uint8_t pn = 0; pn < 25; pn++) 9b2: ad 30 cpi r26, 0x0D ; 13 9b4: 48 e0 ldi r20, 0x08 ; 8 9b6: b4 07 cpc r27, r20 9b8: 61 f6 brne .-104 ; 0x952 return 0; } int uart_putchar(char c, FILE *stream) { cli(); 9ba: f8 94 cli if(!FIFO_IS_FULL(fifo0)) 9bc: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 9c0: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 9c4: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 9c8: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 9cc: bc 01 movw r22, r24 9ce: 62 1b sub r22, r18 9d0: 73 0b sbc r23, r19 9d2: 9b 01 movw r18, r22 9d4: 21 15 cp r18, r1 9d6: 32 40 sbci r19, 0x02 ; 2 9d8: 79 f0 breq .+30 ; 0x9f8 { FIFO_PUSH(fifo0, c); 9da: fc 01 movw r30, r24 9dc: f1 70 andi r31, 0x01 ; 1 9de: ea 51 subi r30, 0x1A ; 26 9e0: fc 4f sbci r31, 0xFC ; 252 9e2: 50 83 st Z, r21 9e4: 01 96 adiw r24, 0x01 ; 1 9e6: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 9ea: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 UCSR0B |= (1 << UDRIE0); 9ee: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> 9f2: 80 62 ori r24, 0x20 ; 32 9f4: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> } sei(); 9f8: 78 94 sei uart_putchar(data, NULL); checksum += data; } } uart_putchar(checksum, NULL); txrequest = 0; 9fa: 10 92 f3 02 sts 0x02F3, r1 ; 0x8002f3 9fe: 08 95 ret 00000a00 : // fprintf(&uart_stdout, "END"); } void Transmit() { a00: 0f 93 push r16 a02: 1f 93 push r17 a04: cf 93 push r28 a06: df 93 push r29 comdata_str *txdata = (comdata_str*)calloc(1, sizeof(comdata_str)); a08: 64 ea ldi r22, 0xA4 ; 164 a0a: 70 e0 ldi r23, 0x00 ; 0 a0c: 81 e0 ldi r24, 0x01 ; 1 a0e: 90 e0 ldi r25, 0x00 ; 0 a10: 0e 94 3f 1b call 0x367e ; 0x367e a14: ec 01 movw r28, r24 txdata->start = 0x55; a16: 85 e5 ldi r24, 0x55 ; 85 a18: 88 83 st Y, r24 txdata->command = txrequest; a1a: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 a1e: 8a 83 std Y+2, r24 ; 0x02 switch((txreq_t)txrequest) a20: 83 30 cpi r24, 0x03 ; 3 a22: 09 f4 brne .+2 ; 0xa26 a24: 7e c0 rjmp .+252 ; 0xb22 a26: 08 f4 brcc .+2 ; 0xa2a a28: 7a c0 rjmp .+244 ; 0xb1e a2a: 85 30 cpi r24, 0x05 ; 5 a2c: 09 f4 brne .+2 ; 0xa30 a2e: 6f c0 rjmp .+222 ; 0xb0e a30: 86 30 cpi r24, 0x06 ; 6 a32: 51 f4 brne .+20 ; 0xa48 TransmitPresets(); free(txdata); return; case REQ_PRESETDATA: txdata->len = sizeof(preset); a34: 80 ea ldi r24, 0xA0 ; 160 a36: 89 83 std Y+1, r24 ; 0x01 memcpy(txdata->data, preset, sizeof(preset)); a38: e6 e4 ldi r30, 0x46 ; 70 a3a: f3 e0 ldi r31, 0x03 ; 3 a3c: de 01 movw r26, r28 a3e: 13 96 adiw r26, 0x03 ; 3 a40: 01 90 ld r0, Z+ a42: 0d 92 st X+, r0 a44: 8a 95 dec r24 a46: e1 f7 brne .-8 ; 0xa40 txrequest = 0; // fprintf(&uart_stdout, "END"); } void Transmit() { a48: 50 e0 ldi r21, 0x00 ; 0 a4a: 80 e0 ldi r24, 0x00 ; 0 a4c: 90 e0 ldi r25, 0x00 ; 0 a4e: 8e 01 movw r16, r28 a50: 0d 55 subi r16, 0x5D ; 93 a52: 1f 4f sbci r17, 0xFF ; 255 //fprintf(&uart_stdout, "BEG"); for(uint8_t i = 0; i < (txdata->len + 3); i++) { uart_putchar(((uint8_t*)txdata)[i], NULL); a54: fe 01 movw r30, r28 a56: e8 0f add r30, r24 a58: f9 1f adc r31, r25 a5a: 40 81 ld r20, Z return 0; } int uart_putchar(char c, FILE *stream) { cli(); a5c: f8 94 cli if(!FIFO_IS_FULL(fifo0)) a5e: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 a62: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 a66: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 a6a: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 a6e: bc 01 movw r22, r24 a70: 62 1b sub r22, r18 a72: 73 0b sbc r23, r19 a74: 9b 01 movw r18, r22 a76: 21 15 cp r18, r1 a78: 32 40 sbci r19, 0x02 ; 2 a7a: 81 f0 breq .+32 ; 0xa9c { FIFO_PUSH(fifo0, c); a7c: 9c 01 movw r18, r24 a7e: 31 70 andi r19, 0x01 ; 1 a80: 2a 51 subi r18, 0x1A ; 26 a82: 3c 4f sbci r19, 0xFC ; 252 a84: d9 01 movw r26, r18 a86: 4c 93 st X, r20 a88: 01 96 adiw r24, 0x01 ; 1 a8a: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 a8e: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 UCSR0B |= (1 << UDRIE0); a92: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> a96: 80 62 ori r24, 0x20 ; 32 a98: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> } sei(); a9c: 78 94 sei //fprintf(&uart_stdout, "BEG"); for(uint8_t i = 0; i < (txdata->len + 3); i++) { uart_putchar(((uint8_t*)txdata)[i], NULL); txdata->checksum += ((uint8_t*)txdata)[i]; a9e: d8 01 movw r26, r16 aa0: 4c 91 ld r20, X aa2: 80 81 ld r24, Z aa4: 48 0f add r20, r24 aa6: 4c 93 st X, r20 break; } //fprintf(&uart_stdout, "BEG"); for(uint8_t i = 0; i < (txdata->len + 3); i++) aa8: 5f 5f subi r21, 0xFF ; 255 aaa: 29 81 ldd r18, Y+1 ; 0x01 aac: 30 e0 ldi r19, 0x00 ; 0 aae: 2e 5f subi r18, 0xFE ; 254 ab0: 3f 4f sbci r19, 0xFF ; 255 ab2: 85 2f mov r24, r21 ab4: 90 e0 ldi r25, 0x00 ; 0 ab6: 28 17 cp r18, r24 ab8: 39 07 cpc r19, r25 aba: 64 f6 brge .-104 ; 0xa54 return 0; } int uart_putchar(char c, FILE *stream) { cli(); abc: f8 94 cli if(!FIFO_IS_FULL(fifo0)) abe: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 ac2: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 ac6: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 aca: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 ace: fc 01 movw r30, r24 ad0: e2 1b sub r30, r18 ad2: f3 0b sbc r31, r19 ad4: 9f 01 movw r18, r30 ad6: 21 15 cp r18, r1 ad8: 32 40 sbci r19, 0x02 ; 2 ada: 79 f0 breq .+30 ; 0xafa { FIFO_PUSH(fifo0, c); adc: fc 01 movw r30, r24 ade: f1 70 andi r31, 0x01 ; 1 ae0: ea 51 subi r30, 0x1A ; 26 ae2: fc 4f sbci r31, 0xFC ; 252 ae4: 40 83 st Z, r20 ae6: 01 96 adiw r24, 0x01 ; 1 ae8: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 aec: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 UCSR0B |= (1 << UDRIE0); af0: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> af4: 80 62 ori r24, 0x20 ; 32 af6: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1> } sei(); afa: 78 94 sei txdata->checksum += ((uint8_t*)txdata)[i]; } uart_putchar(txdata->checksum, NULL); //fprintf(&uart_stdout, "END"); txrequest = 0; afc: 10 92 f3 02 sts 0x02F3, r1 ; 0x8002f3 free(txdata); b00: ce 01 movw r24, r28 } b02: df 91 pop r29 b04: cf 91 pop r28 b06: 1f 91 pop r17 b08: 0f 91 pop r16 } uart_putchar(txdata->checksum, NULL); //fprintf(&uart_stdout, "END"); txrequest = 0; free(txdata); b0a: 0c 94 f1 1b jmp 0x37e2 ; 0x37e2 case REQ_DEBUGDATA: break; case REQ_PRESETTABLE: TransmitPresets(); b0e: bb de rcall .-650 ; 0x886 } uart_putchar(txdata->checksum, NULL); //fprintf(&uart_stdout, "END"); txrequest = 0; free(txdata); b10: ce 01 movw r24, r28 } b12: df 91 pop r29 b14: cf 91 pop r28 b16: 1f 91 pop r17 b18: 0f 91 pop r16 } uart_putchar(txdata->checksum, NULL); //fprintf(&uart_stdout, "END"); txrequest = 0; free(txdata); b1a: 0c 94 f1 1b jmp 0x37e2 ; 0x37e2 switch((txreq_t)txrequest) { case REQ_RST: case REQ_ACK: case REQ_NACK: txdata->len = 0; b1e: 19 82 std Y+1, r1 ; 0x01 break; b20: 93 cf rjmp .-218 ; 0xa48 case REQ_MAINDATA: txdata->len = sizeof(heater); b22: 86 e2 ldi r24, 0x26 ; 38 b24: 89 83 std Y+1, r24 ; 0x01 memcpy(txdata->data, heater, sizeof(heater)); b26: e0 e2 ldi r30, 0x20 ; 32 b28: f3 e0 ldi r31, 0x03 ; 3 b2a: de 01 movw r26, r28 b2c: 13 96 adiw r26, 0x03 ; 3 b2e: 01 90 ld r0, Z+ b30: 0d 92 st X+, r0 b32: 8a 95 dec r24 b34: e1 f7 brne .-8 ; 0xb2e break; b36: 88 cf rjmp .-240 ; 0xa48 00000b38 : free(txdata); } void ResetMCU(void) { cli(); b38: f8 94 cli WDTCSR |= (1 << WDCE) | (1 << WDE); b3a: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060> b3e: 88 61 ori r24, 0x18 ; 24 b40: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060> b44: ff cf rjmp .-2 ; 0xb44 00000b46 : while(1); } void SwitchHeating(uint8_t ch, uint8_t onoff) { if(onoff) b46: 61 11 cpse r22, r1 b48: 26 c0 rjmp .+76 ; 0xb96 LEDPORT |= (1 << (LED1 + (ch & 0x01))); heater[ch].status.heating = 1; } else { GATEPORT |= (1 << (GATE1 + (ch & 0x01))); b4a: 98 b1 in r25, 0x08 ; 8 b4c: 48 2f mov r20, r24 b4e: 41 70 andi r20, 0x01 ; 1 b50: 50 e0 ldi r21, 0x00 ; 0 b52: ba 01 movw r22, r20 b54: 6a 5f subi r22, 0xFA ; 250 b56: 7f 4f sbci r23, 0xFF ; 255 b58: 21 e0 ldi r18, 0x01 ; 1 b5a: 30 e0 ldi r19, 0x00 ; 0 b5c: f9 01 movw r30, r18 b5e: 02 c0 rjmp .+4 ; 0xb64 b60: ee 0f add r30, r30 b62: ff 1f adc r31, r31 b64: 6a 95 dec r22 b66: e2 f7 brpl .-8 ; 0xb60 b68: bf 01 movw r22, r30 b6a: 69 2b or r22, r25 b6c: 68 b9 out 0x08, r22 ; 8 LEDPORT &= ~(1 << (LED1 + (ch & 0x01))); b6e: 98 b1 in r25, 0x08 ; 8 b70: 4e 5f subi r20, 0xFE ; 254 b72: 5f 4f sbci r21, 0xFF ; 255 b74: 01 c0 rjmp .+2 ; 0xb78 b76: 22 0f add r18, r18 b78: 4a 95 dec r20 b7a: ea f7 brpl .-6 ; 0xb76 b7c: 20 95 com r18 b7e: 29 23 and r18, r25 b80: 28 b9 out 0x08, r18 ; 8 heater[ch].status.heating = 0; b82: 93 e1 ldi r25, 0x13 ; 19 b84: 89 9f mul r24, r25 b86: f0 01 movw r30, r0 b88: 11 24 eor r1, r1 b8a: e0 5e subi r30, 0xE0 ; 224 b8c: fc 4f sbci r31, 0xFC ; 252 b8e: 80 81 ld r24, Z b90: 8b 7f andi r24, 0xFB ; 251 b92: 80 83 st Z, r24 b94: 08 95 ret b96: 4b cb rjmp .-2410 ; 0x22e 00000b98 : } } float VoltageMeasure(uint8_t ch) { b98: cf 92 push r12 b9a: df 92 push r13 b9c: ef 92 push r14 b9e: ff 92 push r15 ba0: cf 93 push r28 ba2: df 93 push r29 uint16_t addata = 0; float voltage = 0.0; ADMUX = (ADMUX & 0xF8) | (ch & 0x01); ba4: 90 91 7c 00 lds r25, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c> ba8: 98 7f andi r25, 0xF8 ; 248 baa: 28 2f mov r18, r24 bac: 21 70 andi r18, 0x01 ; 1 bae: 92 2b or r25, r18 bb0: 90 93 7c 00 sts 0x007C, r25 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c> bb4: eb e2 ldi r30, 0x2B ; 43 bb6: f1 e0 ldi r31, 0x01 ; 1 bb8: 31 97 sbiw r30, 0x01 ; 1 bba: f1 f7 brne .-4 ; 0xbb8 bbc: 00 c0 rjmp .+0 ; 0xbbe bbe: 00 00 nop _delay_us(100); ADCSRA |= (1 << ADSC); bc0: 90 91 7a 00 lds r25, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> bc4: 90 64 ori r25, 0x40 ; 64 bc6: 90 93 7a 00 sts 0x007A, r25 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> while(!(ADCSRA & (1 << ADIF))); bca: 90 91 7a 00 lds r25, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a> bce: 94 ff sbrs r25, 4 bd0: fc cf rjmp .-8 ; 0xbca addata = ADCL; bd2: 60 91 78 00 lds r22, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078> addata |= ((uint16_t)ADCH) << 8; bd6: 90 91 79 00 lds r25, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079> voltage = (float)addata * 0.0025; voltage = (voltage / (0.758 * opamp[ch].gain)) + opamp[ch].shift; bda: c8 2f mov r28, r24 bdc: d0 e0 ldi r29, 0x00 ; 0 bde: 70 e0 ldi r23, 0x00 ; 0 be0: 79 2b or r23, r25 be2: 80 e0 ldi r24, 0x00 ; 0 be4: 90 e0 ldi r25, 0x00 ; 0 be6: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> bea: 2a e0 ldi r18, 0x0A ; 10 bec: 37 ed ldi r19, 0xD7 ; 215 bee: 43 e2 ldi r20, 0x23 ; 35 bf0: 5b e3 ldi r21, 0x3B ; 59 bf2: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3> bf6: 6b 01 movw r12, r22 bf8: 7c 01 movw r14, r24 bfa: 2d e0 ldi r18, 0x0D ; 13 bfc: 2c 9f mul r18, r28 bfe: c0 01 movw r24, r0 c00: 2d 9f mul r18, r29 c02: 90 0d add r25, r0 c04: 11 24 eor r1, r1 c06: ec 01 movw r28, r24 c08: c2 57 subi r28, 0x72 ; 114 c0a: d9 4f sbci r29, 0xF9 ; 249 c0c: 2a e4 ldi r18, 0x4A ; 74 c0e: 3c e0 ldi r19, 0x0C ; 12 c10: 42 e4 ldi r20, 0x42 ; 66 c12: 5f e3 ldi r21, 0x3F ; 63 c14: 69 81 ldd r22, Y+1 ; 0x01 c16: 7a 81 ldd r23, Y+2 ; 0x02 c18: 8b 81 ldd r24, Y+3 ; 0x03 c1a: 9c 81 ldd r25, Y+4 ; 0x04 c1c: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3> c20: 9b 01 movw r18, r22 c22: ac 01 movw r20, r24 c24: c7 01 movw r24, r14 c26: b6 01 movw r22, r12 c28: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3> return voltage; c2c: 2d 81 ldd r18, Y+5 ; 0x05 c2e: 3e 81 ldd r19, Y+6 ; 0x06 c30: 4f 81 ldd r20, Y+7 ; 0x07 c32: 58 85 ldd r21, Y+8 ; 0x08 c34: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3> } c38: df 91 pop r29 c3a: cf 91 pop r28 c3c: ff 90 pop r15 c3e: ef 90 pop r14 c40: df 90 pop r13 c42: cf 90 pop r12 c44: 08 95 ret 00000c46 : circ_t CircuitDetect(uint8_t ch) { c46: 7f 92 push r7 c48: 8f 92 push r8 c4a: 9f 92 push r9 c4c: af 92 push r10 c4e: bf 92 push r11 c50: cf 92 push r12 c52: df 92 push r13 c54: ef 92 push r14 c56: ff 92 push r15 c58: 0f 93 push r16 c5a: 1f 93 push r17 c5c: cf 93 push r28 c5e: df 93 push r29 c60: c8 2f mov r28, r24 uint8_t gain, shift, drive; float voltage; circ_t circ; gain = heater[ch].gain; c62: e8 2e mov r14, r24 c64: f1 2c mov r15, r1 c66: 83 e1 ldi r24, 0x13 ; 19 c68: c8 9f mul r28, r24 c6a: f0 01 movw r30, r0 c6c: 11 24 eor r1, r1 c6e: e0 5e subi r30, 0xE0 ; 224 c70: fc 4f sbci r31, 0xFC ; 252 c72: 70 88 ldd r7, Z+16 ; 0x10 shift = heater[ch].shift; c74: c1 88 ldd r12, Z+17 ; 0x11 drive = heater[ch].drive; c76: d2 88 ldd r13, Z+18 ; 0x12 SetDriveVoltage(ch, 0); c78: 40 e0 ldi r20, 0x00 ; 0 c7a: 50 e0 ldi r21, 0x00 ; 0 c7c: ba 01 movw r22, r20 c7e: 8c 2f mov r24, r28 c80: 0e 94 32 13 call 0x2664 ; 0x2664 SetInputRange(ch, 0.0, 3.0); c84: 00 e0 ldi r16, 0x00 ; 0 c86: 10 e0 ldi r17, 0x00 ; 0 c88: 20 e4 ldi r18, 0x40 ; 64 c8a: 30 e4 ldi r19, 0x40 ; 64 c8c: 40 e0 ldi r20, 0x00 ; 0 c8e: 50 e0 ldi r21, 0x00 ; 0 c90: ba 01 movw r22, r20 c92: 8c 2f mov r24, r28 c94: 0e 94 51 13 call 0x26a2 ; 0x26a2 voltage = VoltageMeasure(ch); c98: 8c 2f mov r24, r28 c9a: 7e df rcall .-260 ; 0xb98 c9c: 4b 01 movw r8, r22 c9e: 5c 01 movw r10, r24 if(voltage > 3.0) ca0: 20 e0 ldi r18, 0x00 ; 0 ca2: 30 e0 ldi r19, 0x00 ; 0 ca4: 40 e4 ldi r20, 0x40 ; 64 ca6: 50 e4 ldi r21, 0x40 ; 64 ca8: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2> cac: 18 16 cp r1, r24 cae: 0c f4 brge .+2 ; 0xcb2 cb0: 6f c0 rjmp .+222 ; 0xd90 { circ = CIRC_OPEN; } else if((voltage > 0.05) && (voltage <= 1.5)) cb2: 2d ec ldi r18, 0xCD ; 205 cb4: 3c ec ldi r19, 0xCC ; 204 cb6: 4c e4 ldi r20, 0x4C ; 76 cb8: 5d e3 ldi r21, 0x3D ; 61 cba: c5 01 movw r24, r10 cbc: b4 01 movw r22, r8 cbe: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2> cc2: 18 16 cp r1, r24 cc4: a4 f1 brlt .+104 ; 0xd2e cc6: d4 e0 ldi r29, 0x04 ; 4 circ = CIRC_RES_DIODE; } } else { circ = CIRC_RES; cc8: 14 e0 ldi r17, 0x04 ; 4 } SetGainData(ch, gain); cca: 67 2d mov r22, r7 ccc: 8c 2f mov r24, r28 cce: 0e 94 e3 13 call 0x27c6 ; 0x27c6 SetShiftData(ch, shift); cd2: 6c 2d mov r22, r12 cd4: 8c 2f mov r24, r28 cd6: 0e 94 12 14 call 0x2824 ; 0x2824 SetDriveData(ch, drive); cda: 6d 2d mov r22, r13 cdc: 8c 2f mov r24, r28 cde: 0e 94 40 14 call 0x2880 ; 0x2880 heater[ch].status.circuit = circ; ce2: 83 e1 ldi r24, 0x13 ; 19 ce4: 8e 9d mul r24, r14 ce6: f0 01 movw r30, r0 ce8: 8f 9d mul r24, r15 cea: f0 0d add r31, r0 cec: 11 24 eor r1, r1 cee: e0 5e subi r30, 0xE0 ; 224 cf0: fc 4f sbci r31, 0xFC ; 252 cf2: 9d 2f mov r25, r29 cf4: 92 95 swap r25 cf6: 99 0f add r25, r25 cf8: 99 0f add r25, r25 cfa: 90 7c andi r25, 0xC0 ; 192 cfc: 80 81 ld r24, Z cfe: 8f 73 andi r24, 0x3F ; 63 d00: 89 2b or r24, r25 d02: 80 83 st Z, r24 d04: d6 95 lsr r29 d06: d6 95 lsr r29 d08: 81 81 ldd r24, Z+1 ; 0x01 d0a: 8e 7f andi r24, 0xFE ; 254 d0c: d8 2b or r29, r24 d0e: d1 83 std Z+1, r29 ; 0x01 return circ; } d10: 81 2f mov r24, r17 d12: df 91 pop r29 d14: cf 91 pop r28 d16: 1f 91 pop r17 d18: 0f 91 pop r16 d1a: ff 90 pop r15 d1c: ef 90 pop r14 d1e: df 90 pop r13 d20: cf 90 pop r12 d22: bf 90 pop r11 d24: af 90 pop r10 d26: 9f 90 pop r9 d28: 8f 90 pop r8 d2a: 7f 90 pop r7 d2c: 08 95 ret voltage = VoltageMeasure(ch); if(voltage > 3.0) { circ = CIRC_OPEN; } else if((voltage > 0.05) && (voltage <= 1.5)) d2e: 20 e0 ldi r18, 0x00 ; 0 d30: 30 e0 ldi r19, 0x00 ; 0 d32: 40 ec ldi r20, 0xC0 ; 192 d34: 5f e3 ldi r21, 0x3F ; 63 d36: c5 01 movw r24, r10 d38: b4 01 movw r22, r8 d3a: 0e 94 b8 15 call 0x2b70 ; 0x2b70 <__cmpsf2> d3e: 18 16 cp r1, r24 d40: 14 f2 brlt .-124 ; 0xcc6 { SetDriveData(ch, 0xFF); d42: 6f ef ldi r22, 0xFF ; 255 d44: 8c 2f mov r24, r28 d46: 0e 94 40 14 call 0x2880 ; 0x2880 SwitchDrive(ch, ON); d4a: 61 e0 ldi r22, 0x01 ; 1 d4c: 8c 2f mov r24, r28 d4e: 0e 94 5f 14 call 0x28be ; 0x28be #else //round up by default __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); #endif __builtin_avr_delay_cycles(__ticks_dc); d52: 87 eb ldi r24, 0xB7 ; 183 d54: 9b e0 ldi r25, 0x0B ; 11 d56: 01 97 sbiw r24, 0x01 ; 1 d58: f1 f7 brne .-4 ; 0xd56 d5a: 00 c0 rjmp .+0 ; 0xd5c d5c: 00 00 nop _delay_ms(1); voltage = VoltageMeasure(ch); d5e: 8c 2f mov r24, r28 d60: 1b df rcall .-458 ; 0xb98 d62: 4b 01 movw r8, r22 d64: 5c 01 movw r10, r24 SetDriveData(ch, drive); d66: 6d 2d mov r22, r13 d68: 8c 2f mov r24, r28 d6a: 0e 94 40 14 call 0x2880 ; 0x2880 SwitchDrive(ch, OFF); d6e: 60 e0 ldi r22, 0x00 ; 0 d70: 8c 2f mov r24, r28 d72: 0e 94 5f 14 call 0x28be ; 0x28be if(voltage < 0.2) d76: 2d ec ldi r18, 0xCD ; 205 d78: 3c ec ldi r19, 0xCC ; 204 d7a: 4c e4 ldi r20, 0x4C ; 76 d7c: 5e e3 ldi r21, 0x3E ; 62 d7e: c5 01 movw r24, r10 d80: b4 01 movw r22, r8 d82: 0e 94 b8 15 call 0x2b70 ; 0x2b70 <__cmpsf2> d86: 87 ff sbrs r24, 7 d88: 06 c0 rjmp .+12 ; 0xd96 d8a: d2 e0 ldi r29, 0x02 ; 2 { circ = CIRC_MOSFET; d8c: 12 e0 ldi r17, 0x02 ; 2 d8e: 9d cf rjmp .-198 ; 0xcca d90: d0 e0 ldi r29, 0x00 ; 0 SetInputRange(ch, 0.0, 3.0); voltage = VoltageMeasure(ch); if(voltage > 3.0) { circ = CIRC_OPEN; d92: 10 e0 ldi r17, 0x00 ; 0 d94: 9a cf rjmp .-204 ; 0xcca d96: d3 e0 ldi r29, 0x03 ; 3 { circ = CIRC_MOSFET; } else { circ = CIRC_RES_DIODE; d98: 13 e0 ldi r17, 0x03 ; 3 d9a: 97 cf rjmp .-210 ; 0xcca 00000d9c : count--; } } int AutoCalibration(uint8_t ch) { d9c: 2f 92 push r2 d9e: 3f 92 push r3 da0: 4f 92 push r4 da2: 5f 92 push r5 da4: 6f 92 push r6 da6: 7f 92 push r7 da8: 8f 92 push r8 daa: 9f 92 push r9 dac: af 92 push r10 dae: bf 92 push r11 db0: cf 92 push r12 db2: df 92 push r13 db4: ef 92 push r14 db6: ff 92 push r15 db8: 0f 93 push r16 dba: 1f 93 push r17 dbc: cf 93 push r28 dbe: df 93 push r29 dc0: cd b7 in r28, 0x3d ; 61 dc2: de b7 in r29, 0x3e ; 62 dc4: 64 97 sbiw r28, 0x14 ; 20 dc6: 0f b6 in r0, 0x3f ; 63 dc8: f8 94 cli dca: de bf out 0x3e, r29 ; 62 dcc: 0f be out 0x3f, r0 ; 63 dce: cd bf out 0x3d, r28 ; 61 dd0: 38 2e mov r3, r24 uint8_t drive = 0; int16_t tstart = 0; uint16_t delcnt = 0; float vlow = 0.0, vhigh = 0.0; MAX_ReadData(); dd2: 91 db rcall .-2270 ; 0x4f6 CircuitDetect(ch); dd4: 83 2d mov r24, r3 dd6: 37 df rcall .-402 ; 0xc46 if(((heater[ch].status.circuit == CIRC_MOSFET) || (heater[ch].status.circuit == CIRC_RES_DIODE)) && (heater[ch].status.couple == 0)) dd8: 23 2d mov r18, r3 dda: 30 e0 ldi r19, 0x00 ; 0 ddc: 3a 87 std Y+10, r19 ; 0x0a dde: 29 87 std Y+9, r18 ; 0x09 de0: 33 e1 ldi r19, 0x13 ; 19 de2: 33 9e mul r3, r19 de4: f0 01 movw r30, r0 de6: 11 24 eor r1, r1 de8: e0 5e subi r30, 0xE0 ; 224 dea: fc 4f sbci r31, 0xFC ; 252 dec: 80 81 ld r24, Z dee: 98 2f mov r25, r24 df0: 92 95 swap r25 df2: 96 95 lsr r25 df4: 96 95 lsr r25 df6: 93 70 andi r25, 0x03 ; 3 df8: 81 81 ldd r24, Z+1 ; 0x01 dfa: 81 70 andi r24, 0x01 ; 1 dfc: 88 0f add r24, r24 dfe: 88 0f add r24, r24 e00: 89 2b or r24, r25 e02: 82 30 cpi r24, 0x02 ; 2 e04: 41 f1 breq .+80 ; 0xe56 e06: 80 81 ld r24, Z e08: 98 2f mov r25, r24 e0a: 92 95 swap r25 e0c: 96 95 lsr r25 e0e: 96 95 lsr r25 e10: 93 70 andi r25, 0x03 ; 3 e12: 81 81 ldd r24, Z+1 ; 0x01 e14: 81 70 andi r24, 0x01 ; 1 e16: 88 0f add r24, r24 e18: 88 0f add r24, r24 e1a: 89 2b or r24, r25 e1c: 83 30 cpi r24, 0x03 ; 3 e1e: d9 f0 breq .+54 ; 0xe56 SavePreset(ch); LCD_SendCmd(LCD_CLR); } return 0; e20: 80 e0 ldi r24, 0x00 ; 0 e22: 90 e0 ldi r25, 0x00 ; 0 } e24: 64 96 adiw r28, 0x14 ; 20 e26: 0f b6 in r0, 0x3f ; 63 e28: f8 94 cli e2a: de bf out 0x3e, r29 ; 62 e2c: 0f be out 0x3f, r0 ; 63 e2e: cd bf out 0x3d, r28 ; 61 e30: df 91 pop r29 e32: cf 91 pop r28 e34: 1f 91 pop r17 e36: 0f 91 pop r16 e38: ff 90 pop r15 e3a: ef 90 pop r14 e3c: df 90 pop r13 e3e: cf 90 pop r12 e40: bf 90 pop r11 e42: af 90 pop r10 e44: 9f 90 pop r9 e46: 8f 90 pop r8 e48: 7f 90 pop r7 e4a: 6f 90 pop r6 e4c: 5f 90 pop r5 e4e: 4f 90 pop r4 e50: 3f 90 pop r3 e52: 2f 90 pop r2 e54: 08 95 ret float vlow = 0.0, vhigh = 0.0; MAX_ReadData(); CircuitDetect(ch); if(((heater[ch].status.circuit == CIRC_MOSFET) || (heater[ch].status.circuit == CIRC_RES_DIODE)) && (heater[ch].status.couple == 0)) e56: 83 e1 ldi r24, 0x13 ; 19 e58: 69 85 ldd r22, Y+9 ; 0x09 e5a: 7a 85 ldd r23, Y+10 ; 0x0a e5c: 86 9f mul r24, r22 e5e: a0 01 movw r20, r0 e60: 87 9f mul r24, r23 e62: 50 0d add r21, r0 e64: 11 24 eor r1, r1 e66: 5a 83 std Y+2, r21 ; 0x02 e68: 49 83 std Y+1, r20 ; 0x01 e6a: fa 01 movw r30, r20 e6c: ef 5d subi r30, 0xDF ; 223 e6e: fc 4f sbci r31, 0xFC ; 252 e70: 80 81 ld r24, Z e72: 86 95 lsr r24 e74: 87 70 andi r24, 0x07 ; 7 e76: a1 f6 brne .-88 ; 0xe20 { LCD_SendCmd(LCD_CLR); e78: 81 e0 ldi r24, 0x01 ; 1 e7a: 0e 94 a1 12 call 0x2542 ; 0x2542 SetInputRange(ch, 0.0, 3.0); e7e: 00 e0 ldi r16, 0x00 ; 0 e80: 10 e0 ldi r17, 0x00 ; 0 e82: 20 e4 ldi r18, 0x40 ; 64 e84: 30 e4 ldi r19, 0x40 ; 64 e86: 40 e0 ldi r20, 0x00 ; 0 e88: 50 e0 ldi r21, 0x00 ; 0 e8a: ba 01 movw r22, r20 e8c: 83 2d mov r24, r3 e8e: 0e 94 51 13 call 0x26a2 ; 0x26a2 SetDriveVoltage(ch, 0.0); e92: 40 e0 ldi r20, 0x00 ; 0 e94: 50 e0 ldi r21, 0x00 ; 0 e96: ba 01 movw r22, r20 e98: 83 2d mov r24, r3 e9a: 0e 94 32 13 call 0x2664 ; 0x2664 e9e: 8f e6 ldi r24, 0x6F ; 111 ea0: 97 e1 ldi r25, 0x17 ; 23 ea2: 01 97 sbiw r24, 0x01 ; 1 ea4: f1 f7 brne .-4 ; 0xea2 ea6: 00 c0 rjmp .+0 ; 0xea8 ea8: 00 00 nop eaa: c9 84 ldd r12, Y+9 ; 0x09 eac: da 84 ldd r13, Y+10 ; 0x0a eae: 9f ef ldi r25, 0xFF ; 255 eb0: c9 1a sub r12, r25 eb2: d9 0a sbc r13, r25 _delay_ms(2); do { MAX_ReadData(); LCD_SetPos(0, 0); fprintf(&lcd_stdout, "K%.1u P%.2u Tm=%.3u -", ch + 1, heater[ch].preset, heater[ch].tmeas); eb4: a9 81 ldd r26, Y+1 ; 0x01 eb6: ba 81 ldd r27, Y+2 ; 0x02 eb8: a0 5e subi r26, 0xE0 ; 224 eba: bc 4f sbci r27, 0xFC ; 252 ebc: be 83 std Y+6, r27 ; 0x06 ebe: ad 83 std Y+5, r26 ; 0x05 ec0: 7d 01 movw r14, r26 ec2: b6 e0 ldi r27, 0x06 ; 6 ec4: eb 0e add r14, r27 ec6: f1 1c adc r15, r1 ec8: ad 80 ldd r10, Y+5 ; 0x05 eca: be 80 ldd r11, Y+6 ; 0x06 ecc: e2 e0 ldi r30, 0x02 ; 2 ece: ae 0e add r10, r30 ed0: b1 1c adc r11, r1 ed2: 62 e3 ldi r22, 0x32 ; 50 ed4: 86 2e mov r8, r22 ed6: 61 e0 ldi r22, 0x01 ; 1 ed8: 96 2e mov r9, r22 LCD_SetPos(0, 1); fprintf(&lcd_stdout, "CALIB. Tc=%.3u -", heater[ch].tcouple); eda: 0d 81 ldd r16, Y+5 ; 0x05 edc: 1e 81 ldd r17, Y+6 ; 0x06 ede: 0c 5f subi r16, 0xFC ; 252 ee0: 1f 4f sbci r17, 0xFF ; 255 ee2: 78 e4 ldi r23, 0x48 ; 72 ee4: 67 2e mov r6, r23 ee6: 71 e0 ldi r23, 0x01 ; 1 SetInputRange(ch, 0.0, 3.0); SetDriveVoltage(ch, 0.0); _delay_ms(2); do { MAX_ReadData(); ee8: 77 2e mov r7, r23 eea: 05 db rcall .-2550 ; 0x4f6 LCD_SetPos(0, 0); eec: 60 e0 ldi r22, 0x00 ; 0 eee: 80 e0 ldi r24, 0x00 ; 0 ef0: 0e 94 c6 12 call 0x258c ; 0x258c fprintf(&lcd_stdout, "K%.1u P%.2u Tm=%.3u -", ch + 1, heater[ch].preset, heater[ch].tmeas); ef4: d7 01 movw r26, r14 ef6: 11 96 adiw r26, 0x01 ; 1 ef8: 8c 91 ld r24, X efa: 11 97 sbiw r26, 0x01 ; 1 efc: 8f 93 push r24 efe: 8c 91 ld r24, X f00: 8f 93 push r24 f02: f5 01 movw r30, r10 f04: 80 81 ld r24, Z f06: 1f 92 push r1 f08: 8f 93 push r24 f0a: df 92 push r13 f0c: cf 92 push r12 f0e: 9f 92 push r9 f10: 8f 92 push r8 f12: 24 e1 ldi r18, 0x14 ; 20 f14: 31 e0 ldi r19, 0x01 ; 1 f16: 3f 93 push r19 f18: 2f 93 push r18 f1a: 0e 94 87 1d call 0x3b0e ; 0x3b0e LCD_SetPos(0, 1); f1e: 61 e0 ldi r22, 0x01 ; 1 f20: 80 e0 ldi r24, 0x00 ; 0 f22: 0e 94 c6 12 call 0x258c ; 0x258c fprintf(&lcd_stdout, "CALIB. Tc=%.3u -", heater[ch].tcouple); f26: d8 01 movw r26, r16 f28: 11 96 adiw r26, 0x01 ; 1 f2a: 8c 91 ld r24, X f2c: 11 97 sbiw r26, 0x01 ; 1 f2e: 8f 93 push r24 f30: 8c 91 ld r24, X f32: 8f 93 push r24 f34: 7f 92 push r7 f36: 6f 92 push r6 f38: e4 e1 ldi r30, 0x14 ; 20 f3a: f1 e0 ldi r31, 0x01 ; 1 f3c: ff 93 push r31 f3e: ef 93 push r30 f40: 0e 94 87 1d call 0x3b0e ; 0x3b0e } while(heater[ch].tcouple > cal_tmin); f44: d8 01 movw r26, r16 f46: 4d 90 ld r4, X+ f48: 5c 90 ld r5, X f4a: 80 91 22 01 lds r24, 0x0122 ; 0x800122 f4e: 90 e0 ldi r25, 0x00 ; 0 f50: 0f b6 in r0, 0x3f ; 63 f52: f8 94 cli f54: de bf out 0x3e, r29 ; 62 f56: 0f be out 0x3f, r0 ; 63 f58: cd bf out 0x3d, r28 ; 61 f5a: 84 15 cp r24, r4 f5c: 95 05 cpc r25, r5 tstart = heater[ch].tcouple; vhigh = VoltageMeasure(ch) + 0.04; f5e: 2c f2 brlt .-118 ; 0xeea f60: 83 2d mov r24, r3 f62: 1a de rcall .-972 ; 0xb98 f64: 2a e0 ldi r18, 0x0A ; 10 f66: 37 ed ldi r19, 0xD7 ; 215 f68: 43 e2 ldi r20, 0x23 ; 35 f6a: 5d e3 ldi r21, 0x3D ; 61 f6c: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3> f70: 6d 87 std Y+13, r22 ; 0x0d f72: 7e 87 std Y+14, r23 ; 0x0e f74: 88 8b std Y+16, r24 ; 0x10 f76: 9a 8b std Y+18, r25 ; 0x12 f78: 69 83 std Y+1, r22 ; 0x01 f7a: 7b 87 std Y+11, r23 ; 0x0b f7c: 8b 83 std Y+3, r24 ; 0x03 f7e: 29 2e mov r2, r25 if(heater[ch].status.circuit == CIRC_MOSFET) f80: ad 81 ldd r26, Y+5 ; 0x05 f82: be 81 ldd r27, Y+6 ; 0x06 f84: 8c 91 ld r24, X f86: 98 2f mov r25, r24 f88: 92 95 swap r25 f8a: 96 95 lsr r25 f8c: 96 95 lsr r25 f8e: 93 70 andi r25, 0x03 ; 3 f90: 11 96 adiw r26, 0x01 ; 1 f92: 8c 91 ld r24, X f94: 81 70 andi r24, 0x01 ; 1 f96: 88 0f add r24, r24 f98: 88 0f add r24, r24 f9a: 89 2b or r24, r25 f9c: 1f 82 std Y+7, r1 ; 0x07 f9e: 82 30 cpi r24, 0x02 ; 2 fa0: 09 f4 brne .+2 ; 0xfa4 fa2: f4 c0 rjmp .+488 ; 0x118c <__stack+0x8d> fa4: 83 2d mov r24, r3 fa6: 43 d9 rcall .-3450 ; 0x22e SwitchDrive(ch, ON); } SwitchHeating(ch, ON); while(heater[ch].tcouple < (cal_tmax + 2)) fa8: 80 91 23 01 lds r24, 0x0123 ; 0x800123 fac: 90 e0 ldi r25, 0x00 ; 0 fae: 01 96 adiw r24, 0x01 ; 1 fb0: 43 e1 ldi r20, 0x13 ; 19 fb2: e9 85 ldd r30, Y+9 ; 0x09 fb4: fa 85 ldd r31, Y+10 ; 0x0a fb6: 4e 9f mul r20, r30 fb8: 90 01 movw r18, r0 fba: 4f 9f mul r20, r31 fbc: 30 0d add r19, r0 fbe: 11 24 eor r1, r1 fc0: a9 01 movw r20, r18 fc2: 40 5e subi r20, 0xE0 ; 224 fc4: 5c 4f sbci r21, 0xFC ; 252 fc6: 5e 83 std Y+6, r21 ; 0x06 fc8: 4d 83 std Y+5, r20 ; 0x05 fca: da 01 movw r26, r20 fcc: 14 96 adiw r26, 0x04 ; 4 fce: 4d 91 ld r20, X+ fd0: 5c 91 ld r21, X fd2: 15 97 sbiw r26, 0x05 ; 5 fd4: 84 17 cp r24, r20 fd6: 95 07 cpc r25, r21 fd8: 0c f4 brge .+2 ; 0xfdc fda: 25 c1 rjmp .+586 ; 0x1226 <__stack+0x127> fdc: e1 2c mov r14, r1 fde: f1 2c mov r15, r1 { if(CurrMeasure(ch) > CURR_MAX) return 0; if(heater[ch].status.circuit == CIRC_MOSFET) fe0: 4d 81 ldd r20, Y+5 ; 0x05 fe2: 5e 81 ldd r21, Y+6 ; 0x06 fe4: 5c 8b std Y+20, r21 ; 0x14 fe6: 4b 8b std Y+19, r20 ; 0x13 { if(heater[ch].current > 1500) fe8: 4a 01 movw r8, r20 fea: 5e e0 ldi r21, 0x0E ; 14 fec: 85 0e add r8, r21 fee: 91 1c adc r9, r1 } } MAX_ReadData(); if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0)) ff0: b9 01 movw r22, r18 ff2: 6f 5d subi r22, 0xDF ; 223 ff4: 7c 4f sbci r23, 0xFC ; 252 ff6: 7e 83 std Y+6, r23 ; 0x06 ff8: 6d 83 std Y+5, r22 ; 0x05 } if(++delcnt > 300) { delcnt = 0; if((heater[ch].tcouple - tstart) < 5) ffa: cb 88 ldd r12, Y+19 ; 0x13 ffc: dc 88 ldd r13, Y+20 ; 0x14 ffe: 74 e0 ldi r23, 0x04 ; 4 1000: c7 0e add r12, r23 1002: d1 1c adc r13, r1 tstart = heater[ch].tcouple; } } LCD_SetPos(0, 0); fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive); 1004: 8d e0 ldi r24, 0x0D ; 13 1006: a9 85 ldd r26, Y+9 ; 0x09 1008: ba 85 ldd r27, Y+10 ; 0x0a 100a: 8a 9f mul r24, r26 100c: 80 01 movw r16, r0 100e: 8b 9f mul r24, r27 1010: 10 0d add r17, r0 1012: 11 24 eor r1, r1 1014: 09 56 subi r16, 0x69 ; 105 1016: 19 4f sbci r17, 0xF9 ; 249 1018: 4b e7 ldi r20, 0x7B ; 123 101a: a4 2e mov r10, r20 101c: 41 e0 ldi r20, 0x01 ; 1 101e: b4 2e mov r11, r20 1020: 54 e1 ldi r21, 0x14 ; 20 1022: 65 2e mov r6, r21 1024: 51 e0 ldi r21, 0x01 ; 1 1026: 75 2e mov r7, r21 SetDriveData(ch, ++drive); SwitchDrive(ch, ON); } } MAX_ReadData(); 1028: 83 c0 rjmp .+262 ; 0x1130 <__stack+0x31> 102a: 65 da rcall .-2870 ; 0x4f6 if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0)) 102c: ab 89 ldd r26, Y+19 ; 0x13 102e: bc 89 ldd r27, Y+20 ; 0x14 1030: 8c 91 ld r24, X 1032: 98 2f mov r25, r24 1034: 92 95 swap r25 1036: 96 95 lsr r25 1038: 96 95 lsr r25 103a: 93 70 andi r25, 0x03 ; 3 103c: 11 96 adiw r26, 0x01 ; 1 103e: 8c 91 ld r24, X 1040: 81 70 andi r24, 0x01 ; 1 1042: 88 0f add r24, r24 1044: 88 0f add r24, r24 1046: 89 2b or r24, r25 1048: 09 f4 brne .+2 ; 0x104c 104a: e7 c0 rjmp .+462 ; 0x121a <__stack+0x11b> 104c: eb 89 ldd r30, Y+19 ; 0x13 104e: fc 89 ldd r31, Y+20 ; 0x14 1050: 80 81 ld r24, Z 1052: 98 2f mov r25, r24 1054: 92 95 swap r25 1056: 96 95 lsr r25 1058: 96 95 lsr r25 105a: 93 70 andi r25, 0x03 ; 3 105c: 81 81 ldd r24, Z+1 ; 0x01 105e: 81 70 andi r24, 0x01 ; 1 1060: 88 0f add r24, r24 1062: 88 0f add r24, r24 1064: 89 2b or r24, r25 1066: 84 30 cpi r24, 0x04 ; 4 1068: 09 f4 brne .+2 ; 0x106c 106a: d7 c0 rjmp .+430 ; 0x121a <__stack+0x11b> 106c: ad 81 ldd r26, Y+5 ; 0x05 106e: be 81 ldd r27, Y+6 ; 0x06 1070: 8c 91 ld r24, X 1072: 86 95 lsr r24 1074: 87 70 andi r24, 0x07 ; 7 1076: 09 f0 breq .+2 ; 0x107a 1078: d0 c0 rjmp .+416 ; 0x121a <__stack+0x11b> { LoadPreset(ch); return (-1); } if(++delcnt > 300) 107a: bf ef ldi r27, 0xFF ; 255 107c: eb 1a sub r14, r27 107e: fb 0a sbc r15, r27 1080: ed e2 ldi r30, 0x2D ; 45 1082: ee 16 cp r14, r30 1084: e1 e0 ldi r30, 0x01 ; 1 1086: fe 06 cpc r15, r30 1088: 68 f0 brcs .+26 ; 0x10a4 { delcnt = 0; if((heater[ch].tcouple - tstart) < 5) 108a: d6 01 movw r26, r12 108c: 8d 91 ld r24, X+ 108e: 9c 91 ld r25, X 1090: 9c 01 movw r18, r24 1092: 24 19 sub r18, r4 1094: 35 09 sbc r19, r5 1096: 25 30 cpi r18, 0x05 ; 5 1098: 31 05 cpc r19, r1 109a: 0c f4 brge .+2 ; 0x109e 109c: 7c c3 rjmp .+1784 ; 0x1796 <__stack+0x697> while(!btn_act); return(-1); } else { tstart = heater[ch].tcouple; 109e: 2c 01 movw r4, r24 return (-1); } if(++delcnt > 300) { delcnt = 0; 10a0: e1 2c mov r14, r1 10a2: f1 2c mov r15, r1 { tstart = heater[ch].tcouple; } } LCD_SetPos(0, 0); 10a4: 60 e0 ldi r22, 0x00 ; 0 10a6: 80 e0 ldi r24, 0x00 ; 0 10a8: 0e 94 c6 12 call 0x258c ; 0x258c fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive); 10ac: f8 01 movw r30, r16 10ae: 83 81 ldd r24, Z+3 ; 0x03 10b0: 8f 93 push r24 10b2: 82 81 ldd r24, Z+2 ; 0x02 10b4: 8f 93 push r24 10b6: 81 81 ldd r24, Z+1 ; 0x01 10b8: 8f 93 push r24 10ba: 80 81 ld r24, Z 10bc: 8f 93 push r24 10be: 1f 92 push r1 10c0: 1f 92 push r1 10c2: 1f 92 push r1 10c4: 1f 92 push r1 10c6: 2f 92 push r2 10c8: fb 81 ldd r31, Y+3 ; 0x03 10ca: ff 93 push r31 10cc: 2b 85 ldd r18, Y+11 ; 0x0b 10ce: 2f 93 push r18 10d0: 39 81 ldd r19, Y+1 ; 0x01 10d2: 3f 93 push r19 10d4: bf 92 push r11 10d6: af 92 push r10 10d8: 7f 92 push r7 10da: 6f 92 push r6 10dc: 0e 94 87 1d call 0x3b0e ; 0x3b0e LCD_SetPos(0, 1); 10e0: 61 e0 ldi r22, 0x01 ; 1 10e2: 80 e0 ldi r24, 0x00 ; 0 10e4: 0e 94 c6 12 call 0x258c ; 0x258c fprintf(&lcd_stdout, "I=%.4umA Tc=%.3u ", heater[ch].current, heater[ch].tcouple); 10e8: d6 01 movw r26, r12 10ea: 11 96 adiw r26, 0x01 ; 1 10ec: 8c 91 ld r24, X 10ee: 11 97 sbiw r26, 0x01 ; 1 10f0: 8f 93 push r24 10f2: 8c 91 ld r24, X 10f4: 8f 93 push r24 10f6: f4 01 movw r30, r8 10f8: 81 81 ldd r24, Z+1 ; 0x01 10fa: 8f 93 push r24 10fc: 80 81 ld r24, Z 10fe: 8f 93 push r24 1100: 22 e9 ldi r18, 0x92 ; 146 1102: 31 e0 ldi r19, 0x01 ; 1 1104: 3f 93 push r19 1106: 2f 93 push r18 1108: 7f 92 push r7 110a: 6f 92 push r6 110c: 0e 94 87 1d call 0x3b0e ; 0x3b0e SwitchDrive(ch, ON); } SwitchHeating(ch, ON); while(heater[ch].tcouple < (cal_tmax + 2)) 1110: 80 91 23 01 lds r24, 0x0123 ; 0x800123 1114: 90 e0 ldi r25, 0x00 ; 0 1116: 01 96 adiw r24, 0x01 ; 1 1118: 0f b6 in r0, 0x3f ; 63 111a: f8 94 cli 111c: de bf out 0x3e, r29 ; 62 111e: 0f be out 0x3f, r0 ; 63 1120: cd bf out 0x3d, r28 ; 61 1122: d6 01 movw r26, r12 1124: 2d 91 ld r18, X+ 1126: 3c 91 ld r19, X 1128: 82 17 cp r24, r18 112a: 93 07 cpc r25, r19 112c: 0c f4 brge .+2 ; 0x1130 <__stack+0x31> { if(CurrMeasure(ch) > CURR_MAX) 112e: 7b c0 rjmp .+246 ; 0x1226 <__stack+0x127> 1130: 83 2d mov r24, r3 1132: 72 db rcall .-2332 ; 0x818 1134: 85 3c cpi r24, 0xC5 ; 197 1136: 99 40 sbci r25, 0x09 ; 9 1138: 08 f0 brcs .+2 ; 0x113c <__stack+0x3d> 113a: 72 ce rjmp .-796 ; 0xe20 return 0; if(heater[ch].status.circuit == CIRC_MOSFET) 113c: eb 89 ldd r30, Y+19 ; 0x13 113e: fc 89 ldd r31, Y+20 ; 0x14 1140: 80 81 ld r24, Z 1142: 98 2f mov r25, r24 1144: 92 95 swap r25 1146: 96 95 lsr r25 1148: 96 95 lsr r25 114a: 93 70 andi r25, 0x03 ; 3 114c: 81 81 ldd r24, Z+1 ; 0x01 114e: 81 70 andi r24, 0x01 ; 1 1150: 88 0f add r24, r24 1152: 88 0f add r24, r24 1154: 89 2b or r24, r25 1156: 82 30 cpi r24, 0x02 ; 2 1158: 09 f0 breq .+2 ; 0x115c <__stack+0x5d> 115a: 67 cf rjmp .-306 ; 0x102a { if(heater[ch].current > 1500) 115c: d4 01 movw r26, r8 115e: 8d 91 ld r24, X+ 1160: 9c 91 ld r25, X 1162: 8d 3d cpi r24, 0xDD ; 221 1164: b5 e0 ldi r27, 0x05 ; 5 1166: 9b 07 cpc r25, r27 1168: 08 f0 brcs .+2 ; 0x116c <__stack+0x6d> 116a: 47 c0 rjmp .+142 ; 0x11fa <__stack+0xfb> { SetDriveData(ch, --drive); SwitchDrive(ch, ON); } if(heater[ch].current < 1000) 116c: 88 3e cpi r24, 0xE8 ; 232 116e: 93 40 sbci r25, 0x03 ; 3 1170: 08 f0 brcs .+2 ; 0x1174 <__stack+0x75> 1172: 5b cf rjmp .-330 ; 0x102a { SetDriveData(ch, ++drive); 1174: ef 81 ldd r30, Y+7 ; 0x07 1176: ef 5f subi r30, 0xFF ; 255 1178: ef 83 std Y+7, r30 ; 0x07 117a: 6e 2f mov r22, r30 117c: 83 2d mov r24, r3 117e: 0e 94 40 14 call 0x2880 ; 0x2880 SwitchDrive(ch, ON); 1182: 61 e0 ldi r22, 0x01 ; 1 1184: 83 2d mov r24, r3 1186: 0e 94 5f 14 call 0x28be ; 0x28be 118a: 4f cf rjmp .-354 ; 0x102a _delay_ms(1); CurrMeasure(ch); SwitchHeating(ch, OFF); SwitchDrive(ch, OFF); drive++; } while(heater[ch].current < 1000); 118c: 83 e1 ldi r24, 0x13 ; 19 118e: 29 85 ldd r18, Y+9 ; 0x09 1190: 3a 85 ldd r19, Y+10 ; 0x0a 1192: 82 9f mul r24, r18 1194: f0 01 movw r30, r0 1196: 83 9f mul r24, r19 1198: f0 0d add r31, r0 119a: 11 24 eor r1, r1 119c: e2 5d subi r30, 0xD2 ; 210 119e: fc 4f sbci r31, 0xFC ; 252 11a0: fe 83 std Y+6, r31 ; 0x06 11a2: ed 83 std Y+5, r30 ; 0x05 11a4: 10 e0 ldi r17, 0x00 ; 0 11a6: 01 c0 rjmp .+2 ; 0x11aa <__stack+0xab> SwitchHeating(ch, ON); _delay_ms(1); CurrMeasure(ch); SwitchHeating(ch, OFF); SwitchDrive(ch, OFF); drive++; 11a8: 12 2f mov r17, r18 vhigh = VoltageMeasure(ch) + 0.04; if(heater[ch].status.circuit == CIRC_MOSFET) { do { SetDriveData(ch, drive); 11aa: 61 2f mov r22, r17 11ac: 83 2d mov r24, r3 11ae: 0e 94 40 14 call 0x2880 ; 0x2880 SwitchDrive(ch, ON); 11b2: 61 e0 ldi r22, 0x01 ; 1 11b4: 83 2d mov r24, r3 11b6: 0e 94 5f 14 call 0x28be ; 0x28be 11ba: 83 2d mov r24, r3 11bc: 38 d8 rcall .-3984 ; 0x22e 11be: 87 eb ldi r24, 0xB7 ; 183 11c0: 9b e0 ldi r25, 0x0B ; 11 11c2: 01 97 sbiw r24, 0x01 ; 1 11c4: f1 f7 brne .-4 ; 0x11c2 <__stack+0xc3> SwitchHeating(ch, ON); _delay_ms(1); CurrMeasure(ch); 11c6: 00 c0 rjmp .+0 ; 0x11c8 <__stack+0xc9> 11c8: 00 00 nop 11ca: 83 2d mov r24, r3 SwitchHeating(ch, OFF); 11cc: 25 db rcall .-2486 ; 0x818 11ce: 60 e0 ldi r22, 0x00 ; 0 11d0: 83 2d mov r24, r3 11d2: b9 dc rcall .-1678 ; 0xb46 SwitchDrive(ch, OFF); 11d4: 60 e0 ldi r22, 0x00 ; 0 11d6: 83 2d mov r24, r3 11d8: 0e 94 5f 14 call 0x28be ; 0x28be drive++; 11dc: 21 e0 ldi r18, 0x01 ; 1 11de: 21 0f add r18, r17 } while(heater[ch].current < 1000); 11e0: ad 81 ldd r26, Y+5 ; 0x05 11e2: be 81 ldd r27, Y+6 ; 0x06 11e4: 8d 91 ld r24, X+ 11e6: 9c 91 ld r25, X 11e8: 88 3e cpi r24, 0xE8 ; 232 11ea: 93 40 sbci r25, 0x03 ; 3 11ec: e8 f2 brcs .-70 ; 0x11a8 <__stack+0xa9> 11ee: 1f 83 std Y+7, r17 ; 0x07 drive--; SwitchDrive(ch, ON); 11f0: 61 e0 ldi r22, 0x01 ; 1 11f2: 83 2d mov r24, r3 11f4: 0e 94 5f 14 call 0x28be ; 0x28be 11f8: d5 ce rjmp .-598 ; 0xfa4 if(heater[ch].status.circuit == CIRC_MOSFET) { if(heater[ch].current > 1500) { SetDriveData(ch, --drive); 11fa: ef 81 ldd r30, Y+7 ; 0x07 11fc: e1 50 subi r30, 0x01 ; 1 11fe: ef 83 std Y+7, r30 ; 0x07 1200: 6e 2f mov r22, r30 1202: 83 2d mov r24, r3 1204: 0e 94 40 14 call 0x2880 ; 0x2880 SwitchDrive(ch, ON); 1208: 61 e0 ldi r22, 0x01 ; 1 120a: 83 2d mov r24, r3 120c: 0e 94 5f 14 call 0x28be ; 0x28be 1210: d4 01 movw r26, r8 1212: 8d 91 ld r24, X+ 1214: 9c 91 ld r25, X 1216: aa cf rjmp .-172 ; 0x116c <__stack+0x6d> MAX_ReadData(); if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0)) { LoadPreset(ch); 1218: 3d 84 ldd r3, Y+13 ; 0x0d 121a: 83 2d mov r24, r3 121c: 0e 94 be 14 call 0x297c ; 0x297c return (-1); 1220: 8f ef ldi r24, 0xFF ; 255 1222: 9f ef ldi r25, 0xFF ; 255 fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive); LCD_SetPos(0, 1); fprintf(&lcd_stdout, "I=%.4umA Tc=%.3u ", heater[ch].current, heater[ch].tcouple); } SwitchHeating(ch, OFF); 1224: ff cd rjmp .-1026 ; 0xe24 1226: 60 e0 ldi r22, 0x00 ; 0 1228: 83 2d mov r24, r3 122a: 8d dc rcall .-1766 ; 0xb46 SwitchDrive(ch, OFF); 122c: 60 e0 ldi r22, 0x00 ; 0 122e: 83 2d mov r24, r3 1230: 0e 94 5f 14 call 0x28be ; 0x28be 1234: ef e6 ldi r30, 0x6F ; 111 1236: f7 e1 ldi r31, 0x17 ; 23 1238: 31 97 sbiw r30, 0x01 ; 1 123a: f1 f7 brne .-4 ; 0x1238 <__stack+0x139> 123c: 00 c0 rjmp .+0 ; 0x123e <__stack+0x13f> _delay_ms(2); vlow = VoltageMeasure(ch); 123e: 00 00 nop 1240: 83 2d mov r24, r3 1242: aa dc rcall .-1708 ; 0xb98 1244: 96 2e mov r9, r22 1246: 87 2e mov r8, r23 1248: 78 2e mov r7, r24 124a: 69 2e mov r6, r25 if(vlow > 0.01) 124c: 2a e0 ldi r18, 0x0A ; 10 124e: 37 ed ldi r19, 0xD7 ; 215 1250: 43 e2 ldi r20, 0x23 ; 35 1252: 5c e3 ldi r21, 0x3C ; 60 1254: d4 01 movw r26, r8 1256: f3 01 movw r30, r6 1258: 6b 2f mov r22, r27 125a: 7a 2f mov r23, r26 125c: 8f 2f mov r24, r31 125e: 9e 2f mov r25, r30 1260: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2> 1264: 18 16 cp r1, r24 1266: 84 f4 brge .+32 ; 0x1288 <__stack+0x189> vlow -= 0.01; 1268: 2a e0 ldi r18, 0x0A ; 10 126a: 37 ed ldi r19, 0xD7 ; 215 126c: 43 e2 ldi r20, 0x23 ; 35 126e: 5c e3 ldi r21, 0x3C ; 60 1270: d4 01 movw r26, r8 1272: f3 01 movw r30, r6 1274: 6b 2f mov r22, r27 1276: 7a 2f mov r23, r26 1278: 8f 2f mov r24, r31 127a: 9e 2f mov r25, r30 127c: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 1280: 96 2e mov r9, r22 1282: 87 2e mov r8, r23 1284: 78 2e mov r7, r24 1286: 69 2e mov r6, r25 SetInputRange(ch, vlow, vhigh); 1288: 5d 85 ldd r21, Y+13 ; 0x0d 128a: 4e 85 ldd r20, Y+14 ; 0x0e 128c: 98 89 ldd r25, Y+16 ; 0x10 128e: 8a 89 ldd r24, Y+18 ; 0x12 1290: 05 2f mov r16, r21 1292: 14 2f mov r17, r20 1294: 29 2f mov r18, r25 1296: 38 2f mov r19, r24 1298: f4 01 movw r30, r8 129a: c3 01 movw r24, r6 129c: 4f 2f mov r20, r31 129e: 58 2d mov r21, r8 12a0: 69 2f mov r22, r25 12a2: 76 2d mov r23, r6 12a4: 83 2d mov r24, r3 12a6: 0e 94 51 13 call 0x26a2 ; 0x26a2 for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10) 12aa: b0 91 23 01 lds r27, 0x0123 ; 0x800123 12ae: bd 83 std Y+5, r27 ; 0x05 12b0: e0 91 22 01 lds r30, 0x0122 ; 0x800122 12b4: ef 83 std Y+7, r30 ; 0x07 12b6: be 17 cp r27, r30 12b8: 08 f4 brcc .+2 ; 0x12bc <__stack+0x1bd> 12ba: a1 c2 rjmp .+1346 ; 0x17fe <__stack+0x6ff> { while(heater[ch].tcouple >= temp) 12bc: 23 e1 ldi r18, 0x13 ; 19 12be: e9 85 ldd r30, Y+9 ; 0x09 12c0: fa 85 ldd r31, Y+10 ; 0x0a 12c2: 2e 9f mul r18, r30 12c4: c0 01 movw r24, r0 12c6: 2f 9f mul r18, r31 12c8: 90 0d add r25, r0 12ca: 11 24 eor r1, r1 12cc: 9c 01 movw r18, r24 12ce: 20 5e subi r18, 0xE0 ; 224 12d0: 3c 4f sbci r19, 0xFC ; 252 12d2: 38 87 std Y+8, r19 ; 0x08 12d4: 2f 83 std Y+7, r18 ; 0x07 12d6: 89 01 movw r16, r18 12d8: 0c 5f subi r16, 0xFC ; 252 12da: 1f 4f sbci r17, 0xFF ; 255 { MAX_ReadData(); LCD_SetPos(0, 0); fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw); 12dc: 79 01 movw r14, r18 12de: 38 e0 ldi r19, 0x08 ; 8 12e0: e3 0e add r14, r19 12e2: f1 1c adc r15, r1 12e4: a4 ea ldi r26, 0xA4 ; 164 12e6: ca 2e mov r12, r26 12e8: a1 e0 ldi r26, 0x01 ; 1 12ea: da 2e mov r13, r26 LCD_SetPos(0, 1); fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple); 12ec: b8 eb ldi r27, 0xB8 ; 184 12ee: 4b 2e mov r4, r27 12f0: b1 e0 ldi r27, 0x01 ; 1 12f2: 5b 2e mov r5, r27 } TMeasure(ch); preset[ch].curve[temp / 10].temp = temp; 12f4: 24 e1 ldi r18, 0x14 ; 20 12f6: 2e 9f mul r18, r30 12f8: a0 01 movw r20, r0 12fa: 2f 9f mul r18, r31 12fc: 50 0d add r21, r0 12fe: 11 24 eor r1, r1 1300: 5f 87 std Y+15, r21 ; 0x0f 1302: 4e 87 std Y+14, r20 ; 0x0e preset[ch].curve[temp / 10].adcdata = heater[ch].tmeas_raw; if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0) ) 1304: bc 01 movw r22, r24 1306: 6f 5d subi r22, 0xDF ; 223 1308: 7c 4f sbci r23, 0xFC ; 252 130a: 79 8b std Y+17, r23 ; 0x11 130c: 68 8b std Y+16, r22 ; 0x10 130e: 3d 86 std Y+13, r3 ; 0x0d 1310: 37 2c mov r3, r7 1312: 72 2c mov r7, r2 1314: 26 2c mov r2, r6 vlow -= 0.01; SetInputRange(ch, vlow, vhigh); for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10) { while(heater[ch].tcouple >= temp) 1316: 6b 84 ldd r6, Y+11 ; 0x0b 1318: 7d 81 ldd r23, Y+5 ; 0x05 131a: a7 2e mov r10, r23 131c: b1 2c mov r11, r1 131e: d8 01 movw r26, r16 1320: 8d 91 ld r24, X+ 1322: 9c 91 ld r25, X 1324: 8a 15 cp r24, r10 1326: 9b 05 cpc r25, r11 { MAX_ReadData(); 1328: e4 f1 brlt .+120 ; 0x13a2 <__stack+0x2a3> 132a: e5 d8 rcall .-3638 ; 0x4f6 LCD_SetPos(0, 0); 132c: 60 e0 ldi r22, 0x00 ; 0 132e: 80 e0 ldi r24, 0x00 ; 0 1330: 0e 94 c6 12 call 0x258c ; 0x258c fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw); 1334: d7 01 movw r26, r14 1336: 11 96 adiw r26, 0x01 ; 1 1338: 8c 91 ld r24, X 133a: 11 97 sbiw r26, 0x01 ; 1 133c: 8f 93 push r24 133e: 8c 91 ld r24, X 1340: 8f 93 push r24 1342: 7f 92 push r7 1344: bb 81 ldd r27, Y+3 ; 0x03 1346: bf 93 push r27 1348: 6f 92 push r6 134a: e9 81 ldd r30, Y+1 ; 0x01 134c: ef 93 push r30 134e: df 92 push r13 1350: cf 92 push r12 1352: 24 e1 ldi r18, 0x14 ; 20 1354: 31 e0 ldi r19, 0x01 ; 1 1356: 3f 93 push r19 1358: 2f 93 push r18 135a: 0e 94 87 1d call 0x3b0e ; 0x3b0e LCD_SetPos(0, 1); 135e: 61 e0 ldi r22, 0x01 ; 1 1360: 80 e0 ldi r24, 0x00 ; 0 1362: 0e 94 c6 12 call 0x258c ; 0x258c fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple); 1366: d8 01 movw r26, r16 1368: 11 96 adiw r26, 0x01 ; 1 136a: 8c 91 ld r24, X 136c: 11 97 sbiw r26, 0x01 ; 1 136e: 8f 93 push r24 1370: 8c 91 ld r24, X 1372: 8f 93 push r24 1374: 2f 92 push r2 1376: 3f 92 push r3 1378: 8f 92 push r8 137a: 9f 92 push r9 137c: 5f 92 push r5 137e: 4f 92 push r4 1380: e4 e1 ldi r30, 0x14 ; 20 1382: f1 e0 ldi r31, 0x01 ; 1 1384: ff 93 push r31 1386: ef 93 push r30 1388: 0e 94 87 1d call 0x3b0e ; 0x3b0e vlow -= 0.01; SetInputRange(ch, vlow, vhigh); for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10) { while(heater[ch].tcouple >= temp) 138c: 0f b6 in r0, 0x3f ; 63 138e: f8 94 cli 1390: de bf out 0x3e, r29 ; 62 1392: 0f be out 0x3f, r0 ; 63 1394: cd bf out 0x3d, r28 ; 61 1396: d8 01 movw r26, r16 1398: 8d 91 ld r24, X+ 139a: 9c 91 ld r25, X 139c: 8a 15 cp r24, r10 139e: 9b 05 cpc r25, r11 LCD_SetPos(0, 0); fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw); LCD_SetPos(0, 1); fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple); } TMeasure(ch); 13a0: 24 f6 brge .-120 ; 0x132a <__stack+0x22b> 13a2: 8d 85 ldd r24, Y+13 ; 0x0d 13a4: f7 d9 rcall .-3090 ; 0x794 preset[ch].curve[temp / 10].temp = temp; 13a6: 8d ec ldi r24, 0xCD ; 205 13a8: bd 81 ldd r27, Y+5 ; 0x05 13aa: b8 9f mul r27, r24 13ac: 81 2d mov r24, r1 13ae: 11 24 eor r1, r1 13b0: 86 95 lsr r24 13b2: 86 95 lsr r24 13b4: 86 95 lsr r24 13b6: ee 85 ldd r30, Y+14 ; 0x0e 13b8: ff 85 ldd r31, Y+15 ; 0x0f 13ba: e8 0f add r30, r24 13bc: f1 1d adc r31, r1 13be: cf 01 movw r24, r30 13c0: ee 0f add r30, r30 13c2: ff 1f adc r31, r31 13c4: ee 0f add r30, r30 13c6: ff 1f adc r31, r31 13c8: ea 5a subi r30, 0xAA ; 170 13ca: fc 4f sbci r31, 0xFC ; 252 13cc: b1 82 std Z+1, r11 ; 0x01 13ce: a0 82 st Z, r10 preset[ch].curve[temp / 10].adcdata = heater[ch].tmeas_raw; 13d0: 88 0f add r24, r24 13d2: 99 1f adc r25, r25 13d4: 88 0f add r24, r24 13d6: 99 1f adc r25, r25 13d8: fc 01 movw r30, r24 13da: ea 5b subi r30, 0xBA ; 186 13dc: fc 4f sbci r31, 0xFC ; 252 13de: d7 01 movw r26, r14 13e0: 8d 91 ld r24, X+ 13e2: 9c 91 ld r25, X 13e4: 93 8b std Z+19, r25 ; 0x13 13e6: 82 8b std Z+18, r24 ; 0x12 if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0) ) 13e8: ef 81 ldd r30, Y+7 ; 0x07 13ea: f8 85 ldd r31, Y+8 ; 0x08 13ec: 80 81 ld r24, Z 13ee: 98 2f mov r25, r24 13f0: 92 95 swap r25 13f2: 96 95 lsr r25 13f4: 96 95 lsr r25 13f6: 93 70 andi r25, 0x03 ; 3 13f8: 81 81 ldd r24, Z+1 ; 0x01 13fa: 81 70 andi r24, 0x01 ; 1 13fc: 88 0f add r24, r24 13fe: 88 0f add r24, r24 1400: 89 2b or r24, r25 1402: 09 f4 brne .+2 ; 0x1406 <__stack+0x307> 1404: 09 cf rjmp .-494 ; 0x1218 <__stack+0x119> 1406: 80 81 ld r24, Z 1408: 98 2f mov r25, r24 140a: 92 95 swap r25 140c: 96 95 lsr r25 140e: 96 95 lsr r25 1410: 93 70 andi r25, 0x03 ; 3 1412: 81 81 ldd r24, Z+1 ; 0x01 1414: 81 70 andi r24, 0x01 ; 1 1416: 88 0f add r24, r24 1418: 88 0f add r24, r24 141a: 89 2b or r24, r25 141c: 84 30 cpi r24, 0x04 ; 4 141e: 09 f4 brne .+2 ; 0x1422 <__stack+0x323> 1420: fb ce rjmp .-522 ; 0x1218 <__stack+0x119> 1422: a8 89 ldd r26, Y+16 ; 0x10 1424: b9 89 ldd r27, Y+17 ; 0x11 1426: 8c 91 ld r24, X 1428: 86 95 lsr r24 142a: 87 70 andi r24, 0x07 ; 7 142c: 09 f0 breq .+2 ; 0x1430 <__stack+0x331> 142e: f4 ce rjmp .-536 ; 0x1218 <__stack+0x119> vlow = VoltageMeasure(ch); if(vlow > 0.01) vlow -= 0.01; SetInputRange(ch, vlow, vhigh); for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10) 1430: bd 81 ldd r27, Y+5 ; 0x05 1432: ba 50 subi r27, 0x0A ; 10 1434: bd 83 std Y+5, r27 ; 0x05 1436: 80 91 22 01 lds r24, 0x0122 ; 0x800122 143a: b8 17 cp r27, r24 143c: 08 f0 brcs .+2 ; 0x1440 <__stack+0x341> 143e: 6c cf rjmp .-296 ; 0x1318 <__stack+0x219> 1440: 8f 83 std Y+7, r24 ; 0x07 1442: 3d 84 ldd r3, Y+13 ; 0x0d 1444: 20 90 23 01 lds r2, 0x0123 ; 0x800123 1448: 8d ec ldi r24, 0xCD ; 205 144a: 28 9e mul r2, r24 144c: 21 2d mov r18, r1 144e: 11 24 eor r1, r1 1450: 26 95 lsr r18 1452: 26 95 lsr r18 1454: 26 95 lsr r18 1456: ef 81 ldd r30, Y+7 ; 0x07 1458: e8 9f mul r30, r24 145a: 81 2d mov r24, r1 145c: 11 24 eor r1, r1 145e: 86 95 lsr r24 1460: 86 95 lsr r24 1462: 86 95 lsr r24 LoadPreset(ch); return (-1); } } for(uint8_t temp = 0; temp < cal_tmin; temp += 10) 1464: 10 e0 ldi r17, 0x00 ; 0 { preset[ch].curve[temp / 10].temp = temp; 1466: 0d ec ldi r16, 0xCD ; 205 1468: 94 e1 ldi r25, 0x14 ; 20 146a: 49 85 ldd r20, Y+9 ; 0x09 146c: 5a 85 ldd r21, Y+10 ; 0x0a 146e: 94 9f mul r25, r20 1470: 70 01 movw r14, r0 1472: 95 9f mul r25, r21 1474: f0 0c add r15, r0 1476: 11 24 eor r1, r1 preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); 1478: b7 01 movw r22, r14 147a: 68 0f add r22, r24 147c: 71 1d adc r23, r1 147e: ab 01 movw r20, r22 1480: 44 0f add r20, r20 1482: 55 1f adc r21, r21 1484: 44 0f add r20, r20 1486: 55 1f adc r21, r21 1488: da 01 movw r26, r20 148a: a8 5a subi r26, 0xA8 ; 168 148c: bc 4f sbci r27, 0xFC ; 252 148e: ba 83 std Y+2, r27 ; 0x02 1490: a9 83 std Y+1, r26 ; 0x01 } for(uint8_t temp = 0; temp < cal_tmin; temp += 10) { preset[ch].curve[temp / 10].temp = temp; preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, 1492: fa 01 movw r30, r20 1494: ea 5a subi r30, 0xAA ; 170 1496: fc 4f sbci r31, 0xFC ; 252 1498: fc 83 std Y+4, r31 ; 0x04 149a: eb 83 std Y+3, r30 ; 0x03 preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); 149c: c7 01 movw r24, r14 149e: 82 0f add r24, r18 14a0: 91 1d adc r25, r1 14a2: 9c 01 movw r18, r24 14a4: 22 0f add r18, r18 14a6: 33 1f adc r19, r19 14a8: 22 0f add r18, r18 14aa: 33 1f adc r19, r19 14ac: a9 01 movw r20, r18 14ae: 48 5a subi r20, 0xA8 ; 168 14b0: 5c 4f sbci r21, 0xFC ; 252 14b2: 5e 83 std Y+6, r21 ; 0x06 14b4: 4d 83 std Y+5, r20 ; 0x05 } for(uint8_t temp = 0; temp < cal_tmin; temp += 10) { preset[ch].curve[temp / 10].temp = temp; preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, 14b6: b9 01 movw r22, r18 14b8: 6a 5a subi r22, 0xAA ; 170 14ba: 7c 4f sbci r23, 0xFC ; 252 14bc: 7c 87 std Y+12, r23 ; 0x0c 14be: 6b 87 std Y+11, r22 ; 0x0b 14c0: 2d 86 std Y+13, r2 ; 0x0d 14c2: 3e 86 std Y+14, r3 ; 0x0e 14c4: 17 01 movw r2, r14 } } for(uint8_t temp = 0; temp < cal_tmin; temp += 10) { preset[ch].curve[temp / 10].temp = temp; 14c6: 10 9f mul r17, r16 14c8: 81 2d mov r24, r1 14ca: 11 24 eor r1, r1 14cc: 86 95 lsr r24 14ce: 86 95 lsr r24 14d0: 86 95 lsr r24 14d2: d1 01 movw r26, r2 14d4: a8 0f add r26, r24 14d6: b1 1d adc r27, r1 14d8: b9 8b std Y+17, r27 ; 0x11 14da: a8 8b std Y+16, r26 ; 0x10 14dc: fd 01 movw r30, r26 14de: ee 0f add r30, r30 14e0: ff 1f adc r31, r31 14e2: ee 0f add r30, r30 14e4: ff 1f adc r31, r31 14e6: ea 5a subi r30, 0xAA ; 170 14e8: fc 4f sbci r31, 0xFC ; 252 14ea: 81 2f mov r24, r17 14ec: 90 e0 ldi r25, 0x00 ; 0 14ee: 91 83 std Z+1, r25 ; 0x01 14f0: 80 83 st Z, r24 preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, 14f2: e9 81 ldd r30, Y+1 ; 0x01 14f4: fa 81 ldd r31, Y+2 ; 0x02 14f6: 60 81 ld r22, Z 14f8: 71 81 ldd r23, Z+1 ; 0x01 14fa: 80 e0 ldi r24, 0x00 ; 0 14fc: 90 e0 ldi r25, 0x00 ; 0 14fe: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 1502: 6b 01 movw r12, r22 1504: 7c 01 movw r14, r24 1506: ab 81 ldd r26, Y+3 ; 0x03 1508: bc 81 ldd r27, Y+4 ; 0x04 150a: 6d 91 ld r22, X+ 150c: 7c 91 ld r23, X 150e: 80 e0 ldi r24, 0x00 ; 0 1510: 90 e0 ldi r25, 0x00 ; 0 1512: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 1516: 4b 01 movw r8, r22 1518: 5c 01 movw r10, r24 151a: e8 89 ldd r30, Y+16 ; 0x10 151c: f9 89 ldd r31, Y+17 ; 0x11 151e: ee 0f add r30, r30 1520: ff 1f adc r31, r31 1522: ee 0f add r30, r30 1524: ff 1f adc r31, r31 1526: ea 5b subi r30, 0xBA ; 186 1528: fc 4f sbci r31, 0xFC ; 252 152a: f9 8b std Y+17, r31 ; 0x11 152c: e8 8b std Y+16, r30 ; 0x10 152e: ad 81 ldd r26, Y+5 ; 0x05 1530: be 81 ldd r27, Y+6 ; 0x06 1532: 6d 91 ld r22, X+ 1534: 7c 91 ld r23, X 1536: 80 e0 ldi r24, 0x00 ; 0 1538: 90 e0 ldi r25, 0x00 ; 0 153a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 153e: a7 01 movw r20, r14 1540: 96 01 movw r18, r12 1542: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 1546: 2b 01 movw r4, r22 1548: 3c 01 movw r6, r24 154a: 61 2f mov r22, r17 154c: 70 e0 ldi r23, 0x00 ; 0 154e: 80 e0 ldi r24, 0x00 ; 0 1550: 90 e0 ldi r25, 0x00 ; 0 1552: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 1556: a5 01 movw r20, r10 1558: 94 01 movw r18, r8 155a: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 155e: 9b 01 movw r18, r22 1560: ac 01 movw r20, r24 1562: c3 01 movw r24, r6 1564: b2 01 movw r22, r4 1566: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3> 156a: 2b 01 movw r4, r22 156c: 3c 01 movw r6, r24 156e: eb 85 ldd r30, Y+11 ; 0x0b 1570: fc 85 ldd r31, Y+12 ; 0x0c 1572: 60 81 ld r22, Z 1574: 71 81 ldd r23, Z+1 ; 0x01 1576: 80 e0 ldi r24, 0x00 ; 0 1578: 90 e0 ldi r25, 0x00 ; 0 157a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 157e: a5 01 movw r20, r10 1580: 94 01 movw r18, r8 1582: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 1586: 9b 01 movw r18, r22 1588: ac 01 movw r20, r24 158a: c3 01 movw r24, r6 158c: b2 01 movw r22, r4 158e: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3> 1592: a7 01 movw r20, r14 1594: 96 01 movw r18, r12 1596: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3> 159a: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi> 159e: a8 89 ldd r26, Y+16 ; 0x10 15a0: b9 89 ldd r27, Y+17 ; 0x11 15a2: 53 96 adiw r26, 0x13 ; 19 15a4: 7c 93 st X, r23 15a6: 6e 93 st -X, r22 15a8: 52 97 sbiw r26, 0x12 ; 18 LoadPreset(ch); return (-1); } } for(uint8_t temp = 0; temp < cal_tmin; temp += 10) 15aa: 16 5f subi r17, 0xF6 ; 246 15ac: bf 81 ldd r27, Y+7 ; 0x07 15ae: 1b 17 cp r17, r27 15b0: 08 f4 brcc .+2 ; 0x15b4 <__stack+0x4b5> 15b2: 89 cf rjmp .-238 ; 0x14c6 <__stack+0x3c7> 15b4: 2d 84 ldd r2, Y+13 ; 0x0d 15b6: 3e 84 ldd r3, Y+14 ; 0x0e preset[ch].curve[temp / 10].temp = temp; preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); } for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10) 15b8: 1a e0 ldi r17, 0x0A ; 10 15ba: 12 0d add r17, r2 15bc: 10 3a cpi r17, 0xA0 ; 160 15be: 08 f0 brcs .+2 ; 0x15c2 <__stack+0x4c3> 15c0: b4 c0 rjmp .+360 ; 0x172a <__stack+0x62b> 15c2: 8d ec ldi r24, 0xCD ; 205 15c4: 28 9e mul r2, r24 15c6: 91 2d mov r25, r1 15c8: 11 24 eor r1, r1 15ca: 96 95 lsr r25 15cc: 96 95 lsr r25 15ce: 96 95 lsr r25 15d0: bf 81 ldd r27, Y+7 ; 0x07 15d2: b8 9f mul r27, r24 15d4: 81 2d mov r24, r1 15d6: 11 24 eor r1, r1 15d8: 86 95 lsr r24 15da: 86 95 lsr r24 15dc: 86 95 lsr r24 { preset[ch].curve[temp / 10].temp = temp; 15de: 0d ec ldi r16, 0xCD ; 205 15e0: 24 e1 ldi r18, 0x14 ; 20 15e2: e9 85 ldd r30, Y+9 ; 0x09 15e4: fa 85 ldd r31, Y+10 ; 0x0a 15e6: 2e 9f mul r18, r30 15e8: 70 01 movw r14, r0 15ea: 2f 9f mul r18, r31 15ec: f0 0c add r15, r0 15ee: 11 24 eor r1, r1 preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); 15f0: 97 01 movw r18, r14 15f2: 28 0f add r18, r24 15f4: 31 1d adc r19, r1 15f6: a9 01 movw r20, r18 15f8: 44 0f add r20, r20 15fa: 55 1f adc r21, r21 15fc: 44 0f add r20, r20 15fe: 55 1f adc r21, r21 1600: ba 01 movw r22, r20 1602: 68 5a subi r22, 0xA8 ; 168 1604: 7c 4f sbci r23, 0xFC ; 252 1606: 7a 83 std Y+2, r23 ; 0x02 1608: 69 83 std Y+1, r22 ; 0x01 } for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10) { preset[ch].curve[temp / 10].temp = temp; preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, 160a: da 01 movw r26, r20 160c: aa 5a subi r26, 0xAA ; 170 160e: bc 4f sbci r27, 0xFC ; 252 1610: bc 83 std Y+4, r27 ; 0x04 1612: ab 83 std Y+3, r26 ; 0x03 preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); 1614: f7 01 movw r30, r14 1616: e9 0f add r30, r25 1618: f1 1d adc r31, r1 161a: 9f 01 movw r18, r30 161c: 22 0f add r18, r18 161e: 33 1f adc r19, r19 1620: 22 0f add r18, r18 1622: 33 1f adc r19, r19 1624: a9 01 movw r20, r18 1626: 48 5a subi r20, 0xA8 ; 168 1628: 5c 4f sbci r21, 0xFC ; 252 162a: 5e 83 std Y+6, r21 ; 0x06 162c: 4d 83 std Y+5, r20 ; 0x05 } for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10) { preset[ch].curve[temp / 10].temp = temp; preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, 162e: b9 01 movw r22, r18 1630: 6a 5a subi r22, 0xAA ; 170 1632: 7c 4f sbci r23, 0xFC ; 252 1634: 7c 87 std Y+12, r23 ; 0x0c 1636: 6b 87 std Y+11, r22 ; 0x0b 1638: 3f 82 std Y+7, r3 ; 0x07 163a: 17 01 movw r2, r14 preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); } for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10) { preset[ch].curve[temp / 10].temp = temp; 163c: 10 9f mul r17, r16 163e: 81 2d mov r24, r1 1640: 11 24 eor r1, r1 1642: 86 95 lsr r24 1644: 86 95 lsr r24 1646: 86 95 lsr r24 1648: d1 01 movw r26, r2 164a: a8 0f add r26, r24 164c: b1 1d adc r27, r1 164e: bf 87 std Y+15, r27 ; 0x0f 1650: ae 87 std Y+14, r26 ; 0x0e 1652: fd 01 movw r30, r26 1654: ee 0f add r30, r30 1656: ff 1f adc r31, r31 1658: ee 0f add r30, r30 165a: ff 1f adc r31, r31 165c: ea 5a subi r30, 0xAA ; 170 165e: fc 4f sbci r31, 0xFC ; 252 1660: 81 2f mov r24, r17 1662: 90 e0 ldi r25, 0x00 ; 0 1664: 91 83 std Z+1, r25 ; 0x01 1666: 80 83 st Z, r24 preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, 1668: e9 81 ldd r30, Y+1 ; 0x01 166a: fa 81 ldd r31, Y+2 ; 0x02 166c: 60 81 ld r22, Z 166e: 71 81 ldd r23, Z+1 ; 0x01 1670: 80 e0 ldi r24, 0x00 ; 0 1672: 90 e0 ldi r25, 0x00 ; 0 1674: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 1678: 6b 01 movw r12, r22 167a: 7c 01 movw r14, r24 167c: ab 81 ldd r26, Y+3 ; 0x03 167e: bc 81 ldd r27, Y+4 ; 0x04 1680: 6d 91 ld r22, X+ 1682: 7c 91 ld r23, X 1684: 80 e0 ldi r24, 0x00 ; 0 1686: 90 e0 ldi r25, 0x00 ; 0 1688: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 168c: 4b 01 movw r8, r22 168e: 5c 01 movw r10, r24 1690: ee 85 ldd r30, Y+14 ; 0x0e 1692: ff 85 ldd r31, Y+15 ; 0x0f 1694: ee 0f add r30, r30 1696: ff 1f adc r31, r31 1698: ee 0f add r30, r30 169a: ff 1f adc r31, r31 169c: ea 5b subi r30, 0xBA ; 186 169e: fc 4f sbci r31, 0xFC ; 252 16a0: ff 87 std Y+15, r31 ; 0x0f 16a2: ee 87 std Y+14, r30 ; 0x0e 16a4: ad 81 ldd r26, Y+5 ; 0x05 16a6: be 81 ldd r27, Y+6 ; 0x06 16a8: 6d 91 ld r22, X+ 16aa: 7c 91 ld r23, X 16ac: 80 e0 ldi r24, 0x00 ; 0 16ae: 90 e0 ldi r25, 0x00 ; 0 16b0: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 16b4: a7 01 movw r20, r14 16b6: 96 01 movw r18, r12 16b8: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 16bc: 2b 01 movw r4, r22 16be: 3c 01 movw r6, r24 16c0: 61 2f mov r22, r17 16c2: 70 e0 ldi r23, 0x00 ; 0 16c4: 80 e0 ldi r24, 0x00 ; 0 16c6: 90 e0 ldi r25, 0x00 ; 0 16c8: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 16cc: a5 01 movw r20, r10 16ce: 94 01 movw r18, r8 16d0: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 16d4: 9b 01 movw r18, r22 16d6: ac 01 movw r20, r24 16d8: c3 01 movw r24, r6 16da: b2 01 movw r22, r4 16dc: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3> 16e0: 2b 01 movw r4, r22 16e2: 3c 01 movw r6, r24 16e4: eb 85 ldd r30, Y+11 ; 0x0b 16e6: fc 85 ldd r31, Y+12 ; 0x0c 16e8: 60 81 ld r22, Z 16ea: 71 81 ldd r23, Z+1 ; 0x01 16ec: 80 e0 ldi r24, 0x00 ; 0 16ee: 90 e0 ldi r25, 0x00 ; 0 16f0: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 16f4: a5 01 movw r20, r10 16f6: 94 01 movw r18, r8 16f8: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3> 16fc: 9b 01 movw r18, r22 16fe: ac 01 movw r20, r24 1700: c3 01 movw r24, r6 1702: b2 01 movw r22, r4 1704: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3> 1708: a7 01 movw r20, r14 170a: 96 01 movw r18, r12 170c: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3> 1710: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi> 1714: ae 85 ldd r26, Y+14 ; 0x0e 1716: bf 85 ldd r27, Y+15 ; 0x0f 1718: 53 96 adiw r26, 0x13 ; 19 171a: 7c 93 st X, r23 171c: 6e 93 st -X, r22 171e: 52 97 sbiw r26, 0x12 ; 18 preset[ch].curve[temp / 10].temp = temp; preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); } for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10) 1720: 16 5f subi r17, 0xF6 ; 246 1722: 10 3a cpi r17, 0xA0 ; 160 1724: 08 f4 brcc .+2 ; 0x1728 <__stack+0x629> 1726: 8a cf rjmp .-236 ; 0x163c <__stack+0x53d> 1728: 3f 80 ldd r3, Y+7 ; 0x07 preset[ch].curve[temp / 10].temp = temp; preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp, preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); } if(strlen(preset[ch].header) == 0) 172a: 20 e5 ldi r18, 0x50 ; 80 172c: e9 85 ldd r30, Y+9 ; 0x09 172e: fa 85 ldd r31, Y+10 ; 0x0a 1730: 2e 9f mul r18, r30 1732: c0 01 movw r24, r0 1734: 2f 9f mul r18, r31 1736: 90 0d add r25, r0 1738: 11 24 eor r1, r1 173a: 89 5b subi r24, 0xB9 ; 185 173c: 9c 4f sbci r25, 0xFC ; 252 173e: dc 01 movw r26, r24 1740: 2c 91 ld r18, X 1742: 22 23 and r18, r18 1744: 09 f4 brne .+2 ; 0x1748 <__stack+0x649> 1746: 54 c0 rjmp .+168 ; 0x17f0 <__stack+0x6f1> { strncpy(preset[ch].header, "DEFAULT", 12); } preset[ch].number = heater[ch].preset; 1748: 80 e5 ldi r24, 0x50 ; 80 174a: 29 85 ldd r18, Y+9 ; 0x09 174c: 3a 85 ldd r19, Y+10 ; 0x0a 174e: 82 9f mul r24, r18 1750: f0 01 movw r30, r0 1752: 83 9f mul r24, r19 1754: f0 0d add r31, r0 1756: 11 24 eor r1, r1 1758: ea 5b subi r30, 0xBA ; 186 175a: fc 4f sbci r31, 0xFC ; 252 175c: 83 e1 ldi r24, 0x13 ; 19 175e: 82 9f mul r24, r18 1760: d0 01 movw r26, r0 1762: 83 9f mul r24, r19 1764: b0 0d add r27, r0 1766: 11 24 eor r1, r1 1768: a0 5e subi r26, 0xE0 ; 224 176a: bc 4f sbci r27, 0xFC ; 252 176c: 12 96 adiw r26, 0x02 ; 2 176e: 8c 91 ld r24, X 1770: 12 97 sbiw r26, 0x02 ; 2 1772: 80 83 st Z, r24 preset[ch].gain = heater[ch].gain; 1774: 50 96 adiw r26, 0x10 ; 16 1776: 8c 91 ld r24, X 1778: 50 97 sbiw r26, 0x10 ; 16 preset[ch].shift = heater[ch].shift; 177a: 85 87 std Z+13, r24 ; 0x0d 177c: 51 96 adiw r26, 0x11 ; 17 177e: 8c 91 ld r24, X preset[ch].drive = heater[ch].drive; 1780: 51 97 sbiw r26, 0x11 ; 17 1782: 86 87 std Z+14, r24 ; 0x0e 1784: 52 96 adiw r26, 0x12 ; 18 SavePreset(ch); 1786: 8c 91 ld r24, X 1788: 87 87 std Z+15, r24 ; 0x0f LCD_SendCmd(LCD_CLR); 178a: 83 2d mov r24, r3 178c: 0e 94 01 15 call 0x2a02 ; 0x2a02 1790: 81 e0 ldi r24, 0x01 ; 1 if(++delcnt > 300) { delcnt = 0; if((heater[ch].tcouple - tstart) < 5) { SwitchHeating(ch, OFF); 1792: d7 d6 rcall .+3502 ; 0x2542 1794: 45 cb rjmp .-2422 ; 0xe20 1796: 60 e0 ldi r22, 0x00 ; 0 1798: 83 2d mov r24, r3 SwitchDrive(ch, OFF); 179a: d5 d9 rcall .-3158 ; 0xb46 179c: 60 e0 ldi r22, 0x00 ; 0 179e: 83 2d mov r24, r3 LCD_SetPos(0, 0); 17a0: 0e 94 5f 14 call 0x28be ; 0x28be 17a4: 60 e0 ldi r22, 0x00 ; 0 17a6: 80 e0 ldi r24, 0x00 ; 0 fprintf(&lcd_stdout, "Íåäîñòàòî÷íûé "); 17a8: f1 d6 rcall .+3554 ; 0x258c 17aa: 24 e1 ldi r18, 0x14 ; 20 17ac: 31 e0 ldi r19, 0x01 ; 1 17ae: 40 e1 ldi r20, 0x10 ; 16 17b0: 50 e0 ldi r21, 0x00 ; 0 17b2: 61 e0 ldi r22, 0x01 ; 1 17b4: 70 e0 ldi r23, 0x00 ; 0 17b6: 89 e5 ldi r24, 0x59 ; 89 17b8: 91 e0 ldi r25, 0x01 ; 1 17ba: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 LCD_SetPos(0, 1); 17be: 61 e0 ldi r22, 0x01 ; 1 17c0: 80 e0 ldi r24, 0x00 ; 0 17c2: e4 d6 rcall .+3528 ; 0x258c fprintf(&lcd_stdout, "òåïëîâîé êîíòàêò"); 17c4: 24 e1 ldi r18, 0x14 ; 20 17c6: 31 e0 ldi r19, 0x01 ; 1 17c8: 40 e1 ldi r20, 0x10 ; 16 17ca: 50 e0 ldi r21, 0x00 ; 0 17cc: 61 e0 ldi r22, 0x01 ; 1 17ce: 70 e0 ldi r23, 0x00 ; 0 17d0: 8a e6 ldi r24, 0x6A ; 106 17d2: 91 e0 ldi r25, 0x01 ; 1 17d4: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 LoadPreset(ch); 17d8: 83 2d mov r24, r3 17da: 0e 94 be 14 call 0x297c ; 0x297c btn_act = 0; 17de: 10 92 f7 02 sts 0x02F7, r1 ; 0x8002f7 while(!btn_act); 17e2: 80 91 f7 02 lds r24, 0x02F7 ; 0x8002f7 17e6: 88 23 and r24, r24 17e8: e1 f3 breq .-8 ; 0x17e2 <__stack+0x6e3> return(-1); 17ea: 8f ef ldi r24, 0xFF ; 255 17ec: 9f ef ldi r25, 0xFF ; 255 17ee: 1a cb rjmp .-2508 ; 0xe24 preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp); } if(strlen(preset[ch].header) == 0) { strncpy(preset[ch].header, "DEFAULT", 12); 17f0: 4c e0 ldi r20, 0x0C ; 12 17f2: 50 e0 ldi r21, 0x00 ; 0 17f4: 6c ec ldi r22, 0xCC ; 204 17f6: 71 e0 ldi r23, 0x01 ; 1 17f8: 0e 94 6d 1d call 0x3ada ; 0x3ada 17fc: a5 cf rjmp .-182 ; 0x1748 <__stack+0x649> LoadPreset(ch); return (-1); } } for(uint8_t temp = 0; temp < cal_tmin; temp += 10) 17fe: bf 81 ldd r27, Y+7 ; 0x07 1800: 2d 80 ldd r2, Y+5 ; 0x05 1802: bb 23 and r27, r27 1804: 09 f4 brne .+2 ; 0x1808 <__stack+0x709> 1806: d8 ce rjmp .-592 ; 0x15b8 <__stack+0x4b9> 1808: 1f ce rjmp .-962 ; 0x1448 <__stack+0x349> 0000180a : } heater[ch].status.heating = OFF; } void ProcessCommand() { 180a: cf 93 push r28 180c: df 93 push r29 uint8_t ch = ((rxdata.command & 0x80) >> 7) & 0x01; 180e: c0 91 ec 05 lds r28, 0x05EC ; 0x8005ec 1812: cc 1f adc r28, r28 1814: cc 27 eor r28, r28 1816: cc 1f adc r28, r28 rxdata.command &= 0x7F; 1818: 80 91 ec 05 lds r24, 0x05EC ; 0x8005ec 181c: 8f 77 andi r24, 0x7F ; 127 181e: 80 93 ec 05 sts 0x05EC, r24 ; 0x8005ec txrequest = REQ_ACK; 1822: 81 e0 ldi r24, 0x01 ; 1 1824: 80 93 f3 02 sts 0x02F3, r24 ; 0x8002f3 switch(rxdata.command) 1828: e0 91 ec 05 lds r30, 0x05EC ; 0x8005ec 182c: 8e 2f mov r24, r30 182e: 90 e0 ldi r25, 0x00 ; 0 1830: 8a 30 cpi r24, 0x0A ; 10 1832: 91 05 cpc r25, r1 1834: 80 f4 brcc .+32 ; 0x1856 1836: fc 01 movw r30, r24 1838: e2 5c subi r30, 0xC2 ; 194 183a: ff 4f sbci r31, 0xFF ; 255 183c: 0c 94 df 1a jmp 0x35be ; 0x35be <__tablejump2__> SwitchHeating(ch, OFF); SwitchDrive(ch, OFF); break; case CMD_SETTEMP: heater[ch].tset = rxdata.data[0]; 1840: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed 1844: 93 e1 ldi r25, 0x13 ; 19 1846: c9 9f mul r28, r25 1848: e0 01 movw r28, r0 184a: 11 24 eor r1, r1 184c: c0 5e subi r28, 0xE0 ; 224 184e: dc 4f sbci r29, 0xFC ; 252 1850: 90 e0 ldi r25, 0x00 ; 0 1852: 9b 87 std Y+11, r25 ; 0x0b 1854: 8a 87 std Y+10, r24 ; 0x0a ManualCalibration(ch); else if(heater[ch].status.calib == CAL_AUTO) AutoCalibration(ch); break; } } 1856: df 91 pop r29 1858: cf 91 pop r28 185a: 08 95 ret memcpy((uint8_t*)preset, (uint8_t*)rxdata.data, rxdata.len); SavePreset(ch); break; case CMD_HEATING: if(heater[ch].status.calib == CAL_MANUAL) 185c: 83 e1 ldi r24, 0x13 ; 19 185e: c8 9f mul r28, r24 1860: e0 01 movw r28, r0 1862: 11 24 eor r1, r1 1864: c0 5e subi r28, 0xE0 ; 224 1866: dc 4f sbci r29, 0xFC ; 252 1868: 88 81 ld r24, Y 186a: 82 95 swap r24 186c: 83 70 andi r24, 0x03 ; 3 186e: 82 30 cpi r24, 0x02 ; 2 1870: 91 f7 brne .-28 ; 0x1856 heater[ch].status.heating = rxdata.data[0]; 1872: 90 91 ed 05 lds r25, 0x05ED ; 0x8005ed 1876: 88 81 ld r24, Y 1878: 90 fb bst r25, 0 187a: 82 f9 bld r24, 2 187c: 88 83 st Y, r24 187e: eb cf rjmp .-42 ; 0x1856 break; case CMD_CALIBRATION: heater[ch].status.calib = rxdata.data[0]; 1880: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed 1884: 83 70 andi r24, 0x03 ; 3 1886: 93 e1 ldi r25, 0x13 ; 19 1888: c9 9f mul r28, r25 188a: f0 01 movw r30, r0 188c: 11 24 eor r1, r1 188e: e0 5e subi r30, 0xE0 ; 224 1890: fc 4f sbci r31, 0xFC ; 252 1892: 98 2f mov r25, r24 1894: 92 95 swap r25 1896: 90 7f andi r25, 0xF0 ; 240 1898: 80 81 ld r24, Z 189a: 8f 7c andi r24, 0xCF ; 207 189c: 89 2b or r24, r25 189e: 80 83 st Z, r24 cal_tmin = rxdata.data[1]; 18a0: 80 91 ee 05 lds r24, 0x05EE ; 0x8005ee 18a4: 80 93 22 01 sts 0x0122, r24 ; 0x800122 cal_tmax = rxdata.data[2]; 18a8: 80 91 ef 05 lds r24, 0x05EF ; 0x8005ef 18ac: 80 93 23 01 sts 0x0123, r24 ; 0x800123 if(heater[ch].status.calib == CAL_MANUAL) 18b0: 80 81 ld r24, Z 18b2: 82 95 swap r24 18b4: 83 70 andi r24, 0x03 ; 3 18b6: 82 30 cpi r24, 0x02 ; 2 18b8: 09 f4 brne .+2 ; 0x18bc 18ba: 7c c0 rjmp .+248 ; 0x19b4 ManualCalibration(ch); else if(heater[ch].status.calib == CAL_AUTO) 18bc: 80 81 ld r24, Z 18be: 82 95 swap r24 18c0: 83 70 andi r24, 0x03 ; 3 18c2: 81 30 cpi r24, 0x01 ; 1 18c4: 41 f6 brne .-112 ; 0x1856 AutoCalibration(ch); 18c6: 8c 2f mov r24, r28 break; } } 18c8: df 91 pop r29 18ca: cf 91 pop r28 cal_tmax = rxdata.data[2]; if(heater[ch].status.calib == CAL_MANUAL) ManualCalibration(ch); else if(heater[ch].status.calib == CAL_AUTO) AutoCalibration(ch); 18cc: 67 ca rjmp .-2866 ; 0xd9c rxdata.command &= 0x7F; txrequest = REQ_ACK; switch(rxdata.command) { case CMD_RESET: ResetMCU(); 18ce: 34 d9 rcall .-3480 ; 0xb38 18d0: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed break; case CMD_REQ: txrequest = rxdata.data[0]; 18d4: 80 93 f3 02 sts 0x02F3, r24 ; 0x8002f3 18d8: be cf rjmp .-132 ; 0x1856 break; 18da: 90 91 ed 05 lds r25, 0x05ED ; 0x8005ed case CMD_CHONOFF: heater[ch].status.onoff = rxdata.data[0]; 18de: 83 e1 ldi r24, 0x13 ; 19 18e0: c8 9f mul r28, r24 18e2: f0 01 movw r30, r0 18e4: 11 24 eor r1, r1 18e6: e0 5e subi r30, 0xE0 ; 224 18e8: fc 4f sbci r31, 0xFC ; 252 18ea: 80 81 ld r24, Z 18ec: 90 fb bst r25, 0 18ee: 81 f9 bld r24, 1 18f0: 80 83 st Z, r24 18f2: 60 e0 ldi r22, 0x00 ; 0 SwitchHeating(ch, OFF); 18f4: 8c 2f mov r24, r28 18f6: 27 d9 rcall .-3506 ; 0xb46 18f8: 60 e0 ldi r22, 0x00 ; 0 SwitchDrive(ch, OFF); 18fa: 8c 2f mov r24, r28 ManualCalibration(ch); else if(heater[ch].status.calib == CAL_AUTO) AutoCalibration(ch); break; } } 18fc: df 91 pop r29 18fe: cf 91 pop r28 break; case CMD_CHONOFF: heater[ch].status.onoff = rxdata.data[0]; SwitchHeating(ch, OFF); SwitchDrive(ch, OFF); 1900: de c7 rjmp .+4028 ; 0x28be 1902: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed case CMD_SETTEMP: heater[ch].tset = rxdata.data[0]; break; case CMD_SETRANGE: heater[ch].gain = rxdata.data[0]; 1906: 93 e1 ldi r25, 0x13 ; 19 1908: c9 9f mul r28, r25 190a: f0 01 movw r30, r0 190c: 11 24 eor r1, r1 190e: e0 5e subi r30, 0xE0 ; 224 1910: fc 4f sbci r31, 0xFC ; 252 1912: 80 8b std Z+16, r24 ; 0x10 1914: 80 91 ee 05 lds r24, 0x05EE ; 0x8005ee heater[ch].shift = rxdata.data[1]; 1918: 81 8b std Z+17, r24 ; 0x11 191a: 60 91 ed 05 lds r22, 0x05ED ; 0x8005ed SetGainData(ch, rxdata.data[0]); 191e: 8c 2f mov r24, r28 1920: 52 d7 rcall .+3748 ; 0x27c6 1922: 60 91 ee 05 lds r22, 0x05EE ; 0x8005ee SetShiftData(ch, rxdata.data[1]); 1926: 8c 2f mov r24, r28 ManualCalibration(ch); else if(heater[ch].status.calib == CAL_AUTO) AutoCalibration(ch); break; } } 1928: df 91 pop r29 192a: cf 91 pop r28 case CMD_SETRANGE: heater[ch].gain = rxdata.data[0]; heater[ch].shift = rxdata.data[1]; SetGainData(ch, rxdata.data[0]); SetShiftData(ch, rxdata.data[1]); 192c: 7b c7 rjmp .+3830 ; 0x2824 192e: 8c 2f mov r24, r28 break; case CMD_SETVDRIVE: heater[ch].drive = rxdata.data[0]; 1930: 90 e0 ldi r25, 0x00 ; 0 1932: 20 91 ed 05 lds r18, 0x05ED ; 0x8005ed 1936: 33 e1 ldi r19, 0x13 ; 19 1938: 38 9f mul r19, r24 193a: f0 01 movw r30, r0 193c: 39 9f mul r19, r25 193e: f0 0d add r31, r0 1940: 11 24 eor r1, r1 1942: e0 5e subi r30, 0xE0 ; 224 1944: fc 4f sbci r31, 0xFC ; 252 1946: 22 8b std Z+18, r18 ; 0x12 1948: 2d e0 ldi r18, 0x0D ; 13 opamp[ch].drive = ((float)heater->drive / 25.76); 194a: 28 9f mul r18, r24 194c: e0 01 movw r28, r0 194e: 29 9f mul r18, r25 1950: d0 0d add r29, r0 1952: 11 24 eor r1, r1 1954: c2 57 subi r28, 0x72 ; 114 1956: d9 4f sbci r29, 0xF9 ; 249 1958: 60 91 32 03 lds r22, 0x0332 ; 0x800332 195c: 70 e0 ldi r23, 0x00 ; 0 195e: 80 e0 ldi r24, 0x00 ; 0 1960: 90 e0 ldi r25, 0x00 ; 0 1962: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf> 1966: 2b e7 ldi r18, 0x7B ; 123 1968: 34 e1 ldi r19, 0x14 ; 20 196a: 4e ec ldi r20, 0xCE ; 206 196c: 51 e4 ldi r21, 0x41 ; 65 196e: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3> 1972: 69 87 std Y+9, r22 ; 0x09 1974: 7a 87 std Y+10, r23 ; 0x0a 1976: 8b 87 std Y+11, r24 ; 0x0b 1978: 9c 87 std Y+12, r25 ; 0x0c 197a: 6d cf rjmp .-294 ; 0x1856 break; 197c: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed case CMD_SWPRESET: heater[ch].preset = rxdata.data[0]; 1980: 93 e1 ldi r25, 0x13 ; 19 1982: c9 9f mul r28, r25 1984: f0 01 movw r30, r0 1986: 11 24 eor r1, r1 1988: e0 5e subi r30, 0xE0 ; 224 198a: fc 4f sbci r31, 0xFC ; 252 LoadPreset(ch); 198c: 82 83 std Z+2, r24 ; 0x02 198e: 8c 2f mov r24, r28 1990: f5 d7 rcall .+4074 ; 0x297c ManualCalibration(ch); else if(heater[ch].status.calib == CAL_AUTO) AutoCalibration(ch); break; } } 1992: df 91 pop r29 1994: cf 91 pop r28 break; case CMD_SWPRESET: heater[ch].preset = rxdata.data[0]; LoadPreset(ch); SavePrefs(); 1996: ce c7 rjmp .+3996 ; 0x2934 1998: 40 91 eb 05 lds r20, 0x05EB ; 0x8005eb break; case CMD_LOADDATA: memcpy((uint8_t*)preset, (uint8_t*)rxdata.data, rxdata.len); 199c: 50 e0 ldi r21, 0x00 ; 0 199e: 6d ee ldi r22, 0xED ; 237 19a0: 75 e0 ldi r23, 0x05 ; 5 19a2: 86 e4 ldi r24, 0x46 ; 70 19a4: 93 e0 ldi r25, 0x03 ; 3 19a6: 0e 94 5d 1d call 0x3aba ; 0x3aba 19aa: 8c 2f mov r24, r28 SavePreset(ch); 19ac: df 91 pop r29 ManualCalibration(ch); else if(heater[ch].status.calib == CAL_AUTO) AutoCalibration(ch); break; } } 19ae: cf 91 pop r28 19b0: 0c 94 01 15 jmp 0x2a02 ; 0x2a02 heater[ch].status.calib = rxdata.data[0]; cal_tmin = rxdata.data[1]; cal_tmax = rxdata.data[2]; if(heater[ch].status.calib == CAL_MANUAL) ManualCalibration(ch); 19b4: 8c 2f mov r24, r28 else if(heater[ch].status.calib == CAL_AUTO) AutoCalibration(ch); break; } } 19b6: df 91 pop r29 19b8: cf 91 pop r28 heater[ch].status.calib = rxdata.data[0]; cal_tmin = rxdata.data[1]; cal_tmax = rxdata.data[2]; if(heater[ch].status.calib == CAL_MANUAL) ManualCalibration(ch); 19ba: 72 c0 rjmp .+228 ; 0x1aa0 000019bc : 19bc: df 92 push r13 heater[ch].status.circuit = circ; return circ; } void UARTDataAvail() { 19be: ef 92 push r14 19c0: ff 92 push r15 19c2: 0f 93 push r16 19c4: 1f 93 push r17 19c6: cf 93 push r28 19c8: df 93 push r29 static uint8_t rxcnt; uint8_t localcnt = count; 19ca: 00 91 f6 02 lds r16, 0x02F6 ; 0x8002f6 for(uint8_t i = 0; i < localcnt; i++) 19ce: 00 23 and r16, r16 19d0: 09 f4 brne .+2 ; 0x19d4 19d2: 5e c0 rjmp .+188 ; 0x1a90 19d4: 01 50 subi r16, 0x01 ; 1 19d6: 10 e0 ldi r17, 0x00 ; 0 19d8: 0f 5f subi r16, 0xFF ; 255 19da: 1f 4f sbci r17, 0xFF ; 255 19dc: c0 e0 ldi r28, 0x00 ; 0 19de: d0 e0 ldi r29, 0x00 ; 0 case 1: if(rxbyte < 100) { rxdata.len = rxbyte; rxdata.checksum += rxbyte; rxcnt++; 19e0: 82 e0 ldi r24, 0x02 ; 2 19e2: e8 2e mov r14, r24 case 0: if(rxbyte == 0x55) { //rxdata.start = rxbyte; rxdata.checksum = rxbyte; rxcnt++; 19e4: dd 24 eor r13, r13 19e6: d3 94 inc r13 break; case 2: rxdata.command = rxbyte; rxdata.checksum += rxbyte; rxcnt++; 19e8: 93 e0 ldi r25, 0x03 ; 3 19ea: f9 2e mov r15, r25 19ec: 17 c0 rjmp .+46 ; 0x1a1c uint8_t localcnt = count; for(uint8_t i = 0; i < localcnt; i++) { uint8_t rxbyte = rxbuf[i]; switch(rxcnt) 19ee: 81 30 cpi r24, 0x01 ; 1 19f0: 08 f4 brcc .+2 ; 0x19f4 19f2: 3f c0 rjmp .+126 ; 0x1a72 19f4: 82 30 cpi r24, 0x02 ; 2 19f6: 31 f5 brne .+76 ; 0x1a44 rxcnt = 0; } break; case 2: rxdata.command = rxbyte; 19f8: 90 93 ec 05 sts 0x05EC, r25 ; 0x8005ec rxdata.checksum += rxbyte; 19fc: 80 91 8d 06 lds r24, 0x068D ; 0x80068d 1a00: 98 0f add r25, r24 1a02: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d rxcnt++; 1a06: f0 92 f2 02 sts 0x02F2, r15 ; 0x8002f2 <__data_end> ProcessCommand(); } rxcnt = 0; } } count--; 1a0a: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 1a0e: 81 50 subi r24, 0x01 ; 1 1a10: 80 93 f6 02 sts 0x02F6, r24 ; 0x8002f6 1a14: 21 96 adiw r28, 0x01 ; 1 void UARTDataAvail() { static uint8_t rxcnt; uint8_t localcnt = count; for(uint8_t i = 0; i < localcnt; i++) 1a16: c0 17 cp r28, r16 1a18: d1 07 cpc r29, r17 1a1a: d1 f1 breq .+116 ; 0x1a90 { uint8_t rxbyte = rxbuf[i]; 1a1c: fe 01 movw r30, r28 1a1e: e8 50 subi r30, 0x08 ; 8 1a20: fd 4f sbci r31, 0xFD ; 253 1a22: 90 81 ld r25, Z switch(rxcnt) 1a24: 80 91 f2 02 lds r24, 0x02F2 ; 0x8002f2 <__data_end> 1a28: 81 30 cpi r24, 0x01 ; 1 1a2a: 09 f7 brne .-62 ; 0x19ee rxcnt++; } break; case 1: if(rxbyte < 100) 1a2c: 94 36 cpi r25, 0x64 ; 100 1a2e: 68 f5 brcc .+90 ; 0x1a8a { rxdata.len = rxbyte; 1a30: 90 93 eb 05 sts 0x05EB, r25 ; 0x8005eb rxdata.checksum += rxbyte; 1a34: 80 91 8d 06 lds r24, 0x068D ; 0x80068d 1a38: 98 0f add r25, r24 1a3a: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d rxcnt++; 1a3e: e0 92 f2 02 sts 0x02F2, r14 ; 0x8002f2 <__data_end> 1a42: e3 cf rjmp .-58 ; 0x1a0a rxdata.checksum += rxbyte; rxcnt++; break; default: if(rxcnt < (rxdata.len + 3)) 1a44: 20 91 eb 05 lds r18, 0x05EB ; 0x8005eb 1a48: 48 2f mov r20, r24 1a4a: 50 e0 ldi r21, 0x00 ; 0 1a4c: 30 e0 ldi r19, 0x00 ; 0 1a4e: 2e 5f subi r18, 0xFE ; 254 1a50: 3f 4f sbci r19, 0xFF ; 255 1a52: 24 17 cp r18, r20 1a54: 35 07 cpc r19, r21 1a56: a4 f0 brlt .+40 ; 0x1a80 { rxdata.data[rxcnt - 3] = rxbyte; 1a58: fa 01 movw r30, r20 1a5a: e9 51 subi r30, 0x19 ; 25 1a5c: fa 4f sbci r31, 0xFA ; 250 1a5e: 93 83 std Z+3, r25 ; 0x03 rxdata.checksum += rxbyte; 1a60: 20 91 8d 06 lds r18, 0x068D ; 0x80068d 1a64: 92 0f add r25, r18 1a66: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d rxcnt++; 1a6a: 8f 5f subi r24, 0xFF ; 255 1a6c: 80 93 f2 02 sts 0x02F2, r24 ; 0x8002f2 <__data_end> 1a70: cc cf rjmp .-104 ; 0x1a0a { uint8_t rxbyte = rxbuf[i]; switch(rxcnt) { case 0: if(rxbyte == 0x55) 1a72: 95 35 cpi r25, 0x55 ; 85 1a74: 51 f6 brne .-108 ; 0x1a0a { //rxdata.start = rxbyte; rxdata.checksum = rxbyte; 1a76: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d rxcnt++; 1a7a: d0 92 f2 02 sts 0x02F2, r13 ; 0x8002f2 <__data_end> 1a7e: c5 cf rjmp .-118 ; 0x1a0a rxdata.checksum += rxbyte; rxcnt++; } else { if(rxbyte == rxdata.checksum) 1a80: 80 91 8d 06 lds r24, 0x068D ; 0x80068d 1a84: 98 13 cpse r25, r24 1a86: 01 c0 rjmp .+2 ; 0x1a8a { ProcessCommand(); 1a88: c0 de rcall .-640 ; 0x180a rxdata.checksum += rxbyte; rxcnt++; } else { rxcnt = 0; 1a8a: 10 92 f2 02 sts 0x02F2, r1 ; 0x8002f2 <__data_end> 1a8e: bd cf rjmp .-134 ; 0x1a0a rxcnt = 0; } } count--; } } 1a90: df 91 pop r29 1a92: cf 91 pop r28 1a94: 1f 91 pop r17 1a96: 0f 91 pop r16 1a98: ff 90 pop r15 1a9a: ef 90 pop r14 1a9c: df 90 pop r13 1a9e: 08 95 ret 00001aa0 : } return 0; } void ManualCalibration(uint8_t ch) { 1aa0: ef 92 push r14 1aa2: ff 92 push r15 1aa4: 0f 93 push r16 1aa6: 1f 93 push r17 1aa8: cf 93 push r28 1aaa: df 93 push r29 1aac: c8 2f mov r28, r24 uint8_t drive = 0; float vlow = 0.0, vhigh = 0.0; LCD_SendCmd(LCD_CLR); 1aae: 81 e0 ldi r24, 0x01 ; 1 1ab0: 48 d5 rcall .+2704 ; 0x2542 LCD_SetPos(0, 0); 1ab2: 60 e0 ldi r22, 0x00 ; 0 1ab4: 80 e0 ldi r24, 0x00 ; 0 1ab6: 6a d5 rcall .+2772 ; 0x258c fprintf(&lcd_stdout, "ÐÓ×Í. ÊÀËÈÁÐÎÂÊÀ"); 1ab8: 24 e1 ldi r18, 0x14 ; 20 1aba: 31 e0 ldi r19, 0x01 ; 1 1abc: 40 e1 ldi r20, 0x10 ; 16 1abe: 50 e0 ldi r21, 0x00 ; 0 1ac0: 61 e0 ldi r22, 0x01 ; 1 1ac2: 70 e0 ldi r23, 0x00 ; 0 1ac4: 84 ed ldi r24, 0xD4 ; 212 1ac6: 91 e0 ldi r25, 0x01 ; 1 1ac8: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 if(heater[ch].status.circuit == CIRC_MOSFET) 1acc: ec 2e mov r14, r28 1ace: f1 2c mov r15, r1 1ad0: 23 e1 ldi r18, 0x13 ; 19 1ad2: c2 9f mul r28, r18 1ad4: 80 01 movw r16, r0 1ad6: 11 24 eor r1, r1 1ad8: f8 01 movw r30, r16 1ada: e0 5e subi r30, 0xE0 ; 224 1adc: fc 4f sbci r31, 0xFC ; 252 1ade: 80 81 ld r24, Z 1ae0: 98 2f mov r25, r24 1ae2: 92 95 swap r25 1ae4: 96 95 lsr r25 1ae6: 96 95 lsr r25 1ae8: 93 70 andi r25, 0x03 ; 3 1aea: 81 81 ldd r24, Z+1 ; 0x01 1aec: 81 70 andi r24, 0x01 ; 1 1aee: 88 0f add r24, r24 1af0: 88 0f add r24, r24 1af2: 89 2b or r24, r25 1af4: d0 e0 ldi r29, 0x00 ; 0 1af6: 82 30 cpi r24, 0x02 ; 2 1af8: 09 f4 brne .+2 ; 0x1afc 1afa: 5e c0 rjmp .+188 ; 0x1bb8 } while(heater[ch].current < 1000); drive--; } while(heater[ch].status.calib == CAL_MANUAL) 1afc: 83 e1 ldi r24, 0x13 ; 19 1afe: 8e 9d mul r24, r14 1b00: 80 01 movw r16, r0 1b02: 8f 9d mul r24, r15 1b04: 10 0d add r17, r0 1b06: 11 24 eor r1, r1 1b08: 00 5e subi r16, 0xE0 ; 224 1b0a: 1c 4f sbci r17, 0xFC ; 252 1b0c: f8 01 movw r30, r16 1b0e: 80 81 ld r24, Z 1b10: 82 95 swap r24 1b12: 83 70 andi r24, 0x03 ; 3 1b14: 82 30 cpi r24, 0x02 ; 2 1b16: a9 f5 brne .+106 ; 0x1b82 { if(count) 1b18: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 1b1c: 81 11 cpse r24, r1 1b1e: 46 c0 rjmp .+140 ; 0x1bac { UARTDataAvail(); } if(txrequest) 1b20: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 1b24: 81 11 cpse r24, r1 1b26: 3f c0 rjmp .+126 ; 0x1ba6 { Transmit(); } if(heater[ch].status.heating) 1b28: f8 01 movw r30, r16 1b2a: 80 81 ld r24, Z 1b2c: 82 ff sbrs r24, 2 1b2e: 33 c0 rjmp .+102 ; 0x1b96 { if(heater[ch].status.circuit == CIRC_MOSFET) 1b30: 80 81 ld r24, Z 1b32: 98 2f mov r25, r24 1b34: 92 95 swap r25 1b36: 96 95 lsr r25 1b38: 96 95 lsr r25 1b3a: 93 70 andi r25, 0x03 ; 3 1b3c: 81 81 ldd r24, Z+1 ; 0x01 1b3e: 81 70 andi r24, 0x01 ; 1 1b40: 88 0f add r24, r24 1b42: 88 0f add r24, r24 1b44: 89 2b or r24, r25 1b46: 82 30 cpi r24, 0x02 ; 2 1b48: 99 f1 breq .+102 ; 0x1bb0 1b4a: 8c 2f mov r24, r28 1b4c: 0e 94 17 01 call 0x22e ; 0x22e 1b50: 87 eb ldi r24, 0xB7 ; 183 1b52: 9b e0 ldi r25, 0x0B ; 11 1b54: 01 97 sbiw r24, 0x01 ; 1 1b56: f1 f7 brne .-4 ; 0x1b54 1b58: 00 c0 rjmp .+0 ; 0x1b5a 1b5a: 00 00 nop SwitchDrive(ch, ON); SwitchHeating(ch, ON); _delay_ms(1); if(CurrMeasure(ch) > 2000) 1b5c: 8c 2f mov r24, r28 1b5e: 0e 94 0c 04 call 0x818 ; 0x818 1b62: 81 3d cpi r24, 0xD1 ; 209 1b64: 97 40 sbci r25, 0x07 ; 7 1b66: 90 f2 brcs .-92 ; 0x1b0c { drive--; 1b68: d1 50 subi r29, 0x01 ; 1 SetDriveData(ch, drive); 1b6a: 6d 2f mov r22, r29 1b6c: 8c 2f mov r24, r28 1b6e: 88 d6 rcall .+3344 ; 0x2880 SwitchDrive(ch, ON); 1b70: 61 e0 ldi r22, 0x01 ; 1 1b72: 8c 2f mov r24, r28 1b74: a4 d6 rcall .+3400 ; 0x28be 1b76: f8 01 movw r30, r16 } while(heater[ch].current < 1000); drive--; } while(heater[ch].status.calib == CAL_MANUAL) 1b78: 80 81 ld r24, Z 1b7a: 82 95 swap r24 1b7c: 83 70 andi r24, 0x03 ; 3 1b7e: 82 30 cpi r24, 0x02 ; 2 1b80: 59 f2 breq .-106 ; 0x1b18 1b82: 80 81 ld r24, Z { SwitchHeating(ch, OFF); SwitchDrive(ch, OFF); } } heater[ch].status.heating = OFF; 1b84: 8b 7f andi r24, 0xFB ; 251 1b86: 80 83 st Z, r24 1b88: df 91 pop r29 } 1b8a: cf 91 pop r28 1b8c: 1f 91 pop r17 1b8e: 0f 91 pop r16 1b90: ff 90 pop r15 1b92: ef 90 pop r14 1b94: 08 95 ret 1b96: 60 e0 ldi r22, 0x00 ; 0 SwitchDrive(ch, ON); } } else { SwitchHeating(ch, OFF); 1b98: 8c 2f mov r24, r28 1b9a: 0e 94 a3 05 call 0xb46 ; 0xb46 SwitchDrive(ch, OFF); 1b9e: 60 e0 ldi r22, 0x00 ; 0 1ba0: 8c 2f mov r24, r28 1ba2: 8d d6 rcall .+3354 ; 0x28be 1ba4: b3 cf rjmp .-154 ; 0x1b0c UARTDataAvail(); } if(txrequest) { Transmit(); 1ba6: 0e 94 00 05 call 0xa00 ; 0xa00 while(heater[ch].status.calib == CAL_MANUAL) { if(count) { UARTDataAvail(); 1baa: be cf rjmp .-132 ; 0x1b28 1bac: 07 df rcall .-498 ; 0x19bc 1bae: b8 cf rjmp .-144 ; 0x1b20 } if(heater[ch].status.heating) { if(heater[ch].status.circuit == CIRC_MOSFET) SwitchDrive(ch, ON); 1bb0: 61 e0 ldi r22, 0x01 ; 1 1bb2: 8c 2f mov r24, r28 1bb4: 84 d6 rcall .+3336 ; 0x28be 1bb6: c9 cf rjmp .-110 ; 0x1b4a 1bb8: 8f 01 movw r16, r30 _delay_ms(1); CurrMeasure(ch); SwitchHeating(ch, OFF); SwitchDrive(ch, OFF); drive++; } while(heater[ch].current < 1000); 1bba: 02 5f subi r16, 0xF2 ; 242 1bbc: 1f 4f sbci r17, 0xFF ; 255 1bbe: 01 c0 rjmp .+2 ; 0x1bc2 SwitchHeating(ch, ON); _delay_ms(1); CurrMeasure(ch); SwitchHeating(ch, OFF); SwitchDrive(ch, OFF); drive++; 1bc0: d2 2f mov r29, r18 fprintf(&lcd_stdout, "ÐÓ×Í. ÊÀËÈÁÐÎÂÊÀ"); if(heater[ch].status.circuit == CIRC_MOSFET) { do { SetDriveData(ch, drive); 1bc2: 6d 2f mov r22, r29 1bc4: 8c 2f mov r24, r28 1bc6: 5c d6 rcall .+3256 ; 0x2880 1bc8: 61 e0 ldi r22, 0x01 ; 1 SwitchDrive(ch, ON); 1bca: 8c 2f mov r24, r28 1bcc: 78 d6 rcall .+3312 ; 0x28be 1bce: 8c 2f mov r24, r28 1bd0: 0e 94 17 01 call 0x22e ; 0x22e 1bd4: 87 eb ldi r24, 0xB7 ; 183 1bd6: 9b e0 ldi r25, 0x0B ; 11 1bd8: 01 97 sbiw r24, 0x01 ; 1 1bda: f1 f7 brne .-4 ; 0x1bd8 1bdc: 00 c0 rjmp .+0 ; 0x1bde 1bde: 00 00 nop 1be0: 8c 2f mov r24, r28 1be2: 0e 94 0c 04 call 0x818 ; 0x818 SwitchHeating(ch, ON); _delay_ms(1); CurrMeasure(ch); 1be6: 60 e0 ldi r22, 0x00 ; 0 SwitchHeating(ch, OFF); 1be8: 8c 2f mov r24, r28 1bea: 0e 94 a3 05 call 0xb46 ; 0xb46 1bee: 60 e0 ldi r22, 0x00 ; 0 SwitchDrive(ch, OFF); 1bf0: 8c 2f mov r24, r28 1bf2: 65 d6 rcall .+3274 ; 0x28be 1bf4: 21 e0 ldi r18, 0x01 ; 1 1bf6: 2d 0f add r18, r29 drive++; 1bf8: f8 01 movw r30, r16 1bfa: 80 81 ld r24, Z } while(heater[ch].current < 1000); 1bfc: 91 81 ldd r25, Z+1 ; 0x01 1bfe: 88 3e cpi r24, 0xE8 ; 232 1c00: 93 40 sbci r25, 0x03 ; 3 1c02: f0 f2 brcs .-68 ; 0x1bc0 1c04: 7b cf rjmp .-266 ; 0x1afc 00001c06 : 1c06: ff 92 push r15 1c08: 0f 93 push r16 break; } } void LoadingScreen() { 1c0a: 1f 93 push r17 1c0c: cf 93 push r28 1c0e: df 93 push r29 1c10: 8f e5 ldi r24, 0x5F ; 95 1c12: 9a ee ldi r25, 0xEA ; 234 1c14: 01 97 sbiw r24, 0x01 ; 1 1c16: f1 f7 brne .-4 ; 0x1c14 1c18: 00 c0 rjmp .+0 ; 0x1c1a 1c1a: 00 00 nop uint8_t c = 0xFF, i = 0, d = 0, btn = 0; do { _delay_ms(20); LCD_SetPos(i, 0); 1c1c: 60 e0 ldi r22, 0x00 ; 0 1c1e: 80 e0 ldi r24, 0x00 ; 0 1c20: b5 d4 rcall .+2410 ; 0x258c LCD_SendData(c); 1c22: 8f ef ldi r24, 0xFF ; 255 1c24: 73 d4 rcall .+2278 ; 0x250c LCD_SetPos(15 - i, 1); 1c26: 61 e0 ldi r22, 0x01 ; 1 1c28: 8f e0 ldi r24, 0x0F ; 15 LCD_SendData(c); 1c2a: b0 d4 rcall .+2400 ; 0x258c 1c2c: 8f ef ldi r24, 0xFF ; 255 1c2e: 6e d4 rcall .+2268 ; 0x250c } } void LoadingScreen() { uint8_t c = 0xFF, i = 0, d = 0, btn = 0; 1c30: 10 e0 ldi r17, 0x00 ; 0 _delay_ms(20); LCD_SetPos(i, 0); LCD_SendData(c); LCD_SetPos(15 - i, 1); LCD_SendData(c); if(++i > 15) 1c32: c1 e0 ldi r28, 0x01 ; 1 } } void LoadingScreen() { uint8_t c = 0xFF, i = 0, d = 0, btn = 0; 1c34: df ef ldi r29, 0xFF ; 255 do { _delay_ms(20); LCD_SetPos(i, 0); LCD_SendData(c); LCD_SetPos(15 - i, 1); 1c36: 0f e0 ldi r16, 0x0F ; 15 LCD_SendData(c); if(++i > 15) { c ^= ~' '; 1c38: 8f ed ldi r24, 0xDF ; 223 1c3a: f8 2e mov r15, r24 i = 0; d++; } btn = ~((BTNPIN >> 4) | 0xF0); 1c3c: 89 b1 in r24, 0x09 ; 9 } while(btn || (d < 2)); 1c3e: 82 95 swap r24 1c40: 8f 70 andi r24, 0x0F ; 15 1c42: 80 6f ori r24, 0xF0 ; 240 1c44: 8f 3f cpi r24, 0xFF ; 255 1c46: e9 f0 breq .+58 ; 0x1c82 1c48: 8f e5 ldi r24, 0x5F ; 95 1c4a: 9a ee ldi r25, 0xEA ; 234 1c4c: 01 97 sbiw r24, 0x01 ; 1 1c4e: f1 f7 brne .-4 ; 0x1c4c 1c50: 00 c0 rjmp .+0 ; 0x1c52 { uint8_t c = 0xFF, i = 0, d = 0, btn = 0; do { _delay_ms(20); LCD_SetPos(i, 0); 1c52: 00 00 nop 1c54: 60 e0 ldi r22, 0x00 ; 0 1c56: 8c 2f mov r24, r28 LCD_SendData(c); 1c58: 99 d4 rcall .+2354 ; 0x258c 1c5a: 8d 2f mov r24, r29 LCD_SetPos(15 - i, 1); 1c5c: 57 d4 rcall .+2222 ; 0x250c 1c5e: 61 e0 ldi r22, 0x01 ; 1 1c60: 80 2f mov r24, r16 1c62: 8c 1b sub r24, r28 1c64: 93 d4 rcall .+2342 ; 0x258c LCD_SendData(c); 1c66: 8d 2f mov r24, r29 1c68: 51 d4 rcall .+2210 ; 0x250c 1c6a: cf 5f subi r28, 0xFF ; 255 if(++i > 15) 1c6c: c0 31 cpi r28, 0x10 ; 16 1c6e: 31 f7 brne .-52 ; 0x1c3c 1c70: df 25 eor r29, r15 { c ^= ~' '; 1c72: 1f 5f subi r17, 0xFF ; 255 i = 0; d++; 1c74: c0 e0 ldi r28, 0x00 ; 0 LCD_SetPos(15 - i, 1); LCD_SendData(c); if(++i > 15) { c ^= ~' '; i = 0; 1c76: 89 b1 in r24, 0x09 ; 9 d++; } btn = ~((BTNPIN >> 4) | 0xF0); 1c78: 82 95 swap r24 } while(btn || (d < 2)); 1c7a: 8f 70 andi r24, 0x0F ; 15 1c7c: 80 6f ori r24, 0xF0 ; 240 1c7e: 8f 3f cpi r24, 0xFF ; 255 1c80: 19 f7 brne .-58 ; 0x1c48 1c82: 12 30 cpi r17, 0x02 ; 2 1c84: 08 f3 brcs .-62 ; 0x1c48 LCD_SendCmd(LCD_CLR); 1c86: 81 e0 ldi r24, 0x01 ; 1 } 1c88: df 91 pop r29 1c8a: cf 91 pop r28 1c8c: 1f 91 pop r17 1c8e: 0f 91 pop r16 1c90: ff 90 pop r15 d++; } btn = ~((BTNPIN >> 4) | 0xF0); } while(btn || (d < 2)); LCD_SendCmd(LCD_CLR); 1c92: 57 c4 rjmp .+2222 ; 0x2542 00001c94
: 1c94: cf 93 push r28 } int main() { 1c96: df 93 push r29 1c98: 00 d0 rcall .+0 ; 0x1c9a 1c9a: 00 d0 rcall .+0 ; 0x1c9c 1c9c: cd b7 in r28, 0x3d ; 61 1c9e: de b7 in r29, 0x3e ; 62 uint8_t ch = CH0; uint8_t tmp = 0; uint8_t display = DISP_MAIN; btn_t button; menu_str *menu = (menu_str*)calloc(sizeof(menu_str), 1); 1ca0: 61 e0 ldi r22, 0x01 ; 1 1ca2: 70 e0 ldi r23, 0x00 ; 0 1ca4: 83 e0 ldi r24, 0x03 ; 3 1ca6: 90 e0 ldi r25, 0x00 ; 0 1ca8: 0e 94 3f 1b call 0x367e ; 0x367e 1cac: 4c 01 movw r8, r24 memset(heater, 0x00, sizeof(heater)); 1cae: 86 e2 ldi r24, 0x26 ; 38 1cb0: e0 e2 ldi r30, 0x20 ; 32 1cb2: f3 e0 ldi r31, 0x03 ; 3 1cb4: df 01 movw r26, r30 1cb6: 1d 92 st X+, r1 1cb8: 8a 95 dec r24 1cba: e9 f7 brne .-6 ; 0x1cb6 memset(opamp, 0x00, sizeof(opamp)); 1cbc: 8a e1 ldi r24, 0x1A ; 26 1cbe: ee e8 ldi r30, 0x8E ; 142 1cc0: f6 e0 ldi r31, 0x06 ; 6 1cc2: df 01 movw r26, r30 1cc4: 1d 92 st X+, r1 1cc6: 8a 95 dec r24 1cc8: e9 f7 brne .-6 ; 0x1cc4 memset(preset, 0x00, sizeof(preset)); 1cca: 80 ea ldi r24, 0xA0 ; 160 1ccc: e6 e4 ldi r30, 0x46 ; 70 1cce: f3 e0 ldi r31, 0x03 ; 3 1cd0: df 01 movw r26, r30 1cd2: 1d 92 st X+, r1 1cd4: 8a 95 dec r24 1cd6: e9 f7 brne .-6 ; 0x1cd2 opamp[CH0].ch = heater[CH0].status.channel = CH0; 1cd8: 80 91 20 03 lds r24, 0x0320 ; 0x800320 1cdc: 8e 7f andi r24, 0xFE ; 254 1cde: 80 93 20 03 sts 0x0320, r24 ; 0x800320 opamp[CH1].ch = heater[CH1].status.channel = CH1; 1ce2: 80 91 33 03 lds r24, 0x0333 ; 0x800333 1ce6: 81 60 ori r24, 0x01 ; 1 1ce8: 80 93 33 03 sts 0x0333, r24 ; 0x800333 1cec: 81 e0 ldi r24, 0x01 ; 1 1cee: 80 93 9b 06 sts 0x069B, r24 ; 0x80069b heater[CH0].tset = heater[CH1].tset = 25; 1cf2: 89 e1 ldi r24, 0x19 ; 25 1cf4: 90 e0 ldi r25, 0x00 ; 0 1cf6: 90 93 3e 03 sts 0x033E, r25 ; 0x80033e 1cfa: 80 93 3d 03 sts 0x033D, r24 ; 0x80033d 1cfe: 90 93 2b 03 sts 0x032B, r25 ; 0x80032b 1d02: 80 93 2a 03 sts 0x032A, r24 ; 0x80032a stdout = &uart_stdout; 1d06: 86 e0 ldi r24, 0x06 ; 6 1d08: 91 e0 ldi r25, 0x01 ; 1 1d0a: 90 93 af 06 sts 0x06AF, r25 ; 0x8006af <__iob+0x3> 1d0e: 80 93 ae 06 sts 0x06AE, r24 ; 0x8006ae <__iob+0x2> init(); 1d12: 0e 94 23 02 call 0x446 ; 0x446 LCD_Init(); 1d16: 6f d4 rcall .+2270 ; 0x25f6 LoadingScreen(); 1d18: 76 df rcall .-276 ; 0x1c06 LoadPrefs(); 1d1a: e2 d5 rcall .+3012 ; 0x28e0 LoadPreset(CH0); 1d1c: 80 e0 ldi r24, 0x00 ; 0 1d1e: 2e d6 rcall .+3164 ; 0x297c LoadPreset(CH1); 1d20: 81 e0 ldi r24, 0x01 ; 1 1d22: 2c d6 rcall .+3160 ; 0x297c 1d24: 80 e0 ldi r24, 0x00 ; 0 //SwitchPower(ON); CircuitDetect(CH0); 1d26: 0e 94 23 06 call 0xc46 ; 0xc46 1d2a: 81 e0 ldi r24, 0x01 ; 1 CircuitDetect(CH1); 1d2c: 0e 94 23 06 call 0xc46 ; 0xc46 1d30: 78 94 sei sei(); 1d32: 0e 94 00 05 call 0xa00 ; 0xa00 Transmit(); 1d36: 11 e0 ldi r17, 0x01 ; 1 int main() { uint8_t ch = CH0; uint8_t tmp = 0; uint8_t display = DISP_MAIN; 1d38: 1b 82 std Y+3, r1 ; 0x03 LCD_SendCmd(LCD_CLR); } int main() { uint8_t ch = CH0; 1d3a: 77 e0 ldi r23, 0x07 ; 7 /* ------------- DISPLAY SECTION ----------------- */ tick2 = 0; if(display == DISP_MAIN) { LCD_SetPos(0, 0); fprintf(&lcd_stdout, "K%.1u #%.2u Tï=", ch + 1, heater[ch].preset); 1d3c: 27 2e mov r2, r23 1d3e: 72 e0 ldi r23, 0x02 ; 2 1d40: 37 2e mov r3, r23 1d42: b9 81 ldd r27, Y+1 ; 0x01 1d44: bc 83 std Y+4, r27 ; 0x04 1d46: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 Transmit(); while(1) { if(count) 1d4a: 81 11 cpse r24, r1 1d4c: 9e c0 rjmp .+316 ; 0x1e8a 1d4e: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 { UARTDataAvail(); } if(txrequest) 1d52: 81 11 cpse r24, r1 1d54: 66 c0 rjmp .+204 ; 0x1e22 1d56: 80 91 20 03 lds r24, 0x0320 ; 0x800320 { Transmit(); } if(heater[CH0].status.ocp || heater[CH1].status.ocp) 1d5a: 83 fd sbrc r24, 3 1d5c: 68 c0 rjmp .+208 ; 0x1e2e 1d5e: 80 91 33 03 lds r24, 0x0333 ; 0x800333 1d62: 83 fd sbrc r24, 3 1d64: 64 c0 rjmp .+200 ; 0x1e2e 1d66: 80 91 f5 02 lds r24, 0x02F5 ; 0x8002f5 fprintf(&lcd_stdout, " ÄËß ÑÁÐÎÑÀ"); while(((BTNPIN >> 4) | 0xF0) != 0xF7); ResetMCU(); } if(tick1) 1d6a: 81 11 cpse r24, r1 1d6c: 90 c0 rjmp .+288 ; 0x1e8e 1d6e: 80 91 f4 02 lds r24, 0x02F4 ; 0x8002f4 } } ch = tmp; } ////// if(tick1) end if(tick2) 1d72: 88 23 and r24, r24 1d74: 41 f0 breq .+16 ; 0x1d86 1d76: 10 92 f4 02 sts 0x02F4, r1 ; 0x8002f4 { /* ------------- DISPLAY SECTION ----------------- */ tick2 = 0; 1d7a: 11 30 cpi r17, 0x01 ; 1 if(display == DISP_MAIN) 1d7c: 09 f4 brne .+2 ; 0x1d80 1d7e: 2d c1 rjmp .+602 ; 0x1fda 1d80: 13 30 cpi r17, 0x03 ; 3 button.holded = 1; btn_act = 1; } } } else if(display == DISP_VER) 1d82: 09 f4 brne .+2 ; 0x1d86 1d84: 2a c2 rjmp .+1108 ; 0x21da 1d86: 80 91 f7 02 lds r24, 0x02F7 ; 0x8002f7 //txrequest = REQ_MAINDATA; //Transmit(); } ////// if(tick2) end /* ---------------- BUTTON SECTION --------------- */ if(btn_act) 1d8a: 88 23 and r24, r24 1d8c: e1 f2 breq .-72 ; 0x1d46 1d8e: 8f e5 ldi r24, 0x5F ; 95 1d90: 9a ee ldi r25, 0xEA ; 234 1d92: 01 97 sbiw r24, 0x01 ; 1 1d94: f1 f7 brne .-4 ; 0x1d92 1d96: 00 c0 rjmp .+0 ; 0x1d98 1d98: 00 00 nop 1d9a: 10 92 f7 02 sts 0x02F7, r1 ; 0x8002f7 { _delay_ms(20); btn_act = 0; 1d9e: 89 b1 in r24, 0x09 ; 9 button.code = ~((BTNPIN >> 4) | 0xF0); 1da0: 82 95 swap r24 1da2: 8f 70 andi r24, 0x0F ; 15 1da4: 80 95 com r24 1da6: 8f 70 andi r24, 0x0F ; 15 1da8: 94 2d mov r25, r4 if((button.code != 0x00) && (!button.holded)) // Button down event 1daa: 92 95 swap r25 1dac: 90 7f andi r25, 0xF0 ; 240 1dae: 98 2b or r25, r24 1db0: 88 23 and r24, r24 1db2: 09 f4 brne .+2 ; 0x1db6 1db4: d7 c0 rjmp .+430 ; 0x1f64 1db6: 9c 81 ldd r25, Y+4 ; 0x04 1db8: 60 fa bst r6, 0 1dba: 90 f9 bld r25, 0 1dbc: 50 fa bst r5, 0 1dbe: 91 f9 bld r25, 1 1dc0: 70 fa bst r7, 0 1dc2: 92 f9 bld r25, 2 1dc4: 97 70 andi r25, 0x07 ; 7 1dc6: 99 83 std Y+1, r25 ; 0x01 1dc8: 90 2f mov r25, r16 1dca: 99 0f add r25, r25 1dcc: 99 0f add r25, r25 1dce: 99 0f add r25, r25 1dd0: a9 81 ldd r26, Y+1 ; 0x01 1dd2: a9 2b or r26, r25 1dd4: ac 83 std Y+4, r26 ; 0x04 1dd6: a2 fd sbrc r26, 2 1dd8: df c0 rjmp .+446 ; 0x1f98 1dda: 11 30 cpi r17, 0x01 ; 1 { if(display == DISP_MAIN) 1ddc: 09 f0 breq .+2 ; 0x1de0 1dde: b3 cf rjmp .-154 ; 0x1d46 1de0: 82 30 cpi r24, 0x02 ; 2 { button.pressed = 1; button.released = 0; button.prev_code = button.code; switch(button.code) 1de2: 09 f4 brne .+2 ; 0x1de6 1de4: d9 c2 rjmp .+1458 ; 0x2398 1de6: 08 f4 brcc .+2 ; 0x1dea 1de8: c6 c2 rjmp .+1420 ; 0x2376 1dea: 83 30 cpi r24, 0x03 ; 3 1dec: 09 f4 brne .+2 ; 0x1df0 1dee: ec c2 rjmp .+1496 ; 0x23c8 1df0: 84 30 cpi r24, 0x04 ; 4 1df2: 09 f0 breq .+2 ; 0x1df6 1df4: e4 c2 rjmp .+1480 ; 0x23be 1df6: d4 01 movw r26, r8 LCD_SendCmd(LCD_CLR); display = DISP_VER; break; case 0x04: menu->set = (menu->set + 1) % 3; 1df8: 8c 91 ld r24, X 1dfa: 90 e0 ldi r25, 0x00 ; 0 1dfc: 01 96 adiw r24, 0x01 ; 1 1dfe: 63 e0 ldi r22, 0x03 ; 3 1e00: 70 e0 ldi r23, 0x00 ; 0 1e02: 0e 94 cc 1a call 0x3598 ; 0x3598 <__divmodhi4> 1e06: f4 01 movw r30, r8 1e08: 80 83 st Z, r24 1e0a: 88 23 and r24, r24 if(menu->set == 0) 1e0c: 09 f4 brne .+2 ; 0x1e10 1e0e: ee c2 rjmp .+1500 ; 0x23ec 1e10: d4 01 movw r26, r8 SavePrefs(); menu->blink_cnt = 0; 1e12: 11 96 adiw r26, 0x01 ; 1 1e14: 1c 92 st X, r1 1e16: 84 e0 ldi r24, 0x04 ; 4 break; 1e18: 48 2e mov r4, r24 1e1a: 51 2c mov r5, r1 if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; 1e1c: 66 24 eor r6, r6 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 1e1e: 63 94 inc r6 1e20: 92 cf rjmp .-220 ; 0x1d46 case 0x04: menu->set = (menu->set + 1) % 3; if(menu->set == 0) SavePrefs(); menu->blink_cnt = 0; break; 1e22: 0e 94 00 05 call 0xa00 ; 0xa00 UARTDataAvail(); } if(txrequest) { Transmit(); 1e26: 80 91 20 03 lds r24, 0x0320 ; 0x800320 } if(heater[CH0].status.ocp || heater[CH1].status.ocp) 1e2a: 83 ff sbrs r24, 3 1e2c: 98 cf rjmp .-208 ; 0x1d5e { LCD_SetPos(0, 0); 1e2e: 60 e0 ldi r22, 0x00 ; 0 1e30: 80 e0 ldi r24, 0x00 ; 0 1e32: ac d3 rcall .+1880 ; 0x258c 1e34: 24 e1 ldi r18, 0x14 ; 20 fprintf(&lcd_stdout, "ÇÀÙÈÒÀ ÏÎ ÒÎÊÓ!!"); 1e36: 31 e0 ldi r19, 0x01 ; 1 1e38: 40 e1 ldi r20, 0x10 ; 16 1e3a: 50 e0 ldi r21, 0x00 ; 0 1e3c: 61 e0 ldi r22, 0x01 ; 1 1e3e: 70 e0 ldi r23, 0x00 ; 0 1e40: 85 ee ldi r24, 0xE5 ; 229 1e42: 91 e0 ldi r25, 0x01 ; 1 1e44: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 LCD_SetPos(0, 1); 1e48: 61 e0 ldi r22, 0x01 ; 1 1e4a: 80 e0 ldi r24, 0x00 ; 0 1e4c: 9f d3 rcall .+1854 ; 0x258c 1e4e: 24 e1 ldi r18, 0x14 ; 20 fprintf(&lcd_stdout, "ÍÀÆ."); 1e50: 31 e0 ldi r19, 0x01 ; 1 1e52: 44 e0 ldi r20, 0x04 ; 4 1e54: 50 e0 ldi r21, 0x00 ; 0 1e56: 61 e0 ldi r22, 0x01 ; 1 1e58: 70 e0 ldi r23, 0x00 ; 0 1e5a: 86 ef ldi r24, 0xF6 ; 246 1e5c: 91 e0 ldi r25, 0x01 ; 1 1e5e: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 LCD_SendData(0x00); 1e62: 80 e0 ldi r24, 0x00 ; 0 1e64: 53 d3 rcall .+1702 ; 0x250c 1e66: 24 e1 ldi r18, 0x14 ; 20 fprintf(&lcd_stdout, " ÄËß ÑÁÐÎÑÀ"); 1e68: 31 e0 ldi r19, 0x01 ; 1 1e6a: 4b e0 ldi r20, 0x0B ; 11 1e6c: 50 e0 ldi r21, 0x00 ; 0 1e6e: 61 e0 ldi r22, 0x01 ; 1 1e70: 70 e0 ldi r23, 0x00 ; 0 1e72: 8b ef ldi r24, 0xFB ; 251 1e74: 91 e0 ldi r25, 0x01 ; 1 1e76: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 1e7a: 89 b1 in r24, 0x09 ; 9 while(((BTNPIN >> 4) | 0xF0) != 0xF7); 1e7c: 82 95 swap r24 1e7e: 8f 70 andi r24, 0x0F ; 15 1e80: 80 6f ori r24, 0xF0 ; 240 1e82: 87 3f cpi r24, 0xF7 ; 247 1e84: d1 f7 brne .-12 ; 0x1e7a ResetMCU(); 1e86: 0e 94 9c 05 call 0xb38 ; 0xb38 while(1) { if(count) { UARTDataAvail(); 1e8a: 98 dd rcall .-1232 ; 0x19bc 1e8c: 60 cf rjmp .-320 ; 0x1d4e 1e8e: 10 92 f5 02 sts 0x02F5, r1 ; 0x8002f5 } if(tick1) { /* ------------- MEASURING SECTION ----------------- */ tick1 = 0; 1e92: 0e 94 7b 02 call 0x4f6 ; 0x4f6 MAX_ReadData(); 1e96: e1 2c mov r14, r1 1e98: f1 2c mov r15, r1 1e9a: de 2c mov r13, r14 1e9c: 8e 2d mov r24, r14 tmp = ch; for(uint8_t ch = CH0; ch <= CH1; ch++) { if(CurrMeasure(ch) > CURR_MAX) 1e9e: 0e 94 0c 04 call 0x818 ; 0x818 1ea2: 85 3c cpi r24, 0xC5 ; 197 1ea4: 99 40 sbci r25, 0x09 ; 9 1ea6: 58 f0 brcs .+22 ; 0x1ebe 1ea8: 23 e1 ldi r18, 0x13 ; 19 { heater[ch].status.onoff = OFF; 1eaa: 2e 9d mul r18, r14 1eac: f0 01 movw r30, r0 1eae: 2f 9d mul r18, r15 1eb0: f0 0d add r31, r0 1eb2: 11 24 eor r1, r1 1eb4: e0 5e subi r30, 0xE0 ; 224 1eb6: fc 4f sbci r31, 0xFC ; 252 1eb8: 80 81 ld r24, Z 1eba: 8d 7f andi r24, 0xFD ; 253 1ebc: 80 83 st Z, r24 } SwitchHeating(ch, OFF); 1ebe: 60 e0 ldi r22, 0x00 ; 0 1ec0: 8d 2d mov r24, r13 1ec2: 0e 94 a3 05 call 0xb46 ; 0xb46 SwitchDrive(ch, OFF); 1ec6: 60 e0 ldi r22, 0x00 ; 0 1ec8: 8d 2d mov r24, r13 1eca: f9 d4 rcall .+2546 ; 0x28be 1ecc: 87 eb ldi r24, 0xB7 ; 183 1ece: 9b e0 ldi r25, 0x0B ; 11 1ed0: 01 97 sbiw r24, 0x01 ; 1 1ed2: f1 f7 brne .-4 ; 0x1ed0 1ed4: 00 c0 rjmp .+0 ; 0x1ed6 1ed6: 00 00 nop 1ed8: 8d 2d mov r24, r13 _delay_ms(1); CircuitDetect(ch); 1eda: 0e 94 23 06 call 0xc46 ; 0xc46 1ede: 8d 2d mov r24, r13 TMeasure(ch); 1ee0: 0e 94 ca 03 call 0x794 ; 0x794 1ee4: 93 e1 ldi r25, 0x13 ; 19 if(heater[ch].status.circuit == CIRC_OPEN) 1ee6: 9e 9d mul r25, r14 1ee8: f0 01 movw r30, r0 1eea: 9f 9d mul r25, r15 1eec: f0 0d add r31, r0 1eee: 11 24 eor r1, r1 1ef0: e0 5e subi r30, 0xE0 ; 224 1ef2: fc 4f sbci r31, 0xFC ; 252 1ef4: 80 81 ld r24, Z 1ef6: 98 2f mov r25, r24 1ef8: 92 95 swap r25 1efa: 96 95 lsr r25 1efc: 96 95 lsr r25 1efe: 93 70 andi r25, 0x03 ; 3 1f00: 81 81 ldd r24, Z+1 ; 0x01 1f02: 81 70 andi r24, 0x01 ; 1 1f04: 88 0f add r24, r24 1f06: 88 0f add r24, r24 1f08: 89 2b or r24, r25 1f0a: 61 f4 brne .+24 ; 0x1f24 1f0c: 80 81 ld r24, Z { heater[ch].status.onoff = OFF; 1f0e: 8d 7f andi r24, 0xFD ; 253 1f10: 80 83 st Z, r24 1f12: af ef ldi r26, 0xFF ; 255 1f14: ea 1a sub r14, r26 1f16: fa 0a sbc r15, r26 1f18: b2 e0 ldi r27, 0x02 ; 2 /* ------------- MEASURING SECTION ----------------- */ tick1 = 0; MAX_ReadData(); tmp = ch; for(uint8_t ch = CH0; ch <= CH1; ch++) 1f1a: eb 16 cp r14, r27 1f1c: f1 04 cpc r15, r1 1f1e: 09 f0 breq .+2 ; 0x1f22 1f20: bc cf rjmp .-136 ; 0x1e9a 1f22: 25 cf rjmp .-438 ; 0x1d6e 1f24: 80 81 ld r24, Z if(heater[ch].status.circuit == CIRC_OPEN) { heater[ch].status.onoff = OFF; } else if(heater[ch].status.circuit == CIRC_RES) 1f26: 98 2f mov r25, r24 1f28: 92 95 swap r25 1f2a: 96 95 lsr r25 1f2c: 96 95 lsr r25 1f2e: 93 70 andi r25, 0x03 ; 3 1f30: 81 81 ldd r24, Z+1 ; 0x01 1f32: 81 70 andi r24, 0x01 ; 1 1f34: 88 0f add r24, r24 1f36: 88 0f add r24, r24 1f38: 89 2b or r24, r25 1f3a: 84 30 cpi r24, 0x04 ; 4 1f3c: d1 f1 breq .+116 ; 0x1fb2 1f3e: 80 81 ld r24, Z SwitchHeating(ch, OFF); } } else { if((heater[ch].status.onoff == ON) && (heater[ch].tmeas < heater[ch].tset)) 1f40: 81 ff sbrs r24, 1 1f42: 08 c0 rjmp .+16 ; 0x1f54 1f44: 86 81 ldd r24, Z+6 ; 0x06 1f46: 97 81 ldd r25, Z+7 ; 0x07 1f48: 22 85 ldd r18, Z+10 ; 0x0a 1f4a: 33 85 ldd r19, Z+11 ; 0x0b 1f4c: 82 17 cp r24, r18 1f4e: 93 07 cpc r25, r19 1f50: 08 f4 brcc .+2 ; 0x1f54 1f52: 74 c1 rjmp .+744 ; 0x223c SwitchDrive(ch, ON); SwitchHeating(ch, ON); } else { SwitchDrive(ch, OFF); 1f54: 60 e0 ldi r22, 0x00 ; 0 1f56: 8d 2d mov r24, r13 1f58: b2 d4 rcall .+2404 ; 0x28be 1f5a: 60 e0 ldi r22, 0x00 ; 0 SwitchHeating(ch, OFF); 1f5c: 8d 2d mov r24, r13 1f5e: 0e 94 a3 05 call 0xb46 ; 0xb46 1f62: d7 cf rjmp .-82 ; 0x1f12 1f64: bc 81 ldd r27, Y+4 ; 0x04 } ////// switch(btn_code) end } ////// if(display == ON) end } else if(button.code == 0) // Button up event { if(!button.holded) 1f66: 60 fa bst r6, 0 1f68: b0 f9 bld r27, 0 1f6a: 50 fa bst r5, 0 1f6c: b1 f9 bld r27, 1 1f6e: 70 fa bst r7, 0 1f70: b2 f9 bld r27, 2 1f72: 00 0f add r16, r16 1f74: 00 0f add r16, r16 1f76: 00 0f add r16, r16 1f78: b7 70 andi r27, 0x07 ; 7 1f7a: b0 2b or r27, r16 1f7c: bc 83 std Y+4, r27 ; 0x04 1f7e: b2 fd sbrc r27, 2 1f80: 26 c0 rjmp .+76 ; 0x1fce 1f82: 90 7f andi r25, 0xF0 ; 240 { display = DISP_MAIN; if(button.prev_code == 0x08) 1f84: 90 38 cpi r25, 0x80 ; 128 1f86: 09 f4 brne .+2 ; 0x1f8a 1f88: 74 c1 rjmp .+744 ; 0x2272 1f8a: 00 e0 ldi r16, 0x00 ; 0 } button.pressed = 0; button.released = 1; button.holded = 0; button.holdcnt = 0; 1f8c: 71 2c mov r7, r1 } } button.pressed = 0; button.released = 1; button.holded = 0; 1f8e: 55 24 eor r5, r5 SwitchHeating(ch, OFF); } } button.pressed = 0; button.released = 1; 1f90: 53 94 inc r5 1f92: 61 2c mov r6, r1 SwitchDrive(ch, OFF); SwitchHeating(ch, OFF); } } button.pressed = 0; 1f94: 11 e0 ldi r17, 0x01 ; 1 } else if(button.code == 0) // Button up event { if(!button.holded) { display = DISP_MAIN; 1f96: d7 ce rjmp .-594 ; 0x1d46 button.holded = 0; button.holdcnt = 0; } else // Button hold event { switch(button.code) 1f98: 84 30 cpi r24, 0x04 ; 4 1f9a: 09 f4 brne .+2 ; 0x1f9e 1f9c: 5b c1 rjmp .+694 ; 0x2254 1f9e: 08 f4 brcc .+2 ; 0x1fa2 1fa0: 37 c1 rjmp .+622 ; 0x2210 1fa2: 88 30 cpi r24, 0x08 ; 8 1fa4: 09 f0 breq .+2 ; 0x1fa8 1fa6: cf ce rjmp .-610 ; 0x1d46 break; case 0x08: button.prev_code = 0; display = OFF; LCD_SendCmd(LCD_CLR); 1fa8: 81 e0 ldi r24, 0x01 ; 1 1faa: cb d2 rcall .+1430 ; 0x2542 1fac: 41 2c mov r4, r1 button.holded = 0; button.holdcnt = 0; break; case 0x08: button.prev_code = 0; 1fae: 10 e0 ldi r17, 0x00 ; 0 display = OFF; 1fb0: ca ce rjmp .-620 ; 0x1d46 LCD_SendCmd(LCD_CLR); //btn_hold = 0; break; 1fb2: 80 81 ld r24, Z { heater[ch].status.onoff = OFF; } else if(heater[ch].status.circuit == CIRC_RES) { if((heater[ch].status.onoff == ON) && (heater[ch].tcouple < heater[ch].tset)) 1fb4: 81 ff sbrs r24, 1 1fb6: d1 cf rjmp .-94 ; 0x1f5a 1fb8: 84 81 ldd r24, Z+4 ; 0x04 1fba: 95 81 ldd r25, Z+5 ; 0x05 1fbc: 22 85 ldd r18, Z+10 ; 0x0a 1fbe: 33 85 ldd r19, Z+11 ; 0x0b 1fc0: 82 17 cp r24, r18 1fc2: 93 07 cpc r25, r19 1fc4: 50 f6 brcc .-108 ; 0x1f5a 1fc6: 8d 2d mov r24, r13 1fc8: 0e 94 17 01 call 0x22e ; 0x22e 1fcc: a2 cf rjmp .-188 ; 0x1f12 } button.pressed = 0; button.released = 1; button.holded = 0; button.holdcnt = 0; 1fce: 00 e0 ldi r16, 0x00 ; 0 } } button.pressed = 0; button.released = 1; button.holded = 0; 1fd0: 71 2c mov r7, r1 SwitchHeating(ch, OFF); } } button.pressed = 0; button.released = 1; 1fd2: 55 24 eor r5, r5 1fd4: 53 94 inc r5 SwitchDrive(ch, OFF); SwitchHeating(ch, OFF); } } button.pressed = 0; 1fd6: 61 2c mov r6, r1 1fd8: b6 ce rjmp .-660 ; 0x1d46 { /* ------------- DISPLAY SECTION ----------------- */ tick2 = 0; if(display == DISP_MAIN) { LCD_SetPos(0, 0); 1fda: 60 e0 ldi r22, 0x00 ; 0 1fdc: 80 e0 ldi r24, 0x00 ; 0 1fde: d6 d2 rcall .+1452 ; 0x258c 1fe0: eb 81 ldd r30, Y+3 ; 0x03 fprintf(&lcd_stdout, "K%.1u #%.2u Tï=", ch + 1, heater[ch].preset); 1fe2: ae 2e mov r10, r30 1fe4: b1 2c mov r11, r1 1fe6: f3 e1 ldi r31, 0x13 ; 19 1fe8: fa 9d mul r31, r10 1fea: 60 01 movw r12, r0 1fec: fb 9d mul r31, r11 1fee: d0 0c add r13, r0 1ff0: 11 24 eor r1, r1 1ff2: 96 01 movw r18, r12 1ff4: 20 5e subi r18, 0xE0 ; 224 1ff6: 3c 4f sbci r19, 0xFC ; 252 1ff8: 3a 83 std Y+2, r19 ; 0x02 1ffa: 29 83 std Y+1, r18 ; 0x01 1ffc: d9 01 movw r26, r18 1ffe: 12 96 adiw r26, 0x02 ; 2 2000: 8c 91 ld r24, X 2002: 1f 92 push r1 2004: 8f 93 push r24 2006: c5 01 movw r24, r10 2008: 01 96 adiw r24, 0x01 ; 1 200a: 9f 93 push r25 200c: 8f 93 push r24 200e: 3f 92 push r3 2010: 2f 92 push r2 2012: 54 e1 ldi r21, 0x14 ; 20 2014: e5 2e mov r14, r21 2016: 51 e0 ldi r21, 0x01 ; 1 2018: f5 2e mov r15, r21 201a: ff 92 push r15 201c: ef 92 push r14 201e: 0e 94 87 1d call 0x3b0e ; 0x3b0e 2022: f6 01 movw r30, r12 if(!heater[ch].status.couple) 2024: ef 5d subi r30, 0xDF ; 223 2026: fc 4f sbci r31, 0xFC ; 252 2028: 80 81 ld r24, Z 202a: 86 95 lsr r24 202c: 87 70 andi r24, 0x07 ; 7 202e: 0f b6 in r0, 0x3f ; 63 2030: f8 94 cli 2032: de bf out 0x3e, r29 ; 62 2034: 0f be out 0x3f, r0 ; 63 2036: cd bf out 0x3d, r28 ; 61 2038: 09 f0 breq .+2 ; 0x203c 203a: f5 c0 rjmp .+490 ; 0x2226 203c: a9 81 ldd r26, Y+1 ; 0x01 { fprintf(&lcd_stdout, "%.3d\x01", heater[ch].tcouple); 203e: ba 81 ldd r27, Y+2 ; 0x02 2040: 15 96 adiw r26, 0x05 ; 5 2042: 8c 91 ld r24, X 2044: 15 97 sbiw r26, 0x05 ; 5 2046: 8f 93 push r24 2048: 14 96 adiw r26, 0x04 ; 4 204a: 8c 91 ld r24, X 204c: 8f 93 push r24 204e: eb e3 ldi r30, 0x3B ; 59 2050: f2 e0 ldi r31, 0x02 ; 2 2052: ff 93 push r31 2054: ef 93 push r30 2056: ff 92 push r15 2058: ef 92 push r14 205a: 0e 94 87 1d call 0x3b0e ; 0x3b0e 205e: 0f 90 pop r0 2060: 0f 90 pop r0 2062: 0f 90 pop r0 2064: 0f 90 pop r0 2066: 0f 90 pop r0 2068: 0f 90 pop r0 206a: 33 e1 ldi r19, 0x13 ; 19 else { fprintf(&lcd_stdout, "--- "); } switch(heater[ch].status.circuit) 206c: 3a 9d mul r19, r10 206e: f0 01 movw r30, r0 2070: 3b 9d mul r19, r11 2072: f0 0d add r31, r0 2074: 11 24 eor r1, r1 2076: e0 5e subi r30, 0xE0 ; 224 2078: fc 4f sbci r31, 0xFC ; 252 207a: 80 81 ld r24, Z 207c: 98 2f mov r25, r24 207e: 92 95 swap r25 2080: 96 95 lsr r25 2082: 96 95 lsr r25 2084: 93 70 andi r25, 0x03 ; 3 2086: 81 81 ldd r24, Z+1 ; 0x01 2088: 81 70 andi r24, 0x01 ; 1 208a: 88 0f add r24, r24 208c: 88 0f add r24, r24 208e: 89 2b or r24, r25 2090: 82 30 cpi r24, 0x02 ; 2 2092: 09 f4 brne .+2 ; 0x2096 2094: 51 c1 rjmp .+674 ; 0x2338 2096: 08 f0 brcs .+2 ; 0x209a 2098: d5 c0 rjmp .+426 ; 0x2244 209a: 88 23 and r24, r24 209c: 09 f4 brne .+2 ; 0x20a0 209e: e6 c0 rjmp .+460 ; 0x226c 20a0: 81 30 cpi r24, 0x01 ; 1 { case CIRC_OPEN: LCD_SendData(SYM_OPEN); break; case CIRC_SHORT: LCD_SendData(SYM_SHORT); 20a2: 11 f4 brne .+4 ; 0x20a8 20a4: 87 e0 ldi r24, 0x07 ; 7 20a6: 32 d2 rcall .+1124 ; 0x250c break; case CIRC_DIODE: break; } LCD_SetPos(0, 1); 20a8: 61 e0 ldi r22, 0x01 ; 1 20aa: 80 e0 ldi r24, 0x00 ; 0 20ac: 6f d2 rcall .+1246 ; 0x258c 20ae: a3 e1 ldi r26, 0x13 ; 19 fprintf(&lcd_stdout, "Tó=%.3u\x01 ", heater[ch].tset); 20b0: aa 9d mul r26, r10 20b2: c0 01 movw r24, r0 20b4: ab 9d mul r26, r11 20b6: 90 0d add r25, r0 20b8: 11 24 eor r1, r1 20ba: fc 01 movw r30, r24 20bc: e0 5e subi r30, 0xE0 ; 224 20be: fc 4f sbci r31, 0xFC ; 252 20c0: 7f 01 movw r14, r30 20c2: 83 85 ldd r24, Z+11 ; 0x0b 20c4: 8f 93 push r24 20c6: 82 85 ldd r24, Z+10 ; 0x0a 20c8: 8f 93 push r24 20ca: 2d e1 ldi r18, 0x1D ; 29 20cc: 32 e0 ldi r19, 0x02 ; 2 20ce: 3f 93 push r19 20d0: 2f 93 push r18 20d2: 44 e1 ldi r20, 0x14 ; 20 20d4: c4 2e mov r12, r20 20d6: 41 e0 ldi r20, 0x01 ; 1 20d8: d4 2e mov r13, r20 20da: df 92 push r13 20dc: cf 92 push r12 20de: 0e 94 87 1d call 0x3b0e ; 0x3b0e 20e2: d7 01 movw r26, r14 if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_SHORT)) 20e4: 8c 91 ld r24, X 20e6: 98 2f mov r25, r24 20e8: 92 95 swap r25 20ea: 96 95 lsr r25 20ec: 96 95 lsr r25 20ee: 93 70 andi r25, 0x03 ; 3 20f0: 11 96 adiw r26, 0x01 ; 1 20f2: 8c 91 ld r24, X 20f4: 11 97 sbiw r26, 0x01 ; 1 20f6: 81 70 andi r24, 0x01 ; 1 20f8: 88 0f add r24, r24 20fa: 88 0f add r24, r24 20fc: 89 2b or r24, r25 20fe: 0f 90 pop r0 2100: 0f 90 pop r0 2102: 0f 90 pop r0 2104: 0f 90 pop r0 2106: 0f 90 pop r0 2108: 0f 90 pop r0 210a: 09 f4 brne .+2 ; 0x210e 210c: cb c0 rjmp .+406 ; 0x22a4 210e: 8c 91 ld r24, X 2110: 98 2f mov r25, r24 2112: 92 95 swap r25 2114: 96 95 lsr r25 2116: 96 95 lsr r25 2118: 93 70 andi r25, 0x03 ; 3 211a: 11 96 adiw r26, 0x01 ; 1 211c: 8c 91 ld r24, X 211e: 81 70 andi r24, 0x01 ; 1 2120: 88 0f add r24, r24 2122: 88 0f add r24, r24 2124: 89 2b or r24, r25 2126: 81 30 cpi r24, 0x01 ; 1 2128: 09 f4 brne .+2 ; 0x212c 212a: bc c0 rjmp .+376 ; 0x22a4 212c: f7 01 movw r30, r14 { fprintf(&lcd_stdout, "ÎÒÊËÞ×."); } else if(heater[ch].status.circuit == CIRC_RES) 212e: 80 81 ld r24, Z 2130: 98 2f mov r25, r24 2132: 92 95 swap r25 2134: 96 95 lsr r25 2136: 96 95 lsr r25 2138: 93 70 andi r25, 0x03 ; 3 213a: 81 81 ldd r24, Z+1 ; 0x01 213c: 81 70 andi r24, 0x01 ; 1 213e: 88 0f add r24, r24 2140: 88 0f add r24, r24 2142: 89 2b or r24, r25 2144: 84 30 cpi r24, 0x04 ; 4 2146: 09 f4 brne .+2 ; 0x214a 2148: fa c0 rjmp .+500 ; 0x233e 214a: f7 01 movw r30, r14 { fprintf(&lcd_stdout, "I=%4.2fA", ((float)heater[ch].current) / 1000.0); } else { fprintf(&lcd_stdout, "Òí=%.3d\x01", heater[ch].tmeas); 214c: 87 81 ldd r24, Z+7 ; 0x07 214e: 8f 93 push r24 2150: 86 81 ldd r24, Z+6 ; 0x06 2152: 8f 93 push r24 2154: 28 e3 ldi r18, 0x38 ; 56 2156: 32 e0 ldi r19, 0x02 ; 2 2158: 3f 93 push r19 215a: 2f 93 push r18 215c: df 92 push r13 215e: cf 92 push r12 2160: 0e 94 87 1d call 0x3b0e ; 0x3b0e 2164: 0f 90 pop r0 2166: 0f 90 pop r0 2168: 0f 90 pop r0 216a: 0f 90 pop r0 216c: 0f 90 pop r0 216e: 0f 90 pop r0 2170: 93 e1 ldi r25, 0x13 ; 19 } if(heater[ch].status.onoff) 2172: 9a 9d mul r25, r10 2174: f0 01 movw r30, r0 2176: 9b 9d mul r25, r11 2178: f0 0d add r31, r0 217a: 11 24 eor r1, r1 217c: e0 5e subi r30, 0xE0 ; 224 217e: fc 4f sbci r31, 0xFC ; 252 2180: 80 81 ld r24, Z 2182: 81 ff sbrs r24, 1 2184: 9d c0 rjmp .+314 ; 0x22c0 { if(heater[ch].status.heating) 2186: 80 81 ld r24, Z 2188: 82 ff sbrs r24, 2 218a: 97 c0 rjmp .+302 ; 0x22ba { LCD_SendData(0xD9); 218c: 89 ed ldi r24, 0xD9 ; 217 218e: be d1 rcall .+892 ; 0x250c 2190: d4 01 movw r26, r8 else { LCD_SendData('-'); } if(menu->set == 1) 2192: 8c 91 ld r24, X 2194: 81 30 cpi r24, 0x01 ; 1 2196: 09 f4 brne .+2 ; 0x219a 2198: 96 c0 rjmp .+300 ; 0x22c6 219a: 82 30 cpi r24, 0x02 ; 2 LCD_SetPos(3, 1); fprintf(&lcd_stdout, " "); } menu->blink_cnt++; } else if(menu->set == 2) 219c: 09 f4 brne .+2 ; 0x21a0 219e: b0 c0 rjmp .+352 ; 0x2300 21a0: fc 81 ldd r31, Y+4 ; 0x04 fprintf(&lcd_stdout, " "); } menu->blink_cnt++; } if(button.pressed && !button.holded) 21a2: 60 fa bst r6, 0 21a4: f0 f9 bld r31, 0 21a6: 50 fa bst r5, 0 21a8: f1 f9 bld r31, 1 21aa: 70 fa bst r7, 0 21ac: f2 f9 bld r31, 2 21ae: f7 70 andi r31, 0x07 ; 7 21b0: 80 2f mov r24, r16 21b2: 88 0f add r24, r24 21b4: 88 0f add r24, r24 21b6: 88 0f add r24, r24 21b8: f8 2b or r31, r24 21ba: fc 83 std Y+4, r31 ; 0x04 21bc: 8f 2f mov r24, r31 21be: 85 70 andi r24, 0x05 ; 5 21c0: 81 30 cpi r24, 0x01 ; 1 21c2: 09 f0 breq .+2 ; 0x21c6 21c4: e0 cd rjmp .-1088 ; 0x1d86 { if(++button.holdcnt == 12) 21c6: 0f 5f subi r16, 0xFF ; 255 21c8: 0f 71 andi r16, 0x1F ; 31 21ca: 0c 30 cpi r16, 0x0C ; 12 21cc: 09 f0 breq .+2 ; 0x21d0 21ce: db cd rjmp .-1098 ; 0x1d86 { button.holded = 1; btn_act = 1; 21d0: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 if(button.pressed && !button.holded) { if(++button.holdcnt == 12) { button.holded = 1; 21d4: 77 24 eor r7, r7 21d6: 73 94 inc r7 } } } else if(display == DISP_VER) { LCD_SetPos(0, 0); 21d8: d6 cd rjmp .-1108 ; 0x1d86 21da: 60 e0 ldi r22, 0x00 ; 0 21dc: 80 e0 ldi r24, 0x00 ; 0 21de: d6 d1 rcall .+940 ; 0x258c fprintf(&lcd_stdout, "ÓÊÍ-2 09.09.2019"); 21e0: 24 e1 ldi r18, 0x14 ; 20 21e2: 31 e0 ldi r19, 0x01 ; 1 21e4: 40 e1 ldi r20, 0x10 ; 16 21e6: 50 e0 ldi r21, 0x00 ; 0 21e8: 61 e0 ldi r22, 0x01 ; 1 21ea: 70 e0 ldi r23, 0x00 ; 0 21ec: 81 e4 ldi r24, 0x41 ; 65 21ee: 92 e0 ldi r25, 0x02 ; 2 21f0: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 LCD_SetPos(0, 1); 21f4: 61 e0 ldi r22, 0x01 ; 1 21f6: 80 e0 ldi r24, 0x00 ; 0 21f8: c9 d1 rcall .+914 ; 0x258c 21fa: 24 e1 ldi r18, 0x14 ; 20 fprintf(&lcd_stdout, "Íàãàåâ Àëåêñàíäð"); 21fc: 31 e0 ldi r19, 0x01 ; 1 21fe: 40 e1 ldi r20, 0x10 ; 16 2200: 50 e0 ldi r21, 0x00 ; 0 2202: 61 e0 ldi r22, 0x01 ; 1 2204: 70 e0 ldi r23, 0x00 ; 0 2206: 82 e5 ldi r24, 0x52 ; 82 2208: 92 e0 ldi r25, 0x02 ; 2 220a: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 220e: bb cd rjmp .-1162 ; 0x1d86 2210: 81 50 subi r24, 0x01 ; 1 button.holded = 0; button.holdcnt = 0; } else // Button hold event { switch(button.code) 2212: 82 30 cpi r24, 0x02 ; 2 2214: 08 f0 brcs .+2 ; 0x2218 2216: 97 cd rjmp .-1234 ; 0x1d46 2218: 81 e0 ldi r24, 0x01 ; 1 { case 0x01: case 0x02: btn_act = 1; 221a: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 button.holded = 0; button.holdcnt--; 221e: 01 5e subi r16, 0xE1 ; 225 2220: 0f 71 andi r16, 0x1F ; 31 switch(button.code) { case 0x01: case 0x02: btn_act = 1; button.holded = 0; 2222: 71 2c mov r7, r1 button.holdcnt--; break; 2224: 90 cd rjmp .-1248 ; 0x1d46 { fprintf(&lcd_stdout, "%.3d\x01", heater[ch].tcouple); } else { fprintf(&lcd_stdout, "--- "); 2226: 24 e1 ldi r18, 0x14 ; 20 2228: 31 e0 ldi r19, 0x01 ; 1 222a: 44 e0 ldi r20, 0x04 ; 4 222c: 50 e0 ldi r21, 0x00 ; 0 222e: 61 e0 ldi r22, 0x01 ; 1 2230: 70 e0 ldi r23, 0x00 ; 0 2232: 88 e1 ldi r24, 0x18 ; 24 2234: 92 e0 ldi r25, 0x02 ; 2 2236: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 } else { if((heater[ch].status.onoff == ON) && (heater[ch].tmeas < heater[ch].tset)) { SwitchDrive(ch, ON); 223a: 17 cf rjmp .-466 ; 0x206a 223c: 61 e0 ldi r22, 0x01 ; 1 223e: 8d 2d mov r24, r13 2240: 3e d3 rcall .+1660 ; 0x28be else { fprintf(&lcd_stdout, "--- "); } switch(heater[ch].status.circuit) 2242: c1 ce rjmp .-638 ; 0x1fc6 2244: 83 30 cpi r24, 0x03 ; 3 2246: 79 f0 breq .+30 ; 0x2266 2248: 84 30 cpi r24, 0x04 ; 4 break; case CIRC_SHORT: LCD_SendData(SYM_SHORT); break; case CIRC_RES: LCD_SendData(SYM_RES); 224a: 09 f0 breq .+2 ; 0x224e 224c: 2d cf rjmp .-422 ; 0x20a8 224e: 84 e0 ldi r24, 0x04 ; 4 break; 2250: 5d d1 rcall .+698 ; 0x250c button.holded = 0; button.holdcnt--; break; case 0x04: menu->set = 0; 2252: 2a cf rjmp .-428 ; 0x20a8 2254: d4 01 movw r26, r8 AutoCalibration(ch); 2256: 1c 92 st X, r1 2258: 8b 81 ldd r24, Y+3 ; 0x03 225a: 0e 94 ce 06 call 0xd9c ; 0xd9c button.pressed = 0; button.holded = 0; 225e: 00 e0 ldi r16, 0x00 ; 0 break; case 0x04: menu->set = 0; AutoCalibration(ch); button.pressed = 0; 2260: 71 2c mov r7, r1 button.holded = 0; button.holdcnt = 0; break; 2262: 61 2c mov r6, r1 break; case CIRC_MOSFET: LCD_SendData(SYM_MOSFET); break; case CIRC_RES_DIODE: LCD_SendData(SYM_DIODE); 2264: 70 cd rjmp .-1312 ; 0x1d46 2266: 83 e0 ldi r24, 0x03 ; 3 2268: 51 d1 rcall .+674 ; 0x250c break; 226a: 1e cf rjmp .-452 ; 0x20a8 } switch(heater[ch].status.circuit) { case CIRC_OPEN: LCD_SendData(SYM_OPEN); 226c: 86 e0 ldi r24, 0x06 ; 6 226e: 4e d1 rcall .+668 ; 0x250c break; 2270: 1b cf rjmp .-458 ; 0x20a8 if(!button.holded) { display = DISP_MAIN; if(button.prev_code == 0x08) { heater[ch].status.onoff ^= 1; 2272: b3 e1 ldi r27, 0x13 ; 19 2274: 2b 81 ldd r18, Y+3 ; 0x03 2276: b2 9f mul r27, r18 2278: f0 01 movw r30, r0 227a: 11 24 eor r1, r1 227c: e0 5e subi r30, 0xE0 ; 224 227e: fc 4f sbci r31, 0xFC ; 252 2280: 80 81 ld r24, Z 2282: 81 fb bst r24, 1 2284: 99 27 eor r25, r25 2286: 90 f9 bld r25, 0 2288: 81 e0 ldi r24, 0x01 ; 1 228a: 89 27 eor r24, r25 228c: 90 81 ld r25, Z 228e: 80 fb bst r24, 0 2290: 91 f9 bld r25, 1 SwitchDrive(ch, OFF); 2292: 90 83 st Z, r25 2294: 60 e0 ldi r22, 0x00 ; 0 2296: 82 2f mov r24, r18 SwitchHeating(ch, OFF); 2298: 12 d3 rcall .+1572 ; 0x28be 229a: 60 e0 ldi r22, 0x00 ; 0 229c: 8b 81 ldd r24, Y+3 ; 0x03 229e: 0e 94 a3 05 call 0xb46 ; 0xb46 LCD_SetPos(0, 1); fprintf(&lcd_stdout, "Tó=%.3u\x01 ", heater[ch].tset); if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_SHORT)) { fprintf(&lcd_stdout, "ÎÒÊËÞ×."); 22a2: 73 ce rjmp .-794 ; 0x1f8a 22a4: 24 e1 ldi r18, 0x14 ; 20 22a6: 31 e0 ldi r19, 0x01 ; 1 22a8: 47 e0 ldi r20, 0x07 ; 7 22aa: 50 e0 ldi r21, 0x00 ; 0 22ac: 61 e0 ldi r22, 0x01 ; 1 22ae: 70 e0 ldi r23, 0x00 ; 0 22b0: 87 e2 ldi r24, 0x27 ; 39 22b2: 92 e0 ldi r25, 0x02 ; 2 22b4: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 { LCD_SendData(0xD9); } else { LCD_SendData(0xDA); 22b8: 5b cf rjmp .-330 ; 0x2170 22ba: 8a ed ldi r24, 0xDA ; 218 22bc: 27 d1 rcall .+590 ; 0x250c } } else { LCD_SendData('-'); 22be: 68 cf rjmp .-304 ; 0x2190 22c0: 8d e2 ldi r24, 0x2D ; 45 22c2: 24 d1 rcall .+584 ; 0x250c 22c4: 65 cf rjmp .-310 ; 0x2190 } if(menu->set == 1) { if(menu->blink_cnt % 4 == 0) 22c6: 11 96 adiw r26, 0x01 ; 1 22c8: 8c 91 ld r24, X 22ca: 11 97 sbiw r26, 0x01 ; 1 22cc: 98 2f mov r25, r24 22ce: 93 70 andi r25, 0x03 ; 3 22d0: 91 f4 brne .+36 ; 0x22f6 { if(menu->blink_cnt > 40) 22d2: 89 32 cpi r24, 0x29 ; 41 22d4: 08 f0 brcs .+2 ; 0x22d8 22d6: 81 c0 rjmp .+258 ; 0x23da { menu->set = 0; menu->blink_cnt = 0; SavePrefs(); } LCD_SetPos(3, 1); 22d8: 61 e0 ldi r22, 0x01 ; 1 22da: 83 e0 ldi r24, 0x03 ; 3 22dc: 57 d1 rcall .+686 ; 0x258c 22de: 24 e1 ldi r18, 0x14 ; 20 fprintf(&lcd_stdout, " "); 22e0: 31 e0 ldi r19, 0x01 ; 1 22e2: 43 e0 ldi r20, 0x03 ; 3 22e4: 50 e0 ldi r21, 0x00 ; 0 22e6: 61 e0 ldi r22, 0x01 ; 1 22e8: 70 e0 ldi r23, 0x00 ; 0 22ea: 86 e6 ldi r24, 0x66 ; 102 22ec: 91 e0 ldi r25, 0x01 ; 1 22ee: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 22f2: f4 01 movw r30, r8 22f4: 81 81 ldd r24, Z+1 ; 0x01 } menu->blink_cnt++; 22f6: 8f 5f subi r24, 0xFF ; 255 22f8: d4 01 movw r26, r8 22fa: 11 96 adiw r26, 0x01 ; 1 22fc: 8c 93 st X, r24 22fe: 50 cf rjmp .-352 ; 0x21a0 } else if(menu->set == 2) { if(menu->blink_cnt % 4 == 0) 2300: f4 01 movw r30, r8 2302: 81 81 ldd r24, Z+1 ; 0x01 2304: 98 2f mov r25, r24 2306: 93 70 andi r25, 0x03 ; 3 { if(menu->blink_cnt > 40) 2308: 99 f4 brne .+38 ; 0x2330 230a: 89 32 cpi r24, 0x29 ; 41 230c: 08 f0 brcs .+2 ; 0x2310 { menu->set = 0; menu->blink_cnt = 0; SavePrefs(); } LCD_SetPos(4, 0); 230e: 6a c0 rjmp .+212 ; 0x23e4 2310: 60 e0 ldi r22, 0x00 ; 0 2312: 84 e0 ldi r24, 0x04 ; 4 fprintf(&lcd_stdout, " "); 2314: 3b d1 rcall .+630 ; 0x258c 2316: 24 e1 ldi r18, 0x14 ; 20 2318: 31 e0 ldi r19, 0x01 ; 1 231a: 42 e0 ldi r20, 0x02 ; 2 231c: 50 e0 ldi r21, 0x00 ; 0 231e: 61 e0 ldi r22, 0x01 ; 1 2320: 70 e0 ldi r23, 0x00 ; 0 2322: 87 e6 ldi r24, 0x67 ; 103 2324: 91 e0 ldi r25, 0x01 ; 1 2326: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 232a: d4 01 movw r26, r8 } menu->blink_cnt++; 232c: 11 96 adiw r26, 0x01 ; 1 232e: 8c 91 ld r24, X 2330: 8f 5f subi r24, 0xFF ; 255 2332: f4 01 movw r30, r8 break; case CIRC_RES: LCD_SendData(SYM_RES); break; case CIRC_MOSFET: LCD_SendData(SYM_MOSFET); 2334: 81 83 std Z+1, r24 ; 0x01 2336: 34 cf rjmp .-408 ; 0x21a0 2338: 85 e0 ldi r24, 0x05 ; 5 break; 233a: e8 d0 rcall .+464 ; 0x250c { fprintf(&lcd_stdout, "ÎÒÊËÞ×."); } else if(heater[ch].status.circuit == CIRC_RES) { fprintf(&lcd_stdout, "I=%4.2fA", ((float)heater[ch].current) / 1000.0); 233c: b5 ce rjmp .-662 ; 0x20a8 233e: 66 85 ldd r22, Z+14 ; 0x0e 2340: 77 85 ldd r23, Z+15 ; 0x0f 2342: 80 e0 ldi r24, 0x00 ; 0 2344: 90 e0 ldi r25, 0x00 ; 0 2346: b1 d4 rcall .+2402 ; 0x2caa <__floatunsisf> 2348: 20 e0 ldi r18, 0x00 ; 0 234a: 30 e0 ldi r19, 0x00 ; 0 234c: 4a e7 ldi r20, 0x7A ; 122 234e: 54 e4 ldi r21, 0x44 ; 68 2350: 13 d4 rcall .+2086 ; 0x2b78 <__divsf3> 2352: 9f 93 push r25 2354: 8f 93 push r24 2356: 7f 93 push r23 2358: 6f 93 push r22 235a: 2f e2 ldi r18, 0x2F ; 47 235c: 32 e0 ldi r19, 0x02 ; 2 235e: 3f 93 push r19 2360: 2f 93 push r18 2362: df 92 push r13 2364: cf 92 push r12 2366: 0e 94 87 1d call 0x3b0e ; 0x3b0e 236a: 0f b6 in r0, 0x3f ; 63 236c: f8 94 cli 236e: de bf out 0x3e, r29 ; 62 2370: 0f be out 0x3f, r0 ; 63 2372: cd bf out 0x3d, r28 ; 61 2374: fd ce rjmp .-518 ; 0x2170 2376: 81 30 cpi r24, 0x01 ; 1 if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; button.prev_code = button.code; switch(button.code) 2378: 11 f5 brne .+68 ; 0x23be 237a: f4 01 movw r30, r8 { case 0x01: menu->blink_cnt = 1; 237c: 11 83 std Z+1, r17 ; 0x01 237e: 80 81 ld r24, Z if(menu->set == 1) 2380: 81 30 cpi r24, 0x01 ; 1 2382: b1 f1 breq .+108 ; 0x23f0 2384: 82 30 cpi r24, 0x02 ; 2 { heater[ch].tset -= (heater[ch].tset != 0); } else if(menu->set == 2) 2386: 09 f4 brne .+2 ; 0x238a 2388: 64 c0 rjmp .+200 ; 0x2452 238a: 44 24 eor r4, r4 238c: 43 94 inc r4 238e: 51 2c mov r5, r1 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 2390: 66 24 eor r6, r6 2392: 63 94 inc r6 heater[ch].preset -= (heater[ch].preset != 0); LoadPreset(ch); } else { ch = CH0; 2394: 1b 82 std Y+3, r1 ; 0x03 2396: d7 cc rjmp .-1618 ; 0x1d46 } break; case 0x02: menu->blink_cnt = 1; 2398: d4 01 movw r26, r8 239a: 11 96 adiw r26, 0x01 ; 1 239c: 1c 93 st X, r17 239e: 11 97 sbiw r26, 0x01 ; 1 if(menu->set == 1) 23a0: 8c 91 ld r24, X 23a2: 81 30 cpi r24, 0x01 ; 1 23a4: 09 f4 brne .+2 ; 0x23a8 { heater[ch].tset += (heater[ch].tset != 150); } else if(menu->set == 2) 23a6: 3d c0 rjmp .+122 ; 0x2422 23a8: 82 30 cpi r24, 0x02 ; 2 23aa: 09 f4 brne .+2 ; 0x23ae 23ac: 68 c0 rjmp .+208 ; 0x247e if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; 23ae: 62 e0 ldi r22, 0x02 ; 2 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 23b0: 46 2e mov r4, r22 23b2: 51 2c mov r5, r1 heater[ch].preset += (heater[ch].preset != 24); LoadPreset(ch); } else { ch = CH1; 23b4: 66 24 eor r6, r6 23b6: 63 94 inc r6 23b8: e1 e0 ldi r30, 0x01 ; 1 /* ---------------- BUTTON SECTION --------------- */ if(btn_act) { _delay_ms(20); btn_act = 0; button.code = ~((BTNPIN >> 4) | 0xF0); 23ba: eb 83 std Y+3, r30 ; 0x03 if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; 23bc: c4 cc rjmp .-1656 ; 0x1d46 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 23be: 48 2e mov r4, r24 23c0: 51 2c mov r5, r1 23c2: 66 24 eor r6, r6 ch = CH1; } break; case 0x03: LCD_SendCmd(LCD_CLR); 23c4: 63 94 inc r6 23c6: bf cc rjmp .-1666 ; 0x1d46 23c8: 81 e0 ldi r24, 0x01 ; 1 display = DISP_VER; break; 23ca: bb d0 rcall .+374 ; 0x2542 23cc: 93 e0 ldi r25, 0x03 ; 3 if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; 23ce: 49 2e mov r4, r25 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 23d0: 51 2c mov r5, r1 23d2: 66 24 eor r6, r6 } break; case 0x03: LCD_SendCmd(LCD_CLR); display = DISP_VER; 23d4: 63 94 inc r6 break; 23d6: 13 e0 ldi r17, 0x03 ; 3 { if(menu->blink_cnt % 4 == 0) { if(menu->blink_cnt > 40) { menu->set = 0; 23d8: b6 cc rjmp .-1684 ; 0x1d46 menu->blink_cnt = 0; 23da: 1c 92 st X, r1 23dc: 11 96 adiw r26, 0x01 ; 1 SavePrefs(); 23de: 1c 92 st X, r1 23e0: a9 d2 rcall .+1362 ; 0x2934 23e2: 7a cf rjmp .-268 ; 0x22d8 { if(menu->blink_cnt % 4 == 0) { if(menu->blink_cnt > 40) { menu->set = 0; 23e4: 10 82 st Z, r1 menu->blink_cnt = 0; 23e6: 11 82 std Z+1, r1 ; 0x01 SavePrefs(); 23e8: a5 d2 rcall .+1354 ; 0x2934 23ea: 92 cf rjmp .-220 ; 0x2310 23ec: a3 d2 rcall .+1350 ; 0x2934 break; case 0x04: menu->set = (menu->set + 1) % 3; if(menu->set == 0) SavePrefs(); 23ee: 10 cd rjmp .-1504 ; 0x1e10 23f0: 23 e1 ldi r18, 0x13 ; 19 23f2: 3b 81 ldd r19, Y+3 ; 0x03 { case 0x01: menu->blink_cnt = 1; if(menu->set == 1) { heater[ch].tset -= (heater[ch].tset != 0); 23f4: 23 9f mul r18, r19 23f6: f0 01 movw r30, r0 23f8: 11 24 eor r1, r1 23fa: e0 5e subi r30, 0xE0 ; 224 23fc: fc 4f sbci r31, 0xFC ; 252 23fe: 82 85 ldd r24, Z+10 ; 0x0a 2400: 93 85 ldd r25, Z+11 ; 0x0b 2402: 21 e0 ldi r18, 0x01 ; 1 2404: 30 e0 ldi r19, 0x00 ; 0 2406: 00 97 sbiw r24, 0x00 ; 0 2408: 11 f4 brne .+4 ; 0x240e 240a: 20 e0 ldi r18, 0x00 ; 0 240c: 30 e0 ldi r19, 0x00 ; 0 240e: 82 1b sub r24, r18 2410: 93 0b sbc r25, r19 2412: 93 87 std Z+11, r25 ; 0x0b 2414: 82 87 std Z+10, r24 ; 0x0a 2416: 44 24 eor r4, r4 2418: 43 94 inc r4 241a: 51 2c mov r5, r1 241c: 66 24 eor r6, r6 if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; 241e: 63 94 inc r6 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 2420: 92 cc rjmp .-1756 ; 0x1d46 2422: b3 e1 ldi r27, 0x13 ; 19 2424: 2b 81 ldd r18, Y+3 ; 0x03 case 0x02: menu->blink_cnt = 1; if(menu->set == 1) { heater[ch].tset += (heater[ch].tset != 150); 2426: b2 9f mul r27, r18 2428: f0 01 movw r30, r0 242a: 11 24 eor r1, r1 242c: e0 5e subi r30, 0xE0 ; 224 242e: fc 4f sbci r31, 0xFC ; 252 2430: 82 85 ldd r24, Z+10 ; 0x0a 2432: 93 85 ldd r25, Z+11 ; 0x0b 2434: 21 e0 ldi r18, 0x01 ; 1 2436: 30 e0 ldi r19, 0x00 ; 0 2438: 86 39 cpi r24, 0x96 ; 150 243a: 91 05 cpc r25, r1 243c: a9 f1 breq .+106 ; 0x24a8 243e: 82 0f add r24, r18 2440: 93 1f adc r25, r19 2442: 93 87 std Z+11, r25 ; 0x0b 2444: 82 87 std Z+10, r24 ; 0x0a 2446: 32 e0 ldi r19, 0x02 ; 2 2448: 43 2e mov r4, r19 244a: 51 2c mov r5, r1 if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; 244c: 66 24 eor r6, r6 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 244e: 63 94 inc r6 2450: 7a cc rjmp .-1804 ; 0x1d46 2452: 83 e1 ldi r24, 0x13 ; 19 { heater[ch].tset -= (heater[ch].tset != 0); } else if(menu->set == 2) { heater[ch].preset -= (heater[ch].preset != 0); 2454: 9b 81 ldd r25, Y+3 ; 0x03 2456: 89 9f mul r24, r25 2458: f0 01 movw r30, r0 245a: 11 24 eor r1, r1 245c: e0 5e subi r30, 0xE0 ; 224 245e: fc 4f sbci r31, 0xFC ; 252 2460: 82 81 ldd r24, Z+2 ; 0x02 2462: 91 e0 ldi r25, 0x01 ; 1 2464: 81 11 cpse r24, r1 2466: 01 c0 rjmp .+2 ; 0x246a 2468: 90 e0 ldi r25, 0x00 ; 0 246a: 89 1b sub r24, r25 246c: 82 83 std Z+2, r24 ; 0x02 LoadPreset(ch); 246e: 8b 81 ldd r24, Y+3 ; 0x03 2470: 85 d2 rcall .+1290 ; 0x297c 2472: 44 24 eor r4, r4 2474: 43 94 inc r4 2476: 51 2c mov r5, r1 if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; 2478: 66 24 eor r6, r6 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 247a: 63 94 inc r6 247c: 64 cc rjmp .-1848 ; 0x1d46 247e: 33 e1 ldi r19, 0x13 ; 19 { heater[ch].tset += (heater[ch].tset != 150); } else if(menu->set == 2) { heater[ch].preset += (heater[ch].preset != 24); 2480: 8b 81 ldd r24, Y+3 ; 0x03 2482: 38 9f mul r19, r24 2484: f0 01 movw r30, r0 2486: 11 24 eor r1, r1 2488: e0 5e subi r30, 0xE0 ; 224 248a: fc 4f sbci r31, 0xFC ; 252 248c: 82 81 ldd r24, Z+2 ; 0x02 248e: 91 e0 ldi r25, 0x01 ; 1 2490: 88 31 cpi r24, 0x18 ; 24 2492: 69 f0 breq .+26 ; 0x24ae 2494: 89 0f add r24, r25 2496: 82 83 std Z+2, r24 ; 0x02 2498: 8b 81 ldd r24, Y+3 ; 0x03 LoadPreset(ch); 249a: 70 d2 rcall .+1248 ; 0x297c 249c: 22 e0 ldi r18, 0x02 ; 2 249e: 42 2e mov r4, r18 24a0: 51 2c mov r5, r1 24a2: 66 24 eor r6, r6 if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; button.released = 0; 24a4: 63 94 inc r6 button.code = ~((BTNPIN >> 4) | 0xF0); if((button.code != 0x00) && (!button.holded)) // Button down event { if(display == DISP_MAIN) { button.pressed = 1; 24a6: 4f cc rjmp .-1890 ; 0x1d46 24a8: 20 e0 ldi r18, 0x00 ; 0 24aa: 30 e0 ldi r19, 0x00 ; 0 case 0x02: menu->blink_cnt = 1; if(menu->set == 1) { heater[ch].tset += (heater[ch].tset != 150); 24ac: c8 cf rjmp .-112 ; 0x243e 24ae: 90 e0 ldi r25, 0x00 ; 0 24b0: f1 cf rjmp .-30 ; 0x2494 000024b2 : { 0x08, 0x08, 0x04, 0x02, 0x01, 0x08, 0x08, 0x08 }, /* 6 OPEN */ { 0x08, 0x08, 0x04, 0x04, 0x02, 0x0F, 0x0A, 0x08 }};/* 7 SHORT */ void I2C_SendByte(uint8_t byte) { cli(); 24b2: f8 94 cli TWCR |= (1 << TWINT) | (1 << TWSTA); 24b4: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> 24b8: 90 6a ori r25, 0xA0 ; 160 24ba: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> while(!(TWCR & (1 << TWINT))); 24be: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> 24c2: 97 ff sbrs r25, 7 24c4: fc cf rjmp .-8 ; 0x24be TWDR = LCDI2CADDR; 24c6: 9e e4 ldi r25, 0x4E ; 78 24c8: 90 93 bb 00 sts 0x00BB, r25 ; 0x8000bb <__TEXT_REGION_LENGTH__+0x7e00bb> TWCR &= ~(1 << TWSTA); 24cc: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> 24d0: 9f 7d andi r25, 0xDF ; 223 24d2: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> TWCR |= (1 << TWINT); 24d6: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> 24da: 90 68 ori r25, 0x80 ; 128 24dc: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> while(!(TWCR & (1 << TWINT))); 24e0: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> 24e4: 97 ff sbrs r25, 7 24e6: fc cf rjmp .-8 ; 0x24e0 TWDR = byte; 24e8: 80 93 bb 00 sts 0x00BB, r24 ; 0x8000bb <__TEXT_REGION_LENGTH__+0x7e00bb> TWCR |= (1 << TWINT); 24ec: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> 24f0: 80 68 ori r24, 0x80 ; 128 24f2: 80 93 bc 00 sts 0x00BC, r24 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> while(!(TWCR & (1 << TWINT))); 24f6: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> 24fa: 87 ff sbrs r24, 7 24fc: fc cf rjmp .-8 ; 0x24f6 TWCR |= (1 << TWINT) | (1 << TWSTO); 24fe: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> 2502: 80 69 ori r24, 0x90 ; 144 2504: 80 93 bc 00 sts 0x00BC, r24 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc> sei(); 2508: 78 94 sei 250a: 08 95 ret 0000250c : } void LCD_SendData(uint8_t data) { 250c: cf 93 push r28 250e: df 93 push r29 2510: c8 2f mov r28, r24 I2C_SendByte((data & 0xF0) | LCD_RS | LCD_E); 2512: d8 2f mov r29, r24 2514: d0 7f andi r29, 0xF0 ; 240 2516: 8d 2f mov r24, r29 2518: 85 60 ori r24, 0x05 ; 5 251a: cb df rcall .-106 ; 0x24b2 I2C_SendByte((data & 0xF0) | LCD_RS); 251c: 8d 2f mov r24, r29 251e: 81 60 ori r24, 0x01 ; 1 2520: c8 df rcall .-112 ; 0x24b2 I2C_SendByte((data << 4) | LCD_RS | LCD_E); 2522: 80 e1 ldi r24, 0x10 ; 16 2524: c8 9f mul r28, r24 2526: e0 01 movw r28, r0 2528: 11 24 eor r1, r1 252a: 8c 2f mov r24, r28 252c: 85 60 ori r24, 0x05 ; 5 252e: c1 df rcall .-126 ; 0x24b2 I2C_SendByte((data << 4) | LCD_RS); 2530: 8c 2f mov r24, r28 2532: 81 60 ori r24, 0x01 ; 1 2534: be df rcall .-132 ; 0x24b2 2536: 80 e1 ldi r24, 0x10 ; 16 #else //round up by default __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); #endif __builtin_avr_delay_cycles(__ticks_dc); 2538: 8a 95 dec r24 253a: f1 f7 brne .-4 ; 0x2538 253c: df 91 pop r29 _delay_us(4); } 253e: cf 91 pop r28 2540: 08 95 ret 00002542 : 2542: cf 93 push r28 void LCD_SendCmd(uint8_t cmd) { 2544: df 93 push r29 2546: c8 2f mov r28, r24 I2C_SendByte(((cmd & 0xF0) & ~LCD_RS) | LCD_E); 2548: d8 2f mov r29, r24 254a: d0 7f andi r29, 0xF0 ; 240 254c: 8d 2f mov r24, r29 254e: 84 60 ori r24, 0x04 ; 4 2550: b0 df rcall .-160 ; 0x24b2 I2C_SendByte((cmd & 0xF0) & ~LCD_RS); 2552: 8d 2f mov r24, r29 2554: ae df rcall .-164 ; 0x24b2 I2C_SendByte(((cmd << 4) & ~LCD_RS) | LCD_E); 2556: 20 e1 ldi r18, 0x10 ; 16 2558: c2 9f mul r28, r18 255a: c0 01 movw r24, r0 255c: 11 24 eor r1, r1 255e: 84 60 ori r24, 0x04 ; 4 2560: a8 df rcall .-176 ; 0x24b2 I2C_SendByte((cmd << 4) & ~LCD_RS); 2562: 8c 2f mov r24, r28 2564: 82 95 swap r24 2566: 80 7f andi r24, 0xF0 ; 240 2568: a4 df rcall .-184 ; 0x24b2 if(cmd == LCD_CLR) 256a: c1 30 cpi r28, 0x01 ; 1 256c: 31 f0 breq .+12 ; 0x257a 256e: 98 e2 ldi r25, 0x28 ; 40 2570: 9a 95 dec r25 2572: f1 f7 brne .-4 ; 0x2570 } else { _delay_us(10); } } 2574: df 91 pop r29 2576: cf 91 pop r28 2578: 08 95 ret #else //round up by default __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); #endif __builtin_avr_delay_cycles(__ticks_dc); 257a: 8f e4 ldi r24, 0x4F ; 79 257c: 96 e4 ldi r25, 0x46 ; 70 257e: 01 97 sbiw r24, 0x01 ; 1 2580: f1 f7 brne .-4 ; 0x257e 2582: 00 c0 rjmp .+0 ; 0x2584 2584: 00 00 nop 2586: df 91 pop r29 2588: cf 91 pop r28 258a: 08 95 ret 0000258c : void LCD_SetPos(uint8_t x, uint8_t y) { y = ((y & 0x01) * 0x40); 258c: 61 70 andi r22, 0x01 ; 1 x &= 0x0F; LCD_SendCmd(LCD_DDRAM | (x + y)); 258e: 8f 70 andi r24, 0x0F ; 15 2590: 90 e4 ldi r25, 0x40 ; 64 2592: 69 9f mul r22, r25 2594: 80 0d add r24, r0 2596: 11 24 eor r1, r1 2598: 80 68 ori r24, 0x80 ; 128 259a: d3 cf rjmp .-90 ; 0x2542 0000259c : } void LoadSymbols() { 259c: cf 92 push r12 259e: df 92 push r13 25a0: ff 92 push r15 25a2: 0f 93 push r16 25a4: 1f 93 push r17 25a6: cf 93 push r28 25a8: df 93 push r29 25aa: 84 ea ldi r24, 0xA4 ; 164 25ac: c8 2e mov r12, r24 25ae: 82 e0 ldi r24, 0x02 ; 2 25b0: d8 2e mov r13, r24 25b2: f1 2c mov r15, r1 25b4: d0 e0 ldi r29, 0x00 ; 0 for(uint8_t i = 0; i < 8; i++) { LCD_SendCmd(LCD_CGRAM | (0x08 * i)); 25b6: 8f 2d mov r24, r15 25b8: 80 64 ori r24, 0x40 ; 64 25ba: c3 df rcall .-122 ; 0x2542 25bc: 86 01 movw r16, r12 25be: c8 e0 ldi r28, 0x08 ; 8 25c0: 03 c0 rjmp .+6 ; 0x25c8 25c2: f8 01 movw r30, r16 25c4: d1 91 ld r29, Z+ 25c6: 8f 01 movw r16, r30 for(uint8_t j = 0; j < 8; j++) { LCD_SendData(symbols[i][j]); 25c8: 8d 2f mov r24, r29 25ca: a0 df rcall .-192 ; 0x250c 25cc: c1 50 subi r28, 0x01 ; 1 void LoadSymbols() { for(uint8_t i = 0; i < 8; i++) { LCD_SendCmd(LCD_CGRAM | (0x08 * i)); for(uint8_t j = 0; j < 8; j++) 25ce: c9 f7 brne .-14 ; 0x25c2 25d0: f8 e0 ldi r31, 0x08 ; 8 25d2: ff 0e add r15, r31 LCD_SendCmd(LCD_DDRAM | (x + y)); } void LoadSymbols() { for(uint8_t i = 0; i < 8; i++) 25d4: 80 e4 ldi r24, 0x40 ; 64 25d6: f8 16 cp r15, r24 25d8: 31 f0 breq .+12 ; 0x25e6 25da: f6 01 movw r30, r12 25dc: d7 81 ldd r29, Z+7 ; 0x07 25de: f8 e0 ldi r31, 0x08 ; 8 25e0: cf 0e add r12, r31 25e2: d1 1c adc r13, r1 25e4: e8 cf rjmp .-48 ; 0x25b6 for(uint8_t j = 0; j < 8; j++) { LCD_SendData(symbols[i][j]); } } } 25e6: df 91 pop r29 25e8: cf 91 pop r28 25ea: 1f 91 pop r17 25ec: 0f 91 pop r16 25ee: ff 90 pop r15 25f0: df 90 pop r13 25f2: cf 90 pop r12 25f4: 08 95 ret 000025f6 : void LCD_Init(void) { 25f6: cf 93 push r28 I2C_SendByte(0x00); 25f8: 80 e0 ldi r24, 0x00 ; 0 25fa: 5b df rcall .-330 ; 0x24b2 25fc: 2f eb ldi r18, 0xBF ; 191 25fe: 84 ed ldi r24, 0xD4 ; 212 2600: 91 e0 ldi r25, 0x01 ; 1 2602: 21 50 subi r18, 0x01 ; 1 2604: 80 40 sbci r24, 0x00 ; 0 2606: 90 40 sbci r25, 0x00 ; 0 2608: e1 f7 brne .-8 ; 0x2602 260a: 00 c0 rjmp .+0 ; 0x260c 260c: 00 00 nop 260e: c5 e0 ldi r28, 0x05 ; 5 _delay_ms(50); for(uint8_t i = 0; i < 5; i++) { I2C_SendByte(0x00 | LCD_E); 2610: 84 e0 ldi r24, 0x04 ; 4 2612: 4f df rcall .-354 ; 0x24b2 I2C_SendByte(0x00 & ~LCD_E); 2614: 80 e0 ldi r24, 0x00 ; 0 2616: 4d df rcall .-358 ; 0x24b2 2618: c1 50 subi r28, 0x01 ; 1 261a: d1 f7 brne .-12 ; 0x2610 { I2C_SendByte(0x00); _delay_ms(50); for(uint8_t i = 0; i < 5; i++) 261c: 28 ec ldi r18, 0xC8 ; 200 #else //round up by default __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); #endif __builtin_avr_delay_cycles(__ticks_dc); 261e: 2a 95 dec r18 2620: f1 f7 brne .-4 ; 0x261e I2C_SendByte(0x00 | LCD_E); I2C_SendByte(0x00 & ~LCD_E); } _delay_us(50); I2C_SendByte(LCD_WIDTH | LCD_E); 2622: 84 e2 ldi r24, 0x24 ; 36 2624: 46 df rcall .-372 ; 0x24b2 I2C_SendByte(LCD_WIDTH & ~LCD_E); 2626: 80 e2 ldi r24, 0x20 ; 32 2628: 44 df rcall .-376 ; 0x24b2 LCD_SendCmd(LCD_WIDTH | LCD_WIDTH_N | LCD_WIDTH_FT1); 262a: 8a e2 ldi r24, 0x2A ; 42 262c: 8a df rcall .-236 ; 0x2542 LCD_SendCmd(LCD_ONOFF); 262e: 88 e0 ldi r24, 0x08 ; 8 2630: 88 df rcall .-240 ; 0x2542 LCD_SendCmd(LCD_CLR); 2632: 81 e0 ldi r24, 0x01 ; 1 2634: 86 df rcall .-244 ; 0x2542 LCD_SendCmd(LCD_DIR | LCD_DIR_ID); 2636: 86 e0 ldi r24, 0x06 ; 6 2638: 84 df rcall .-248 ; 0x2542 263a: 8c e0 ldi r24, 0x0C ; 12 LCD_SendCmd(LCD_ONOFF | LCD_ONOFF_D); 263c: 82 df rcall .-252 ; 0x2542 263e: cf 91 pop r28 2640: ad cf rjmp .-166 ; 0x259c 00002642 : LoadSymbols(); } 2642: 95 b1 in r25, 0x05 ; 5 LCD_SendCmd(LCD_WIDTH | LCD_WIDTH_N | LCD_WIDTH_FT1); LCD_SendCmd(LCD_ONOFF); LCD_SendCmd(LCD_CLR); LCD_SendCmd(LCD_DIR | LCD_DIR_ID); LCD_SendCmd(LCD_ONOFF | LCD_ONOFF_D); LoadSymbols(); 2644: 98 7f andi r25, 0xF8 ; 248 2646: 67 70 andi r22, 0x07 ; 7 ch = (ch & 0x01) * 2; potval = (uint8_t)((shift * 255.0) / 2.037); POT_SendData(potval, ch); //return (((float)potval * 2.037) / 255.0); return potval; } 2648: 69 2b or r22, r25 264a: 65 b9 out 0x05, r22 ; 5 264c: 2c 98 cbi 0x05, 4 ; 5 264e: 91 e1 ldi r25, 0x11 ; 17 2650: 9e bd out 0x2e, r25 ; 46 2652: 0d b4 in r0, 0x2d ; 45 2654: 07 fe sbrs r0, 7 2656: fd cf rjmp .-6 ; 0x2652 2658: 8e bd out 0x2e, r24 ; 46 265a: 0d b4 in r0, 0x2d ; 45 265c: 07 fe sbrs r0, 7 265e: fd cf rjmp .-6 ; 0x265a 2660: 2c 9a sbi 0x05, 4 ; 5 2662: 08 95 ret 00002664 : uint8_t SetDriveVoltage(uint8_t ch, float voltage) { 2664: cf 92 push r12 2666: df 92 push r13 2668: ef 92 push r14 266a: ff 92 push r15 266c: cf 93 push r28 266e: df 93 push r29 2670: 6a 01 movw r12, r20 2672: 7b 01 movw r14, r22 uint8_t potval; ch = POT_DRIVE1 + (ch & 0x01); 2674: c8 2f mov r28, r24 2676: c1 70 andi r28, 0x01 ; 1 potval = (uint8_t)(voltage * 25.76); 2678: 2b e7 ldi r18, 0x7B ; 123 267a: 34 e1 ldi r19, 0x14 ; 20 267c: 4e ec ldi r20, 0xCE ; 206 267e: 51 e4 ldi r21, 0x41 ; 65 2680: c7 01 movw r24, r14 2682: b6 01 movw r22, r12 2684: c8 d3 rcall .+1936 ; 0x2e16 <__mulsf3> 2686: e5 d2 rcall .+1482 ; 0x2c52 <__fixunssfsi> 2688: d6 2f mov r29, r22 POT_SendData(potval, ch); 268a: 64 e0 ldi r22, 0x04 ; 4 268c: 6c 0f add r22, r28 268e: 8d 2f mov r24, r29 2690: d8 df rcall .-80 ; 0x2642 //return ((float)potval / 25.76); return potval; } 2692: 8d 2f mov r24, r29 2694: df 91 pop r29 2696: cf 91 pop r28 2698: ff 90 pop r15 269a: ef 90 pop r14 269c: df 90 pop r13 269e: cf 90 pop r12 26a0: 08 95 ret 000026a2 : void SetInputRange(uint8_t ch, float vlow, float vhigh) { 26a2: 8f 92 push r8 26a4: 9f 92 push r9 26a6: af 92 push r10 26a8: bf 92 push r11 26aa: cf 92 push r12 26ac: df 92 push r13 26ae: ef 92 push r14 26b0: ff 92 push r15 26b2: 0f 93 push r16 26b4: 1f 93 push r17 26b6: cf 93 push r28 26b8: df 93 push r29 26ba: e8 2f mov r30, r24 26bc: 4a 01 movw r8, r20 26be: 5b 01 movw r10, r22 26c0: c9 01 movw r24, r18 26c2: b8 01 movw r22, r16 heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow))); 26c4: ce 2e mov r12, r30 26c6: d1 2c mov r13, r1 } uint8_t SetOpampGain(uint8_t ch, float gain) { uint8_t potval; ch = ((ch & 0x01) * 2) + 1; 26c8: 2e 2f mov r18, r30 26ca: 21 70 andi r18, 0x01 ; 1 26cc: c2 2f mov r28, r18 26ce: cc 0f add r28, r28 potval = (uint8_t)((8.448 * gain) - 8.9088); 26d0: a5 01 movw r20, r10 26d2: 94 01 movw r18, r8 26d4: e8 d1 rcall .+976 ; 0x2aa6 <__subsf3> 26d6: 9b 01 movw r18, r22 26d8: ac 01 movw r20, r24 26da: 63 e3 ldi r22, 0x33 ; 51 26dc: 73 e3 ldi r23, 0x33 ; 51 26de: 83 e5 ldi r24, 0x53 ; 83 26e0: 90 e4 ldi r25, 0x40 ; 64 26e2: 4a d2 rcall .+1172 ; 0x2b78 <__divsf3> 26e4: 22 e0 ldi r18, 0x02 ; 2 26e6: 3b e2 ldi r19, 0x2B ; 43 26e8: 47 e0 ldi r20, 0x07 ; 7 26ea: 51 e4 ldi r21, 0x41 ; 65 26ec: 94 d3 rcall .+1832 ; 0x2e16 <__mulsf3> 26ee: 22 e7 ldi r18, 0x72 ; 114 26f0: 3a e8 ldi r19, 0x8A ; 138 26f2: 4e e0 ldi r20, 0x0E ; 14 26f4: 51 e4 ldi r21, 0x41 ; 65 26f6: d7 d1 rcall .+942 ; 0x2aa6 <__subsf3> 26f8: ac d2 rcall .+1368 ; 0x2c52 <__fixunssfsi> 26fa: d6 2f mov r29, r22 POT_SendData(potval, ch); 26fc: 61 e0 ldi r22, 0x01 ; 1 26fe: 6c 0f add r22, r28 2700: 8d 2f mov r24, r29 2702: 9f df rcall .-194 ; 0x2642 2704: 83 e1 ldi r24, 0x13 ; 19 return potval; } void SetInputRange(uint8_t ch, float vlow, float vhigh) { heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow))); 2706: 8c 9d mul r24, r12 2708: 80 01 movw r16, r0 270a: 8d 9d mul r24, r13 270c: 10 0d add r17, r0 270e: 11 24 eor r1, r1 2710: 00 5e subi r16, 0xE0 ; 224 2712: 1c 4f sbci r17, 0xFC ; 252 2714: f8 01 movw r30, r16 2716: d0 8b std Z+16, r29 ; 0x10 2718: 2a e4 ldi r18, 0x4A ; 74 uint8_t SetOpampShift(uint8_t ch, float shift) { uint8_t potval; ch = (ch & 0x01) * 2; potval = (uint8_t)((shift * 255.0) / 2.037); 271a: 3c e0 ldi r19, 0x0C ; 12 271c: 42 e4 ldi r20, 0x42 ; 66 271e: 5f e3 ldi r21, 0x3F ; 63 2720: c5 01 movw r24, r10 2722: b4 01 movw r22, r8 2724: 78 d3 rcall .+1776 ; 0x2e16 <__mulsf3> 2726: 20 e0 ldi r18, 0x00 ; 0 2728: 30 e0 ldi r19, 0x00 ; 0 272a: 4f e7 ldi r20, 0x7F ; 127 272c: 53 e4 ldi r21, 0x43 ; 67 272e: 73 d3 rcall .+1766 ; 0x2e16 <__mulsf3> 2730: 25 e3 ldi r18, 0x35 ; 53 2732: 3e e5 ldi r19, 0x5E ; 94 2734: 42 e0 ldi r20, 0x02 ; 2 2736: 50 e4 ldi r21, 0x40 ; 64 2738: 1f d2 rcall .+1086 ; 0x2b78 <__divsf3> 273a: 8b d2 rcall .+1302 ; 0x2c52 <__fixunssfsi> 273c: d6 2f mov r29, r22 POT_SendData(potval, ch); 273e: 6c 2f mov r22, r28 2740: 8d 2f mov r24, r29 2742: 7f df rcall .-258 ; 0x2642 2744: f8 01 movw r30, r16 } void SetInputRange(uint8_t ch, float vlow, float vhigh) { heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow))); heater[ch].shift = SetOpampShift(ch, (0.758 * vlow)); 2746: d1 8b std Z+17, r29 ; 0x11 2748: 2d e0 ldi r18, 0x0D ; 13 opamp[ch].gain = (((float)heater[ch].gain + 8.9088) / 8.448); 274a: 2c 9d mul r18, r12 274c: c0 01 movw r24, r0 274e: 2d 9d mul r18, r13 2750: 90 0d add r25, r0 2752: 11 24 eor r1, r1 2754: 9c 01 movw r18, r24 2756: 22 57 subi r18, 0x72 ; 114 2758: 39 4f sbci r19, 0xF9 ; 249 275a: 79 01 movw r14, r18 275c: 60 89 ldd r22, Z+16 ; 0x10 275e: 70 e0 ldi r23, 0x00 ; 0 2760: 80 e0 ldi r24, 0x00 ; 0 2762: 90 e0 ldi r25, 0x00 ; 0 2764: a2 d2 rcall .+1348 ; 0x2caa <__floatunsisf> 2766: 22 e7 ldi r18, 0x72 ; 114 2768: 3a e8 ldi r19, 0x8A ; 138 276a: 4e e0 ldi r20, 0x0E ; 14 276c: 51 e4 ldi r21, 0x41 ; 65 276e: 9c d1 rcall .+824 ; 0x2aa8 <__addsf3> 2770: 22 e0 ldi r18, 0x02 ; 2 2772: 3b e2 ldi r19, 0x2B ; 43 2774: 47 e0 ldi r20, 0x07 ; 7 2776: 51 e4 ldi r21, 0x41 ; 65 2778: ff d1 rcall .+1022 ; 0x2b78 <__divsf3> 277a: f7 01 movw r30, r14 277c: 61 83 std Z+1, r22 ; 0x01 277e: 72 83 std Z+2, r23 ; 0x02 2780: 83 83 std Z+3, r24 ; 0x03 opamp[ch].shift = (((float)heater[ch].shift * 2.037) / 255.0); 2782: 94 83 std Z+4, r25 ; 0x04 2784: 6d 2f mov r22, r29 2786: 70 e0 ldi r23, 0x00 ; 0 2788: 80 e0 ldi r24, 0x00 ; 0 278a: 90 e0 ldi r25, 0x00 ; 0 278c: 8e d2 rcall .+1308 ; 0x2caa <__floatunsisf> 278e: 25 e3 ldi r18, 0x35 ; 53 2790: 3e e5 ldi r19, 0x5E ; 94 2792: 42 e0 ldi r20, 0x02 ; 2 2794: 50 e4 ldi r21, 0x40 ; 64 2796: 3f d3 rcall .+1662 ; 0x2e16 <__mulsf3> 2798: 20 e0 ldi r18, 0x00 ; 0 279a: 30 e0 ldi r19, 0x00 ; 0 279c: 4f e7 ldi r20, 0x7F ; 127 279e: 53 e4 ldi r21, 0x43 ; 67 27a0: eb d1 rcall .+982 ; 0x2b78 <__divsf3> 27a2: f7 01 movw r30, r14 27a4: 65 83 std Z+5, r22 ; 0x05 27a6: 76 83 std Z+6, r23 ; 0x06 27a8: 87 83 std Z+7, r24 ; 0x07 27aa: 90 87 std Z+8, r25 ; 0x08 27ac: df 91 pop r29 } 27ae: cf 91 pop r28 27b0: 1f 91 pop r17 27b2: 0f 91 pop r16 27b4: ff 90 pop r15 27b6: ef 90 pop r14 27b8: df 90 pop r13 27ba: cf 90 pop r12 27bc: bf 90 pop r11 27be: af 90 pop r10 27c0: 9f 90 pop r9 27c2: 8f 90 pop r8 27c4: 08 95 ret 000027c6 : 27c6: 1f 93 push r17 void SetGainData(uint8_t ch, uint8_t data) { 27c8: cf 93 push r28 27ca: df 93 push r29 27cc: c8 2f mov r28, r24 27ce: 16 2f mov r17, r22 POT_SendData(data, ((ch & 0x01) * 2) + 1); 27d0: 68 2f mov r22, r24 27d2: 61 70 andi r22, 0x01 ; 1 27d4: 66 0f add r22, r22 27d6: 6f 5f subi r22, 0xFF ; 255 27d8: 81 2f mov r24, r17 27da: 33 df rcall .-410 ; 0x2642 heater[ch].gain = data; 27dc: 83 e1 ldi r24, 0x13 ; 19 27de: c8 9f mul r28, r24 27e0: f0 01 movw r30, r0 27e2: 11 24 eor r1, r1 27e4: e0 5e subi r30, 0xE0 ; 224 27e6: fc 4f sbci r31, 0xFC ; 252 27e8: 10 8b std Z+16, r17 ; 0x10 opamp[ch].gain = (((float)data + 8.9088) / 8.448); 27ea: 8d e0 ldi r24, 0x0D ; 13 27ec: c8 9f mul r28, r24 27ee: e0 01 movw r28, r0 27f0: 11 24 eor r1, r1 27f2: c2 57 subi r28, 0x72 ; 114 27f4: d9 4f sbci r29, 0xF9 ; 249 27f6: 61 2f mov r22, r17 27f8: 70 e0 ldi r23, 0x00 ; 0 27fa: 80 e0 ldi r24, 0x00 ; 0 27fc: 90 e0 ldi r25, 0x00 ; 0 27fe: 55 d2 rcall .+1194 ; 0x2caa <__floatunsisf> 2800: 22 e7 ldi r18, 0x72 ; 114 2802: 3a e8 ldi r19, 0x8A ; 138 2804: 4e e0 ldi r20, 0x0E ; 14 2806: 51 e4 ldi r21, 0x41 ; 65 2808: 4f d1 rcall .+670 ; 0x2aa8 <__addsf3> 280a: 22 e0 ldi r18, 0x02 ; 2 280c: 3b e2 ldi r19, 0x2B ; 43 280e: 47 e0 ldi r20, 0x07 ; 7 2810: 51 e4 ldi r21, 0x41 ; 65 2812: b2 d1 rcall .+868 ; 0x2b78 <__divsf3> 2814: 69 83 std Y+1, r22 ; 0x01 2816: 7a 83 std Y+2, r23 ; 0x02 2818: 8b 83 std Y+3, r24 ; 0x03 281a: 9c 83 std Y+4, r25 ; 0x04 } 281c: df 91 pop r29 281e: cf 91 pop r28 2820: 1f 91 pop r17 2822: 08 95 ret 00002824 : void SetShiftData(uint8_t ch, uint8_t data) { 2824: 1f 93 push r17 2826: cf 93 push r28 2828: df 93 push r29 282a: c8 2f mov r28, r24 282c: 16 2f mov r17, r22 POT_SendData(data, (ch & 0x01) * 2); 282e: 68 2f mov r22, r24 2830: 61 70 andi r22, 0x01 ; 1 2832: 66 0f add r22, r22 2834: 81 2f mov r24, r17 2836: 05 df rcall .-502 ; 0x2642 heater[ch].shift = data; 2838: 83 e1 ldi r24, 0x13 ; 19 283a: c8 9f mul r28, r24 283c: f0 01 movw r30, r0 283e: 11 24 eor r1, r1 2840: e0 5e subi r30, 0xE0 ; 224 2842: fc 4f sbci r31, 0xFC ; 252 2844: 11 8b std Z+17, r17 ; 0x11 opamp[ch].shift = (((float)data * 2.037) / 255.0); 2846: 8d e0 ldi r24, 0x0D ; 13 2848: c8 9f mul r28, r24 284a: e0 01 movw r28, r0 284c: 11 24 eor r1, r1 284e: c2 57 subi r28, 0x72 ; 114 2850: d9 4f sbci r29, 0xF9 ; 249 2852: 61 2f mov r22, r17 2854: 70 e0 ldi r23, 0x00 ; 0 2856: 80 e0 ldi r24, 0x00 ; 0 2858: 90 e0 ldi r25, 0x00 ; 0 285a: 27 d2 rcall .+1102 ; 0x2caa <__floatunsisf> 285c: 25 e3 ldi r18, 0x35 ; 53 285e: 3e e5 ldi r19, 0x5E ; 94 2860: 42 e0 ldi r20, 0x02 ; 2 2862: 50 e4 ldi r21, 0x40 ; 64 2864: d8 d2 rcall .+1456 ; 0x2e16 <__mulsf3> 2866: 20 e0 ldi r18, 0x00 ; 0 2868: 30 e0 ldi r19, 0x00 ; 0 286a: 4f e7 ldi r20, 0x7F ; 127 286c: 53 e4 ldi r21, 0x43 ; 67 286e: 84 d1 rcall .+776 ; 0x2b78 <__divsf3> 2870: 6d 83 std Y+5, r22 ; 0x05 2872: 7e 83 std Y+6, r23 ; 0x06 2874: 8f 83 std Y+7, r24 ; 0x07 2876: 98 87 std Y+8, r25 ; 0x08 } 2878: df 91 pop r29 287a: cf 91 pop r28 287c: 1f 91 pop r17 287e: 08 95 ret 00002880 : void SetDriveData(uint8_t ch, uint8_t data) { 2880: cf 93 push r28 2882: df 93 push r29 heater[ch].drive = data; 2884: 93 e1 ldi r25, 0x13 ; 19 2886: 89 9f mul r24, r25 2888: f0 01 movw r30, r0 288a: 11 24 eor r1, r1 288c: e0 5e subi r30, 0xE0 ; 224 288e: fc 4f sbci r31, 0xFC ; 252 2890: 62 8b std Z+18, r22 ; 0x12 opamp[ch].drive = ((float)data / 25.76); 2892: 9d e0 ldi r25, 0x0D ; 13 2894: 89 9f mul r24, r25 2896: e0 01 movw r28, r0 2898: 11 24 eor r1, r1 289a: c2 57 subi r28, 0x72 ; 114 289c: d9 4f sbci r29, 0xF9 ; 249 289e: 70 e0 ldi r23, 0x00 ; 0 28a0: 80 e0 ldi r24, 0x00 ; 0 28a2: 90 e0 ldi r25, 0x00 ; 0 28a4: 02 d2 rcall .+1028 ; 0x2caa <__floatunsisf> 28a6: 2b e7 ldi r18, 0x7B ; 123 28a8: 34 e1 ldi r19, 0x14 ; 20 28aa: 4e ec ldi r20, 0xCE ; 206 28ac: 51 e4 ldi r21, 0x41 ; 65 28ae: 64 d1 rcall .+712 ; 0x2b78 <__divsf3> 28b0: 69 87 std Y+9, r22 ; 0x09 28b2: 7a 87 std Y+10, r23 ; 0x0a 28b4: 8b 87 std Y+11, r24 ; 0x0b 28b6: 9c 87 std Y+12, r25 ; 0x0c } 28b8: df 91 pop r29 28ba: cf 91 pop r28 28bc: 08 95 ret 000028be : void SwitchDrive(uint8_t ch, uint8_t onoff) { 28be: 96 2f mov r25, r22 uint8_t potnum = POT_DRIVE1 + (ch & 0x01); POT_SendData(heater[ch].drive * (onoff & 0x01), potnum); 28c0: 68 2f mov r22, r24 28c2: 61 70 andi r22, 0x01 ; 1 28c4: 6c 5f subi r22, 0xFC ; 252 28c6: 23 e1 ldi r18, 0x13 ; 19 28c8: 82 9f mul r24, r18 28ca: f0 01 movw r30, r0 28cc: 11 24 eor r1, r1 28ce: e0 5e subi r30, 0xE0 ; 224 28d0: fc 4f sbci r31, 0xFC ; 252 28d2: 89 2f mov r24, r25 28d4: 81 70 andi r24, 0x01 ; 1 28d6: 92 89 ldd r25, Z+18 ; 0x12 28d8: 89 9f mul r24, r25 28da: 80 2d mov r24, r0 28dc: 11 24 eor r1, r1 28de: b1 ce rjmp .-670 ; 0x2642 000028e0 : extern heater_str heater[2]; extern opamp_str opamp[2]; extern preset_str preset[2]; void LoadPrefs() { 28e0: 21 e0 ldi r18, 0x01 ; 1 28e2: 80 e0 ldi r24, 0x00 ; 0 28e4: 90 e0 ldi r25, 0x00 ; 0 for(uint8_t addr = 0; addr < 4; addr++) { EEAR = addr; 28e6: 92 bd out 0x22, r25 ; 34 28e8: 81 bd out 0x21, r24 ; 33 EECR |= (1 << EERE); 28ea: f8 9a sbi 0x1f, 0 ; 31 switch(addr) 28ec: 82 30 cpi r24, 0x02 ; 2 28ee: 81 f0 breq .+32 ; 0x2910 28f0: 83 30 cpi r24, 0x03 ; 3 28f2: c1 f0 breq .+48 ; 0x2924 { case 0: heater[CH0].preset = EEDR; break; case 1: heater[CH1].preset = EEDR; 28f4: 30 b5 in r19, 0x20 ; 32 { for(uint8_t addr = 0; addr < 4; addr++) { EEAR = addr; EECR |= (1 << EERE); switch(addr) 28f6: 81 30 cpi r24, 0x01 ; 1 28f8: 91 f0 breq .+36 ; 0x291e { case 0: heater[CH0].preset = EEDR; 28fa: 30 93 22 03 sts 0x0322, r19 ; 0x800322 extern opamp_str opamp[2]; extern preset_str preset[2]; void LoadPrefs() { for(uint8_t addr = 0; addr < 4; addr++) 28fe: 24 30 cpi r18, 0x04 ; 4 2900: c1 f0 breq .+48 ; 0x2932 2902: 01 96 adiw r24, 0x01 ; 1 2904: 2f 5f subi r18, 0xFF ; 255 { EEAR = addr; 2906: 92 bd out 0x22, r25 ; 34 2908: 81 bd out 0x21, r24 ; 33 EECR |= (1 << EERE); 290a: f8 9a sbi 0x1f, 0 ; 31 switch(addr) 290c: 82 30 cpi r24, 0x02 ; 2 290e: 81 f7 brne .-32 ; 0x28f0 break; case 1: heater[CH1].preset = EEDR; break; case 2: heater[CH0].tset = EEDR; 2910: 40 b5 in r20, 0x20 ; 32 2912: 50 e0 ldi r21, 0x00 ; 0 2914: 50 93 2b 03 sts 0x032B, r21 ; 0x80032b 2918: 40 93 2a 03 sts 0x032A, r20 ; 0x80032a break; 291c: f2 cf rjmp .-28 ; 0x2902 { case 0: heater[CH0].preset = EEDR; break; case 1: heater[CH1].preset = EEDR; 291e: 30 93 35 03 sts 0x0335, r19 ; 0x800335 break; 2922: ef cf rjmp .-34 ; 0x2902 case 2: heater[CH0].tset = EEDR; break; case 3: heater[CH1].tset = EEDR; 2924: 80 b5 in r24, 0x20 ; 32 2926: 90 e0 ldi r25, 0x00 ; 0 2928: 90 93 3e 03 sts 0x033E, r25 ; 0x80033e 292c: 80 93 3d 03 sts 0x033D, r24 ; 0x80033d 2930: 08 95 ret 2932: 08 95 ret 00002934 : } } void SavePrefs() { cli(); 2934: f8 94 cli 2936: 80 e0 ldi r24, 0x00 ; 0 2938: 90 e0 ldi r25, 0x00 ; 0 for(uint8_t addr = 0; addr < 4; addr++) { EEAR = addr; 293a: 92 bd out 0x22, r25 ; 34 293c: 81 bd out 0x21, r24 ; 33 switch(addr) 293e: 82 30 cpi r24, 0x02 ; 2 2940: c9 f0 breq .+50 ; 0x2974 2942: 83 30 cpi r24, 0x03 ; 3 2944: 99 f0 breq .+38 ; 0x296c 2946: 81 30 cpi r24, 0x01 ; 1 2948: 69 f0 breq .+26 ; 0x2964 { case 0: EEDR = heater[CH0].preset; 294a: 20 91 22 03 lds r18, 0x0322 ; 0x800322 294e: 20 bd out 0x20, r18 ; 32 case 3: EEDR = heater[CH1].tset; break; } EECR |= (1 << EEMPE); 2950: fa 9a sbi 0x1f, 2 ; 31 EECR |= (1 << EEPE); 2952: f9 9a sbi 0x1f, 1 ; 31 while(EECR & (1 << EEPE)); 2954: f9 99 sbic 0x1f, 1 ; 31 2956: fe cf rjmp .-4 ; 0x2954 2958: 01 96 adiw r24, 0x01 ; 1 } void SavePrefs() { cli(); for(uint8_t addr = 0; addr < 4; addr++) 295a: 84 30 cpi r24, 0x04 ; 4 295c: 91 05 cpc r25, r1 295e: 69 f7 brne .-38 ; 0x293a EECR |= (1 << EEMPE); EECR |= (1 << EEPE); while(EECR & (1 << EEPE)); } sei(); 2960: 78 94 sei 2962: 08 95 ret { case 0: EEDR = heater[CH0].preset; break; case 1: EEDR = heater[CH1].preset; 2964: 20 91 35 03 lds r18, 0x0335 ; 0x800335 2968: 20 bd out 0x20, r18 ; 32 break; 296a: f2 cf rjmp .-28 ; 0x2950 case 2: EEDR = heater[CH0].tset; break; case 3: EEDR = heater[CH1].tset; 296c: 20 91 3d 03 lds r18, 0x033D ; 0x80033d 2970: 20 bd out 0x20, r18 ; 32 break; 2972: ee cf rjmp .-36 ; 0x2950 break; case 1: EEDR = heater[CH1].preset; break; case 2: EEDR = heater[CH0].tset; 2974: 20 91 2a 03 lds r18, 0x032A ; 0x80032a 2978: 20 bd out 0x20, r18 ; 32 break; 297a: ea cf rjmp .-44 ; 0x2950 0000297c : } sei(); } void LoadPreset(uint8_t ch) { 297c: 0f 93 push r16 297e: 1f 93 push r17 2980: cf 93 push r28 2982: df 93 push r29 2984: c8 2f mov r28, r24 2986: 20 e5 ldi r18, 0x50 ; 80 2988: 82 9f mul r24, r18 298a: f0 01 movw r30, r0 298c: 11 24 eor r1, r1 298e: ea 5b subi r30, 0xBA ; 186 2990: fc 4f sbci r31, 0xFC ; 252 2992: 80 e0 ldi r24, 0x00 ; 0 2994: 90 e0 ldi r25, 0x00 ; 0 uint8_t offset; for(offset = 0; offset < sizeof(preset_str); offset++) { EEAR = 0x30 + (heater[ch].preset * sizeof(preset_str)) + offset; 2996: 4c 2f mov r20, r28 2998: 50 e0 ldi r21, 0x00 ; 0 299a: 63 e1 ldi r22, 0x13 ; 19 299c: c6 9f mul r28, r22 299e: d0 01 movw r26, r0 29a0: 11 24 eor r1, r1 29a2: ae 5d subi r26, 0xDE ; 222 29a4: bc 4f sbci r27, 0xFC ; 252 29a6: 2c 91 ld r18, X 29a8: bc 01 movw r22, r24 29aa: d0 e5 ldi r29, 0x50 ; 80 29ac: 2d 9f mul r18, r29 29ae: 60 0d add r22, r0 29b0: 71 1d adc r23, r1 29b2: 11 24 eor r1, r1 29b4: 9b 01 movw r18, r22 29b6: 20 5d subi r18, 0xD0 ; 208 29b8: 3f 4f sbci r19, 0xFF ; 255 29ba: 32 bd out 0x22, r19 ; 34 29bc: 21 bd out 0x21, r18 ; 33 EECR |= (1 << EERE); 29be: f8 9a sbi 0x1f, 0 ; 31 ((uint8_t*)&preset[ch])[offset] = EEDR; 29c0: 20 b5 in r18, 0x20 ; 32 29c2: 21 93 st Z+, r18 29c4: 01 96 adiw r24, 0x01 ; 1 } void LoadPreset(uint8_t ch) { uint8_t offset; for(offset = 0; offset < sizeof(preset_str); offset++) 29c6: 80 35 cpi r24, 0x50 ; 80 29c8: 91 05 cpc r25, r1 29ca: 69 f7 brne .-38 ; 0x29a6 EEAR = 0x30 + (heater[ch].preset * sizeof(preset_str)) + offset; EECR |= (1 << EERE); ((uint8_t*)&preset[ch])[offset] = EEDR; } SetGainData(ch, preset[ch].gain); 29cc: 80 e5 ldi r24, 0x50 ; 80 29ce: 84 9f mul r24, r20 29d0: 80 01 movw r16, r0 29d2: 85 9f mul r24, r21 29d4: 10 0d add r17, r0 29d6: 11 24 eor r1, r1 29d8: 0a 5b subi r16, 0xBA ; 186 29da: 1c 4f sbci r17, 0xFC ; 252 29dc: f8 01 movw r30, r16 29de: 65 85 ldd r22, Z+13 ; 0x0d 29e0: 8c 2f mov r24, r28 29e2: f1 de rcall .-542 ; 0x27c6 SetShiftData(ch, preset[ch].shift); 29e4: f8 01 movw r30, r16 29e6: 66 85 ldd r22, Z+14 ; 0x0e 29e8: 8c 2f mov r24, r28 29ea: 1c df rcall .-456 ; 0x2824 SetDriveData(ch, preset[ch].drive); 29ec: f8 01 movw r30, r16 29ee: 67 85 ldd r22, Z+15 ; 0x0f 29f0: 8c 2f mov r24, r28 29f2: 46 df rcall .-372 ; 0x2880 SwitchDrive(ch, OFF); 29f4: 60 e0 ldi r22, 0x00 ; 0 29f6: 8c 2f mov r24, r28 } 29f8: df 91 pop r29 29fa: cf 91 pop r28 29fc: 1f 91 pop r17 } SetGainData(ch, preset[ch].gain); SetShiftData(ch, preset[ch].shift); SetDriveData(ch, preset[ch].drive); SwitchDrive(ch, OFF); 29fe: 0f 91 pop r16 2a00: 5e cf rjmp .-324 ; 0x28be 00002a02 : } void SavePreset(uint8_t ch) { 2a02: cf 92 push r12 2a04: df 92 push r13 2a06: ef 92 push r14 2a08: ff 92 push r15 2a0a: 0f 93 push r16 2a0c: 1f 93 push r17 2a0e: cf 93 push r28 2a10: df 93 push r29 2a12: 08 2f mov r16, r24 uint8_t offset; static FILE lcd_stdout = FDEV_SETUP_STREAM(lcd_putchar, NULL, _FDEV_SETUP_WRITE); cli(); 2a14: f8 94 cli LCD_SendCmd(LCD_CLR); 2a16: 81 e0 ldi r24, 0x01 ; 1 2a18: 94 dd rcall .-1240 ; 0x2542 LCD_SetPos(0, 0); 2a1a: 60 e0 ldi r22, 0x00 ; 0 2a1c: 80 e0 ldi r24, 0x00 ; 0 2a1e: b6 dd rcall .-1172 ; 0x258c fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ..."); 2a20: 24 e2 ldi r18, 0x24 ; 36 2a22: 31 e0 ldi r19, 0x01 ; 1 2a24: 4d e0 ldi r20, 0x0D ; 13 2a26: 50 e0 ldi r21, 0x00 ; 0 2a28: 61 e0 ldi r22, 0x01 ; 1 2a2a: 70 e0 ldi r23, 0x00 ; 0 2a2c: 83 ee ldi r24, 0xE3 ; 227 2a2e: 92 e0 ldi r25, 0x02 ; 2 2a30: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 LCD_SetPos(0, 1); 2a34: 61 e0 ldi r22, 0x01 ; 1 2a36: 80 e0 ldi r24, 0x00 ; 0 2a38: a9 dd rcall .-1198 ; 0x258c 2a3a: 20 e5 ldi r18, 0x50 ; 80 2a3c: 02 9f mul r16, r18 2a3e: 80 01 movw r16, r0 2a40: 11 24 eor r1, r1 2a42: 0a 5b subi r16, 0xBA ; 186 2a44: 1c 4f sbci r17, 0xFC ; 252 2a46: c0 e0 ldi r28, 0x00 ; 0 2a48: d0 e0 ldi r29, 0x00 ; 0 for(offset = 0; offset < sizeof(preset_str); offset++) { EEAR = 0x30 + (preset[ch].number * sizeof(preset_str)) + offset; 2a4a: 68 01 movw r12, r16 EEDR = ((uint8_t*)&preset[ch])[offset]; EECR |= (1 << EEMPE); EECR |= (1 << EEPE); while(EECR & (1 << EEPE)); if((offset + 1) % 5 == 0) 2a4c: 85 e0 ldi r24, 0x05 ; 5 2a4e: e8 2e mov r14, r24 2a50: f1 2c mov r15, r1 LCD_SetPos(0, 0); fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ..."); LCD_SetPos(0, 1); for(offset = 0; offset < sizeof(preset_str); offset++) { EEAR = 0x30 + (preset[ch].number * sizeof(preset_str)) + offset; 2a52: f6 01 movw r30, r12 2a54: 80 81 ld r24, Z 2a56: 9e 01 movw r18, r28 2a58: 40 e5 ldi r20, 0x50 ; 80 2a5a: 84 9f mul r24, r20 2a5c: 20 0d add r18, r0 2a5e: 31 1d adc r19, r1 2a60: 11 24 eor r1, r1 2a62: c9 01 movw r24, r18 2a64: c0 96 adiw r24, 0x30 ; 48 2a66: 92 bd out 0x22, r25 ; 34 2a68: 81 bd out 0x21, r24 ; 33 EEDR = ((uint8_t*)&preset[ch])[offset]; 2a6a: f8 01 movw r30, r16 2a6c: 81 91 ld r24, Z+ 2a6e: 8f 01 movw r16, r30 2a70: 21 96 adiw r28, 0x01 ; 1 2a72: 80 bd out 0x20, r24 ; 32 EECR |= (1 << EEMPE); 2a74: fa 9a sbi 0x1f, 2 ; 31 EECR |= (1 << EEPE); 2a76: f9 9a sbi 0x1f, 1 ; 31 while(EECR & (1 << EEPE)); 2a78: f9 99 sbic 0x1f, 1 ; 31 if((offset + 1) % 5 == 0) 2a7a: fe cf rjmp .-4 ; 0x2a78 2a7c: ce 01 movw r24, r28 2a7e: b7 01 movw r22, r14 2a80: 8b d5 rcall .+2838 ; 0x3598 <__divmodhi4> 2a82: 89 2b or r24, r25 2a84: 69 f0 breq .+26 ; 0x2aa0 cli(); LCD_SendCmd(LCD_CLR); LCD_SetPos(0, 0); fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ..."); LCD_SetPos(0, 1); for(offset = 0; offset < sizeof(preset_str); offset++) 2a86: c0 35 cpi r28, 0x50 ; 80 2a88: d1 05 cpc r29, r1 2a8a: 19 f7 brne .-58 ; 0x2a52 EECR |= (1 << EEPE); while(EECR & (1 << EEPE)); if((offset + 1) % 5 == 0) LCD_SendData(0xFF); } sei(); 2a8c: 78 94 sei } 2a8e: df 91 pop r29 2a90: cf 91 pop r28 2a92: 1f 91 pop r17 2a94: 0f 91 pop r16 2a96: ff 90 pop r15 2a98: ef 90 pop r14 2a9a: df 90 pop r13 2a9c: cf 90 pop r12 EEDR = ((uint8_t*)&preset[ch])[offset]; EECR |= (1 << EEMPE); EECR |= (1 << EEPE); while(EECR & (1 << EEPE)); if((offset + 1) % 5 == 0) LCD_SendData(0xFF); 2a9e: 08 95 ret 2aa0: 8f ef ldi r24, 0xFF ; 255 2aa2: 34 dd rcall .-1432 ; 0x250c 2aa4: f0 cf rjmp .-32 ; 0x2a86 00002aa6 <__subsf3>: 2aa6: 50 58 subi r21, 0x80 ; 128 00002aa8 <__addsf3>: 2aa8: bb 27 eor r27, r27 2aaa: aa 27 eor r26, r26 2aac: 0e d0 rcall .+28 ; 0x2aca <__addsf3x> 2aae: 75 c1 rjmp .+746 ; 0x2d9a <__fp_round> 2ab0: 66 d1 rcall .+716 ; 0x2d7e <__fp_pscA> 2ab2: 30 f0 brcs .+12 ; 0x2ac0 <__addsf3+0x18> 2ab4: 6b d1 rcall .+726 ; 0x2d8c <__fp_pscB> 2ab6: 20 f0 brcs .+8 ; 0x2ac0 <__addsf3+0x18> 2ab8: 31 f4 brne .+12 ; 0x2ac6 <__addsf3+0x1e> 2aba: 9f 3f cpi r25, 0xFF ; 255 2abc: 11 f4 brne .+4 ; 0x2ac2 <__addsf3+0x1a> 2abe: 1e f4 brtc .+6 ; 0x2ac6 <__addsf3+0x1e> 2ac0: 5b c1 rjmp .+694 ; 0x2d78 <__fp_nan> 2ac2: 0e f4 brtc .+2 ; 0x2ac6 <__addsf3+0x1e> 2ac4: e0 95 com r30 2ac6: e7 fb bst r30, 7 2ac8: 51 c1 rjmp .+674 ; 0x2d6c <__fp_inf> 00002aca <__addsf3x>: 2aca: e9 2f mov r30, r25 2acc: 77 d1 rcall .+750 ; 0x2dbc <__fp_split3> 2ace: 80 f3 brcs .-32 ; 0x2ab0 <__addsf3+0x8> 2ad0: ba 17 cp r27, r26 2ad2: 62 07 cpc r22, r18 2ad4: 73 07 cpc r23, r19 2ad6: 84 07 cpc r24, r20 2ad8: 95 07 cpc r25, r21 2ada: 18 f0 brcs .+6 ; 0x2ae2 <__addsf3x+0x18> 2adc: 71 f4 brne .+28 ; 0x2afa <__addsf3x+0x30> 2ade: 9e f5 brtc .+102 ; 0x2b46 <__addsf3x+0x7c> 2ae0: 8f c1 rjmp .+798 ; 0x2e00 <__fp_zero> 2ae2: 0e f4 brtc .+2 ; 0x2ae6 <__addsf3x+0x1c> 2ae4: e0 95 com r30 2ae6: 0b 2e mov r0, r27 2ae8: ba 2f mov r27, r26 2aea: a0 2d mov r26, r0 2aec: 0b 01 movw r0, r22 2aee: b9 01 movw r22, r18 2af0: 90 01 movw r18, r0 2af2: 0c 01 movw r0, r24 2af4: ca 01 movw r24, r20 2af6: a0 01 movw r20, r0 2af8: 11 24 eor r1, r1 2afa: ff 27 eor r31, r31 2afc: 59 1b sub r21, r25 2afe: 99 f0 breq .+38 ; 0x2b26 <__addsf3x+0x5c> 2b00: 59 3f cpi r21, 0xF9 ; 249 2b02: 50 f4 brcc .+20 ; 0x2b18 <__addsf3x+0x4e> 2b04: 50 3e cpi r21, 0xE0 ; 224 2b06: 68 f1 brcs .+90 ; 0x2b62 <__addsf3x+0x98> 2b08: 1a 16 cp r1, r26 2b0a: f0 40 sbci r31, 0x00 ; 0 2b0c: a2 2f mov r26, r18 2b0e: 23 2f mov r18, r19 2b10: 34 2f mov r19, r20 2b12: 44 27 eor r20, r20 2b14: 58 5f subi r21, 0xF8 ; 248 2b16: f3 cf rjmp .-26 ; 0x2afe <__addsf3x+0x34> 2b18: 46 95 lsr r20 2b1a: 37 95 ror r19 2b1c: 27 95 ror r18 2b1e: a7 95 ror r26 2b20: f0 40 sbci r31, 0x00 ; 0 2b22: 53 95 inc r21 2b24: c9 f7 brne .-14 ; 0x2b18 <__addsf3x+0x4e> 2b26: 7e f4 brtc .+30 ; 0x2b46 <__addsf3x+0x7c> 2b28: 1f 16 cp r1, r31 2b2a: ba 0b sbc r27, r26 2b2c: 62 0b sbc r22, r18 2b2e: 73 0b sbc r23, r19 2b30: 84 0b sbc r24, r20 2b32: ba f0 brmi .+46 ; 0x2b62 <__addsf3x+0x98> 2b34: 91 50 subi r25, 0x01 ; 1 2b36: a1 f0 breq .+40 ; 0x2b60 <__addsf3x+0x96> 2b38: ff 0f add r31, r31 2b3a: bb 1f adc r27, r27 2b3c: 66 1f adc r22, r22 2b3e: 77 1f adc r23, r23 2b40: 88 1f adc r24, r24 2b42: c2 f7 brpl .-16 ; 0x2b34 <__addsf3x+0x6a> 2b44: 0e c0 rjmp .+28 ; 0x2b62 <__addsf3x+0x98> 2b46: ba 0f add r27, r26 2b48: 62 1f adc r22, r18 2b4a: 73 1f adc r23, r19 2b4c: 84 1f adc r24, r20 2b4e: 48 f4 brcc .+18 ; 0x2b62 <__addsf3x+0x98> 2b50: 87 95 ror r24 2b52: 77 95 ror r23 2b54: 67 95 ror r22 2b56: b7 95 ror r27 2b58: f7 95 ror r31 2b5a: 9e 3f cpi r25, 0xFE ; 254 2b5c: 08 f0 brcs .+2 ; 0x2b60 <__addsf3x+0x96> 2b5e: b3 cf rjmp .-154 ; 0x2ac6 <__addsf3+0x1e> 2b60: 93 95 inc r25 2b62: 88 0f add r24, r24 2b64: 08 f0 brcs .+2 ; 0x2b68 <__addsf3x+0x9e> 2b66: 99 27 eor r25, r25 2b68: ee 0f add r30, r30 2b6a: 97 95 ror r25 2b6c: 87 95 ror r24 2b6e: 08 95 ret 00002b70 <__cmpsf2>: 2b70: d9 d0 rcall .+434 ; 0x2d24 <__fp_cmp> 2b72: 08 f4 brcc .+2 ; 0x2b76 <__cmpsf2+0x6> 2b74: 81 e0 ldi r24, 0x01 ; 1 2b76: 08 95 ret 00002b78 <__divsf3>: 2b78: 0c d0 rcall .+24 ; 0x2b92 <__divsf3x> 2b7a: 0f c1 rjmp .+542 ; 0x2d9a <__fp_round> 2b7c: 07 d1 rcall .+526 ; 0x2d8c <__fp_pscB> 2b7e: 40 f0 brcs .+16 ; 0x2b90 <__divsf3+0x18> 2b80: fe d0 rcall .+508 ; 0x2d7e <__fp_pscA> 2b82: 30 f0 brcs .+12 ; 0x2b90 <__divsf3+0x18> 2b84: 21 f4 brne .+8 ; 0x2b8e <__divsf3+0x16> 2b86: 5f 3f cpi r21, 0xFF ; 255 2b88: 19 f0 breq .+6 ; 0x2b90 <__divsf3+0x18> 2b8a: f0 c0 rjmp .+480 ; 0x2d6c <__fp_inf> 2b8c: 51 11 cpse r21, r1 2b8e: 39 c1 rjmp .+626 ; 0x2e02 <__fp_szero> 2b90: f3 c0 rjmp .+486 ; 0x2d78 <__fp_nan> 00002b92 <__divsf3x>: 2b92: 14 d1 rcall .+552 ; 0x2dbc <__fp_split3> 2b94: 98 f3 brcs .-26 ; 0x2b7c <__divsf3+0x4> 00002b96 <__divsf3_pse>: 2b96: 99 23 and r25, r25 2b98: c9 f3 breq .-14 ; 0x2b8c <__divsf3+0x14> 2b9a: 55 23 and r21, r21 2b9c: b1 f3 breq .-20 ; 0x2b8a <__divsf3+0x12> 2b9e: 95 1b sub r25, r21 2ba0: 55 0b sbc r21, r21 2ba2: bb 27 eor r27, r27 2ba4: aa 27 eor r26, r26 2ba6: 62 17 cp r22, r18 2ba8: 73 07 cpc r23, r19 2baa: 84 07 cpc r24, r20 2bac: 38 f0 brcs .+14 ; 0x2bbc <__divsf3_pse+0x26> 2bae: 9f 5f subi r25, 0xFF ; 255 2bb0: 5f 4f sbci r21, 0xFF ; 255 2bb2: 22 0f add r18, r18 2bb4: 33 1f adc r19, r19 2bb6: 44 1f adc r20, r20 2bb8: aa 1f adc r26, r26 2bba: a9 f3 breq .-22 ; 0x2ba6 <__divsf3_pse+0x10> 2bbc: 33 d0 rcall .+102 ; 0x2c24 <__divsf3_pse+0x8e> 2bbe: 0e 2e mov r0, r30 2bc0: 3a f0 brmi .+14 ; 0x2bd0 <__divsf3_pse+0x3a> 2bc2: e0 e8 ldi r30, 0x80 ; 128 2bc4: 30 d0 rcall .+96 ; 0x2c26 <__divsf3_pse+0x90> 2bc6: 91 50 subi r25, 0x01 ; 1 2bc8: 50 40 sbci r21, 0x00 ; 0 2bca: e6 95 lsr r30 2bcc: 00 1c adc r0, r0 2bce: ca f7 brpl .-14 ; 0x2bc2 <__divsf3_pse+0x2c> 2bd0: 29 d0 rcall .+82 ; 0x2c24 <__divsf3_pse+0x8e> 2bd2: fe 2f mov r31, r30 2bd4: 27 d0 rcall .+78 ; 0x2c24 <__divsf3_pse+0x8e> 2bd6: 66 0f add r22, r22 2bd8: 77 1f adc r23, r23 2bda: 88 1f adc r24, r24 2bdc: bb 1f adc r27, r27 2bde: 26 17 cp r18, r22 2be0: 37 07 cpc r19, r23 2be2: 48 07 cpc r20, r24 2be4: ab 07 cpc r26, r27 2be6: b0 e8 ldi r27, 0x80 ; 128 2be8: 09 f0 breq .+2 ; 0x2bec <__divsf3_pse+0x56> 2bea: bb 0b sbc r27, r27 2bec: 80 2d mov r24, r0 2bee: bf 01 movw r22, r30 2bf0: ff 27 eor r31, r31 2bf2: 93 58 subi r25, 0x83 ; 131 2bf4: 5f 4f sbci r21, 0xFF ; 255 2bf6: 2a f0 brmi .+10 ; 0x2c02 <__divsf3_pse+0x6c> 2bf8: 9e 3f cpi r25, 0xFE ; 254 2bfa: 51 05 cpc r21, r1 2bfc: 68 f0 brcs .+26 ; 0x2c18 <__divsf3_pse+0x82> 2bfe: b6 c0 rjmp .+364 ; 0x2d6c <__fp_inf> 2c00: 00 c1 rjmp .+512 ; 0x2e02 <__fp_szero> 2c02: 5f 3f cpi r21, 0xFF ; 255 2c04: ec f3 brlt .-6 ; 0x2c00 <__divsf3_pse+0x6a> 2c06: 98 3e cpi r25, 0xE8 ; 232 2c08: dc f3 brlt .-10 ; 0x2c00 <__divsf3_pse+0x6a> 2c0a: 86 95 lsr r24 2c0c: 77 95 ror r23 2c0e: 67 95 ror r22 2c10: b7 95 ror r27 2c12: f7 95 ror r31 2c14: 9f 5f subi r25, 0xFF ; 255 2c16: c9 f7 brne .-14 ; 0x2c0a <__divsf3_pse+0x74> 2c18: 88 0f add r24, r24 2c1a: 91 1d adc r25, r1 2c1c: 96 95 lsr r25 2c1e: 87 95 ror r24 2c20: 97 f9 bld r25, 7 2c22: 08 95 ret 2c24: e1 e0 ldi r30, 0x01 ; 1 2c26: 66 0f add r22, r22 2c28: 77 1f adc r23, r23 2c2a: 88 1f adc r24, r24 2c2c: bb 1f adc r27, r27 2c2e: 62 17 cp r22, r18 2c30: 73 07 cpc r23, r19 2c32: 84 07 cpc r24, r20 2c34: ba 07 cpc r27, r26 2c36: 20 f0 brcs .+8 ; 0x2c40 <__divsf3_pse+0xaa> 2c38: 62 1b sub r22, r18 2c3a: 73 0b sbc r23, r19 2c3c: 84 0b sbc r24, r20 2c3e: ba 0b sbc r27, r26 2c40: ee 1f adc r30, r30 2c42: 88 f7 brcc .-30 ; 0x2c26 <__divsf3_pse+0x90> 2c44: e0 95 com r30 2c46: 08 95 ret 00002c48 <__fixsfsi>: 2c48: 04 d0 rcall .+8 ; 0x2c52 <__fixunssfsi> 2c4a: 68 94 set 2c4c: b1 11 cpse r27, r1 2c4e: d9 c0 rjmp .+434 ; 0x2e02 <__fp_szero> 2c50: 08 95 ret 00002c52 <__fixunssfsi>: 2c52: bc d0 rcall .+376 ; 0x2dcc <__fp_splitA> 2c54: 88 f0 brcs .+34 ; 0x2c78 <__fixunssfsi+0x26> 2c56: 9f 57 subi r25, 0x7F ; 127 2c58: 90 f0 brcs .+36 ; 0x2c7e <__fixunssfsi+0x2c> 2c5a: b9 2f mov r27, r25 2c5c: 99 27 eor r25, r25 2c5e: b7 51 subi r27, 0x17 ; 23 2c60: a0 f0 brcs .+40 ; 0x2c8a <__fixunssfsi+0x38> 2c62: d1 f0 breq .+52 ; 0x2c98 <__fixunssfsi+0x46> 2c64: 66 0f add r22, r22 2c66: 77 1f adc r23, r23 2c68: 88 1f adc r24, r24 2c6a: 99 1f adc r25, r25 2c6c: 1a f0 brmi .+6 ; 0x2c74 <__fixunssfsi+0x22> 2c6e: ba 95 dec r27 2c70: c9 f7 brne .-14 ; 0x2c64 <__fixunssfsi+0x12> 2c72: 12 c0 rjmp .+36 ; 0x2c98 <__fixunssfsi+0x46> 2c74: b1 30 cpi r27, 0x01 ; 1 2c76: 81 f0 breq .+32 ; 0x2c98 <__fixunssfsi+0x46> 2c78: c3 d0 rcall .+390 ; 0x2e00 <__fp_zero> 2c7a: b1 e0 ldi r27, 0x01 ; 1 2c7c: 08 95 ret 2c7e: c0 c0 rjmp .+384 ; 0x2e00 <__fp_zero> 2c80: 67 2f mov r22, r23 2c82: 78 2f mov r23, r24 2c84: 88 27 eor r24, r24 2c86: b8 5f subi r27, 0xF8 ; 248 2c88: 39 f0 breq .+14 ; 0x2c98 <__fixunssfsi+0x46> 2c8a: b9 3f cpi r27, 0xF9 ; 249 2c8c: cc f3 brlt .-14 ; 0x2c80 <__fixunssfsi+0x2e> 2c8e: 86 95 lsr r24 2c90: 77 95 ror r23 2c92: 67 95 ror r22 2c94: b3 95 inc r27 2c96: d9 f7 brne .-10 ; 0x2c8e <__fixunssfsi+0x3c> 2c98: 3e f4 brtc .+14 ; 0x2ca8 <__fixunssfsi+0x56> 2c9a: 90 95 com r25 2c9c: 80 95 com r24 2c9e: 70 95 com r23 2ca0: 61 95 neg r22 2ca2: 7f 4f sbci r23, 0xFF ; 255 2ca4: 8f 4f sbci r24, 0xFF ; 255 2ca6: 9f 4f sbci r25, 0xFF ; 255 2ca8: 08 95 ret 00002caa <__floatunsisf>: 2caa: e8 94 clt 2cac: 09 c0 rjmp .+18 ; 0x2cc0 <__floatsisf+0x12> 00002cae <__floatsisf>: 2cae: 97 fb bst r25, 7 2cb0: 3e f4 brtc .+14 ; 0x2cc0 <__floatsisf+0x12> 2cb2: 90 95 com r25 2cb4: 80 95 com r24 2cb6: 70 95 com r23 2cb8: 61 95 neg r22 2cba: 7f 4f sbci r23, 0xFF ; 255 2cbc: 8f 4f sbci r24, 0xFF ; 255 2cbe: 9f 4f sbci r25, 0xFF ; 255 2cc0: 99 23 and r25, r25 2cc2: a9 f0 breq .+42 ; 0x2cee <__floatsisf+0x40> 2cc4: f9 2f mov r31, r25 2cc6: 96 e9 ldi r25, 0x96 ; 150 2cc8: bb 27 eor r27, r27 2cca: 93 95 inc r25 2ccc: f6 95 lsr r31 2cce: 87 95 ror r24 2cd0: 77 95 ror r23 2cd2: 67 95 ror r22 2cd4: b7 95 ror r27 2cd6: f1 11 cpse r31, r1 2cd8: f8 cf rjmp .-16 ; 0x2cca <__floatsisf+0x1c> 2cda: fa f4 brpl .+62 ; 0x2d1a <__floatsisf+0x6c> 2cdc: bb 0f add r27, r27 2cde: 11 f4 brne .+4 ; 0x2ce4 <__floatsisf+0x36> 2ce0: 60 ff sbrs r22, 0 2ce2: 1b c0 rjmp .+54 ; 0x2d1a <__floatsisf+0x6c> 2ce4: 6f 5f subi r22, 0xFF ; 255 2ce6: 7f 4f sbci r23, 0xFF ; 255 2ce8: 8f 4f sbci r24, 0xFF ; 255 2cea: 9f 4f sbci r25, 0xFF ; 255 2cec: 16 c0 rjmp .+44 ; 0x2d1a <__floatsisf+0x6c> 2cee: 88 23 and r24, r24 2cf0: 11 f0 breq .+4 ; 0x2cf6 <__floatsisf+0x48> 2cf2: 96 e9 ldi r25, 0x96 ; 150 2cf4: 11 c0 rjmp .+34 ; 0x2d18 <__floatsisf+0x6a> 2cf6: 77 23 and r23, r23 2cf8: 21 f0 breq .+8 ; 0x2d02 <__floatsisf+0x54> 2cfa: 9e e8 ldi r25, 0x8E ; 142 2cfc: 87 2f mov r24, r23 2cfe: 76 2f mov r23, r22 2d00: 05 c0 rjmp .+10 ; 0x2d0c <__floatsisf+0x5e> 2d02: 66 23 and r22, r22 2d04: 71 f0 breq .+28 ; 0x2d22 <__floatsisf+0x74> 2d06: 96 e8 ldi r25, 0x86 ; 134 2d08: 86 2f mov r24, r22 2d0a: 70 e0 ldi r23, 0x00 ; 0 2d0c: 60 e0 ldi r22, 0x00 ; 0 2d0e: 2a f0 brmi .+10 ; 0x2d1a <__floatsisf+0x6c> 2d10: 9a 95 dec r25 2d12: 66 0f add r22, r22 2d14: 77 1f adc r23, r23 2d16: 88 1f adc r24, r24 2d18: da f7 brpl .-10 ; 0x2d10 <__floatsisf+0x62> 2d1a: 88 0f add r24, r24 2d1c: 96 95 lsr r25 2d1e: 87 95 ror r24 2d20: 97 f9 bld r25, 7 2d22: 08 95 ret 00002d24 <__fp_cmp>: 2d24: 99 0f add r25, r25 2d26: 00 08 sbc r0, r0 2d28: 55 0f add r21, r21 2d2a: aa 0b sbc r26, r26 2d2c: e0 e8 ldi r30, 0x80 ; 128 2d2e: fe ef ldi r31, 0xFE ; 254 2d30: 16 16 cp r1, r22 2d32: 17 06 cpc r1, r23 2d34: e8 07 cpc r30, r24 2d36: f9 07 cpc r31, r25 2d38: c0 f0 brcs .+48 ; 0x2d6a <__fp_cmp+0x46> 2d3a: 12 16 cp r1, r18 2d3c: 13 06 cpc r1, r19 2d3e: e4 07 cpc r30, r20 2d40: f5 07 cpc r31, r21 2d42: 98 f0 brcs .+38 ; 0x2d6a <__fp_cmp+0x46> 2d44: 62 1b sub r22, r18 2d46: 73 0b sbc r23, r19 2d48: 84 0b sbc r24, r20 2d4a: 95 0b sbc r25, r21 2d4c: 39 f4 brne .+14 ; 0x2d5c <__fp_cmp+0x38> 2d4e: 0a 26 eor r0, r26 2d50: 61 f0 breq .+24 ; 0x2d6a <__fp_cmp+0x46> 2d52: 23 2b or r18, r19 2d54: 24 2b or r18, r20 2d56: 25 2b or r18, r21 2d58: 21 f4 brne .+8 ; 0x2d62 <__fp_cmp+0x3e> 2d5a: 08 95 ret 2d5c: 0a 26 eor r0, r26 2d5e: 09 f4 brne .+2 ; 0x2d62 <__fp_cmp+0x3e> 2d60: a1 40 sbci r26, 0x01 ; 1 2d62: a6 95 lsr r26 2d64: 8f ef ldi r24, 0xFF ; 255 2d66: 81 1d adc r24, r1 2d68: 81 1d adc r24, r1 2d6a: 08 95 ret 00002d6c <__fp_inf>: 2d6c: 97 f9 bld r25, 7 2d6e: 9f 67 ori r25, 0x7F ; 127 2d70: 80 e8 ldi r24, 0x80 ; 128 2d72: 70 e0 ldi r23, 0x00 ; 0 2d74: 60 e0 ldi r22, 0x00 ; 0 2d76: 08 95 ret 00002d78 <__fp_nan>: 2d78: 9f ef ldi r25, 0xFF ; 255 2d7a: 80 ec ldi r24, 0xC0 ; 192 2d7c: 08 95 ret 00002d7e <__fp_pscA>: 2d7e: 00 24 eor r0, r0 2d80: 0a 94 dec r0 2d82: 16 16 cp r1, r22 2d84: 17 06 cpc r1, r23 2d86: 18 06 cpc r1, r24 2d88: 09 06 cpc r0, r25 2d8a: 08 95 ret 00002d8c <__fp_pscB>: 2d8c: 00 24 eor r0, r0 2d8e: 0a 94 dec r0 2d90: 12 16 cp r1, r18 2d92: 13 06 cpc r1, r19 2d94: 14 06 cpc r1, r20 2d96: 05 06 cpc r0, r21 2d98: 08 95 ret 00002d9a <__fp_round>: 2d9a: 09 2e mov r0, r25 2d9c: 03 94 inc r0 2d9e: 00 0c add r0, r0 2da0: 11 f4 brne .+4 ; 0x2da6 <__fp_round+0xc> 2da2: 88 23 and r24, r24 2da4: 52 f0 brmi .+20 ; 0x2dba <__fp_round+0x20> 2da6: bb 0f add r27, r27 2da8: 40 f4 brcc .+16 ; 0x2dba <__fp_round+0x20> 2daa: bf 2b or r27, r31 2dac: 11 f4 brne .+4 ; 0x2db2 <__fp_round+0x18> 2dae: 60 ff sbrs r22, 0 2db0: 04 c0 rjmp .+8 ; 0x2dba <__fp_round+0x20> 2db2: 6f 5f subi r22, 0xFF ; 255 2db4: 7f 4f sbci r23, 0xFF ; 255 2db6: 8f 4f sbci r24, 0xFF ; 255 2db8: 9f 4f sbci r25, 0xFF ; 255 2dba: 08 95 ret 00002dbc <__fp_split3>: 2dbc: 57 fd sbrc r21, 7 2dbe: 90 58 subi r25, 0x80 ; 128 2dc0: 44 0f add r20, r20 2dc2: 55 1f adc r21, r21 2dc4: 59 f0 breq .+22 ; 0x2ddc <__fp_splitA+0x10> 2dc6: 5f 3f cpi r21, 0xFF ; 255 2dc8: 71 f0 breq .+28 ; 0x2de6 <__fp_splitA+0x1a> 2dca: 47 95 ror r20 00002dcc <__fp_splitA>: 2dcc: 88 0f add r24, r24 2dce: 97 fb bst r25, 7 2dd0: 99 1f adc r25, r25 2dd2: 61 f0 breq .+24 ; 0x2dec <__fp_splitA+0x20> 2dd4: 9f 3f cpi r25, 0xFF ; 255 2dd6: 79 f0 breq .+30 ; 0x2df6 <__fp_splitA+0x2a> 2dd8: 87 95 ror r24 2dda: 08 95 ret 2ddc: 12 16 cp r1, r18 2dde: 13 06 cpc r1, r19 2de0: 14 06 cpc r1, r20 2de2: 55 1f adc r21, r21 2de4: f2 cf rjmp .-28 ; 0x2dca <__fp_split3+0xe> 2de6: 46 95 lsr r20 2de8: f1 df rcall .-30 ; 0x2dcc <__fp_splitA> 2dea: 08 c0 rjmp .+16 ; 0x2dfc <__fp_splitA+0x30> 2dec: 16 16 cp r1, r22 2dee: 17 06 cpc r1, r23 2df0: 18 06 cpc r1, r24 2df2: 99 1f adc r25, r25 2df4: f1 cf rjmp .-30 ; 0x2dd8 <__fp_splitA+0xc> 2df6: 86 95 lsr r24 2df8: 71 05 cpc r23, r1 2dfa: 61 05 cpc r22, r1 2dfc: 08 94 sec 2dfe: 08 95 ret 00002e00 <__fp_zero>: 2e00: e8 94 clt 00002e02 <__fp_szero>: 2e02: bb 27 eor r27, r27 2e04: 66 27 eor r22, r22 2e06: 77 27 eor r23, r23 2e08: cb 01 movw r24, r22 2e0a: 97 f9 bld r25, 7 2e0c: 08 95 ret 00002e0e <__gesf2>: 2e0e: 8a df rcall .-236 ; 0x2d24 <__fp_cmp> 2e10: 08 f4 brcc .+2 ; 0x2e14 <__gesf2+0x6> 2e12: 8f ef ldi r24, 0xFF ; 255 2e14: 08 95 ret 00002e16 <__mulsf3>: 2e16: 0b d0 rcall .+22 ; 0x2e2e <__mulsf3x> 2e18: c0 cf rjmp .-128 ; 0x2d9a <__fp_round> 2e1a: b1 df rcall .-158 ; 0x2d7e <__fp_pscA> 2e1c: 28 f0 brcs .+10 ; 0x2e28 <__mulsf3+0x12> 2e1e: b6 df rcall .-148 ; 0x2d8c <__fp_pscB> 2e20: 18 f0 brcs .+6 ; 0x2e28 <__mulsf3+0x12> 2e22: 95 23 and r25, r21 2e24: 09 f0 breq .+2 ; 0x2e28 <__mulsf3+0x12> 2e26: a2 cf rjmp .-188 ; 0x2d6c <__fp_inf> 2e28: a7 cf rjmp .-178 ; 0x2d78 <__fp_nan> 2e2a: 11 24 eor r1, r1 2e2c: ea cf rjmp .-44 ; 0x2e02 <__fp_szero> 00002e2e <__mulsf3x>: 2e2e: c6 df rcall .-116 ; 0x2dbc <__fp_split3> 2e30: a0 f3 brcs .-24 ; 0x2e1a <__mulsf3+0x4> 00002e32 <__mulsf3_pse>: 2e32: 95 9f mul r25, r21 2e34: d1 f3 breq .-12 ; 0x2e2a <__mulsf3+0x14> 2e36: 95 0f add r25, r21 2e38: 50 e0 ldi r21, 0x00 ; 0 2e3a: 55 1f adc r21, r21 2e3c: 62 9f mul r22, r18 2e3e: f0 01 movw r30, r0 2e40: 72 9f mul r23, r18 2e42: bb 27 eor r27, r27 2e44: f0 0d add r31, r0 2e46: b1 1d adc r27, r1 2e48: 63 9f mul r22, r19 2e4a: aa 27 eor r26, r26 2e4c: f0 0d add r31, r0 2e4e: b1 1d adc r27, r1 2e50: aa 1f adc r26, r26 2e52: 64 9f mul r22, r20 2e54: 66 27 eor r22, r22 2e56: b0 0d add r27, r0 2e58: a1 1d adc r26, r1 2e5a: 66 1f adc r22, r22 2e5c: 82 9f mul r24, r18 2e5e: 22 27 eor r18, r18 2e60: b0 0d add r27, r0 2e62: a1 1d adc r26, r1 2e64: 62 1f adc r22, r18 2e66: 73 9f mul r23, r19 2e68: b0 0d add r27, r0 2e6a: a1 1d adc r26, r1 2e6c: 62 1f adc r22, r18 2e6e: 83 9f mul r24, r19 2e70: a0 0d add r26, r0 2e72: 61 1d adc r22, r1 2e74: 22 1f adc r18, r18 2e76: 74 9f mul r23, r20 2e78: 33 27 eor r19, r19 2e7a: a0 0d add r26, r0 2e7c: 61 1d adc r22, r1 2e7e: 23 1f adc r18, r19 2e80: 84 9f mul r24, r20 2e82: 60 0d add r22, r0 2e84: 21 1d adc r18, r1 2e86: 82 2f mov r24, r18 2e88: 76 2f mov r23, r22 2e8a: 6a 2f mov r22, r26 2e8c: 11 24 eor r1, r1 2e8e: 9f 57 subi r25, 0x7F ; 127 2e90: 50 40 sbci r21, 0x00 ; 0 2e92: 8a f0 brmi .+34 ; 0x2eb6 <__mulsf3_pse+0x84> 2e94: e1 f0 breq .+56 ; 0x2ece <__mulsf3_pse+0x9c> 2e96: 88 23 and r24, r24 2e98: 4a f0 brmi .+18 ; 0x2eac <__mulsf3_pse+0x7a> 2e9a: ee 0f add r30, r30 2e9c: ff 1f adc r31, r31 2e9e: bb 1f adc r27, r27 2ea0: 66 1f adc r22, r22 2ea2: 77 1f adc r23, r23 2ea4: 88 1f adc r24, r24 2ea6: 91 50 subi r25, 0x01 ; 1 2ea8: 50 40 sbci r21, 0x00 ; 0 2eaa: a9 f7 brne .-22 ; 0x2e96 <__mulsf3_pse+0x64> 2eac: 9e 3f cpi r25, 0xFE ; 254 2eae: 51 05 cpc r21, r1 2eb0: 70 f0 brcs .+28 ; 0x2ece <__mulsf3_pse+0x9c> 2eb2: 5c cf rjmp .-328 ; 0x2d6c <__fp_inf> 2eb4: a6 cf rjmp .-180 ; 0x2e02 <__fp_szero> 2eb6: 5f 3f cpi r21, 0xFF ; 255 2eb8: ec f3 brlt .-6 ; 0x2eb4 <__mulsf3_pse+0x82> 2eba: 98 3e cpi r25, 0xE8 ; 232 2ebc: dc f3 brlt .-10 ; 0x2eb4 <__mulsf3_pse+0x82> 2ebe: 86 95 lsr r24 2ec0: 77 95 ror r23 2ec2: 67 95 ror r22 2ec4: b7 95 ror r27 2ec6: f7 95 ror r31 2ec8: e7 95 ror r30 2eca: 9f 5f subi r25, 0xFF ; 255 2ecc: c1 f7 brne .-16 ; 0x2ebe <__mulsf3_pse+0x8c> 2ece: fe 2b or r31, r30 2ed0: 88 0f add r24, r24 2ed2: 91 1d adc r25, r1 2ed4: 96 95 lsr r25 2ed6: 87 95 ror r24 2ed8: 97 f9 bld r25, 7 2eda: 08 95 ret 00002edc : 2edc: a0 e1 ldi r26, 0x10 ; 16 2ede: b0 e0 ldi r27, 0x00 ; 0 2ee0: e3 e7 ldi r30, 0x73 ; 115 2ee2: f7 e1 ldi r31, 0x17 ; 23 2ee4: 81 c3 rjmp .+1794 ; 0x35e8 <__prologue_saves__> 2ee6: 7c 01 movw r14, r24 2ee8: 1b 01 movw r2, r22 2eea: 6a 01 movw r12, r20 2eec: fc 01 movw r30, r24 2eee: 17 82 std Z+7, r1 ; 0x07 2ef0: 16 82 std Z+6, r1 ; 0x06 2ef2: 83 81 ldd r24, Z+3 ; 0x03 2ef4: 81 ff sbrs r24, 1 2ef6: 2a c3 rjmp .+1620 ; 0x354c 2ef8: 9e 01 movw r18, r28 2efa: 2f 5f subi r18, 0xFF ; 255 2efc: 3f 4f sbci r19, 0xFF ; 255 2efe: 39 01 movw r6, r18 2f00: f7 01 movw r30, r14 2f02: 93 81 ldd r25, Z+3 ; 0x03 2f04: f1 01 movw r30, r2 2f06: 93 fd sbrc r25, 3 2f08: 85 91 lpm r24, Z+ 2f0a: 93 ff sbrs r25, 3 2f0c: 81 91 ld r24, Z+ 2f0e: 1f 01 movw r2, r30 2f10: 88 23 and r24, r24 2f12: 09 f4 brne .+2 ; 0x2f16 2f14: 17 c3 rjmp .+1582 ; 0x3544 2f16: 85 32 cpi r24, 0x25 ; 37 2f18: 39 f4 brne .+14 ; 0x2f28 2f1a: 93 fd sbrc r25, 3 2f1c: 85 91 lpm r24, Z+ 2f1e: 93 ff sbrs r25, 3 2f20: 81 91 ld r24, Z+ 2f22: 1f 01 movw r2, r30 2f24: 85 32 cpi r24, 0x25 ; 37 2f26: 31 f4 brne .+12 ; 0x2f34 2f28: b7 01 movw r22, r14 2f2a: 90 e0 ldi r25, 0x00 ; 0 2f2c: ff d5 rcall .+3070 ; 0x3b2c 2f2e: 56 01 movw r10, r12 2f30: 65 01 movw r12, r10 2f32: e6 cf rjmp .-52 ; 0x2f00 2f34: 10 e0 ldi r17, 0x00 ; 0 2f36: 51 2c mov r5, r1 2f38: 91 2c mov r9, r1 2f3a: ff e1 ldi r31, 0x1F ; 31 2f3c: f9 15 cp r31, r9 2f3e: d8 f0 brcs .+54 ; 0x2f76 2f40: 8b 32 cpi r24, 0x2B ; 43 2f42: 79 f0 breq .+30 ; 0x2f62 2f44: 38 f4 brcc .+14 ; 0x2f54 2f46: 80 32 cpi r24, 0x20 ; 32 2f48: 79 f0 breq .+30 ; 0x2f68 2f4a: 83 32 cpi r24, 0x23 ; 35 2f4c: a1 f4 brne .+40 ; 0x2f76 2f4e: f9 2d mov r31, r9 2f50: f0 61 ori r31, 0x10 ; 16 2f52: 2e c0 rjmp .+92 ; 0x2fb0 2f54: 8d 32 cpi r24, 0x2D ; 45 2f56: 61 f0 breq .+24 ; 0x2f70 2f58: 80 33 cpi r24, 0x30 ; 48 2f5a: 69 f4 brne .+26 ; 0x2f76 2f5c: 29 2d mov r18, r9 2f5e: 21 60 ori r18, 0x01 ; 1 2f60: 2d c0 rjmp .+90 ; 0x2fbc 2f62: 39 2d mov r19, r9 2f64: 32 60 ori r19, 0x02 ; 2 2f66: 93 2e mov r9, r19 2f68: 89 2d mov r24, r9 2f6a: 84 60 ori r24, 0x04 ; 4 2f6c: 98 2e mov r9, r24 2f6e: 2a c0 rjmp .+84 ; 0x2fc4 2f70: e9 2d mov r30, r9 2f72: e8 60 ori r30, 0x08 ; 8 2f74: 15 c0 rjmp .+42 ; 0x2fa0 2f76: 97 fc sbrc r9, 7 2f78: 2d c0 rjmp .+90 ; 0x2fd4 2f7a: 20 ed ldi r18, 0xD0 ; 208 2f7c: 28 0f add r18, r24 2f7e: 2a 30 cpi r18, 0x0A ; 10 2f80: 88 f4 brcc .+34 ; 0x2fa4 2f82: 96 fe sbrs r9, 6 2f84: 06 c0 rjmp .+12 ; 0x2f92 2f86: 3a e0 ldi r19, 0x0A ; 10 2f88: 13 9f mul r17, r19 2f8a: 20 0d add r18, r0 2f8c: 11 24 eor r1, r1 2f8e: 12 2f mov r17, r18 2f90: 19 c0 rjmp .+50 ; 0x2fc4 2f92: 8a e0 ldi r24, 0x0A ; 10 2f94: 58 9e mul r5, r24 2f96: 20 0d add r18, r0 2f98: 11 24 eor r1, r1 2f9a: 52 2e mov r5, r18 2f9c: e9 2d mov r30, r9 2f9e: e0 62 ori r30, 0x20 ; 32 2fa0: 9e 2e mov r9, r30 2fa2: 10 c0 rjmp .+32 ; 0x2fc4 2fa4: 8e 32 cpi r24, 0x2E ; 46 2fa6: 31 f4 brne .+12 ; 0x2fb4 2fa8: 96 fc sbrc r9, 6 2faa: cc c2 rjmp .+1432 ; 0x3544 2fac: f9 2d mov r31, r9 2fae: f0 64 ori r31, 0x40 ; 64 2fb0: 9f 2e mov r9, r31 2fb2: 08 c0 rjmp .+16 ; 0x2fc4 2fb4: 8c 36 cpi r24, 0x6C ; 108 2fb6: 21 f4 brne .+8 ; 0x2fc0 2fb8: 29 2d mov r18, r9 2fba: 20 68 ori r18, 0x80 ; 128 2fbc: 92 2e mov r9, r18 2fbe: 02 c0 rjmp .+4 ; 0x2fc4 2fc0: 88 36 cpi r24, 0x68 ; 104 2fc2: 41 f4 brne .+16 ; 0x2fd4 2fc4: f1 01 movw r30, r2 2fc6: 93 fd sbrc r25, 3 2fc8: 85 91 lpm r24, Z+ 2fca: 93 ff sbrs r25, 3 2fcc: 81 91 ld r24, Z+ 2fce: 1f 01 movw r2, r30 2fd0: 81 11 cpse r24, r1 2fd2: b3 cf rjmp .-154 ; 0x2f3a 2fd4: 9b eb ldi r25, 0xBB ; 187 2fd6: 98 0f add r25, r24 2fd8: 93 30 cpi r25, 0x03 ; 3 2fda: 20 f4 brcc .+8 ; 0x2fe4 2fdc: 99 2d mov r25, r9 2fde: 90 61 ori r25, 0x10 ; 16 2fe0: 80 5e subi r24, 0xE0 ; 224 2fe2: 07 c0 rjmp .+14 ; 0x2ff2 2fe4: 9b e9 ldi r25, 0x9B ; 155 2fe6: 98 0f add r25, r24 2fe8: 93 30 cpi r25, 0x03 ; 3 2fea: 08 f0 brcs .+2 ; 0x2fee 2fec: 59 c1 rjmp .+690 ; 0x32a0 2fee: 99 2d mov r25, r9 2ff0: 9f 7e andi r25, 0xEF ; 239 2ff2: 96 ff sbrs r25, 6 2ff4: 16 e0 ldi r17, 0x06 ; 6 2ff6: 9f 73 andi r25, 0x3F ; 63 2ff8: 99 2e mov r9, r25 2ffa: 85 36 cpi r24, 0x65 ; 101 2ffc: 19 f4 brne .+6 ; 0x3004 2ffe: 90 64 ori r25, 0x40 ; 64 3000: 99 2e mov r9, r25 3002: 08 c0 rjmp .+16 ; 0x3014 3004: 86 36 cpi r24, 0x66 ; 102 3006: 21 f4 brne .+8 ; 0x3010 3008: 39 2f mov r19, r25 300a: 30 68 ori r19, 0x80 ; 128 300c: 93 2e mov r9, r19 300e: 02 c0 rjmp .+4 ; 0x3014 3010: 11 11 cpse r17, r1 3012: 11 50 subi r17, 0x01 ; 1 3014: 97 fe sbrs r9, 7 3016: 07 c0 rjmp .+14 ; 0x3026 3018: 1c 33 cpi r17, 0x3C ; 60 301a: 50 f4 brcc .+20 ; 0x3030 301c: 44 24 eor r4, r4 301e: 43 94 inc r4 3020: 41 0e add r4, r17 3022: 27 e0 ldi r18, 0x07 ; 7 3024: 0b c0 rjmp .+22 ; 0x303c 3026: 18 30 cpi r17, 0x08 ; 8 3028: 38 f0 brcs .+14 ; 0x3038 302a: 27 e0 ldi r18, 0x07 ; 7 302c: 17 e0 ldi r17, 0x07 ; 7 302e: 05 c0 rjmp .+10 ; 0x303a 3030: 27 e0 ldi r18, 0x07 ; 7 3032: 9c e3 ldi r25, 0x3C ; 60 3034: 49 2e mov r4, r25 3036: 02 c0 rjmp .+4 ; 0x303c 3038: 21 2f mov r18, r17 303a: 41 2c mov r4, r1 303c: 56 01 movw r10, r12 303e: 84 e0 ldi r24, 0x04 ; 4 3040: a8 0e add r10, r24 3042: b1 1c adc r11, r1 3044: f6 01 movw r30, r12 3046: 60 81 ld r22, Z 3048: 71 81 ldd r23, Z+1 ; 0x01 304a: 82 81 ldd r24, Z+2 ; 0x02 304c: 93 81 ldd r25, Z+3 ; 0x03 304e: 04 2d mov r16, r4 3050: a3 01 movw r20, r6 3052: 50 d4 rcall .+2208 ; 0x38f4 <__ftoa_engine> 3054: 6c 01 movw r12, r24 3056: f9 81 ldd r31, Y+1 ; 0x01 3058: fc 87 std Y+12, r31 ; 0x0c 305a: f0 ff sbrs r31, 0 305c: 02 c0 rjmp .+4 ; 0x3062 305e: f3 ff sbrs r31, 3 3060: 06 c0 rjmp .+12 ; 0x306e 3062: 91 fc sbrc r9, 1 3064: 06 c0 rjmp .+12 ; 0x3072 3066: 92 fe sbrs r9, 2 3068: 06 c0 rjmp .+12 ; 0x3076 306a: 00 e2 ldi r16, 0x20 ; 32 306c: 05 c0 rjmp .+10 ; 0x3078 306e: 0d e2 ldi r16, 0x2D ; 45 3070: 03 c0 rjmp .+6 ; 0x3078 3072: 0b e2 ldi r16, 0x2B ; 43 3074: 01 c0 rjmp .+2 ; 0x3078 3076: 00 e0 ldi r16, 0x00 ; 0 3078: 8c 85 ldd r24, Y+12 ; 0x0c 307a: 8c 70 andi r24, 0x0C ; 12 307c: 19 f0 breq .+6 ; 0x3084 307e: 01 11 cpse r16, r1 3080: 43 c2 rjmp .+1158 ; 0x3508 3082: 80 c2 rjmp .+1280 ; 0x3584 3084: 97 fe sbrs r9, 7 3086: 10 c0 rjmp .+32 ; 0x30a8 3088: 4c 0c add r4, r12 308a: fc 85 ldd r31, Y+12 ; 0x0c 308c: f4 ff sbrs r31, 4 308e: 04 c0 rjmp .+8 ; 0x3098 3090: 8a 81 ldd r24, Y+2 ; 0x02 3092: 81 33 cpi r24, 0x31 ; 49 3094: 09 f4 brne .+2 ; 0x3098 3096: 4a 94 dec r4 3098: 14 14 cp r1, r4 309a: 74 f5 brge .+92 ; 0x30f8 309c: 28 e0 ldi r18, 0x08 ; 8 309e: 24 15 cp r18, r4 30a0: 78 f5 brcc .+94 ; 0x3100 30a2: 88 e0 ldi r24, 0x08 ; 8 30a4: 48 2e mov r4, r24 30a6: 2c c0 rjmp .+88 ; 0x3100 30a8: 96 fc sbrc r9, 6 30aa: 2a c0 rjmp .+84 ; 0x3100 30ac: 81 2f mov r24, r17 30ae: 90 e0 ldi r25, 0x00 ; 0 30b0: 8c 15 cp r24, r12 30b2: 9d 05 cpc r25, r13 30b4: 9c f0 brlt .+38 ; 0x30dc 30b6: 3c ef ldi r19, 0xFC ; 252 30b8: c3 16 cp r12, r19 30ba: 3f ef ldi r19, 0xFF ; 255 30bc: d3 06 cpc r13, r19 30be: 74 f0 brlt .+28 ; 0x30dc 30c0: 89 2d mov r24, r9 30c2: 80 68 ori r24, 0x80 ; 128 30c4: 98 2e mov r9, r24 30c6: 0a c0 rjmp .+20 ; 0x30dc 30c8: e2 e0 ldi r30, 0x02 ; 2 30ca: f0 e0 ldi r31, 0x00 ; 0 30cc: ec 0f add r30, r28 30ce: fd 1f adc r31, r29 30d0: e1 0f add r30, r17 30d2: f1 1d adc r31, r1 30d4: 80 81 ld r24, Z 30d6: 80 33 cpi r24, 0x30 ; 48 30d8: 19 f4 brne .+6 ; 0x30e0 30da: 11 50 subi r17, 0x01 ; 1 30dc: 11 11 cpse r17, r1 30de: f4 cf rjmp .-24 ; 0x30c8 30e0: 97 fe sbrs r9, 7 30e2: 0e c0 rjmp .+28 ; 0x3100 30e4: 44 24 eor r4, r4 30e6: 43 94 inc r4 30e8: 41 0e add r4, r17 30ea: 81 2f mov r24, r17 30ec: 90 e0 ldi r25, 0x00 ; 0 30ee: c8 16 cp r12, r24 30f0: d9 06 cpc r13, r25 30f2: 2c f4 brge .+10 ; 0x30fe 30f4: 1c 19 sub r17, r12 30f6: 04 c0 rjmp .+8 ; 0x3100 30f8: 44 24 eor r4, r4 30fa: 43 94 inc r4 30fc: 01 c0 rjmp .+2 ; 0x3100 30fe: 10 e0 ldi r17, 0x00 ; 0 3100: 97 fe sbrs r9, 7 3102: 06 c0 rjmp .+12 ; 0x3110 3104: 1c 14 cp r1, r12 3106: 1d 04 cpc r1, r13 3108: 34 f4 brge .+12 ; 0x3116 310a: c6 01 movw r24, r12 310c: 01 96 adiw r24, 0x01 ; 1 310e: 05 c0 rjmp .+10 ; 0x311a 3110: 85 e0 ldi r24, 0x05 ; 5 3112: 90 e0 ldi r25, 0x00 ; 0 3114: 02 c0 rjmp .+4 ; 0x311a 3116: 81 e0 ldi r24, 0x01 ; 1 3118: 90 e0 ldi r25, 0x00 ; 0 311a: 01 11 cpse r16, r1 311c: 01 96 adiw r24, 0x01 ; 1 311e: 11 23 and r17, r17 3120: 31 f0 breq .+12 ; 0x312e 3122: 21 2f mov r18, r17 3124: 30 e0 ldi r19, 0x00 ; 0 3126: 2f 5f subi r18, 0xFF ; 255 3128: 3f 4f sbci r19, 0xFF ; 255 312a: 82 0f add r24, r18 312c: 93 1f adc r25, r19 312e: 25 2d mov r18, r5 3130: 30 e0 ldi r19, 0x00 ; 0 3132: 82 17 cp r24, r18 3134: 93 07 cpc r25, r19 3136: 14 f4 brge .+4 ; 0x313c 3138: 58 1a sub r5, r24 313a: 01 c0 rjmp .+2 ; 0x313e 313c: 51 2c mov r5, r1 313e: 89 2d mov r24, r9 3140: 89 70 andi r24, 0x09 ; 9 3142: 41 f4 brne .+16 ; 0x3154 3144: 55 20 and r5, r5 3146: 31 f0 breq .+12 ; 0x3154 3148: b7 01 movw r22, r14 314a: 80 e2 ldi r24, 0x20 ; 32 314c: 90 e0 ldi r25, 0x00 ; 0 314e: ee d4 rcall .+2524 ; 0x3b2c 3150: 5a 94 dec r5 3152: f8 cf rjmp .-16 ; 0x3144 3154: 00 23 and r16, r16 3156: 21 f0 breq .+8 ; 0x3160 3158: b7 01 movw r22, r14 315a: 80 2f mov r24, r16 315c: 90 e0 ldi r25, 0x00 ; 0 315e: e6 d4 rcall .+2508 ; 0x3b2c 3160: 93 fc sbrc r9, 3 3162: 08 c0 rjmp .+16 ; 0x3174 3164: 55 20 and r5, r5 3166: 31 f0 breq .+12 ; 0x3174 3168: b7 01 movw r22, r14 316a: 80 e3 ldi r24, 0x30 ; 48 316c: 90 e0 ldi r25, 0x00 ; 0 316e: de d4 rcall .+2492 ; 0x3b2c 3170: 5a 94 dec r5 3172: f8 cf rjmp .-16 ; 0x3164 3174: 97 fe sbrs r9, 7 3176: 4a c0 rjmp .+148 ; 0x320c 3178: 46 01 movw r8, r12 317a: d7 fe sbrs r13, 7 317c: 02 c0 rjmp .+4 ; 0x3182 317e: 81 2c mov r8, r1 3180: 91 2c mov r9, r1 3182: c6 01 movw r24, r12 3184: 88 19 sub r24, r8 3186: 99 09 sbc r25, r9 3188: f3 01 movw r30, r6 318a: e8 0f add r30, r24 318c: f9 1f adc r31, r25 318e: fe 87 std Y+14, r31 ; 0x0e 3190: ed 87 std Y+13, r30 ; 0x0d 3192: 96 01 movw r18, r12 3194: 24 19 sub r18, r4 3196: 31 09 sbc r19, r1 3198: 38 8b std Y+16, r19 ; 0x10 319a: 2f 87 std Y+15, r18 ; 0x0f 319c: 01 2f mov r16, r17 319e: 10 e0 ldi r17, 0x00 ; 0 31a0: 11 95 neg r17 31a2: 01 95 neg r16 31a4: 11 09 sbc r17, r1 31a6: 3f ef ldi r19, 0xFF ; 255 31a8: 83 16 cp r8, r19 31aa: 93 06 cpc r9, r19 31ac: 21 f4 brne .+8 ; 0x31b6 31ae: b7 01 movw r22, r14 31b0: 8e e2 ldi r24, 0x2E ; 46 31b2: 90 e0 ldi r25, 0x00 ; 0 31b4: bb d4 rcall .+2422 ; 0x3b2c 31b6: c8 14 cp r12, r8 31b8: d9 04 cpc r13, r9 31ba: 4c f0 brlt .+18 ; 0x31ce 31bc: 8f 85 ldd r24, Y+15 ; 0x0f 31be: 98 89 ldd r25, Y+16 ; 0x10 31c0: 88 15 cp r24, r8 31c2: 99 05 cpc r25, r9 31c4: 24 f4 brge .+8 ; 0x31ce 31c6: ed 85 ldd r30, Y+13 ; 0x0d 31c8: fe 85 ldd r31, Y+14 ; 0x0e 31ca: 81 81 ldd r24, Z+1 ; 0x01 31cc: 01 c0 rjmp .+2 ; 0x31d0 31ce: 80 e3 ldi r24, 0x30 ; 48 31d0: f1 e0 ldi r31, 0x01 ; 1 31d2: 8f 1a sub r8, r31 31d4: 91 08 sbc r9, r1 31d6: 2d 85 ldd r18, Y+13 ; 0x0d 31d8: 3e 85 ldd r19, Y+14 ; 0x0e 31da: 2f 5f subi r18, 0xFF ; 255 31dc: 3f 4f sbci r19, 0xFF ; 255 31de: 3e 87 std Y+14, r19 ; 0x0e 31e0: 2d 87 std Y+13, r18 ; 0x0d 31e2: 80 16 cp r8, r16 31e4: 91 06 cpc r9, r17 31e6: 24 f0 brlt .+8 ; 0x31f0 31e8: b7 01 movw r22, r14 31ea: 90 e0 ldi r25, 0x00 ; 0 31ec: 9f d4 rcall .+2366 ; 0x3b2c 31ee: db cf rjmp .-74 ; 0x31a6 31f0: c8 14 cp r12, r8 31f2: d9 04 cpc r13, r9 31f4: 41 f4 brne .+16 ; 0x3206 31f6: 9a 81 ldd r25, Y+2 ; 0x02 31f8: 96 33 cpi r25, 0x36 ; 54 31fa: 20 f4 brcc .+8 ; 0x3204 31fc: 95 33 cpi r25, 0x35 ; 53 31fe: 19 f4 brne .+6 ; 0x3206 3200: 3c 85 ldd r19, Y+12 ; 0x0c 3202: 34 ff sbrs r19, 4 3204: 81 e3 ldi r24, 0x31 ; 49 3206: b7 01 movw r22, r14 3208: 90 e0 ldi r25, 0x00 ; 0 320a: 48 c0 rjmp .+144 ; 0x329c 320c: 8a 81 ldd r24, Y+2 ; 0x02 320e: 81 33 cpi r24, 0x31 ; 49 3210: 19 f0 breq .+6 ; 0x3218 3212: 9c 85 ldd r25, Y+12 ; 0x0c 3214: 9f 7e andi r25, 0xEF ; 239 3216: 9c 87 std Y+12, r25 ; 0x0c 3218: b7 01 movw r22, r14 321a: 90 e0 ldi r25, 0x00 ; 0 321c: 87 d4 rcall .+2318 ; 0x3b2c 321e: 11 11 cpse r17, r1 3220: 05 c0 rjmp .+10 ; 0x322c 3222: 94 fc sbrc r9, 4 3224: 16 c0 rjmp .+44 ; 0x3252 3226: 85 e6 ldi r24, 0x65 ; 101 3228: 90 e0 ldi r25, 0x00 ; 0 322a: 15 c0 rjmp .+42 ; 0x3256 322c: b7 01 movw r22, r14 322e: 8e e2 ldi r24, 0x2E ; 46 3230: 90 e0 ldi r25, 0x00 ; 0 3232: 7c d4 rcall .+2296 ; 0x3b2c 3234: 1e 5f subi r17, 0xFE ; 254 3236: 82 e0 ldi r24, 0x02 ; 2 3238: 01 e0 ldi r16, 0x01 ; 1 323a: 08 0f add r16, r24 323c: f3 01 movw r30, r6 323e: e8 0f add r30, r24 3240: f1 1d adc r31, r1 3242: 80 81 ld r24, Z 3244: b7 01 movw r22, r14 3246: 90 e0 ldi r25, 0x00 ; 0 3248: 71 d4 rcall .+2274 ; 0x3b2c 324a: 80 2f mov r24, r16 324c: 01 13 cpse r16, r17 324e: f4 cf rjmp .-24 ; 0x3238 3250: e8 cf rjmp .-48 ; 0x3222 3252: 85 e4 ldi r24, 0x45 ; 69 3254: 90 e0 ldi r25, 0x00 ; 0 3256: b7 01 movw r22, r14 3258: 69 d4 rcall .+2258 ; 0x3b2c 325a: d7 fc sbrc r13, 7 325c: 06 c0 rjmp .+12 ; 0x326a 325e: c1 14 cp r12, r1 3260: d1 04 cpc r13, r1 3262: 41 f4 brne .+16 ; 0x3274 3264: ec 85 ldd r30, Y+12 ; 0x0c 3266: e4 ff sbrs r30, 4 3268: 05 c0 rjmp .+10 ; 0x3274 326a: d1 94 neg r13 326c: c1 94 neg r12 326e: d1 08 sbc r13, r1 3270: 8d e2 ldi r24, 0x2D ; 45 3272: 01 c0 rjmp .+2 ; 0x3276 3274: 8b e2 ldi r24, 0x2B ; 43 3276: b7 01 movw r22, r14 3278: 90 e0 ldi r25, 0x00 ; 0 327a: 58 d4 rcall .+2224 ; 0x3b2c 327c: 80 e3 ldi r24, 0x30 ; 48 327e: 2a e0 ldi r18, 0x0A ; 10 3280: c2 16 cp r12, r18 3282: d1 04 cpc r13, r1 3284: 2c f0 brlt .+10 ; 0x3290 3286: 8f 5f subi r24, 0xFF ; 255 3288: fa e0 ldi r31, 0x0A ; 10 328a: cf 1a sub r12, r31 328c: d1 08 sbc r13, r1 328e: f7 cf rjmp .-18 ; 0x327e 3290: b7 01 movw r22, r14 3292: 90 e0 ldi r25, 0x00 ; 0 3294: 4b d4 rcall .+2198 ; 0x3b2c 3296: b7 01 movw r22, r14 3298: c6 01 movw r24, r12 329a: c0 96 adiw r24, 0x30 ; 48 329c: 47 d4 rcall .+2190 ; 0x3b2c 329e: 49 c1 rjmp .+658 ; 0x3532 32a0: 83 36 cpi r24, 0x63 ; 99 32a2: 31 f0 breq .+12 ; 0x32b0 32a4: 83 37 cpi r24, 0x73 ; 115 32a6: 79 f0 breq .+30 ; 0x32c6 32a8: 83 35 cpi r24, 0x53 ; 83 32aa: 09 f0 breq .+2 ; 0x32ae 32ac: 52 c0 rjmp .+164 ; 0x3352 32ae: 1f c0 rjmp .+62 ; 0x32ee 32b0: 56 01 movw r10, r12 32b2: 32 e0 ldi r19, 0x02 ; 2 32b4: a3 0e add r10, r19 32b6: b1 1c adc r11, r1 32b8: f6 01 movw r30, r12 32ba: 80 81 ld r24, Z 32bc: 89 83 std Y+1, r24 ; 0x01 32be: 01 e0 ldi r16, 0x01 ; 1 32c0: 10 e0 ldi r17, 0x00 ; 0 32c2: 63 01 movw r12, r6 32c4: 11 c0 rjmp .+34 ; 0x32e8 32c6: 56 01 movw r10, r12 32c8: f2 e0 ldi r31, 0x02 ; 2 32ca: af 0e add r10, r31 32cc: b1 1c adc r11, r1 32ce: f6 01 movw r30, r12 32d0: c0 80 ld r12, Z 32d2: d1 80 ldd r13, Z+1 ; 0x01 32d4: 96 fe sbrs r9, 6 32d6: 03 c0 rjmp .+6 ; 0x32de 32d8: 61 2f mov r22, r17 32da: 70 e0 ldi r23, 0x00 ; 0 32dc: 02 c0 rjmp .+4 ; 0x32e2 32de: 6f ef ldi r22, 0xFF ; 255 32e0: 7f ef ldi r23, 0xFF ; 255 32e2: c6 01 movw r24, r12 32e4: 09 d4 rcall .+2066 ; 0x3af8 32e6: 8c 01 movw r16, r24 32e8: f9 2d mov r31, r9 32ea: ff 77 andi r31, 0x7F ; 127 32ec: 13 c0 rjmp .+38 ; 0x3314 32ee: 56 01 movw r10, r12 32f0: 22 e0 ldi r18, 0x02 ; 2 32f2: a2 0e add r10, r18 32f4: b1 1c adc r11, r1 32f6: f6 01 movw r30, r12 32f8: c0 80 ld r12, Z 32fa: d1 80 ldd r13, Z+1 ; 0x01 32fc: 96 fe sbrs r9, 6 32fe: 03 c0 rjmp .+6 ; 0x3306 3300: 61 2f mov r22, r17 3302: 70 e0 ldi r23, 0x00 ; 0 3304: 02 c0 rjmp .+4 ; 0x330a 3306: 6f ef ldi r22, 0xFF ; 255 3308: 7f ef ldi r23, 0xFF ; 255 330a: c6 01 movw r24, r12 330c: cb d3 rcall .+1942 ; 0x3aa4 330e: 8c 01 movw r16, r24 3310: f9 2d mov r31, r9 3312: f0 68 ori r31, 0x80 ; 128 3314: 9f 2e mov r9, r31 3316: f3 fd sbrc r31, 3 3318: 18 c0 rjmp .+48 ; 0x334a 331a: 85 2d mov r24, r5 331c: 90 e0 ldi r25, 0x00 ; 0 331e: 08 17 cp r16, r24 3320: 19 07 cpc r17, r25 3322: 98 f4 brcc .+38 ; 0x334a 3324: b7 01 movw r22, r14 3326: 80 e2 ldi r24, 0x20 ; 32 3328: 90 e0 ldi r25, 0x00 ; 0 332a: 00 d4 rcall .+2048 ; 0x3b2c 332c: 5a 94 dec r5 332e: f5 cf rjmp .-22 ; 0x331a 3330: f6 01 movw r30, r12 3332: 97 fc sbrc r9, 7 3334: 85 91 lpm r24, Z+ 3336: 97 fe sbrs r9, 7 3338: 81 91 ld r24, Z+ 333a: 6f 01 movw r12, r30 333c: b7 01 movw r22, r14 333e: 90 e0 ldi r25, 0x00 ; 0 3340: f5 d3 rcall .+2026 ; 0x3b2c 3342: 51 10 cpse r5, r1 3344: 5a 94 dec r5 3346: 01 50 subi r16, 0x01 ; 1 3348: 11 09 sbc r17, r1 334a: 01 15 cp r16, r1 334c: 11 05 cpc r17, r1 334e: 81 f7 brne .-32 ; 0x3330 3350: f0 c0 rjmp .+480 ; 0x3532 3352: 84 36 cpi r24, 0x64 ; 100 3354: 11 f0 breq .+4 ; 0x335a 3356: 89 36 cpi r24, 0x69 ; 105 3358: 59 f5 brne .+86 ; 0x33b0 335a: 56 01 movw r10, r12 335c: 97 fe sbrs r9, 7 335e: 09 c0 rjmp .+18 ; 0x3372 3360: 24 e0 ldi r18, 0x04 ; 4 3362: a2 0e add r10, r18 3364: b1 1c adc r11, r1 3366: f6 01 movw r30, r12 3368: 60 81 ld r22, Z 336a: 71 81 ldd r23, Z+1 ; 0x01 336c: 82 81 ldd r24, Z+2 ; 0x02 336e: 93 81 ldd r25, Z+3 ; 0x03 3370: 0a c0 rjmp .+20 ; 0x3386 3372: f2 e0 ldi r31, 0x02 ; 2 3374: af 0e add r10, r31 3376: b1 1c adc r11, r1 3378: f6 01 movw r30, r12 337a: 60 81 ld r22, Z 337c: 71 81 ldd r23, Z+1 ; 0x01 337e: 07 2e mov r0, r23 3380: 00 0c add r0, r0 3382: 88 0b sbc r24, r24 3384: 99 0b sbc r25, r25 3386: f9 2d mov r31, r9 3388: ff 76 andi r31, 0x6F ; 111 338a: 9f 2e mov r9, r31 338c: 97 ff sbrs r25, 7 338e: 09 c0 rjmp .+18 ; 0x33a2 3390: 90 95 com r25 3392: 80 95 com r24 3394: 70 95 com r23 3396: 61 95 neg r22 3398: 7f 4f sbci r23, 0xFF ; 255 339a: 8f 4f sbci r24, 0xFF ; 255 339c: 9f 4f sbci r25, 0xFF ; 255 339e: f0 68 ori r31, 0x80 ; 128 33a0: 9f 2e mov r9, r31 33a2: 2a e0 ldi r18, 0x0A ; 10 33a4: 30 e0 ldi r19, 0x00 ; 0 33a6: a3 01 movw r20, r6 33a8: 2f d4 rcall .+2142 ; 0x3c08 <__ultoa_invert> 33aa: c8 2e mov r12, r24 33ac: c6 18 sub r12, r6 33ae: 3e c0 rjmp .+124 ; 0x342c 33b0: 09 2d mov r16, r9 33b2: 85 37 cpi r24, 0x75 ; 117 33b4: 21 f4 brne .+8 ; 0x33be 33b6: 0f 7e andi r16, 0xEF ; 239 33b8: 2a e0 ldi r18, 0x0A ; 10 33ba: 30 e0 ldi r19, 0x00 ; 0 33bc: 1d c0 rjmp .+58 ; 0x33f8 33be: 09 7f andi r16, 0xF9 ; 249 33c0: 8f 36 cpi r24, 0x6F ; 111 33c2: 91 f0 breq .+36 ; 0x33e8 33c4: 18 f4 brcc .+6 ; 0x33cc 33c6: 88 35 cpi r24, 0x58 ; 88 33c8: 59 f0 breq .+22 ; 0x33e0 33ca: bc c0 rjmp .+376 ; 0x3544 33cc: 80 37 cpi r24, 0x70 ; 112 33ce: 19 f0 breq .+6 ; 0x33d6 33d0: 88 37 cpi r24, 0x78 ; 120 33d2: 11 f0 breq .+4 ; 0x33d8 33d4: b7 c0 rjmp .+366 ; 0x3544 33d6: 00 61 ori r16, 0x10 ; 16 33d8: 04 ff sbrs r16, 4 33da: 09 c0 rjmp .+18 ; 0x33ee 33dc: 04 60 ori r16, 0x04 ; 4 33de: 07 c0 rjmp .+14 ; 0x33ee 33e0: 94 fe sbrs r9, 4 33e2: 08 c0 rjmp .+16 ; 0x33f4 33e4: 06 60 ori r16, 0x06 ; 6 33e6: 06 c0 rjmp .+12 ; 0x33f4 33e8: 28 e0 ldi r18, 0x08 ; 8 33ea: 30 e0 ldi r19, 0x00 ; 0 33ec: 05 c0 rjmp .+10 ; 0x33f8 33ee: 20 e1 ldi r18, 0x10 ; 16 33f0: 30 e0 ldi r19, 0x00 ; 0 33f2: 02 c0 rjmp .+4 ; 0x33f8 33f4: 20 e1 ldi r18, 0x10 ; 16 33f6: 32 e0 ldi r19, 0x02 ; 2 33f8: 56 01 movw r10, r12 33fa: 07 ff sbrs r16, 7 33fc: 09 c0 rjmp .+18 ; 0x3410 33fe: 84 e0 ldi r24, 0x04 ; 4 3400: a8 0e add r10, r24 3402: b1 1c adc r11, r1 3404: f6 01 movw r30, r12 3406: 60 81 ld r22, Z 3408: 71 81 ldd r23, Z+1 ; 0x01 340a: 82 81 ldd r24, Z+2 ; 0x02 340c: 93 81 ldd r25, Z+3 ; 0x03 340e: 08 c0 rjmp .+16 ; 0x3420 3410: f2 e0 ldi r31, 0x02 ; 2 3412: af 0e add r10, r31 3414: b1 1c adc r11, r1 3416: f6 01 movw r30, r12 3418: 60 81 ld r22, Z 341a: 71 81 ldd r23, Z+1 ; 0x01 341c: 80 e0 ldi r24, 0x00 ; 0 341e: 90 e0 ldi r25, 0x00 ; 0 3420: a3 01 movw r20, r6 3422: f2 d3 rcall .+2020 ; 0x3c08 <__ultoa_invert> 3424: c8 2e mov r12, r24 3426: c6 18 sub r12, r6 3428: 0f 77 andi r16, 0x7F ; 127 342a: 90 2e mov r9, r16 342c: 96 fe sbrs r9, 6 342e: 0b c0 rjmp .+22 ; 0x3446 3430: 09 2d mov r16, r9 3432: 0e 7f andi r16, 0xFE ; 254 3434: c1 16 cp r12, r17 3436: 50 f4 brcc .+20 ; 0x344c 3438: 94 fe sbrs r9, 4 343a: 0a c0 rjmp .+20 ; 0x3450 343c: 92 fc sbrc r9, 2 343e: 08 c0 rjmp .+16 ; 0x3450 3440: 09 2d mov r16, r9 3442: 0e 7e andi r16, 0xEE ; 238 3444: 05 c0 rjmp .+10 ; 0x3450 3446: dc 2c mov r13, r12 3448: 09 2d mov r16, r9 344a: 03 c0 rjmp .+6 ; 0x3452 344c: dc 2c mov r13, r12 344e: 01 c0 rjmp .+2 ; 0x3452 3450: d1 2e mov r13, r17 3452: 04 ff sbrs r16, 4 3454: 0d c0 rjmp .+26 ; 0x3470 3456: fe 01 movw r30, r28 3458: ec 0d add r30, r12 345a: f1 1d adc r31, r1 345c: 80 81 ld r24, Z 345e: 80 33 cpi r24, 0x30 ; 48 3460: 11 f4 brne .+4 ; 0x3466 3462: 09 7e andi r16, 0xE9 ; 233 3464: 09 c0 rjmp .+18 ; 0x3478 3466: 02 ff sbrs r16, 2 3468: 06 c0 rjmp .+12 ; 0x3476 346a: d3 94 inc r13 346c: d3 94 inc r13 346e: 04 c0 rjmp .+8 ; 0x3478 3470: 80 2f mov r24, r16 3472: 86 78 andi r24, 0x86 ; 134 3474: 09 f0 breq .+2 ; 0x3478 3476: d3 94 inc r13 3478: 03 fd sbrc r16, 3 347a: 10 c0 rjmp .+32 ; 0x349c 347c: 00 ff sbrs r16, 0 347e: 06 c0 rjmp .+12 ; 0x348c 3480: 1c 2d mov r17, r12 3482: d5 14 cp r13, r5 3484: 78 f4 brcc .+30 ; 0x34a4 3486: 15 0d add r17, r5 3488: 1d 19 sub r17, r13 348a: 0c c0 rjmp .+24 ; 0x34a4 348c: d5 14 cp r13, r5 348e: 50 f4 brcc .+20 ; 0x34a4 3490: b7 01 movw r22, r14 3492: 80 e2 ldi r24, 0x20 ; 32 3494: 90 e0 ldi r25, 0x00 ; 0 3496: 4a d3 rcall .+1684 ; 0x3b2c 3498: d3 94 inc r13 349a: f8 cf rjmp .-16 ; 0x348c 349c: d5 14 cp r13, r5 349e: 10 f4 brcc .+4 ; 0x34a4 34a0: 5d 18 sub r5, r13 34a2: 01 c0 rjmp .+2 ; 0x34a6 34a4: 51 2c mov r5, r1 34a6: 04 ff sbrs r16, 4 34a8: 0f c0 rjmp .+30 ; 0x34c8 34aa: b7 01 movw r22, r14 34ac: 80 e3 ldi r24, 0x30 ; 48 34ae: 90 e0 ldi r25, 0x00 ; 0 34b0: 3d d3 rcall .+1658 ; 0x3b2c 34b2: 02 ff sbrs r16, 2 34b4: 16 c0 rjmp .+44 ; 0x34e2 34b6: 01 fd sbrc r16, 1 34b8: 03 c0 rjmp .+6 ; 0x34c0 34ba: 88 e7 ldi r24, 0x78 ; 120 34bc: 90 e0 ldi r25, 0x00 ; 0 34be: 02 c0 rjmp .+4 ; 0x34c4 34c0: 88 e5 ldi r24, 0x58 ; 88 34c2: 90 e0 ldi r25, 0x00 ; 0 34c4: b7 01 movw r22, r14 34c6: 0c c0 rjmp .+24 ; 0x34e0 34c8: 80 2f mov r24, r16 34ca: 86 78 andi r24, 0x86 ; 134 34cc: 51 f0 breq .+20 ; 0x34e2 34ce: 01 ff sbrs r16, 1 34d0: 02 c0 rjmp .+4 ; 0x34d6 34d2: 8b e2 ldi r24, 0x2B ; 43 34d4: 01 c0 rjmp .+2 ; 0x34d8 34d6: 80 e2 ldi r24, 0x20 ; 32 34d8: 07 fd sbrc r16, 7 34da: 8d e2 ldi r24, 0x2D ; 45 34dc: b7 01 movw r22, r14 34de: 90 e0 ldi r25, 0x00 ; 0 34e0: 25 d3 rcall .+1610 ; 0x3b2c 34e2: c1 16 cp r12, r17 34e4: 30 f4 brcc .+12 ; 0x34f2 34e6: b7 01 movw r22, r14 34e8: 80 e3 ldi r24, 0x30 ; 48 34ea: 90 e0 ldi r25, 0x00 ; 0 34ec: 1f d3 rcall .+1598 ; 0x3b2c 34ee: 11 50 subi r17, 0x01 ; 1 34f0: f8 cf rjmp .-16 ; 0x34e2 34f2: ca 94 dec r12 34f4: f3 01 movw r30, r6 34f6: ec 0d add r30, r12 34f8: f1 1d adc r31, r1 34fa: 80 81 ld r24, Z 34fc: b7 01 movw r22, r14 34fe: 90 e0 ldi r25, 0x00 ; 0 3500: 15 d3 rcall .+1578 ; 0x3b2c 3502: c1 10 cpse r12, r1 3504: f6 cf rjmp .-20 ; 0x34f2 3506: 15 c0 rjmp .+42 ; 0x3532 3508: f4 e0 ldi r31, 0x04 ; 4 350a: f5 15 cp r31, r5 350c: 50 f5 brcc .+84 ; 0x3562 350e: 84 e0 ldi r24, 0x04 ; 4 3510: 58 1a sub r5, r24 3512: 93 fe sbrs r9, 3 3514: 1e c0 rjmp .+60 ; 0x3552 3516: 01 11 cpse r16, r1 3518: 25 c0 rjmp .+74 ; 0x3564 351a: 2c 85 ldd r18, Y+12 ; 0x0c 351c: 23 ff sbrs r18, 3 351e: 27 c0 rjmp .+78 ; 0x356e 3520: 00 e9 ldi r16, 0x90 ; 144 3522: 10 e0 ldi r17, 0x00 ; 0 3524: 39 2d mov r19, r9 3526: 30 71 andi r19, 0x10 ; 16 3528: 93 2e mov r9, r19 352a: f8 01 movw r30, r16 352c: 84 91 lpm r24, Z 352e: 81 11 cpse r24, r1 3530: 21 c0 rjmp .+66 ; 0x3574 3532: 55 20 and r5, r5 3534: 09 f4 brne .+2 ; 0x3538 3536: fc cc rjmp .-1544 ; 0x2f30 3538: b7 01 movw r22, r14 353a: 80 e2 ldi r24, 0x20 ; 32 353c: 90 e0 ldi r25, 0x00 ; 0 353e: f6 d2 rcall .+1516 ; 0x3b2c 3540: 5a 94 dec r5 3542: f7 cf rjmp .-18 ; 0x3532 3544: f7 01 movw r30, r14 3546: 86 81 ldd r24, Z+6 ; 0x06 3548: 97 81 ldd r25, Z+7 ; 0x07 354a: 23 c0 rjmp .+70 ; 0x3592 354c: 8f ef ldi r24, 0xFF ; 255 354e: 9f ef ldi r25, 0xFF ; 255 3550: 20 c0 rjmp .+64 ; 0x3592 3552: b7 01 movw r22, r14 3554: 80 e2 ldi r24, 0x20 ; 32 3556: 90 e0 ldi r25, 0x00 ; 0 3558: e9 d2 rcall .+1490 ; 0x3b2c 355a: 5a 94 dec r5 355c: 51 10 cpse r5, r1 355e: f9 cf rjmp .-14 ; 0x3552 3560: da cf rjmp .-76 ; 0x3516 3562: 51 2c mov r5, r1 3564: b7 01 movw r22, r14 3566: 80 2f mov r24, r16 3568: 90 e0 ldi r25, 0x00 ; 0 356a: e0 d2 rcall .+1472 ; 0x3b2c 356c: d6 cf rjmp .-84 ; 0x351a 356e: 04 e9 ldi r16, 0x94 ; 148 3570: 10 e0 ldi r17, 0x00 ; 0 3572: d8 cf rjmp .-80 ; 0x3524 3574: 91 10 cpse r9, r1 3576: 80 52 subi r24, 0x20 ; 32 3578: b7 01 movw r22, r14 357a: 90 e0 ldi r25, 0x00 ; 0 357c: d7 d2 rcall .+1454 ; 0x3b2c 357e: 0f 5f subi r16, 0xFF ; 255 3580: 1f 4f sbci r17, 0xFF ; 255 3582: d3 cf rjmp .-90 ; 0x352a 3584: 23 e0 ldi r18, 0x03 ; 3 3586: 25 15 cp r18, r5 3588: 10 f4 brcc .+4 ; 0x358e 358a: 83 e0 ldi r24, 0x03 ; 3 358c: c1 cf rjmp .-126 ; 0x3510 358e: 51 2c mov r5, r1 3590: c4 cf rjmp .-120 ; 0x351a 3592: 60 96 adiw r28, 0x10 ; 16 3594: e2 e1 ldi r30, 0x12 ; 18 3596: 44 c0 rjmp .+136 ; 0x3620 <__epilogue_restores__> 00003598 <__divmodhi4>: 3598: 97 fb bst r25, 7 359a: 07 2e mov r0, r23 359c: 16 f4 brtc .+4 ; 0x35a2 <__divmodhi4+0xa> 359e: 00 94 com r0 35a0: 06 d0 rcall .+12 ; 0x35ae <__divmodhi4_neg1> 35a2: 77 fd sbrc r23, 7 35a4: 08 d0 rcall .+16 ; 0x35b6 <__divmodhi4_neg2> 35a6: 57 d0 rcall .+174 ; 0x3656 <__udivmodhi4> 35a8: 07 fc sbrc r0, 7 35aa: 05 d0 rcall .+10 ; 0x35b6 <__divmodhi4_neg2> 35ac: 3e f4 brtc .+14 ; 0x35bc <__divmodhi4_exit> 000035ae <__divmodhi4_neg1>: 35ae: 90 95 com r25 35b0: 81 95 neg r24 35b2: 9f 4f sbci r25, 0xFF ; 255 35b4: 08 95 ret 000035b6 <__divmodhi4_neg2>: 35b6: 70 95 com r23 35b8: 61 95 neg r22 35ba: 7f 4f sbci r23, 0xFF ; 255 000035bc <__divmodhi4_exit>: 35bc: 08 95 ret 000035be <__tablejump2__>: 35be: ee 0f add r30, r30 35c0: ff 1f adc r31, r31 35c2: 05 90 lpm r0, Z+ 35c4: f4 91 lpm r31, Z 35c6: e0 2d mov r30, r0 35c8: 09 94 ijmp 000035ca <__umulhisi3>: 35ca: a2 9f mul r26, r18 35cc: b0 01 movw r22, r0 35ce: b3 9f mul r27, r19 35d0: c0 01 movw r24, r0 35d2: a3 9f mul r26, r19 35d4: 70 0d add r23, r0 35d6: 81 1d adc r24, r1 35d8: 11 24 eor r1, r1 35da: 91 1d adc r25, r1 35dc: b2 9f mul r27, r18 35de: 70 0d add r23, r0 35e0: 81 1d adc r24, r1 35e2: 11 24 eor r1, r1 35e4: 91 1d adc r25, r1 35e6: 08 95 ret 000035e8 <__prologue_saves__>: 35e8: 2f 92 push r2 35ea: 3f 92 push r3 35ec: 4f 92 push r4 35ee: 5f 92 push r5 35f0: 6f 92 push r6 35f2: 7f 92 push r7 35f4: 8f 92 push r8 35f6: 9f 92 push r9 35f8: af 92 push r10 35fa: bf 92 push r11 35fc: cf 92 push r12 35fe: df 92 push r13 3600: ef 92 push r14 3602: ff 92 push r15 3604: 0f 93 push r16 3606: 1f 93 push r17 3608: cf 93 push r28 360a: df 93 push r29 360c: cd b7 in r28, 0x3d ; 61 360e: de b7 in r29, 0x3e ; 62 3610: ca 1b sub r28, r26 3612: db 0b sbc r29, r27 3614: 0f b6 in r0, 0x3f ; 63 3616: f8 94 cli 3618: de bf out 0x3e, r29 ; 62 361a: 0f be out 0x3f, r0 ; 63 361c: cd bf out 0x3d, r28 ; 61 361e: 09 94 ijmp 00003620 <__epilogue_restores__>: 3620: 2a 88 ldd r2, Y+18 ; 0x12 3622: 39 88 ldd r3, Y+17 ; 0x11 3624: 48 88 ldd r4, Y+16 ; 0x10 3626: 5f 84 ldd r5, Y+15 ; 0x0f 3628: 6e 84 ldd r6, Y+14 ; 0x0e 362a: 7d 84 ldd r7, Y+13 ; 0x0d 362c: 8c 84 ldd r8, Y+12 ; 0x0c 362e: 9b 84 ldd r9, Y+11 ; 0x0b 3630: aa 84 ldd r10, Y+10 ; 0x0a 3632: b9 84 ldd r11, Y+9 ; 0x09 3634: c8 84 ldd r12, Y+8 ; 0x08 3636: df 80 ldd r13, Y+7 ; 0x07 3638: ee 80 ldd r14, Y+6 ; 0x06 363a: fd 80 ldd r15, Y+5 ; 0x05 363c: 0c 81 ldd r16, Y+4 ; 0x04 363e: 1b 81 ldd r17, Y+3 ; 0x03 3640: aa 81 ldd r26, Y+2 ; 0x02 3642: b9 81 ldd r27, Y+1 ; 0x01 3644: ce 0f add r28, r30 3646: d1 1d adc r29, r1 3648: 0f b6 in r0, 0x3f ; 63 364a: f8 94 cli 364c: de bf out 0x3e, r29 ; 62 364e: 0f be out 0x3f, r0 ; 63 3650: cd bf out 0x3d, r28 ; 61 3652: ed 01 movw r28, r26 3654: 08 95 ret 00003656 <__udivmodhi4>: 3656: aa 1b sub r26, r26 3658: bb 1b sub r27, r27 365a: 51 e1 ldi r21, 0x11 ; 17 365c: 07 c0 rjmp .+14 ; 0x366c <__udivmodhi4_ep> 0000365e <__udivmodhi4_loop>: 365e: aa 1f adc r26, r26 3660: bb 1f adc r27, r27 3662: a6 17 cp r26, r22 3664: b7 07 cpc r27, r23 3666: 10 f0 brcs .+4 ; 0x366c <__udivmodhi4_ep> 3668: a6 1b sub r26, r22 366a: b7 0b sbc r27, r23 0000366c <__udivmodhi4_ep>: 366c: 88 1f adc r24, r24 366e: 99 1f adc r25, r25 3670: 5a 95 dec r21 3672: a9 f7 brne .-22 ; 0x365e <__udivmodhi4_loop> 3674: 80 95 com r24 3676: 90 95 com r25 3678: bc 01 movw r22, r24 367a: cd 01 movw r24, r26 367c: 08 95 ret 0000367e : 367e: 0f 93 push r16 3680: 1f 93 push r17 3682: cf 93 push r28 3684: df 93 push r29 3686: 86 9f mul r24, r22 3688: 80 01 movw r16, r0 368a: 87 9f mul r24, r23 368c: 10 0d add r17, r0 368e: 96 9f mul r25, r22 3690: 10 0d add r17, r0 3692: 11 24 eor r1, r1 3694: c8 01 movw r24, r16 3696: 0d d0 rcall .+26 ; 0x36b2 3698: ec 01 movw r28, r24 369a: 00 97 sbiw r24, 0x00 ; 0 369c: 21 f0 breq .+8 ; 0x36a6 369e: a8 01 movw r20, r16 36a0: 60 e0 ldi r22, 0x00 ; 0 36a2: 70 e0 ldi r23, 0x00 ; 0 36a4: 13 d2 rcall .+1062 ; 0x3acc 36a6: ce 01 movw r24, r28 36a8: df 91 pop r29 36aa: cf 91 pop r28 36ac: 1f 91 pop r17 36ae: 0f 91 pop r16 36b0: 08 95 ret 000036b2 : 36b2: 0f 93 push r16 36b4: 1f 93 push r17 36b6: cf 93 push r28 36b8: df 93 push r29 36ba: 82 30 cpi r24, 0x02 ; 2 36bc: 91 05 cpc r25, r1 36be: 10 f4 brcc .+4 ; 0x36c4 36c0: 82 e0 ldi r24, 0x02 ; 2 36c2: 90 e0 ldi r25, 0x00 ; 0 36c4: e0 91 aa 06 lds r30, 0x06AA ; 0x8006aa <__flp> 36c8: f0 91 ab 06 lds r31, 0x06AB ; 0x8006ab <__flp+0x1> 36cc: 20 e0 ldi r18, 0x00 ; 0 36ce: 30 e0 ldi r19, 0x00 ; 0 36d0: a0 e0 ldi r26, 0x00 ; 0 36d2: b0 e0 ldi r27, 0x00 ; 0 36d4: 30 97 sbiw r30, 0x00 ; 0 36d6: 19 f1 breq .+70 ; 0x371e 36d8: 40 81 ld r20, Z 36da: 51 81 ldd r21, Z+1 ; 0x01 36dc: 02 81 ldd r16, Z+2 ; 0x02 36de: 13 81 ldd r17, Z+3 ; 0x03 36e0: 48 17 cp r20, r24 36e2: 59 07 cpc r21, r25 36e4: c8 f0 brcs .+50 ; 0x3718 36e6: 84 17 cp r24, r20 36e8: 95 07 cpc r25, r21 36ea: 69 f4 brne .+26 ; 0x3706 36ec: 10 97 sbiw r26, 0x00 ; 0 36ee: 31 f0 breq .+12 ; 0x36fc 36f0: 12 96 adiw r26, 0x02 ; 2 36f2: 0c 93 st X, r16 36f4: 12 97 sbiw r26, 0x02 ; 2 36f6: 13 96 adiw r26, 0x03 ; 3 36f8: 1c 93 st X, r17 36fa: 27 c0 rjmp .+78 ; 0x374a 36fc: 00 93 aa 06 sts 0x06AA, r16 ; 0x8006aa <__flp> 3700: 10 93 ab 06 sts 0x06AB, r17 ; 0x8006ab <__flp+0x1> 3704: 22 c0 rjmp .+68 ; 0x374a 3706: 21 15 cp r18, r1 3708: 31 05 cpc r19, r1 370a: 19 f0 breq .+6 ; 0x3712 370c: 42 17 cp r20, r18 370e: 53 07 cpc r21, r19 3710: 18 f4 brcc .+6 ; 0x3718 3712: 9a 01 movw r18, r20 3714: bd 01 movw r22, r26 3716: ef 01 movw r28, r30 3718: df 01 movw r26, r30 371a: f8 01 movw r30, r16 371c: db cf rjmp .-74 ; 0x36d4 371e: 21 15 cp r18, r1 3720: 31 05 cpc r19, r1 3722: f9 f0 breq .+62 ; 0x3762 3724: 28 1b sub r18, r24 3726: 39 0b sbc r19, r25 3728: 24 30 cpi r18, 0x04 ; 4 372a: 31 05 cpc r19, r1 372c: 80 f4 brcc .+32 ; 0x374e 372e: 8a 81 ldd r24, Y+2 ; 0x02 3730: 9b 81 ldd r25, Y+3 ; 0x03 3732: 61 15 cp r22, r1 3734: 71 05 cpc r23, r1 3736: 21 f0 breq .+8 ; 0x3740 3738: fb 01 movw r30, r22 373a: 93 83 std Z+3, r25 ; 0x03 373c: 82 83 std Z+2, r24 ; 0x02 373e: 04 c0 rjmp .+8 ; 0x3748 3740: 90 93 ab 06 sts 0x06AB, r25 ; 0x8006ab <__flp+0x1> 3744: 80 93 aa 06 sts 0x06AA, r24 ; 0x8006aa <__flp> 3748: fe 01 movw r30, r28 374a: 32 96 adiw r30, 0x02 ; 2 374c: 44 c0 rjmp .+136 ; 0x37d6 374e: fe 01 movw r30, r28 3750: e2 0f add r30, r18 3752: f3 1f adc r31, r19 3754: 81 93 st Z+, r24 3756: 91 93 st Z+, r25 3758: 22 50 subi r18, 0x02 ; 2 375a: 31 09 sbc r19, r1 375c: 39 83 std Y+1, r19 ; 0x01 375e: 28 83 st Y, r18 3760: 3a c0 rjmp .+116 ; 0x37d6 3762: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval> 3766: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1> 376a: 23 2b or r18, r19 376c: 41 f4 brne .+16 ; 0x377e 376e: 20 91 02 01 lds r18, 0x0102 ; 0x800102 <__malloc_heap_start> 3772: 30 91 03 01 lds r19, 0x0103 ; 0x800103 <__malloc_heap_start+0x1> 3776: 30 93 a9 06 sts 0x06A9, r19 ; 0x8006a9 <__brkval+0x1> 377a: 20 93 a8 06 sts 0x06A8, r18 ; 0x8006a8 <__brkval> 377e: 20 91 00 01 lds r18, 0x0100 ; 0x800100 <__data_start> 3782: 30 91 01 01 lds r19, 0x0101 ; 0x800101 <__data_start+0x1> 3786: 21 15 cp r18, r1 3788: 31 05 cpc r19, r1 378a: 41 f4 brne .+16 ; 0x379c 378c: 2d b7 in r18, 0x3d ; 61 378e: 3e b7 in r19, 0x3e ; 62 3790: 40 91 04 01 lds r20, 0x0104 ; 0x800104 <__malloc_margin> 3794: 50 91 05 01 lds r21, 0x0105 ; 0x800105 <__malloc_margin+0x1> 3798: 24 1b sub r18, r20 379a: 35 0b sbc r19, r21 379c: e0 91 a8 06 lds r30, 0x06A8 ; 0x8006a8 <__brkval> 37a0: f0 91 a9 06 lds r31, 0x06A9 ; 0x8006a9 <__brkval+0x1> 37a4: e2 17 cp r30, r18 37a6: f3 07 cpc r31, r19 37a8: a0 f4 brcc .+40 ; 0x37d2 37aa: 2e 1b sub r18, r30 37ac: 3f 0b sbc r19, r31 37ae: 28 17 cp r18, r24 37b0: 39 07 cpc r19, r25 37b2: 78 f0 brcs .+30 ; 0x37d2 37b4: ac 01 movw r20, r24 37b6: 4e 5f subi r20, 0xFE ; 254 37b8: 5f 4f sbci r21, 0xFF ; 255 37ba: 24 17 cp r18, r20 37bc: 35 07 cpc r19, r21 37be: 48 f0 brcs .+18 ; 0x37d2 37c0: 4e 0f add r20, r30 37c2: 5f 1f adc r21, r31 37c4: 50 93 a9 06 sts 0x06A9, r21 ; 0x8006a9 <__brkval+0x1> 37c8: 40 93 a8 06 sts 0x06A8, r20 ; 0x8006a8 <__brkval> 37cc: 81 93 st Z+, r24 37ce: 91 93 st Z+, r25 37d0: 02 c0 rjmp .+4 ; 0x37d6 37d2: e0 e0 ldi r30, 0x00 ; 0 37d4: f0 e0 ldi r31, 0x00 ; 0 37d6: cf 01 movw r24, r30 37d8: df 91 pop r29 37da: cf 91 pop r28 37dc: 1f 91 pop r17 37de: 0f 91 pop r16 37e0: 08 95 ret 000037e2 : 37e2: cf 93 push r28 37e4: df 93 push r29 37e6: 00 97 sbiw r24, 0x00 ; 0 37e8: 09 f4 brne .+2 ; 0x37ec 37ea: 81 c0 rjmp .+258 ; 0x38ee 37ec: fc 01 movw r30, r24 37ee: 32 97 sbiw r30, 0x02 ; 2 37f0: 13 82 std Z+3, r1 ; 0x03 37f2: 12 82 std Z+2, r1 ; 0x02 37f4: a0 91 aa 06 lds r26, 0x06AA ; 0x8006aa <__flp> 37f8: b0 91 ab 06 lds r27, 0x06AB ; 0x8006ab <__flp+0x1> 37fc: 10 97 sbiw r26, 0x00 ; 0 37fe: 81 f4 brne .+32 ; 0x3820 3800: 20 81 ld r18, Z 3802: 31 81 ldd r19, Z+1 ; 0x01 3804: 82 0f add r24, r18 3806: 93 1f adc r25, r19 3808: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval> 380c: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1> 3810: 28 17 cp r18, r24 3812: 39 07 cpc r19, r25 3814: 51 f5 brne .+84 ; 0x386a 3816: f0 93 a9 06 sts 0x06A9, r31 ; 0x8006a9 <__brkval+0x1> 381a: e0 93 a8 06 sts 0x06A8, r30 ; 0x8006a8 <__brkval> 381e: 67 c0 rjmp .+206 ; 0x38ee 3820: ed 01 movw r28, r26 3822: 20 e0 ldi r18, 0x00 ; 0 3824: 30 e0 ldi r19, 0x00 ; 0 3826: ce 17 cp r28, r30 3828: df 07 cpc r29, r31 382a: 40 f4 brcc .+16 ; 0x383c 382c: 4a 81 ldd r20, Y+2 ; 0x02 382e: 5b 81 ldd r21, Y+3 ; 0x03 3830: 9e 01 movw r18, r28 3832: 41 15 cp r20, r1 3834: 51 05 cpc r21, r1 3836: f1 f0 breq .+60 ; 0x3874 3838: ea 01 movw r28, r20 383a: f5 cf rjmp .-22 ; 0x3826 383c: d3 83 std Z+3, r29 ; 0x03 383e: c2 83 std Z+2, r28 ; 0x02 3840: 40 81 ld r20, Z 3842: 51 81 ldd r21, Z+1 ; 0x01 3844: 84 0f add r24, r20 3846: 95 1f adc r25, r21 3848: c8 17 cp r28, r24 384a: d9 07 cpc r29, r25 384c: 59 f4 brne .+22 ; 0x3864 384e: 88 81 ld r24, Y 3850: 99 81 ldd r25, Y+1 ; 0x01 3852: 84 0f add r24, r20 3854: 95 1f adc r25, r21 3856: 02 96 adiw r24, 0x02 ; 2 3858: 91 83 std Z+1, r25 ; 0x01 385a: 80 83 st Z, r24 385c: 8a 81 ldd r24, Y+2 ; 0x02 385e: 9b 81 ldd r25, Y+3 ; 0x03 3860: 93 83 std Z+3, r25 ; 0x03 3862: 82 83 std Z+2, r24 ; 0x02 3864: 21 15 cp r18, r1 3866: 31 05 cpc r19, r1 3868: 29 f4 brne .+10 ; 0x3874 386a: f0 93 ab 06 sts 0x06AB, r31 ; 0x8006ab <__flp+0x1> 386e: e0 93 aa 06 sts 0x06AA, r30 ; 0x8006aa <__flp> 3872: 3d c0 rjmp .+122 ; 0x38ee 3874: e9 01 movw r28, r18 3876: fb 83 std Y+3, r31 ; 0x03 3878: ea 83 std Y+2, r30 ; 0x02 387a: 49 91 ld r20, Y+ 387c: 59 91 ld r21, Y+ 387e: c4 0f add r28, r20 3880: d5 1f adc r29, r21 3882: ec 17 cp r30, r28 3884: fd 07 cpc r31, r29 3886: 61 f4 brne .+24 ; 0x38a0 3888: 80 81 ld r24, Z 388a: 91 81 ldd r25, Z+1 ; 0x01 388c: 84 0f add r24, r20 388e: 95 1f adc r25, r21 3890: 02 96 adiw r24, 0x02 ; 2 3892: e9 01 movw r28, r18 3894: 99 83 std Y+1, r25 ; 0x01 3896: 88 83 st Y, r24 3898: 82 81 ldd r24, Z+2 ; 0x02 389a: 93 81 ldd r25, Z+3 ; 0x03 389c: 9b 83 std Y+3, r25 ; 0x03 389e: 8a 83 std Y+2, r24 ; 0x02 38a0: e0 e0 ldi r30, 0x00 ; 0 38a2: f0 e0 ldi r31, 0x00 ; 0 38a4: 12 96 adiw r26, 0x02 ; 2 38a6: 8d 91 ld r24, X+ 38a8: 9c 91 ld r25, X 38aa: 13 97 sbiw r26, 0x03 ; 3 38ac: 00 97 sbiw r24, 0x00 ; 0 38ae: 19 f0 breq .+6 ; 0x38b6 38b0: fd 01 movw r30, r26 38b2: dc 01 movw r26, r24 38b4: f7 cf rjmp .-18 ; 0x38a4 38b6: 8d 91 ld r24, X+ 38b8: 9c 91 ld r25, X 38ba: 11 97 sbiw r26, 0x01 ; 1 38bc: 9d 01 movw r18, r26 38be: 2e 5f subi r18, 0xFE ; 254 38c0: 3f 4f sbci r19, 0xFF ; 255 38c2: 82 0f add r24, r18 38c4: 93 1f adc r25, r19 38c6: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval> 38ca: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1> 38ce: 28 17 cp r18, r24 38d0: 39 07 cpc r19, r25 38d2: 69 f4 brne .+26 ; 0x38ee 38d4: 30 97 sbiw r30, 0x00 ; 0 38d6: 29 f4 brne .+10 ; 0x38e2 38d8: 10 92 ab 06 sts 0x06AB, r1 ; 0x8006ab <__flp+0x1> 38dc: 10 92 aa 06 sts 0x06AA, r1 ; 0x8006aa <__flp> 38e0: 02 c0 rjmp .+4 ; 0x38e6 38e2: 13 82 std Z+3, r1 ; 0x03 38e4: 12 82 std Z+2, r1 ; 0x02 38e6: b0 93 a9 06 sts 0x06A9, r27 ; 0x8006a9 <__brkval+0x1> 38ea: a0 93 a8 06 sts 0x06A8, r26 ; 0x8006a8 <__brkval> 38ee: df 91 pop r29 38f0: cf 91 pop r28 38f2: 08 95 ret 000038f4 <__ftoa_engine>: 38f4: 28 30 cpi r18, 0x08 ; 8 38f6: 08 f0 brcs .+2 ; 0x38fa <__ftoa_engine+0x6> 38f8: 27 e0 ldi r18, 0x07 ; 7 38fa: 33 27 eor r19, r19 38fc: da 01 movw r26, r20 38fe: 99 0f add r25, r25 3900: 31 1d adc r19, r1 3902: 87 fd sbrc r24, 7 3904: 91 60 ori r25, 0x01 ; 1 3906: 00 96 adiw r24, 0x00 ; 0 3908: 61 05 cpc r22, r1 390a: 71 05 cpc r23, r1 390c: 39 f4 brne .+14 ; 0x391c <__ftoa_engine+0x28> 390e: 32 60 ori r19, 0x02 ; 2 3910: 2e 5f subi r18, 0xFE ; 254 3912: 3d 93 st X+, r19 3914: 30 e3 ldi r19, 0x30 ; 48 3916: 2a 95 dec r18 3918: e1 f7 brne .-8 ; 0x3912 <__ftoa_engine+0x1e> 391a: 08 95 ret 391c: 9f 3f cpi r25, 0xFF ; 255 391e: 30 f0 brcs .+12 ; 0x392c <__ftoa_engine+0x38> 3920: 80 38 cpi r24, 0x80 ; 128 3922: 71 05 cpc r23, r1 3924: 61 05 cpc r22, r1 3926: 09 f0 breq .+2 ; 0x392a <__ftoa_engine+0x36> 3928: 3c 5f subi r19, 0xFC ; 252 392a: 3c 5f subi r19, 0xFC ; 252 392c: 3d 93 st X+, r19 392e: 91 30 cpi r25, 0x01 ; 1 3930: 08 f0 brcs .+2 ; 0x3934 <__ftoa_engine+0x40> 3932: 80 68 ori r24, 0x80 ; 128 3934: 91 1d adc r25, r1 3936: df 93 push r29 3938: cf 93 push r28 393a: 1f 93 push r17 393c: 0f 93 push r16 393e: ff 92 push r15 3940: ef 92 push r14 3942: 19 2f mov r17, r25 3944: 98 7f andi r25, 0xF8 ; 248 3946: 96 95 lsr r25 3948: e9 2f mov r30, r25 394a: 96 95 lsr r25 394c: 96 95 lsr r25 394e: e9 0f add r30, r25 3950: ff 27 eor r31, r31 3952: ee 50 subi r30, 0x0E ; 14 3954: ff 4f sbci r31, 0xFF ; 255 3956: 99 27 eor r25, r25 3958: 33 27 eor r19, r19 395a: ee 24 eor r14, r14 395c: ff 24 eor r15, r15 395e: a7 01 movw r20, r14 3960: e7 01 movw r28, r14 3962: 05 90 lpm r0, Z+ 3964: 08 94 sec 3966: 07 94 ror r0 3968: 28 f4 brcc .+10 ; 0x3974 <__ftoa_engine+0x80> 396a: 36 0f add r19, r22 396c: e7 1e adc r14, r23 396e: f8 1e adc r15, r24 3970: 49 1f adc r20, r25 3972: 51 1d adc r21, r1 3974: 66 0f add r22, r22 3976: 77 1f adc r23, r23 3978: 88 1f adc r24, r24 397a: 99 1f adc r25, r25 397c: 06 94 lsr r0 397e: a1 f7 brne .-24 ; 0x3968 <__ftoa_engine+0x74> 3980: 05 90 lpm r0, Z+ 3982: 07 94 ror r0 3984: 28 f4 brcc .+10 ; 0x3990 <__ftoa_engine+0x9c> 3986: e7 0e add r14, r23 3988: f8 1e adc r15, r24 398a: 49 1f adc r20, r25 398c: 56 1f adc r21, r22 398e: c1 1d adc r28, r1 3990: 77 0f add r23, r23 3992: 88 1f adc r24, r24 3994: 99 1f adc r25, r25 3996: 66 1f adc r22, r22 3998: 06 94 lsr r0 399a: a1 f7 brne .-24 ; 0x3984 <__ftoa_engine+0x90> 399c: 05 90 lpm r0, Z+ 399e: 07 94 ror r0 39a0: 28 f4 brcc .+10 ; 0x39ac <__ftoa_engine+0xb8> 39a2: f8 0e add r15, r24 39a4: 49 1f adc r20, r25 39a6: 56 1f adc r21, r22 39a8: c7 1f adc r28, r23 39aa: d1 1d adc r29, r1 39ac: 88 0f add r24, r24 39ae: 99 1f adc r25, r25 39b0: 66 1f adc r22, r22 39b2: 77 1f adc r23, r23 39b4: 06 94 lsr r0 39b6: a1 f7 brne .-24 ; 0x39a0 <__ftoa_engine+0xac> 39b8: 05 90 lpm r0, Z+ 39ba: 07 94 ror r0 39bc: 20 f4 brcc .+8 ; 0x39c6 <__ftoa_engine+0xd2> 39be: 49 0f add r20, r25 39c0: 56 1f adc r21, r22 39c2: c7 1f adc r28, r23 39c4: d8 1f adc r29, r24 39c6: 99 0f add r25, r25 39c8: 66 1f adc r22, r22 39ca: 77 1f adc r23, r23 39cc: 88 1f adc r24, r24 39ce: 06 94 lsr r0 39d0: a9 f7 brne .-22 ; 0x39bc <__ftoa_engine+0xc8> 39d2: 84 91 lpm r24, Z 39d4: 10 95 com r17 39d6: 17 70 andi r17, 0x07 ; 7 39d8: 41 f0 breq .+16 ; 0x39ea <__ftoa_engine+0xf6> 39da: d6 95 lsr r29 39dc: c7 95 ror r28 39de: 57 95 ror r21 39e0: 47 95 ror r20 39e2: f7 94 ror r15 39e4: e7 94 ror r14 39e6: 1a 95 dec r17 39e8: c1 f7 brne .-16 ; 0x39da <__ftoa_engine+0xe6> 39ea: e8 e9 ldi r30, 0x98 ; 152 39ec: f0 e0 ldi r31, 0x00 ; 0 39ee: 68 94 set 39f0: 15 90 lpm r1, Z+ 39f2: 15 91 lpm r17, Z+ 39f4: 35 91 lpm r19, Z+ 39f6: 65 91 lpm r22, Z+ 39f8: 95 91 lpm r25, Z+ 39fa: 05 90 lpm r0, Z+ 39fc: 7f e2 ldi r23, 0x2F ; 47 39fe: 73 95 inc r23 3a00: e1 18 sub r14, r1 3a02: f1 0a sbc r15, r17 3a04: 43 0b sbc r20, r19 3a06: 56 0b sbc r21, r22 3a08: c9 0b sbc r28, r25 3a0a: d0 09 sbc r29, r0 3a0c: c0 f7 brcc .-16 ; 0x39fe <__ftoa_engine+0x10a> 3a0e: e1 0c add r14, r1 3a10: f1 1e adc r15, r17 3a12: 43 1f adc r20, r19 3a14: 56 1f adc r21, r22 3a16: c9 1f adc r28, r25 3a18: d0 1d adc r29, r0 3a1a: 7e f4 brtc .+30 ; 0x3a3a <__ftoa_engine+0x146> 3a1c: 70 33 cpi r23, 0x30 ; 48 3a1e: 11 f4 brne .+4 ; 0x3a24 <__ftoa_engine+0x130> 3a20: 8a 95 dec r24 3a22: e6 cf rjmp .-52 ; 0x39f0 <__ftoa_engine+0xfc> 3a24: e8 94 clt 3a26: 01 50 subi r16, 0x01 ; 1 3a28: 30 f0 brcs .+12 ; 0x3a36 <__ftoa_engine+0x142> 3a2a: 08 0f add r16, r24 3a2c: 0a f4 brpl .+2 ; 0x3a30 <__ftoa_engine+0x13c> 3a2e: 00 27 eor r16, r16 3a30: 02 17 cp r16, r18 3a32: 08 f4 brcc .+2 ; 0x3a36 <__ftoa_engine+0x142> 3a34: 20 2f mov r18, r16 3a36: 23 95 inc r18 3a38: 02 2f mov r16, r18 3a3a: 7a 33 cpi r23, 0x3A ; 58 3a3c: 28 f0 brcs .+10 ; 0x3a48 <__ftoa_engine+0x154> 3a3e: 79 e3 ldi r23, 0x39 ; 57 3a40: 7d 93 st X+, r23 3a42: 2a 95 dec r18 3a44: e9 f7 brne .-6 ; 0x3a40 <__ftoa_engine+0x14c> 3a46: 10 c0 rjmp .+32 ; 0x3a68 <__ftoa_engine+0x174> 3a48: 7d 93 st X+, r23 3a4a: 2a 95 dec r18 3a4c: 89 f6 brne .-94 ; 0x39f0 <__ftoa_engine+0xfc> 3a4e: 06 94 lsr r0 3a50: 97 95 ror r25 3a52: 67 95 ror r22 3a54: 37 95 ror r19 3a56: 17 95 ror r17 3a58: 17 94 ror r1 3a5a: e1 18 sub r14, r1 3a5c: f1 0a sbc r15, r17 3a5e: 43 0b sbc r20, r19 3a60: 56 0b sbc r21, r22 3a62: c9 0b sbc r28, r25 3a64: d0 09 sbc r29, r0 3a66: 98 f0 brcs .+38 ; 0x3a8e <__ftoa_engine+0x19a> 3a68: 23 95 inc r18 3a6a: 7e 91 ld r23, -X 3a6c: 73 95 inc r23 3a6e: 7a 33 cpi r23, 0x3A ; 58 3a70: 08 f0 brcs .+2 ; 0x3a74 <__ftoa_engine+0x180> 3a72: 70 e3 ldi r23, 0x30 ; 48 3a74: 7c 93 st X, r23 3a76: 20 13 cpse r18, r16 3a78: b8 f7 brcc .-18 ; 0x3a68 <__ftoa_engine+0x174> 3a7a: 7e 91 ld r23, -X 3a7c: 70 61 ori r23, 0x10 ; 16 3a7e: 7d 93 st X+, r23 3a80: 30 f0 brcs .+12 ; 0x3a8e <__ftoa_engine+0x19a> 3a82: 83 95 inc r24 3a84: 71 e3 ldi r23, 0x31 ; 49 3a86: 7d 93 st X+, r23 3a88: 70 e3 ldi r23, 0x30 ; 48 3a8a: 2a 95 dec r18 3a8c: e1 f7 brne .-8 ; 0x3a86 <__ftoa_engine+0x192> 3a8e: 11 24 eor r1, r1 3a90: ef 90 pop r14 3a92: ff 90 pop r15 3a94: 0f 91 pop r16 3a96: 1f 91 pop r17 3a98: cf 91 pop r28 3a9a: df 91 pop r29 3a9c: 99 27 eor r25, r25 3a9e: 87 fd sbrc r24, 7 3aa0: 90 95 com r25 3aa2: 08 95 ret 00003aa4 : 3aa4: fc 01 movw r30, r24 3aa6: 05 90 lpm r0, Z+ 3aa8: 61 50 subi r22, 0x01 ; 1 3aaa: 70 40 sbci r23, 0x00 ; 0 3aac: 01 10 cpse r0, r1 3aae: d8 f7 brcc .-10 ; 0x3aa6 3ab0: 80 95 com r24 3ab2: 90 95 com r25 3ab4: 8e 0f add r24, r30 3ab6: 9f 1f adc r25, r31 3ab8: 08 95 ret 00003aba : 3aba: fb 01 movw r30, r22 3abc: dc 01 movw r26, r24 3abe: 02 c0 rjmp .+4 ; 0x3ac4 3ac0: 01 90 ld r0, Z+ 3ac2: 0d 92 st X+, r0 3ac4: 41 50 subi r20, 0x01 ; 1 3ac6: 50 40 sbci r21, 0x00 ; 0 3ac8: d8 f7 brcc .-10 ; 0x3ac0 3aca: 08 95 ret 00003acc : 3acc: dc 01 movw r26, r24 3ace: 01 c0 rjmp .+2 ; 0x3ad2 3ad0: 6d 93 st X+, r22 3ad2: 41 50 subi r20, 0x01 ; 1 3ad4: 50 40 sbci r21, 0x00 ; 0 3ad6: e0 f7 brcc .-8 ; 0x3ad0 3ad8: 08 95 ret 00003ada : 3ada: fb 01 movw r30, r22 3adc: dc 01 movw r26, r24 3ade: 41 50 subi r20, 0x01 ; 1 3ae0: 50 40 sbci r21, 0x00 ; 0 3ae2: 48 f0 brcs .+18 ; 0x3af6 3ae4: 01 90 ld r0, Z+ 3ae6: 0d 92 st X+, r0 3ae8: 00 20 and r0, r0 3aea: c9 f7 brne .-14 ; 0x3ade 3aec: 01 c0 rjmp .+2 ; 0x3af0 3aee: 1d 92 st X+, r1 3af0: 41 50 subi r20, 0x01 ; 1 3af2: 50 40 sbci r21, 0x00 ; 0 3af4: e0 f7 brcc .-8 ; 0x3aee 3af6: 08 95 ret 00003af8 : 3af8: fc 01 movw r30, r24 3afa: 61 50 subi r22, 0x01 ; 1 3afc: 70 40 sbci r23, 0x00 ; 0 3afe: 01 90 ld r0, Z+ 3b00: 01 10 cpse r0, r1 3b02: d8 f7 brcc .-10 ; 0x3afa 3b04: 80 95 com r24 3b06: 90 95 com r25 3b08: 8e 0f add r24, r30 3b0a: 9f 1f adc r25, r31 3b0c: 08 95 ret 00003b0e : 3b0e: a0 e0 ldi r26, 0x00 ; 0 3b10: b0 e0 ldi r27, 0x00 ; 0 3b12: ec e8 ldi r30, 0x8C ; 140 3b14: fd e1 ldi r31, 0x1D ; 29 3b16: 78 cd rjmp .-1296 ; 0x3608 <__prologue_saves__+0x20> 3b18: ae 01 movw r20, r28 3b1a: 47 5f subi r20, 0xF7 ; 247 3b1c: 5f 4f sbci r21, 0xFF ; 255 3b1e: 6f 81 ldd r22, Y+7 ; 0x07 3b20: 78 85 ldd r23, Y+8 ; 0x08 3b22: 8d 81 ldd r24, Y+5 ; 0x05 3b24: 9e 81 ldd r25, Y+6 ; 0x06 3b26: da d9 rcall .-3148 ; 0x2edc 3b28: e2 e0 ldi r30, 0x02 ; 2 3b2a: 8a cd rjmp .-1260 ; 0x3640 <__epilogue_restores__+0x20> 00003b2c : 3b2c: 0f 93 push r16 3b2e: 1f 93 push r17 3b30: cf 93 push r28 3b32: df 93 push r29 3b34: fb 01 movw r30, r22 3b36: 23 81 ldd r18, Z+3 ; 0x03 3b38: 21 fd sbrc r18, 1 3b3a: 03 c0 rjmp .+6 ; 0x3b42 3b3c: 8f ef ldi r24, 0xFF ; 255 3b3e: 9f ef ldi r25, 0xFF ; 255 3b40: 2c c0 rjmp .+88 ; 0x3b9a 3b42: 22 ff sbrs r18, 2 3b44: 16 c0 rjmp .+44 ; 0x3b72 3b46: 46 81 ldd r20, Z+6 ; 0x06 3b48: 57 81 ldd r21, Z+7 ; 0x07 3b4a: 24 81 ldd r18, Z+4 ; 0x04 3b4c: 35 81 ldd r19, Z+5 ; 0x05 3b4e: 42 17 cp r20, r18 3b50: 53 07 cpc r21, r19 3b52: 44 f4 brge .+16 ; 0x3b64 3b54: a0 81 ld r26, Z 3b56: b1 81 ldd r27, Z+1 ; 0x01 3b58: 9d 01 movw r18, r26 3b5a: 2f 5f subi r18, 0xFF ; 255 3b5c: 3f 4f sbci r19, 0xFF ; 255 3b5e: 31 83 std Z+1, r19 ; 0x01 3b60: 20 83 st Z, r18 3b62: 8c 93 st X, r24 3b64: 26 81 ldd r18, Z+6 ; 0x06 3b66: 37 81 ldd r19, Z+7 ; 0x07 3b68: 2f 5f subi r18, 0xFF ; 255 3b6a: 3f 4f sbci r19, 0xFF ; 255 3b6c: 37 83 std Z+7, r19 ; 0x07 3b6e: 26 83 std Z+6, r18 ; 0x06 3b70: 14 c0 rjmp .+40 ; 0x3b9a 3b72: 8b 01 movw r16, r22 3b74: ec 01 movw r28, r24 3b76: fb 01 movw r30, r22 3b78: 00 84 ldd r0, Z+8 ; 0x08 3b7a: f1 85 ldd r31, Z+9 ; 0x09 3b7c: e0 2d mov r30, r0 3b7e: 09 95 icall 3b80: 89 2b or r24, r25 3b82: e1 f6 brne .-72 ; 0x3b3c 3b84: d8 01 movw r26, r16 3b86: 16 96 adiw r26, 0x06 ; 6 3b88: 8d 91 ld r24, X+ 3b8a: 9c 91 ld r25, X 3b8c: 17 97 sbiw r26, 0x07 ; 7 3b8e: 01 96 adiw r24, 0x01 ; 1 3b90: 17 96 adiw r26, 0x07 ; 7 3b92: 9c 93 st X, r25 3b94: 8e 93 st -X, r24 3b96: 16 97 sbiw r26, 0x06 ; 6 3b98: ce 01 movw r24, r28 3b9a: df 91 pop r29 3b9c: cf 91 pop r28 3b9e: 1f 91 pop r17 3ba0: 0f 91 pop r16 3ba2: 08 95 ret 00003ba4 : 3ba4: a0 e0 ldi r26, 0x00 ; 0 3ba6: b0 e0 ldi r27, 0x00 ; 0 3ba8: e7 ed ldi r30, 0xD7 ; 215 3baa: fd e1 ldi r31, 0x1D ; 29 3bac: 23 cd rjmp .-1466 ; 0x35f4 <__prologue_saves__+0xc> 3bae: 5b 01 movw r10, r22 3bb0: 4a 01 movw r8, r20 3bb2: 79 01 movw r14, r18 3bb4: d9 01 movw r26, r18 3bb6: 13 96 adiw r26, 0x03 ; 3 3bb8: 2c 91 ld r18, X 3bba: 21 ff sbrs r18, 1 3bbc: 1d c0 rjmp .+58 ; 0x3bf8 3bbe: c0 e0 ldi r28, 0x00 ; 0 3bc0: d0 e0 ldi r29, 0x00 ; 0 3bc2: c8 15 cp r28, r8 3bc4: d9 05 cpc r29, r9 3bc6: d9 f0 breq .+54 ; 0x3bfe 3bc8: 8c 01 movw r16, r24 3bca: 6c 01 movw r12, r24 3bcc: ca 0c add r12, r10 3bce: db 1c adc r13, r11 3bd0: c8 01 movw r24, r16 3bd2: 0c 15 cp r16, r12 3bd4: 1d 05 cpc r17, r13 3bd6: 71 f0 breq .+28 ; 0x3bf4 3bd8: 0f 5f subi r16, 0xFF ; 255 3bda: 1f 4f sbci r17, 0xFF ; 255 3bdc: d7 01 movw r26, r14 3bde: 18 96 adiw r26, 0x08 ; 8 3be0: ed 91 ld r30, X+ 3be2: fc 91 ld r31, X 3be4: 19 97 sbiw r26, 0x09 ; 9 3be6: b7 01 movw r22, r14 3be8: dc 01 movw r26, r24 3bea: 8c 91 ld r24, X 3bec: 09 95 icall 3bee: 89 2b or r24, r25 3bf0: 79 f3 breq .-34 ; 0x3bd0 3bf2: 05 c0 rjmp .+10 ; 0x3bfe 3bf4: 21 96 adiw r28, 0x01 ; 1 3bf6: e5 cf rjmp .-54 ; 0x3bc2 3bf8: 80 e0 ldi r24, 0x00 ; 0 3bfa: 90 e0 ldi r25, 0x00 ; 0 3bfc: 01 c0 rjmp .+2 ; 0x3c00 3bfe: ce 01 movw r24, r28 3c00: cd b7 in r28, 0x3d ; 61 3c02: de b7 in r29, 0x3e ; 62 3c04: ec e0 ldi r30, 0x0C ; 12 3c06: 12 cd rjmp .-1500 ; 0x362c <__epilogue_restores__+0xc> 00003c08 <__ultoa_invert>: 3c08: fa 01 movw r30, r20 3c0a: aa 27 eor r26, r26 3c0c: 28 30 cpi r18, 0x08 ; 8 3c0e: 51 f1 breq .+84 ; 0x3c64 <__ultoa_invert+0x5c> 3c10: 20 31 cpi r18, 0x10 ; 16 3c12: 81 f1 breq .+96 ; 0x3c74 <__ultoa_invert+0x6c> 3c14: e8 94 clt 3c16: 6f 93 push r22 3c18: 6e 7f andi r22, 0xFE ; 254 3c1a: 6e 5f subi r22, 0xFE ; 254 3c1c: 7f 4f sbci r23, 0xFF ; 255 3c1e: 8f 4f sbci r24, 0xFF ; 255 3c20: 9f 4f sbci r25, 0xFF ; 255 3c22: af 4f sbci r26, 0xFF ; 255 3c24: b1 e0 ldi r27, 0x01 ; 1 3c26: 3e d0 rcall .+124 ; 0x3ca4 <__ultoa_invert+0x9c> 3c28: b4 e0 ldi r27, 0x04 ; 4 3c2a: 3c d0 rcall .+120 ; 0x3ca4 <__ultoa_invert+0x9c> 3c2c: 67 0f add r22, r23 3c2e: 78 1f adc r23, r24 3c30: 89 1f adc r24, r25 3c32: 9a 1f adc r25, r26 3c34: a1 1d adc r26, r1 3c36: 68 0f add r22, r24 3c38: 79 1f adc r23, r25 3c3a: 8a 1f adc r24, r26 3c3c: 91 1d adc r25, r1 3c3e: a1 1d adc r26, r1 3c40: 6a 0f add r22, r26 3c42: 71 1d adc r23, r1 3c44: 81 1d adc r24, r1 3c46: 91 1d adc r25, r1 3c48: a1 1d adc r26, r1 3c4a: 20 d0 rcall .+64 ; 0x3c8c <__ultoa_invert+0x84> 3c4c: 09 f4 brne .+2 ; 0x3c50 <__ultoa_invert+0x48> 3c4e: 68 94 set 3c50: 3f 91 pop r19 3c52: 2a e0 ldi r18, 0x0A ; 10 3c54: 26 9f mul r18, r22 3c56: 11 24 eor r1, r1 3c58: 30 19 sub r19, r0 3c5a: 30 5d subi r19, 0xD0 ; 208 3c5c: 31 93 st Z+, r19 3c5e: de f6 brtc .-74 ; 0x3c16 <__ultoa_invert+0xe> 3c60: cf 01 movw r24, r30 3c62: 08 95 ret 3c64: 46 2f mov r20, r22 3c66: 47 70 andi r20, 0x07 ; 7 3c68: 40 5d subi r20, 0xD0 ; 208 3c6a: 41 93 st Z+, r20 3c6c: b3 e0 ldi r27, 0x03 ; 3 3c6e: 0f d0 rcall .+30 ; 0x3c8e <__ultoa_invert+0x86> 3c70: c9 f7 brne .-14 ; 0x3c64 <__ultoa_invert+0x5c> 3c72: f6 cf rjmp .-20 ; 0x3c60 <__ultoa_invert+0x58> 3c74: 46 2f mov r20, r22 3c76: 4f 70 andi r20, 0x0F ; 15 3c78: 40 5d subi r20, 0xD0 ; 208 3c7a: 4a 33 cpi r20, 0x3A ; 58 3c7c: 18 f0 brcs .+6 ; 0x3c84 <__ultoa_invert+0x7c> 3c7e: 49 5d subi r20, 0xD9 ; 217 3c80: 31 fd sbrc r19, 1 3c82: 40 52 subi r20, 0x20 ; 32 3c84: 41 93 st Z+, r20 3c86: 02 d0 rcall .+4 ; 0x3c8c <__ultoa_invert+0x84> 3c88: a9 f7 brne .-22 ; 0x3c74 <__ultoa_invert+0x6c> 3c8a: ea cf rjmp .-44 ; 0x3c60 <__ultoa_invert+0x58> 3c8c: b4 e0 ldi r27, 0x04 ; 4 3c8e: a6 95 lsr r26 3c90: 97 95 ror r25 3c92: 87 95 ror r24 3c94: 77 95 ror r23 3c96: 67 95 ror r22 3c98: ba 95 dec r27 3c9a: c9 f7 brne .-14 ; 0x3c8e <__ultoa_invert+0x86> 3c9c: 00 97 sbiw r24, 0x00 ; 0 3c9e: 61 05 cpc r22, r1 3ca0: 71 05 cpc r23, r1 3ca2: 08 95 ret 3ca4: 9b 01 movw r18, r22 3ca6: ac 01 movw r20, r24 3ca8: 0a 2e mov r0, r26 3caa: 06 94 lsr r0 3cac: 57 95 ror r21 3cae: 47 95 ror r20 3cb0: 37 95 ror r19 3cb2: 27 95 ror r18 3cb4: ba 95 dec r27 3cb6: c9 f7 brne .-14 ; 0x3caa <__ultoa_invert+0xa2> 3cb8: 62 0f add r22, r18 3cba: 73 1f adc r23, r19 3cbc: 84 1f adc r24, r20 3cbe: 95 1f adc r25, r21 3cc0: a0 1d adc r26, r0 3cc2: 08 95 ret 00003cc4 <_exit>: 3cc4: f8 94 cli 00003cc6 <__stop_program>: 3cc6: ff cf rjmp .-2 ; 0x3cc6 <__stop_program>