Files
microcontrollers/Microcontrollers/Eindopdracht/Debug/Eindopdracht.lss
2021-03-31 10:21:55 +02:00

1433 lines
50 KiB
Plaintext

Eindopdracht.elf: file format elf32-avr
Sections:
Idx Name Size VMA LMA File off Algn
0 .data 00000004 00800100 00000968 000009fc 2**0
CONTENTS, ALLOC, LOAD, DATA
1 .text 00000968 00000000 00000000 00000094 2**1
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .bss 00000002 00800104 00800104 00000a00 2**0
ALLOC
3 .comment 0000005c 00000000 00000000 00000a00 2**0
CONTENTS, READONLY
4 .note.gnu.avr.deviceinfo 0000003c 00000000 00000000 00000a5c 2**2
CONTENTS, READONLY
5 .debug_aranges 000000e8 00000000 00000000 00000a98 2**0
CONTENTS, READONLY, DEBUGGING
6 .debug_info 00001114 00000000 00000000 00000b80 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_abbrev 00000b68 00000000 00000000 00001c94 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_line 00000861 00000000 00000000 000027fc 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_frame 0000022c 00000000 00000000 00003060 2**2
CONTENTS, READONLY, DEBUGGING
10 .debug_str 000005e1 00000000 00000000 0000328c 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_loc 000004fe 00000000 00000000 0000386d 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_ranges 000000b8 00000000 00000000 00003d6b 2**0
CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:
00000000 <__vectors>:
0: 45 c0 rjmp .+138 ; 0x8c <__ctors_end>
2: 00 00 nop
4: 38 c1 rjmp .+624 ; 0x276 <__vector_1>
6: 00 00 nop
8: 5e c0 rjmp .+188 ; 0xc6 <__bad_interrupt>
a: 00 00 nop
c: 5c c0 rjmp .+184 ; 0xc6 <__bad_interrupt>
e: 00 00 nop
10: 5a c0 rjmp .+180 ; 0xc6 <__bad_interrupt>
12: 00 00 nop
14: 58 c0 rjmp .+176 ; 0xc6 <__bad_interrupt>
16: 00 00 nop
18: 56 c0 rjmp .+172 ; 0xc6 <__bad_interrupt>
1a: 00 00 nop
1c: 54 c0 rjmp .+168 ; 0xc6 <__bad_interrupt>
1e: 00 00 nop
20: 52 c0 rjmp .+164 ; 0xc6 <__bad_interrupt>
22: 00 00 nop
24: 50 c0 rjmp .+160 ; 0xc6 <__bad_interrupt>
26: 00 00 nop
28: 4e c0 rjmp .+156 ; 0xc6 <__bad_interrupt>
2a: 00 00 nop
2c: 4c c0 rjmp .+152 ; 0xc6 <__bad_interrupt>
2e: 00 00 nop
30: 4a c0 rjmp .+148 ; 0xc6 <__bad_interrupt>
32: 00 00 nop
34: 48 c0 rjmp .+144 ; 0xc6 <__bad_interrupt>
36: 00 00 nop
38: 46 c0 rjmp .+140 ; 0xc6 <__bad_interrupt>
3a: 00 00 nop
3c: 44 c0 rjmp .+136 ; 0xc6 <__bad_interrupt>
3e: 00 00 nop
40: 42 c0 rjmp .+132 ; 0xc6 <__bad_interrupt>
42: 00 00 nop
44: 40 c0 rjmp .+128 ; 0xc6 <__bad_interrupt>
46: 00 00 nop
48: 3e c0 rjmp .+124 ; 0xc6 <__bad_interrupt>
4a: 00 00 nop
4c: 3c c0 rjmp .+120 ; 0xc6 <__bad_interrupt>
4e: 00 00 nop
50: 3a c0 rjmp .+116 ; 0xc6 <__bad_interrupt>
52: 00 00 nop
54: 38 c0 rjmp .+112 ; 0xc6 <__bad_interrupt>
56: 00 00 nop
58: 36 c0 rjmp .+108 ; 0xc6 <__bad_interrupt>
5a: 00 00 nop
5c: 34 c0 rjmp .+104 ; 0xc6 <__bad_interrupt>
5e: 00 00 nop
60: 32 c0 rjmp .+100 ; 0xc6 <__bad_interrupt>
62: 00 00 nop
64: 30 c0 rjmp .+96 ; 0xc6 <__bad_interrupt>
66: 00 00 nop
68: 2e c0 rjmp .+92 ; 0xc6 <__bad_interrupt>
6a: 00 00 nop
6c: 2c c0 rjmp .+88 ; 0xc6 <__bad_interrupt>
6e: 00 00 nop
70: 2a c0 rjmp .+84 ; 0xc6 <__bad_interrupt>
72: 00 00 nop
74: 28 c0 rjmp .+80 ; 0xc6 <__bad_interrupt>
76: 00 00 nop
78: 26 c0 rjmp .+76 ; 0xc6 <__bad_interrupt>
7a: 00 00 nop
7c: 24 c0 rjmp .+72 ; 0xc6 <__bad_interrupt>
7e: 00 00 nop
80: 22 c0 rjmp .+68 ; 0xc6 <__bad_interrupt>
82: 00 00 nop
84: 20 c0 rjmp .+64 ; 0xc6 <__bad_interrupt>
86: 00 00 nop
88: 1e c0 rjmp .+60 ; 0xc6 <__bad_interrupt>
...
0000008c <__ctors_end>:
8c: 11 24 eor r1, r1
8e: 1f be out 0x3f, r1 ; 63
90: cf ef ldi r28, 0xFF ; 255
92: d0 e1 ldi r29, 0x10 ; 16
94: de bf out 0x3e, r29 ; 62
96: cd bf out 0x3d, r28 ; 61
00000098 <__do_copy_data>:
98: 11 e0 ldi r17, 0x01 ; 1
9a: a0 e0 ldi r26, 0x00 ; 0
9c: b1 e0 ldi r27, 0x01 ; 1
9e: e8 e6 ldi r30, 0x68 ; 104
a0: f9 e0 ldi r31, 0x09 ; 9
a2: 00 e0 ldi r16, 0x00 ; 0
a4: 0b bf out 0x3b, r16 ; 59
a6: 02 c0 rjmp .+4 ; 0xac <__do_copy_data+0x14>
a8: 07 90 elpm r0, Z+
aa: 0d 92 st X+, r0
ac: a4 30 cpi r26, 0x04 ; 4
ae: b1 07 cpc r27, r17
b0: d9 f7 brne .-10 ; 0xa8 <__do_copy_data+0x10>
000000b2 <__do_clear_bss>:
b2: 21 e0 ldi r18, 0x01 ; 1
b4: a4 e0 ldi r26, 0x04 ; 4
b6: b1 e0 ldi r27, 0x01 ; 1
b8: 01 c0 rjmp .+2 ; 0xbc <.do_clear_bss_start>
000000ba <.do_clear_bss_loop>:
ba: 1d 92 st X+, r1
000000bc <.do_clear_bss_start>:
bc: a6 30 cpi r26, 0x06 ; 6
be: b2 07 cpc r27, r18
c0: e1 f7 brne .-8 ; 0xba <.do_clear_bss_loop>
c2: 00 d1 rcall .+512 ; 0x2c4 <main>
c4: 4f c4 rjmp .+2206 ; 0x964 <_exit>
000000c6 <__bad_interrupt>:
c6: 9c cf rjmp .-200 ; 0x0 <__vectors>
000000c8 <sbi_porta>:
}
}
void lcd_move_right(void){
lcd_write_command(0x1E);
c8: 9b b3 in r25, 0x1b ; 27
ca: 21 e0 ldi r18, 0x01 ; 1
cc: 30 e0 ldi r19, 0x00 ; 0
ce: 02 c0 rjmp .+4 ; 0xd4 <sbi_porta+0xc>
d0: 22 0f add r18, r18
d2: 33 1f adc r19, r19
d4: 8a 95 dec r24
d6: e2 f7 brpl .-8 ; 0xd0 <sbi_porta+0x8>
d8: 29 2b or r18, r25
da: 2b bb out 0x1b, r18 ; 27
dc: 08 95 ret
000000de <cbi_porta>:
de: 9b b3 in r25, 0x1b ; 27
e0: 21 e0 ldi r18, 0x01 ; 1
e2: 30 e0 ldi r19, 0x00 ; 0
e4: 02 c0 rjmp .+4 ; 0xea <cbi_porta+0xc>
e6: 22 0f add r18, r18
e8: 33 1f adc r19, r19
ea: 8a 95 dec r24
ec: e2 f7 brpl .-8 ; 0xe6 <cbi_porta+0x8>
ee: 20 95 com r18
f0: 29 23 and r18, r25
f2: 2b bb out 0x1b, r18 ; 27
f4: 08 95 ret
000000f6 <lcd_strobe_lcd_e>:
f6: 86 e0 ldi r24, 0x06 ; 6
f8: 90 e0 ldi r25, 0x00 ; 0
fa: e6 df rcall .-52 ; 0xc8 <sbi_porta>
fc: 83 ec ldi r24, 0xC3 ; 195
fe: 99 e0 ldi r25, 0x09 ; 9
100: 01 97 sbiw r24, 0x01 ; 1
102: f1 f7 brne .-4 ; 0x100 <lcd_strobe_lcd_e+0xa>
104: 00 c0 rjmp .+0 ; 0x106 <lcd_strobe_lcd_e+0x10>
106: 00 00 nop
108: 86 e0 ldi r24, 0x06 ; 6
10a: 90 e0 ldi r25, 0x00 ; 0
10c: e8 df rcall .-48 ; 0xde <cbi_porta>
10e: 83 ec ldi r24, 0xC3 ; 195
110: 99 e0 ldi r25, 0x09 ; 9
112: 01 97 sbiw r24, 0x01 ; 1
114: f1 f7 brne .-4 ; 0x112 <lcd_strobe_lcd_e+0x1c>
116: 00 c0 rjmp .+0 ; 0x118 <lcd_strobe_lcd_e+0x22>
118: 00 00 nop
11a: 08 95 ret
0000011c <lcd_write_character>:
11c: cf 93 push r28
11e: c8 2f mov r28, r24
120: 85 bb out 0x15, r24 ; 21
122: 84 e0 ldi r24, 0x04 ; 4
124: 90 e0 ldi r25, 0x00 ; 0
126: d0 df rcall .-96 ; 0xc8 <sbi_porta>
128: e6 df rcall .-52 ; 0xf6 <lcd_strobe_lcd_e>
12a: c2 95 swap r28
12c: c0 7f andi r28, 0xF0 ; 240
12e: c5 bb out 0x15, r28 ; 21
130: 84 e0 ldi r24, 0x04 ; 4
132: 90 e0 ldi r25, 0x00 ; 0
134: c9 df rcall .-110 ; 0xc8 <sbi_porta>
136: df df rcall .-66 ; 0xf6 <lcd_strobe_lcd_e>
138: cf 91 pop r28
13a: 08 95 ret
0000013c <lcd_write_command>:
13c: cf 93 push r28
13e: c8 2f mov r28, r24
140: 85 bb out 0x15, r24 ; 21
142: 84 e0 ldi r24, 0x04 ; 4
144: 90 e0 ldi r25, 0x00 ; 0
146: cb df rcall .-106 ; 0xde <cbi_porta>
148: d6 df rcall .-84 ; 0xf6 <lcd_strobe_lcd_e>
14a: c2 95 swap r28
14c: c0 7f andi r28, 0xF0 ; 240
14e: c5 bb out 0x15, r28 ; 21
150: 84 e0 ldi r24, 0x04 ; 4
152: 90 e0 ldi r25, 0x00 ; 0
154: c4 df rcall .-120 ; 0xde <cbi_porta>
156: cf df rcall .-98 ; 0xf6 <lcd_strobe_lcd_e>
158: cf 91 pop r28
15a: 08 95 ret
0000015c <lcd_clear>:
15c: 81 e0 ldi r24, 0x01 ; 1
15e: ee df rcall .-36 ; 0x13c <lcd_write_command>
160: 87 e8 ldi r24, 0x87 ; 135
162: 93 e1 ldi r25, 0x13 ; 19
164: 01 97 sbiw r24, 0x01 ; 1
166: f1 f7 brne .-4 ; 0x164 <lcd_clear+0x8>
168: 00 c0 rjmp .+0 ; 0x16a <lcd_clear+0xe>
16a: 00 00 nop
16c: 80 e8 ldi r24, 0x80 ; 128
16e: e6 cf rjmp .-52 ; 0x13c <lcd_write_command>
170: 08 95 ret
00000172 <init_4bits_mode>:
172: cf 93 push r28
174: 8f ef ldi r24, 0xFF ; 255
176: 84 bb out 0x14, r24 ; 20
178: 85 bb out 0x15, r24 ; 21
17a: 8a bb out 0x1a, r24 ; 26
17c: 15 ba out 0x15, r1 ; 21
17e: 1b ba out 0x1b, r1 ; 27
180: c0 e2 ldi r28, 0x20 ; 32
182: c5 bb out 0x15, r28 ; 21
184: b8 df rcall .-144 ; 0xf6 <lcd_strobe_lcd_e>
186: c5 bb out 0x15, r28 ; 21
188: b6 df rcall .-148 ; 0xf6 <lcd_strobe_lcd_e>
18a: 80 e8 ldi r24, 0x80 ; 128
18c: 85 bb out 0x15, r24 ; 21
18e: b3 df rcall .-154 ; 0xf6 <lcd_strobe_lcd_e>
190: 15 ba out 0x15, r1 ; 21
192: b1 df rcall .-158 ; 0xf6 <lcd_strobe_lcd_e>
194: 80 ef ldi r24, 0xF0 ; 240
196: 85 bb out 0x15, r24 ; 21
198: ae df rcall .-164 ; 0xf6 <lcd_strobe_lcd_e>
19a: 15 ba out 0x15, r1 ; 21
19c: ac df rcall .-168 ; 0xf6 <lcd_strobe_lcd_e>
19e: 80 e6 ldi r24, 0x60 ; 96
1a0: 85 bb out 0x15, r24 ; 21
1a2: a9 df rcall .-174 ; 0xf6 <lcd_strobe_lcd_e>
1a4: 82 e0 ldi r24, 0x02 ; 2
1a6: ca df rcall .-108 ; 0x13c <lcd_write_command>
1a8: a6 df rcall .-180 ; 0xf6 <lcd_strobe_lcd_e>
1aa: cf 91 pop r28
1ac: 08 95 ret
000001ae <lcd_write_string>:
1ae: cf 93 push r28
1b0: df 93 push r29
1b2: ec 01 movw r28, r24
1b4: 02 c0 rjmp .+4 ; 0x1ba <lcd_write_string+0xc>
1b6: b2 df rcall .-156 ; 0x11c <lcd_write_character>
1b8: 21 96 adiw r28, 0x01 ; 1
1ba: 88 81 ld r24, Y
1bc: 81 11 cpse r24, r1
1be: fb cf rjmp .-10 ; 0x1b6 <lcd_write_string+0x8>
1c0: df 91 pop r29
1c2: cf 91 pop r28
1c4: 08 95 ret
000001c6 <lcd_write_int>:
}
void lcd_write_int(int number)
{
1c6: af 92 push r10
1c8: bf 92 push r11
1ca: cf 92 push r12
1cc: df 92 push r13
1ce: ef 92 push r14
1d0: ff 92 push r15
1d2: 0f 93 push r16
1d4: 1f 93 push r17
1d6: cf 93 push r28
1d8: df 93 push r29
1da: cd b7 in r28, 0x3d ; 61
1dc: de b7 in r29, 0x3e ; 62
1de: d8 2e mov r13, r24
1e0: c9 2e mov r12, r25
int length = snprintf(NULL, 0, "%d", number);
char str[length + 1];
snprintf(str, length + 1, "%d", number);
lcd_write_string(str);
}
1e2: ad b6 in r10, 0x3d ; 61
1e4: be b6 in r11, 0x3e ; 62
lcd_write_command(0x1E);
}
void lcd_write_int(int number)
{
int length = snprintf(NULL, 0, "%d", number);
1e6: 9f 93 push r25
1e8: 8f 93 push r24
1ea: 0f 2e mov r0, r31
1ec: f1 e0 ldi r31, 0x01 ; 1
1ee: ef 2e mov r14, r31
1f0: f1 e0 ldi r31, 0x01 ; 1
1f2: ff 2e mov r15, r31
1f4: f0 2d mov r31, r0
1f6: ff 92 push r15
1f8: ef 92 push r14
1fa: 1f 92 push r1
1fc: 1f 92 push r1
1fe: 1f 92 push r1
200: 1f 92 push r1
202: c7 d0 rcall .+398 ; 0x392 <snprintf>
char str[length + 1];
204: 01 96 adiw r24, 0x01 ; 1
206: 2d b7 in r18, 0x3d ; 61
208: 3e b7 in r19, 0x3e ; 62
20a: 28 5f subi r18, 0xF8 ; 248
20c: 3f 4f sbci r19, 0xFF ; 255
20e: 0f b6 in r0, 0x3f ; 63
210: f8 94 cli
212: 3e bf out 0x3e, r19 ; 62
214: 0f be out 0x3f, r0 ; 63
216: 2d bf out 0x3d, r18 ; 61
218: 28 1b sub r18, r24
21a: 39 0b sbc r19, r25
21c: 0f b6 in r0, 0x3f ; 63
21e: f8 94 cli
220: 3e bf out 0x3e, r19 ; 62
222: 0f be out 0x3f, r0 ; 63
224: 2d bf out 0x3d, r18 ; 61
226: 0d b7 in r16, 0x3d ; 61
228: 1e b7 in r17, 0x3e ; 62
22a: 0f 5f subi r16, 0xFF ; 255
22c: 1f 4f sbci r17, 0xFF ; 255
snprintf(str, length + 1, "%d", number);
22e: cf 92 push r12
230: df 92 push r13
232: ff 92 push r15
234: ef 92 push r14
236: 9f 93 push r25
238: 8f 93 push r24
23a: 1f 93 push r17
23c: 0f 93 push r16
23e: a9 d0 rcall .+338 ; 0x392 <snprintf>
lcd_write_string(str);
240: 80 2f mov r24, r16
242: 91 2f mov r25, r17
244: b4 df rcall .-152 ; 0x1ae <lcd_write_string>
}
246: 8d b7 in r24, 0x3d ; 61
248: 9e b7 in r25, 0x3e ; 62
24a: 08 96 adiw r24, 0x08 ; 8
24c: 0f b6 in r0, 0x3f ; 63
24e: f8 94 cli
250: 9e bf out 0x3e, r25 ; 62
252: 0f be out 0x3f, r0 ; 63
254: 8d bf out 0x3d, r24 ; 61
256: 0f b6 in r0, 0x3f ; 63
258: f8 94 cli
25a: be be out 0x3e, r11 ; 62
25c: 0f be out 0x3f, r0 ; 63
25e: ad be out 0x3d, r10 ; 61
260: df 91 pop r29
262: cf 91 pop r28
264: 1f 91 pop r17
266: 0f 91 pop r16
268: ff 90 pop r15
26a: ef 90 pop r14
26c: df 90 pop r13
26e: cf 90 pop r12
270: bf 90 pop r11
272: af 90 pop r10
274: 08 95 ret
00000276 <__vector_1>:
#include "lcd_control.h"
#include "ultrasonic_sensor.h"
ISR(INT0_vect)
{
276: 1f 92 push r1
278: 0f 92 push r0
27a: 0f b6 in r0, 0x3f ; 63
27c: 0f 92 push r0
27e: 11 24 eor r1, r1
280: 0b b6 in r0, 0x3b ; 59
282: 0f 92 push r0
284: 2f 93 push r18
286: 3f 93 push r19
288: 4f 93 push r20
28a: 5f 93 push r21
28c: 6f 93 push r22
28e: 7f 93 push r23
290: 8f 93 push r24
292: 9f 93 push r25
294: af 93 push r26
296: bf 93 push r27
298: ef 93 push r30
29a: ff 93 push r31
ultrasonic_handle_interrupt();
29c: 5c d0 rcall .+184 ; 0x356 <ultrasonic_handle_interrupt>
}
29e: ff 91 pop r31
2a0: ef 91 pop r30
2a2: bf 91 pop r27
2a4: af 91 pop r26
2a6: 9f 91 pop r25
2a8: 8f 91 pop r24
2aa: 7f 91 pop r23
2ac: 6f 91 pop r22
2ae: 5f 91 pop r21
2b0: 4f 91 pop r20
2b2: 3f 91 pop r19
2b4: 2f 91 pop r18
2b6: 0f 90 pop r0
2b8: 0b be out 0x3b, r0 ; 59
2ba: 0f 90 pop r0
2bc: 0f be out 0x3f, r0 ; 63
2be: 0f 90 pop r0
2c0: 1f 90 pop r1
2c2: 18 95 reti
000002c4 <main>:
int main(void)
{
/* Replace with your application code */
ultrasonic_init();
2c4: 2c d0 rcall .+88 ; 0x31e <ultrasonic_init>
init_4bits_mode();
2c6: 55 df rcall .-342 ; 0x172 <init_4bits_mode>
2c8: 87 ea ldi r24, 0xA7 ; 167
#else
//round up by default
__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
#endif
__builtin_avr_delay_cycles(__ticks_dc);
2ca: 91 e6 ldi r25, 0x61 ; 97
2cc: 01 97 sbiw r24, 0x01 ; 1
2ce: f1 f7 brne .-4 ; 0x2cc <main+0x8>
2d0: 00 c0 rjmp .+0 ; 0x2d2 <main+0xe>
2d2: 00 00 nop
_delay_ms(10);
lcd_clear();
2d4: 43 df rcall .-378 ; 0x15c <lcd_clear>
while (1)
{
// TODO change to use the stepper motor
ultrasonic_send_pulse();
2d6: 32 d0 rcall .+100 ; 0x33c <ultrasonic_send_pulse>
lcd_clear();
2d8: 41 df rcall .-382 ; 0x15c <lcd_clear>
lcd_write_int(ultrasonic_get_timer_dist());
2da: 56 d0 rcall .+172 ; 0x388 <ultrasonic_get_timer_dist>
2dc: 74 df rcall .-280 ; 0x1c6 <lcd_write_int>
2de: 84 e6 ldi r24, 0x64 ; 100
2e0: 90 e0 ldi r25, 0x00 ; 0
wait_ms(100);
2e2: 0e d0 rcall .+28 ; 0x300 <wait_ms>
2e4: f8 cf rjmp .-16 ; 0x2d6 <main+0x12>
000002e6 <wait_us>:
static enum interrupt_status int_stat = INTERRUPT_RISING;
void wait_us(unsigned int us)
{
for(int i = 0; i < us; i++)
2e6: 20 e0 ldi r18, 0x00 ; 0
2e8: 30 e0 ldi r19, 0x00 ; 0
2ea: 06 c0 rjmp .+12 ; 0x2f8 <wait_us+0x12>
#else
//round up by default
__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
#endif
__builtin_avr_delay_cycles(__ticks_dc);
2ec: 43 e0 ldi r20, 0x03 ; 3
2ee: 4a 95 dec r20
2f0: f1 f7 brne .-4 ; 0x2ee <wait_us+0x8>
2f2: 00 00 nop
2f4: 2f 5f subi r18, 0xFF ; 255
2f6: 3f 4f sbci r19, 0xFF ; 255
2f8: 28 17 cp r18, r24
2fa: 39 07 cpc r19, r25
2fc: b8 f3 brcs .-18 ; 0x2ec <wait_us+0x6>
{
_delay_us(1);
}
}
2fe: 08 95 ret
00000300 <wait_ms>:
void wait_ms(unsigned int ms)
{
for(int i = 0; i < ms; i++)
300: 20 e0 ldi r18, 0x00 ; 0
302: 30 e0 ldi r19, 0x00 ; 0
304: 08 c0 rjmp .+16 ; 0x316 <wait_ms+0x16>
#else
//round up by default
__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
#endif
__builtin_avr_delay_cycles(__ticks_dc);
306: e3 ec ldi r30, 0xC3 ; 195
308: f9 e0 ldi r31, 0x09 ; 9
30a: 31 97 sbiw r30, 0x01 ; 1
30c: f1 f7 brne .-4 ; 0x30a <wait_ms+0xa>
30e: 00 c0 rjmp .+0 ; 0x310 <wait_ms+0x10>
310: 00 00 nop
312: 2f 5f subi r18, 0xFF ; 255
314: 3f 4f sbci r19, 0xFF ; 255
316: 28 17 cp r18, r24
318: 39 07 cpc r19, r25
31a: a8 f3 brcs .-22 ; 0x306 <wait_ms+0x6>
{
_delay_ms(1);
}
}
31c: 08 95 ret
0000031e <ultrasonic_init>:
void ultrasonic_init()
{
DDRG = 0xFF; // port g all output. pin 0 is trig, the rest is for debug
31e: 8f ef ldi r24, 0xFF ; 255
320: 80 93 64 00 sts 0x0064, r24 ; 0x800064 <__TEXT_REGION_LENGTH__+0x7e0064>
DDRD = 0x00; // port D pin 0 on input. 0 is echo and also interrupt
324: 11 ba out 0x11, r1 ; 17
EICRA = 0x03; // interrupt PORTD on pin 0, rising edge
326: 83 e0 ldi r24, 0x03 ; 3
328: 80 93 6a 00 sts 0x006A, r24 ; 0x80006a <__TEXT_REGION_LENGTH__+0x7e006a>
EIMSK |= 0x01; // enable interrupt on pin 0 (INT0)
32c: 89 b7 in r24, 0x39 ; 57
32e: 81 60 ori r24, 0x01 ; 1
330: 89 bf out 0x39, r24 ; 57
TCCR1A = 0b00000000; // initialize timer1, prescaler=256
332: 1f bc out 0x2f, r1 ; 47
TCCR1B = 0b00001100; // CTC compare A, RUN
334: 8c e0 ldi r24, 0x0C ; 12
336: 8e bd out 0x2e, r24 ; 46
sei(); // turn on interrupt system
338: 78 94 sei
33a: 08 95 ret
0000033c <ultrasonic_send_pulse>:
}
void ultrasonic_send_pulse()
{
33c: cf 93 push r28
33e: df 93 push r29
PORTG = 0x00; // 10 us low pulse
340: c5 e6 ldi r28, 0x65 ; 101
342: d0 e0 ldi r29, 0x00 ; 0
344: 18 82 st Y, r1
wait_us(10);
346: 8a e0 ldi r24, 0x0A ; 10
348: 90 e0 ldi r25, 0x00 ; 0
34a: cd df rcall .-102 ; 0x2e6 <wait_us>
PORTG = 0x01;
34c: 81 e0 ldi r24, 0x01 ; 1
34e: 88 83 st Y, r24
}
350: df 91 pop r29
352: cf 91 pop r28
354: 08 95 ret
00000356 <ultrasonic_handle_interrupt>:
void ultrasonic_handle_interrupt()
{
// if the interrupt was generated on a rising edge (start sending echo)
if (int_stat == INTERRUPT_RISING)
356: 80 91 00 01 lds r24, 0x0100 ; 0x800100 <__data_start>
35a: 81 30 cpi r24, 0x01 ; 1
35c: 41 f4 brne .+16 ; 0x36e <ultrasonic_handle_interrupt+0x18>
{
// set interrupt pin 0 on PORTD to falling edge
EICRA = 0x02;
35e: 82 e0 ldi r24, 0x02 ; 2
360: 80 93 6a 00 sts 0x006A, r24 ; 0x80006a <__TEXT_REGION_LENGTH__+0x7e006a>
// reset the time in timer1
TCNT1 = 0x00;
364: 1d bc out 0x2d, r1 ; 45
366: 1c bc out 0x2c, r1 ; 44
// set interrupt status
int_stat = INTERRUPT_FALLING;
368: 10 92 00 01 sts 0x0100, r1 ; 0x800100 <__data_start>
36c: 08 95 ret
} else
// else if it was generated on a falling edge (end sending echo)
{
// set interrupt pin 0 on PORTD to rising edge
EICRA = 0x03;
36e: 83 e0 ldi r24, 0x03 ; 3
370: 80 93 6a 00 sts 0x006A, r24 ; 0x80006a <__TEXT_REGION_LENGTH__+0x7e006a>
// read timer1 into time_dist
timer_dist = TCNT1;
374: 8c b5 in r24, 0x2c ; 44
376: 9d b5 in r25, 0x2d ; 45
378: 90 93 05 01 sts 0x0105, r25 ; 0x800105 <__data_end+0x1>
37c: 80 93 04 01 sts 0x0104, r24 ; 0x800104 <__data_end>
// set interrupt status
int_stat = INTERRUPT_RISING;
380: 81 e0 ldi r24, 0x01 ; 1
382: 80 93 00 01 sts 0x0100, r24 ; 0x800100 <__data_start>
386: 08 95 ret
00000388 <ultrasonic_get_timer_dist>:
}
uint16_t ultrasonic_get_timer_dist()
{
return timer_dist;
}
388: 80 91 04 01 lds r24, 0x0104 ; 0x800104 <__data_end>
38c: 90 91 05 01 lds r25, 0x0105 ; 0x800105 <__data_end+0x1>
390: 08 95 ret
00000392 <snprintf>:
392: 0f 93 push r16
394: 1f 93 push r17
396: cf 93 push r28
398: df 93 push r29
39a: cd b7 in r28, 0x3d ; 61
39c: de b7 in r29, 0x3e ; 62
39e: 2e 97 sbiw r28, 0x0e ; 14
3a0: 0f b6 in r0, 0x3f ; 63
3a2: f8 94 cli
3a4: de bf out 0x3e, r29 ; 62
3a6: 0f be out 0x3f, r0 ; 63
3a8: cd bf out 0x3d, r28 ; 61
3aa: 0d 89 ldd r16, Y+21 ; 0x15
3ac: 1e 89 ldd r17, Y+22 ; 0x16
3ae: 8f 89 ldd r24, Y+23 ; 0x17
3b0: 98 8d ldd r25, Y+24 ; 0x18
3b2: 26 e0 ldi r18, 0x06 ; 6
3b4: 2c 83 std Y+4, r18 ; 0x04
3b6: 1a 83 std Y+2, r17 ; 0x02
3b8: 09 83 std Y+1, r16 ; 0x01
3ba: 97 ff sbrs r25, 7
3bc: 02 c0 rjmp .+4 ; 0x3c2 <snprintf+0x30>
3be: 80 e0 ldi r24, 0x00 ; 0
3c0: 90 e8 ldi r25, 0x80 ; 128
3c2: 01 97 sbiw r24, 0x01 ; 1
3c4: 9e 83 std Y+6, r25 ; 0x06
3c6: 8d 83 std Y+5, r24 ; 0x05
3c8: ae 01 movw r20, r28
3ca: 45 5e subi r20, 0xE5 ; 229
3cc: 5f 4f sbci r21, 0xFF ; 255
3ce: 69 8d ldd r22, Y+25 ; 0x19
3d0: 7a 8d ldd r23, Y+26 ; 0x1a
3d2: ce 01 movw r24, r28
3d4: 01 96 adiw r24, 0x01 ; 1
3d6: 19 d0 rcall .+50 ; 0x40a <vfprintf>
3d8: 4d 81 ldd r20, Y+5 ; 0x05
3da: 5e 81 ldd r21, Y+6 ; 0x06
3dc: 57 fd sbrc r21, 7
3de: 0a c0 rjmp .+20 ; 0x3f4 <snprintf+0x62>
3e0: 2f 81 ldd r18, Y+7 ; 0x07
3e2: 38 85 ldd r19, Y+8 ; 0x08
3e4: 42 17 cp r20, r18
3e6: 53 07 cpc r21, r19
3e8: 0c f4 brge .+2 ; 0x3ec <snprintf+0x5a>
3ea: 9a 01 movw r18, r20
3ec: f8 01 movw r30, r16
3ee: e2 0f add r30, r18
3f0: f3 1f adc r31, r19
3f2: 10 82 st Z, r1
3f4: 2e 96 adiw r28, 0x0e ; 14
3f6: 0f b6 in r0, 0x3f ; 63
3f8: f8 94 cli
3fa: de bf out 0x3e, r29 ; 62
3fc: 0f be out 0x3f, r0 ; 63
3fe: cd bf out 0x3d, r28 ; 61
400: df 91 pop r29
402: cf 91 pop r28
404: 1f 91 pop r17
406: 0f 91 pop r16
408: 08 95 ret
0000040a <vfprintf>:
40a: 2f 92 push r2
40c: 3f 92 push r3
40e: 4f 92 push r4
410: 5f 92 push r5
412: 6f 92 push r6
414: 7f 92 push r7
416: 8f 92 push r8
418: 9f 92 push r9
41a: af 92 push r10
41c: bf 92 push r11
41e: cf 92 push r12
420: df 92 push r13
422: ef 92 push r14
424: ff 92 push r15
426: 0f 93 push r16
428: 1f 93 push r17
42a: cf 93 push r28
42c: df 93 push r29
42e: cd b7 in r28, 0x3d ; 61
430: de b7 in r29, 0x3e ; 62
432: 2b 97 sbiw r28, 0x0b ; 11
434: 0f b6 in r0, 0x3f ; 63
436: f8 94 cli
438: de bf out 0x3e, r29 ; 62
43a: 0f be out 0x3f, r0 ; 63
43c: cd bf out 0x3d, r28 ; 61
43e: 6c 01 movw r12, r24
440: 7b 01 movw r14, r22
442: 8a 01 movw r16, r20
444: fc 01 movw r30, r24
446: 17 82 std Z+7, r1 ; 0x07
448: 16 82 std Z+6, r1 ; 0x06
44a: 83 81 ldd r24, Z+3 ; 0x03
44c: 81 ff sbrs r24, 1
44e: bf c1 rjmp .+894 ; 0x7ce <vfprintf+0x3c4>
450: ce 01 movw r24, r28
452: 01 96 adiw r24, 0x01 ; 1
454: 3c 01 movw r6, r24
456: f6 01 movw r30, r12
458: 93 81 ldd r25, Z+3 ; 0x03
45a: f7 01 movw r30, r14
45c: 93 fd sbrc r25, 3
45e: 85 91 lpm r24, Z+
460: 93 ff sbrs r25, 3
462: 81 91 ld r24, Z+
464: 7f 01 movw r14, r30
466: 88 23 and r24, r24
468: 09 f4 brne .+2 ; 0x46c <vfprintf+0x62>
46a: ad c1 rjmp .+858 ; 0x7c6 <vfprintf+0x3bc>
46c: 85 32 cpi r24, 0x25 ; 37
46e: 39 f4 brne .+14 ; 0x47e <vfprintf+0x74>
470: 93 fd sbrc r25, 3
472: 85 91 lpm r24, Z+
474: 93 ff sbrs r25, 3
476: 81 91 ld r24, Z+
478: 7f 01 movw r14, r30
47a: 85 32 cpi r24, 0x25 ; 37
47c: 21 f4 brne .+8 ; 0x486 <vfprintf+0x7c>
47e: b6 01 movw r22, r12
480: 90 e0 ldi r25, 0x00 ; 0
482: d6 d1 rcall .+940 ; 0x830 <fputc>
484: e8 cf rjmp .-48 ; 0x456 <vfprintf+0x4c>
486: 91 2c mov r9, r1
488: 21 2c mov r2, r1
48a: 31 2c mov r3, r1
48c: ff e1 ldi r31, 0x1F ; 31
48e: f3 15 cp r31, r3
490: d8 f0 brcs .+54 ; 0x4c8 <vfprintf+0xbe>
492: 8b 32 cpi r24, 0x2B ; 43
494: 79 f0 breq .+30 ; 0x4b4 <vfprintf+0xaa>
496: 38 f4 brcc .+14 ; 0x4a6 <vfprintf+0x9c>
498: 80 32 cpi r24, 0x20 ; 32
49a: 79 f0 breq .+30 ; 0x4ba <vfprintf+0xb0>
49c: 83 32 cpi r24, 0x23 ; 35
49e: a1 f4 brne .+40 ; 0x4c8 <vfprintf+0xbe>
4a0: 23 2d mov r18, r3
4a2: 20 61 ori r18, 0x10 ; 16
4a4: 1d c0 rjmp .+58 ; 0x4e0 <vfprintf+0xd6>
4a6: 8d 32 cpi r24, 0x2D ; 45
4a8: 61 f0 breq .+24 ; 0x4c2 <vfprintf+0xb8>
4aa: 80 33 cpi r24, 0x30 ; 48
4ac: 69 f4 brne .+26 ; 0x4c8 <vfprintf+0xbe>
4ae: 23 2d mov r18, r3
4b0: 21 60 ori r18, 0x01 ; 1
4b2: 16 c0 rjmp .+44 ; 0x4e0 <vfprintf+0xd6>
4b4: 83 2d mov r24, r3
4b6: 82 60 ori r24, 0x02 ; 2
4b8: 38 2e mov r3, r24
4ba: e3 2d mov r30, r3
4bc: e4 60 ori r30, 0x04 ; 4
4be: 3e 2e mov r3, r30
4c0: 2a c0 rjmp .+84 ; 0x516 <vfprintf+0x10c>
4c2: f3 2d mov r31, r3
4c4: f8 60 ori r31, 0x08 ; 8
4c6: 1d c0 rjmp .+58 ; 0x502 <vfprintf+0xf8>
4c8: 37 fc sbrc r3, 7
4ca: 2d c0 rjmp .+90 ; 0x526 <vfprintf+0x11c>
4cc: 20 ed ldi r18, 0xD0 ; 208
4ce: 28 0f add r18, r24
4d0: 2a 30 cpi r18, 0x0A ; 10
4d2: 40 f0 brcs .+16 ; 0x4e4 <vfprintf+0xda>
4d4: 8e 32 cpi r24, 0x2E ; 46
4d6: b9 f4 brne .+46 ; 0x506 <vfprintf+0xfc>
4d8: 36 fc sbrc r3, 6
4da: 75 c1 rjmp .+746 ; 0x7c6 <vfprintf+0x3bc>
4dc: 23 2d mov r18, r3
4de: 20 64 ori r18, 0x40 ; 64
4e0: 32 2e mov r3, r18
4e2: 19 c0 rjmp .+50 ; 0x516 <vfprintf+0x10c>
4e4: 36 fe sbrs r3, 6
4e6: 06 c0 rjmp .+12 ; 0x4f4 <vfprintf+0xea>
4e8: 8a e0 ldi r24, 0x0A ; 10
4ea: 98 9e mul r9, r24
4ec: 20 0d add r18, r0
4ee: 11 24 eor r1, r1
4f0: 92 2e mov r9, r18
4f2: 11 c0 rjmp .+34 ; 0x516 <vfprintf+0x10c>
4f4: ea e0 ldi r30, 0x0A ; 10
4f6: 2e 9e mul r2, r30
4f8: 20 0d add r18, r0
4fa: 11 24 eor r1, r1
4fc: 22 2e mov r2, r18
4fe: f3 2d mov r31, r3
500: f0 62 ori r31, 0x20 ; 32
502: 3f 2e mov r3, r31
504: 08 c0 rjmp .+16 ; 0x516 <vfprintf+0x10c>
506: 8c 36 cpi r24, 0x6C ; 108
508: 21 f4 brne .+8 ; 0x512 <vfprintf+0x108>
50a: 83 2d mov r24, r3
50c: 80 68 ori r24, 0x80 ; 128
50e: 38 2e mov r3, r24
510: 02 c0 rjmp .+4 ; 0x516 <vfprintf+0x10c>
512: 88 36 cpi r24, 0x68 ; 104
514: 41 f4 brne .+16 ; 0x526 <vfprintf+0x11c>
516: f7 01 movw r30, r14
518: 93 fd sbrc r25, 3
51a: 85 91 lpm r24, Z+
51c: 93 ff sbrs r25, 3
51e: 81 91 ld r24, Z+
520: 7f 01 movw r14, r30
522: 81 11 cpse r24, r1
524: b3 cf rjmp .-154 ; 0x48c <vfprintf+0x82>
526: 98 2f mov r25, r24
528: 9f 7d andi r25, 0xDF ; 223
52a: 95 54 subi r25, 0x45 ; 69
52c: 93 30 cpi r25, 0x03 ; 3
52e: 28 f4 brcc .+10 ; 0x53a <vfprintf+0x130>
530: 0c 5f subi r16, 0xFC ; 252
532: 1f 4f sbci r17, 0xFF ; 255
534: 9f e3 ldi r25, 0x3F ; 63
536: 99 83 std Y+1, r25 ; 0x01
538: 0d c0 rjmp .+26 ; 0x554 <vfprintf+0x14a>
53a: 83 36 cpi r24, 0x63 ; 99
53c: 31 f0 breq .+12 ; 0x54a <vfprintf+0x140>
53e: 83 37 cpi r24, 0x73 ; 115
540: 71 f0 breq .+28 ; 0x55e <vfprintf+0x154>
542: 83 35 cpi r24, 0x53 ; 83
544: 09 f0 breq .+2 ; 0x548 <vfprintf+0x13e>
546: 55 c0 rjmp .+170 ; 0x5f2 <vfprintf+0x1e8>
548: 20 c0 rjmp .+64 ; 0x58a <vfprintf+0x180>
54a: f8 01 movw r30, r16
54c: 80 81 ld r24, Z
54e: 89 83 std Y+1, r24 ; 0x01
550: 0e 5f subi r16, 0xFE ; 254
552: 1f 4f sbci r17, 0xFF ; 255
554: 88 24 eor r8, r8
556: 83 94 inc r8
558: 91 2c mov r9, r1
55a: 53 01 movw r10, r6
55c: 12 c0 rjmp .+36 ; 0x582 <vfprintf+0x178>
55e: 28 01 movw r4, r16
560: f2 e0 ldi r31, 0x02 ; 2
562: 4f 0e add r4, r31
564: 51 1c adc r5, r1
566: f8 01 movw r30, r16
568: a0 80 ld r10, Z
56a: b1 80 ldd r11, Z+1 ; 0x01
56c: 36 fe sbrs r3, 6
56e: 03 c0 rjmp .+6 ; 0x576 <vfprintf+0x16c>
570: 69 2d mov r22, r9
572: 70 e0 ldi r23, 0x00 ; 0
574: 02 c0 rjmp .+4 ; 0x57a <vfprintf+0x170>
576: 6f ef ldi r22, 0xFF ; 255
578: 7f ef ldi r23, 0xFF ; 255
57a: c5 01 movw r24, r10
57c: 4e d1 rcall .+668 ; 0x81a <strnlen>
57e: 4c 01 movw r8, r24
580: 82 01 movw r16, r4
582: f3 2d mov r31, r3
584: ff 77 andi r31, 0x7F ; 127
586: 3f 2e mov r3, r31
588: 15 c0 rjmp .+42 ; 0x5b4 <vfprintf+0x1aa>
58a: 28 01 movw r4, r16
58c: 22 e0 ldi r18, 0x02 ; 2
58e: 42 0e add r4, r18
590: 51 1c adc r5, r1
592: f8 01 movw r30, r16
594: a0 80 ld r10, Z
596: b1 80 ldd r11, Z+1 ; 0x01
598: 36 fe sbrs r3, 6
59a: 03 c0 rjmp .+6 ; 0x5a2 <vfprintf+0x198>
59c: 69 2d mov r22, r9
59e: 70 e0 ldi r23, 0x00 ; 0
5a0: 02 c0 rjmp .+4 ; 0x5a6 <vfprintf+0x19c>
5a2: 6f ef ldi r22, 0xFF ; 255
5a4: 7f ef ldi r23, 0xFF ; 255
5a6: c5 01 movw r24, r10
5a8: 2d d1 rcall .+602 ; 0x804 <strnlen_P>
5aa: 4c 01 movw r8, r24
5ac: f3 2d mov r31, r3
5ae: f0 68 ori r31, 0x80 ; 128
5b0: 3f 2e mov r3, r31
5b2: 82 01 movw r16, r4
5b4: 33 fc sbrc r3, 3
5b6: 19 c0 rjmp .+50 ; 0x5ea <vfprintf+0x1e0>
5b8: 82 2d mov r24, r2
5ba: 90 e0 ldi r25, 0x00 ; 0
5bc: 88 16 cp r8, r24
5be: 99 06 cpc r9, r25
5c0: a0 f4 brcc .+40 ; 0x5ea <vfprintf+0x1e0>
5c2: b6 01 movw r22, r12
5c4: 80 e2 ldi r24, 0x20 ; 32
5c6: 90 e0 ldi r25, 0x00 ; 0
5c8: 33 d1 rcall .+614 ; 0x830 <fputc>
5ca: 2a 94 dec r2
5cc: f5 cf rjmp .-22 ; 0x5b8 <vfprintf+0x1ae>
5ce: f5 01 movw r30, r10
5d0: 37 fc sbrc r3, 7
5d2: 85 91 lpm r24, Z+
5d4: 37 fe sbrs r3, 7
5d6: 81 91 ld r24, Z+
5d8: 5f 01 movw r10, r30
5da: b6 01 movw r22, r12
5dc: 90 e0 ldi r25, 0x00 ; 0
5de: 28 d1 rcall .+592 ; 0x830 <fputc>
5e0: 21 10 cpse r2, r1
5e2: 2a 94 dec r2
5e4: 21 e0 ldi r18, 0x01 ; 1
5e6: 82 1a sub r8, r18
5e8: 91 08 sbc r9, r1
5ea: 81 14 cp r8, r1
5ec: 91 04 cpc r9, r1
5ee: 79 f7 brne .-34 ; 0x5ce <vfprintf+0x1c4>
5f0: e1 c0 rjmp .+450 ; 0x7b4 <vfprintf+0x3aa>
5f2: 84 36 cpi r24, 0x64 ; 100
5f4: 11 f0 breq .+4 ; 0x5fa <vfprintf+0x1f0>
5f6: 89 36 cpi r24, 0x69 ; 105
5f8: 39 f5 brne .+78 ; 0x648 <vfprintf+0x23e>
5fa: f8 01 movw r30, r16
5fc: 37 fe sbrs r3, 7
5fe: 07 c0 rjmp .+14 ; 0x60e <vfprintf+0x204>
600: 60 81 ld r22, Z
602: 71 81 ldd r23, Z+1 ; 0x01
604: 82 81 ldd r24, Z+2 ; 0x02
606: 93 81 ldd r25, Z+3 ; 0x03
608: 0c 5f subi r16, 0xFC ; 252
60a: 1f 4f sbci r17, 0xFF ; 255
60c: 08 c0 rjmp .+16 ; 0x61e <vfprintf+0x214>
60e: 60 81 ld r22, Z
610: 71 81 ldd r23, Z+1 ; 0x01
612: 07 2e mov r0, r23
614: 00 0c add r0, r0
616: 88 0b sbc r24, r24
618: 99 0b sbc r25, r25
61a: 0e 5f subi r16, 0xFE ; 254
61c: 1f 4f sbci r17, 0xFF ; 255
61e: f3 2d mov r31, r3
620: ff 76 andi r31, 0x6F ; 111
622: 3f 2e mov r3, r31
624: 97 ff sbrs r25, 7
626: 09 c0 rjmp .+18 ; 0x63a <vfprintf+0x230>
628: 90 95 com r25
62a: 80 95 com r24
62c: 70 95 com r23
62e: 61 95 neg r22
630: 7f 4f sbci r23, 0xFF ; 255
632: 8f 4f sbci r24, 0xFF ; 255
634: 9f 4f sbci r25, 0xFF ; 255
636: f0 68 ori r31, 0x80 ; 128
638: 3f 2e mov r3, r31
63a: 2a e0 ldi r18, 0x0A ; 10
63c: 30 e0 ldi r19, 0x00 ; 0
63e: a3 01 movw r20, r6
640: 33 d1 rcall .+614 ; 0x8a8 <__ultoa_invert>
642: 88 2e mov r8, r24
644: 86 18 sub r8, r6
646: 44 c0 rjmp .+136 ; 0x6d0 <vfprintf+0x2c6>
648: 85 37 cpi r24, 0x75 ; 117
64a: 31 f4 brne .+12 ; 0x658 <vfprintf+0x24e>
64c: 23 2d mov r18, r3
64e: 2f 7e andi r18, 0xEF ; 239
650: b2 2e mov r11, r18
652: 2a e0 ldi r18, 0x0A ; 10
654: 30 e0 ldi r19, 0x00 ; 0
656: 25 c0 rjmp .+74 ; 0x6a2 <vfprintf+0x298>
658: 93 2d mov r25, r3
65a: 99 7f andi r25, 0xF9 ; 249
65c: b9 2e mov r11, r25
65e: 8f 36 cpi r24, 0x6F ; 111
660: c1 f0 breq .+48 ; 0x692 <vfprintf+0x288>
662: 18 f4 brcc .+6 ; 0x66a <vfprintf+0x260>
664: 88 35 cpi r24, 0x58 ; 88
666: 79 f0 breq .+30 ; 0x686 <vfprintf+0x27c>
668: ae c0 rjmp .+348 ; 0x7c6 <vfprintf+0x3bc>
66a: 80 37 cpi r24, 0x70 ; 112
66c: 19 f0 breq .+6 ; 0x674 <vfprintf+0x26a>
66e: 88 37 cpi r24, 0x78 ; 120
670: 21 f0 breq .+8 ; 0x67a <vfprintf+0x270>
672: a9 c0 rjmp .+338 ; 0x7c6 <vfprintf+0x3bc>
674: e9 2f mov r30, r25
676: e0 61 ori r30, 0x10 ; 16
678: be 2e mov r11, r30
67a: b4 fe sbrs r11, 4
67c: 0d c0 rjmp .+26 ; 0x698 <vfprintf+0x28e>
67e: fb 2d mov r31, r11
680: f4 60 ori r31, 0x04 ; 4
682: bf 2e mov r11, r31
684: 09 c0 rjmp .+18 ; 0x698 <vfprintf+0x28e>
686: 34 fe sbrs r3, 4
688: 0a c0 rjmp .+20 ; 0x69e <vfprintf+0x294>
68a: 29 2f mov r18, r25
68c: 26 60 ori r18, 0x06 ; 6
68e: b2 2e mov r11, r18
690: 06 c0 rjmp .+12 ; 0x69e <vfprintf+0x294>
692: 28 e0 ldi r18, 0x08 ; 8
694: 30 e0 ldi r19, 0x00 ; 0
696: 05 c0 rjmp .+10 ; 0x6a2 <vfprintf+0x298>
698: 20 e1 ldi r18, 0x10 ; 16
69a: 30 e0 ldi r19, 0x00 ; 0
69c: 02 c0 rjmp .+4 ; 0x6a2 <vfprintf+0x298>
69e: 20 e1 ldi r18, 0x10 ; 16
6a0: 32 e0 ldi r19, 0x02 ; 2
6a2: f8 01 movw r30, r16
6a4: b7 fe sbrs r11, 7
6a6: 07 c0 rjmp .+14 ; 0x6b6 <vfprintf+0x2ac>
6a8: 60 81 ld r22, Z
6aa: 71 81 ldd r23, Z+1 ; 0x01
6ac: 82 81 ldd r24, Z+2 ; 0x02
6ae: 93 81 ldd r25, Z+3 ; 0x03
6b0: 0c 5f subi r16, 0xFC ; 252
6b2: 1f 4f sbci r17, 0xFF ; 255
6b4: 06 c0 rjmp .+12 ; 0x6c2 <vfprintf+0x2b8>
6b6: 60 81 ld r22, Z
6b8: 71 81 ldd r23, Z+1 ; 0x01
6ba: 80 e0 ldi r24, 0x00 ; 0
6bc: 90 e0 ldi r25, 0x00 ; 0
6be: 0e 5f subi r16, 0xFE ; 254
6c0: 1f 4f sbci r17, 0xFF ; 255
6c2: a3 01 movw r20, r6
6c4: f1 d0 rcall .+482 ; 0x8a8 <__ultoa_invert>
6c6: 88 2e mov r8, r24
6c8: 86 18 sub r8, r6
6ca: fb 2d mov r31, r11
6cc: ff 77 andi r31, 0x7F ; 127
6ce: 3f 2e mov r3, r31
6d0: 36 fe sbrs r3, 6
6d2: 0d c0 rjmp .+26 ; 0x6ee <vfprintf+0x2e4>
6d4: 23 2d mov r18, r3
6d6: 2e 7f andi r18, 0xFE ; 254
6d8: a2 2e mov r10, r18
6da: 89 14 cp r8, r9
6dc: 58 f4 brcc .+22 ; 0x6f4 <vfprintf+0x2ea>
6de: 34 fe sbrs r3, 4
6e0: 0b c0 rjmp .+22 ; 0x6f8 <vfprintf+0x2ee>
6e2: 32 fc sbrc r3, 2
6e4: 09 c0 rjmp .+18 ; 0x6f8 <vfprintf+0x2ee>
6e6: 83 2d mov r24, r3
6e8: 8e 7e andi r24, 0xEE ; 238
6ea: a8 2e mov r10, r24
6ec: 05 c0 rjmp .+10 ; 0x6f8 <vfprintf+0x2ee>
6ee: b8 2c mov r11, r8
6f0: a3 2c mov r10, r3
6f2: 03 c0 rjmp .+6 ; 0x6fa <vfprintf+0x2f0>
6f4: b8 2c mov r11, r8
6f6: 01 c0 rjmp .+2 ; 0x6fa <vfprintf+0x2f0>
6f8: b9 2c mov r11, r9
6fa: a4 fe sbrs r10, 4
6fc: 0f c0 rjmp .+30 ; 0x71c <vfprintf+0x312>
6fe: fe 01 movw r30, r28
700: e8 0d add r30, r8
702: f1 1d adc r31, r1
704: 80 81 ld r24, Z
706: 80 33 cpi r24, 0x30 ; 48
708: 21 f4 brne .+8 ; 0x712 <vfprintf+0x308>
70a: 9a 2d mov r25, r10
70c: 99 7e andi r25, 0xE9 ; 233
70e: a9 2e mov r10, r25
710: 09 c0 rjmp .+18 ; 0x724 <vfprintf+0x31a>
712: a2 fe sbrs r10, 2
714: 06 c0 rjmp .+12 ; 0x722 <vfprintf+0x318>
716: b3 94 inc r11
718: b3 94 inc r11
71a: 04 c0 rjmp .+8 ; 0x724 <vfprintf+0x31a>
71c: 8a 2d mov r24, r10
71e: 86 78 andi r24, 0x86 ; 134
720: 09 f0 breq .+2 ; 0x724 <vfprintf+0x31a>
722: b3 94 inc r11
724: a3 fc sbrc r10, 3
726: 10 c0 rjmp .+32 ; 0x748 <vfprintf+0x33e>
728: a0 fe sbrs r10, 0
72a: 06 c0 rjmp .+12 ; 0x738 <vfprintf+0x32e>
72c: b2 14 cp r11, r2
72e: 80 f4 brcc .+32 ; 0x750 <vfprintf+0x346>
730: 28 0c add r2, r8
732: 92 2c mov r9, r2
734: 9b 18 sub r9, r11
736: 0d c0 rjmp .+26 ; 0x752 <vfprintf+0x348>
738: b2 14 cp r11, r2
73a: 58 f4 brcc .+22 ; 0x752 <vfprintf+0x348>
73c: b6 01 movw r22, r12
73e: 80 e2 ldi r24, 0x20 ; 32
740: 90 e0 ldi r25, 0x00 ; 0
742: 76 d0 rcall .+236 ; 0x830 <fputc>
744: b3 94 inc r11
746: f8 cf rjmp .-16 ; 0x738 <vfprintf+0x32e>
748: b2 14 cp r11, r2
74a: 18 f4 brcc .+6 ; 0x752 <vfprintf+0x348>
74c: 2b 18 sub r2, r11
74e: 02 c0 rjmp .+4 ; 0x754 <vfprintf+0x34a>
750: 98 2c mov r9, r8
752: 21 2c mov r2, r1
754: a4 fe sbrs r10, 4
756: 0f c0 rjmp .+30 ; 0x776 <vfprintf+0x36c>
758: b6 01 movw r22, r12
75a: 80 e3 ldi r24, 0x30 ; 48
75c: 90 e0 ldi r25, 0x00 ; 0
75e: 68 d0 rcall .+208 ; 0x830 <fputc>
760: a2 fe sbrs r10, 2
762: 16 c0 rjmp .+44 ; 0x790 <vfprintf+0x386>
764: a1 fc sbrc r10, 1
766: 03 c0 rjmp .+6 ; 0x76e <vfprintf+0x364>
768: 88 e7 ldi r24, 0x78 ; 120
76a: 90 e0 ldi r25, 0x00 ; 0
76c: 02 c0 rjmp .+4 ; 0x772 <vfprintf+0x368>
76e: 88 e5 ldi r24, 0x58 ; 88
770: 90 e0 ldi r25, 0x00 ; 0
772: b6 01 movw r22, r12
774: 0c c0 rjmp .+24 ; 0x78e <vfprintf+0x384>
776: 8a 2d mov r24, r10
778: 86 78 andi r24, 0x86 ; 134
77a: 51 f0 breq .+20 ; 0x790 <vfprintf+0x386>
77c: a1 fe sbrs r10, 1
77e: 02 c0 rjmp .+4 ; 0x784 <vfprintf+0x37a>
780: 8b e2 ldi r24, 0x2B ; 43
782: 01 c0 rjmp .+2 ; 0x786 <vfprintf+0x37c>
784: 80 e2 ldi r24, 0x20 ; 32
786: a7 fc sbrc r10, 7
788: 8d e2 ldi r24, 0x2D ; 45
78a: b6 01 movw r22, r12
78c: 90 e0 ldi r25, 0x00 ; 0
78e: 50 d0 rcall .+160 ; 0x830 <fputc>
790: 89 14 cp r8, r9
792: 30 f4 brcc .+12 ; 0x7a0 <vfprintf+0x396>
794: b6 01 movw r22, r12
796: 80 e3 ldi r24, 0x30 ; 48
798: 90 e0 ldi r25, 0x00 ; 0
79a: 4a d0 rcall .+148 ; 0x830 <fputc>
79c: 9a 94 dec r9
79e: f8 cf rjmp .-16 ; 0x790 <vfprintf+0x386>
7a0: 8a 94 dec r8
7a2: f3 01 movw r30, r6
7a4: e8 0d add r30, r8
7a6: f1 1d adc r31, r1
7a8: 80 81 ld r24, Z
7aa: b6 01 movw r22, r12
7ac: 90 e0 ldi r25, 0x00 ; 0
7ae: 40 d0 rcall .+128 ; 0x830 <fputc>
7b0: 81 10 cpse r8, r1
7b2: f6 cf rjmp .-20 ; 0x7a0 <vfprintf+0x396>
7b4: 22 20 and r2, r2
7b6: 09 f4 brne .+2 ; 0x7ba <vfprintf+0x3b0>
7b8: 4e ce rjmp .-868 ; 0x456 <vfprintf+0x4c>
7ba: b6 01 movw r22, r12
7bc: 80 e2 ldi r24, 0x20 ; 32
7be: 90 e0 ldi r25, 0x00 ; 0
7c0: 37 d0 rcall .+110 ; 0x830 <fputc>
7c2: 2a 94 dec r2
7c4: f7 cf rjmp .-18 ; 0x7b4 <vfprintf+0x3aa>
7c6: f6 01 movw r30, r12
7c8: 86 81 ldd r24, Z+6 ; 0x06
7ca: 97 81 ldd r25, Z+7 ; 0x07
7cc: 02 c0 rjmp .+4 ; 0x7d2 <vfprintf+0x3c8>
7ce: 8f ef ldi r24, 0xFF ; 255
7d0: 9f ef ldi r25, 0xFF ; 255
7d2: 2b 96 adiw r28, 0x0b ; 11
7d4: 0f b6 in r0, 0x3f ; 63
7d6: f8 94 cli
7d8: de bf out 0x3e, r29 ; 62
7da: 0f be out 0x3f, r0 ; 63
7dc: cd bf out 0x3d, r28 ; 61
7de: df 91 pop r29
7e0: cf 91 pop r28
7e2: 1f 91 pop r17
7e4: 0f 91 pop r16
7e6: ff 90 pop r15
7e8: ef 90 pop r14
7ea: df 90 pop r13
7ec: cf 90 pop r12
7ee: bf 90 pop r11
7f0: af 90 pop r10
7f2: 9f 90 pop r9
7f4: 8f 90 pop r8
7f6: 7f 90 pop r7
7f8: 6f 90 pop r6
7fa: 5f 90 pop r5
7fc: 4f 90 pop r4
7fe: 3f 90 pop r3
800: 2f 90 pop r2
802: 08 95 ret
00000804 <strnlen_P>:
804: fc 01 movw r30, r24
806: 05 90 lpm r0, Z+
808: 61 50 subi r22, 0x01 ; 1
80a: 70 40 sbci r23, 0x00 ; 0
80c: 01 10 cpse r0, r1
80e: d8 f7 brcc .-10 ; 0x806 <strnlen_P+0x2>
810: 80 95 com r24
812: 90 95 com r25
814: 8e 0f add r24, r30
816: 9f 1f adc r25, r31
818: 08 95 ret
0000081a <strnlen>:
81a: fc 01 movw r30, r24
81c: 61 50 subi r22, 0x01 ; 1
81e: 70 40 sbci r23, 0x00 ; 0
820: 01 90 ld r0, Z+
822: 01 10 cpse r0, r1
824: d8 f7 brcc .-10 ; 0x81c <strnlen+0x2>
826: 80 95 com r24
828: 90 95 com r25
82a: 8e 0f add r24, r30
82c: 9f 1f adc r25, r31
82e: 08 95 ret
00000830 <fputc>:
830: 0f 93 push r16
832: 1f 93 push r17
834: cf 93 push r28
836: df 93 push r29
838: fb 01 movw r30, r22
83a: 23 81 ldd r18, Z+3 ; 0x03
83c: 21 fd sbrc r18, 1
83e: 03 c0 rjmp .+6 ; 0x846 <fputc+0x16>
840: 8f ef ldi r24, 0xFF ; 255
842: 9f ef ldi r25, 0xFF ; 255
844: 2c c0 rjmp .+88 ; 0x89e <fputc+0x6e>
846: 22 ff sbrs r18, 2
848: 16 c0 rjmp .+44 ; 0x876 <fputc+0x46>
84a: 46 81 ldd r20, Z+6 ; 0x06
84c: 57 81 ldd r21, Z+7 ; 0x07
84e: 24 81 ldd r18, Z+4 ; 0x04
850: 35 81 ldd r19, Z+5 ; 0x05
852: 42 17 cp r20, r18
854: 53 07 cpc r21, r19
856: 44 f4 brge .+16 ; 0x868 <fputc+0x38>
858: a0 81 ld r26, Z
85a: b1 81 ldd r27, Z+1 ; 0x01
85c: 9d 01 movw r18, r26
85e: 2f 5f subi r18, 0xFF ; 255
860: 3f 4f sbci r19, 0xFF ; 255
862: 31 83 std Z+1, r19 ; 0x01
864: 20 83 st Z, r18
866: 8c 93 st X, r24
868: 26 81 ldd r18, Z+6 ; 0x06
86a: 37 81 ldd r19, Z+7 ; 0x07
86c: 2f 5f subi r18, 0xFF ; 255
86e: 3f 4f sbci r19, 0xFF ; 255
870: 37 83 std Z+7, r19 ; 0x07
872: 26 83 std Z+6, r18 ; 0x06
874: 14 c0 rjmp .+40 ; 0x89e <fputc+0x6e>
876: 8b 01 movw r16, r22
878: ec 01 movw r28, r24
87a: fb 01 movw r30, r22
87c: 00 84 ldd r0, Z+8 ; 0x08
87e: f1 85 ldd r31, Z+9 ; 0x09
880: e0 2d mov r30, r0
882: 09 95 icall
884: 89 2b or r24, r25
886: e1 f6 brne .-72 ; 0x840 <fputc+0x10>
888: d8 01 movw r26, r16
88a: 16 96 adiw r26, 0x06 ; 6
88c: 8d 91 ld r24, X+
88e: 9c 91 ld r25, X
890: 17 97 sbiw r26, 0x07 ; 7
892: 01 96 adiw r24, 0x01 ; 1
894: 17 96 adiw r26, 0x07 ; 7
896: 9c 93 st X, r25
898: 8e 93 st -X, r24
89a: 16 97 sbiw r26, 0x06 ; 6
89c: ce 01 movw r24, r28
89e: df 91 pop r29
8a0: cf 91 pop r28
8a2: 1f 91 pop r17
8a4: 0f 91 pop r16
8a6: 08 95 ret
000008a8 <__ultoa_invert>:
8a8: fa 01 movw r30, r20
8aa: aa 27 eor r26, r26
8ac: 28 30 cpi r18, 0x08 ; 8
8ae: 51 f1 breq .+84 ; 0x904 <__ultoa_invert+0x5c>
8b0: 20 31 cpi r18, 0x10 ; 16
8b2: 81 f1 breq .+96 ; 0x914 <__ultoa_invert+0x6c>
8b4: e8 94 clt
8b6: 6f 93 push r22
8b8: 6e 7f andi r22, 0xFE ; 254
8ba: 6e 5f subi r22, 0xFE ; 254
8bc: 7f 4f sbci r23, 0xFF ; 255
8be: 8f 4f sbci r24, 0xFF ; 255
8c0: 9f 4f sbci r25, 0xFF ; 255
8c2: af 4f sbci r26, 0xFF ; 255
8c4: b1 e0 ldi r27, 0x01 ; 1
8c6: 3e d0 rcall .+124 ; 0x944 <__ultoa_invert+0x9c>
8c8: b4 e0 ldi r27, 0x04 ; 4
8ca: 3c d0 rcall .+120 ; 0x944 <__ultoa_invert+0x9c>
8cc: 67 0f add r22, r23
8ce: 78 1f adc r23, r24
8d0: 89 1f adc r24, r25
8d2: 9a 1f adc r25, r26
8d4: a1 1d adc r26, r1
8d6: 68 0f add r22, r24
8d8: 79 1f adc r23, r25
8da: 8a 1f adc r24, r26
8dc: 91 1d adc r25, r1
8de: a1 1d adc r26, r1
8e0: 6a 0f add r22, r26
8e2: 71 1d adc r23, r1
8e4: 81 1d adc r24, r1
8e6: 91 1d adc r25, r1
8e8: a1 1d adc r26, r1
8ea: 20 d0 rcall .+64 ; 0x92c <__ultoa_invert+0x84>
8ec: 09 f4 brne .+2 ; 0x8f0 <__ultoa_invert+0x48>
8ee: 68 94 set
8f0: 3f 91 pop r19
8f2: 2a e0 ldi r18, 0x0A ; 10
8f4: 26 9f mul r18, r22
8f6: 11 24 eor r1, r1
8f8: 30 19 sub r19, r0
8fa: 30 5d subi r19, 0xD0 ; 208
8fc: 31 93 st Z+, r19
8fe: de f6 brtc .-74 ; 0x8b6 <__ultoa_invert+0xe>
900: cf 01 movw r24, r30
902: 08 95 ret
904: 46 2f mov r20, r22
906: 47 70 andi r20, 0x07 ; 7
908: 40 5d subi r20, 0xD0 ; 208
90a: 41 93 st Z+, r20
90c: b3 e0 ldi r27, 0x03 ; 3
90e: 0f d0 rcall .+30 ; 0x92e <__ultoa_invert+0x86>
910: c9 f7 brne .-14 ; 0x904 <__ultoa_invert+0x5c>
912: f6 cf rjmp .-20 ; 0x900 <__ultoa_invert+0x58>
914: 46 2f mov r20, r22
916: 4f 70 andi r20, 0x0F ; 15
918: 40 5d subi r20, 0xD0 ; 208
91a: 4a 33 cpi r20, 0x3A ; 58
91c: 18 f0 brcs .+6 ; 0x924 <__ultoa_invert+0x7c>
91e: 49 5d subi r20, 0xD9 ; 217
920: 31 fd sbrc r19, 1
922: 40 52 subi r20, 0x20 ; 32
924: 41 93 st Z+, r20
926: 02 d0 rcall .+4 ; 0x92c <__ultoa_invert+0x84>
928: a9 f7 brne .-22 ; 0x914 <__ultoa_invert+0x6c>
92a: ea cf rjmp .-44 ; 0x900 <__ultoa_invert+0x58>
92c: b4 e0 ldi r27, 0x04 ; 4
92e: a6 95 lsr r26
930: 97 95 ror r25
932: 87 95 ror r24
934: 77 95 ror r23
936: 67 95 ror r22
938: ba 95 dec r27
93a: c9 f7 brne .-14 ; 0x92e <__ultoa_invert+0x86>
93c: 00 97 sbiw r24, 0x00 ; 0
93e: 61 05 cpc r22, r1
940: 71 05 cpc r23, r1
942: 08 95 ret
944: 9b 01 movw r18, r22
946: ac 01 movw r20, r24
948: 0a 2e mov r0, r26
94a: 06 94 lsr r0
94c: 57 95 ror r21
94e: 47 95 ror r20
950: 37 95 ror r19
952: 27 95 ror r18
954: ba 95 dec r27
956: c9 f7 brne .-14 ; 0x94a <__ultoa_invert+0xa2>
958: 62 0f add r22, r18
95a: 73 1f adc r23, r19
95c: 84 1f adc r24, r20
95e: 95 1f adc r25, r21
960: a0 1d adc r26, r0
962: 08 95 ret
00000964 <_exit>:
964: f8 94 cli
00000966 <__stop_program>:
966: ff cf rjmp .-2 ; 0x966 <__stop_program>