120 lines
4.3 KiB
Plaintext
120 lines
4.3 KiB
Plaintext
|
|
main.elf: file format elf32-avr
|
|
|
|
Sections:
|
|
Idx Name Size VMA LMA File off Algn
|
|
0 .text 00000058 00000000 00000000 00000054 2**1
|
|
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
|
1 .debug_aranges 00000020 00000000 00000000 000000ac 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
2 .debug_pubnames 0000001b 00000000 00000000 000000cc 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
3 .debug_info 0000011f 00000000 00000000 000000e7 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
4 .debug_abbrev 000000c1 00000000 00000000 00000206 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
5 .debug_line 00000150 00000000 00000000 000002c7 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
6 .debug_frame 00000020 00000000 00000000 00000418 2**2
|
|
CONTENTS, READONLY, DEBUGGING
|
|
7 .debug_str 000000c7 00000000 00000000 00000438 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
8 .debug_loc 0000003b 00000000 00000000 000004ff 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
9 .debug_ranges 00000048 00000000 00000000 0000053a 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
Disassembly of section .text:
|
|
|
|
00000000 <__vectors>:
|
|
0: 12 c0 rjmp .+36 ; 0x26 <__ctors_end>
|
|
2: 17 c0 rjmp .+46 ; 0x32 <__bad_interrupt>
|
|
4: 16 c0 rjmp .+44 ; 0x32 <__bad_interrupt>
|
|
6: 15 c0 rjmp .+42 ; 0x32 <__bad_interrupt>
|
|
8: 14 c0 rjmp .+40 ; 0x32 <__bad_interrupt>
|
|
a: 13 c0 rjmp .+38 ; 0x32 <__bad_interrupt>
|
|
c: 12 c0 rjmp .+36 ; 0x32 <__bad_interrupt>
|
|
e: 11 c0 rjmp .+34 ; 0x32 <__bad_interrupt>
|
|
10: 10 c0 rjmp .+32 ; 0x32 <__bad_interrupt>
|
|
12: 0f c0 rjmp .+30 ; 0x32 <__bad_interrupt>
|
|
14: 0e c0 rjmp .+28 ; 0x32 <__bad_interrupt>
|
|
16: 0d c0 rjmp .+26 ; 0x32 <__bad_interrupt>
|
|
18: 0c c0 rjmp .+24 ; 0x32 <__bad_interrupt>
|
|
1a: 0b c0 rjmp .+22 ; 0x32 <__bad_interrupt>
|
|
1c: 0a c0 rjmp .+20 ; 0x32 <__bad_interrupt>
|
|
1e: 09 c0 rjmp .+18 ; 0x32 <__bad_interrupt>
|
|
20: 08 c0 rjmp .+16 ; 0x32 <__bad_interrupt>
|
|
22: 07 c0 rjmp .+14 ; 0x32 <__bad_interrupt>
|
|
24: 06 c0 rjmp .+12 ; 0x32 <__bad_interrupt>
|
|
|
|
00000026 <__ctors_end>:
|
|
26: 11 24 eor r1, r1
|
|
28: 1f be out 0x3f, r1 ; 63
|
|
2a: cf ed ldi r28, 0xDF ; 223
|
|
2c: cd bf out 0x3d, r28 ; 61
|
|
2e: 02 d0 rcall .+4 ; 0x34 <main>
|
|
30: 11 c0 rjmp .+34 ; 0x54 <_exit>
|
|
|
|
00000032 <__bad_interrupt>:
|
|
32: e6 cf rjmp .-52 ; 0x0 <__vectors>
|
|
|
|
00000034 <main>:
|
|
#include <util/delay.h>
|
|
|
|
int main (void)
|
|
{
|
|
unsigned char zwischenspeicher;
|
|
DDRA = 0b00000001;
|
|
34: 81 e0 ldi r24, 0x01 ; 1
|
|
36: 8a bb out 0x1a, r24 ; 26
|
|
while(1)
|
|
{
|
|
zwischenspeicher = PORTA;
|
|
zwischenspeicher = zwischenspeicher ^ 0b00000001;
|
|
38: 41 e0 ldi r20, 0x01 ; 1
|
|
milliseconds can be achieved.
|
|
*/
|
|
void
|
|
_delay_loop_2(uint16_t __count)
|
|
{
|
|
__asm__ volatile (
|
|
3a: 29 e1 ldi r18, 0x19 ; 25
|
|
3c: 30 e0 ldi r19, 0x00 ; 0
|
|
{
|
|
unsigned char zwischenspeicher;
|
|
DDRA = 0b00000001;
|
|
while(1)
|
|
{
|
|
zwischenspeicher = PORTA;
|
|
3e: 8b b3 in r24, 0x1b ; 27
|
|
zwischenspeicher = zwischenspeicher ^ 0b00000001;
|
|
40: 84 27 eor r24, r20
|
|
PORTA = zwischenspeicher;
|
|
42: 8b bb out 0x1b, r24 ; 27
|
|
44: 88 e8 ldi r24, 0x88 ; 136
|
|
46: 93 e1 ldi r25, 0x13 ; 19
|
|
48: f9 01 movw r30, r18
|
|
4a: 31 97 sbiw r30, 0x01 ; 1
|
|
4c: f1 f7 brne .-4 ; 0x4a <__SREG__+0xb>
|
|
__ticks = (uint16_t) (__ms * 10.0);
|
|
while(__ticks)
|
|
{
|
|
// wait 1/10 ms
|
|
_delay_loop_2(((F_CPU) / 4e3) / 10);
|
|
__ticks --;
|
|
4e: 01 97 sbiw r24, 0x01 ; 1
|
|
__ticks = 1;
|
|
else if (__tmp > 65535)
|
|
{
|
|
// __ticks = requested delay in 1/10 ms
|
|
__ticks = (uint16_t) (__ms * 10.0);
|
|
while(__ticks)
|
|
50: d9 f7 brne .-10 ; 0x48 <__SREG__+0x9>
|
|
52: f5 cf rjmp .-22 ; 0x3e <__SP_H__>
|
|
|
|
00000054 <_exit>:
|
|
54: f8 94 cli
|
|
|
|
00000056 <__stop_program>:
|
|
56: ff cf rjmp .-2 ; 0x56 <__stop_program>
|