2012-10-10 22:54:49 +02:00
|
|
|
|
|
|
|
15cmZahl.elf: file format elf32-avr
|
|
|
|
|
|
|
|
Sections:
|
|
|
|
Idx Name Size VMA LMA File off Algn
|
|
|
|
0 .text 00000068 00000000 00000000 00000054 2**1
|
|
|
|
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
|
|
|
1 .stab 000006b4 00000000 00000000 000000bc 2**2
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
2 .stabstr 00000085 00000000 00000000 00000770 2**0
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
3 .debug_aranges 00000020 00000000 00000000 000007f5 2**0
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
4 .debug_pubnames 0000001b 00000000 00000000 00000815 2**0
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
5 .debug_info 00000196 00000000 00000000 00000830 2**0
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
6 .debug_abbrev 00000106 00000000 00000000 000009c6 2**0
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
7 .debug_line 00000157 00000000 00000000 00000acc 2**0
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
8 .debug_frame 00000020 00000000 00000000 00000c24 2**2
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
9 .debug_str 000000e9 00000000 00000000 00000c44 2**0
|
|
|
|
CONTENTS, READONLY, DEBUGGING
|
|
|
|
10 .debug_pubtypes 00000038 00000000 00000000 00000d2d 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: 19 c0 rjmp .+50 ; 0x64 <_exit>
|
|
|
|
|
|
|
|
00000032 <__bad_interrupt>:
|
|
|
|
32: e6 cf rjmp .-52 ; 0x0 <__vectors>
|
|
|
|
|
|
|
|
00000034 <main>:
|
2012-10-12 18:28:45 +02:00
|
|
|
#define SA 0b00111111
|
|
|
|
#define SB 0b01110101
|
|
|
|
#define SC 0b01111000
|
2012-10-10 22:54:49 +02:00
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
DDRB = 0b01111111;
|
|
|
|
34: 8f e7 ldi r24, 0x7F ; 127
|
|
|
|
36: 87 bb out 0x17, r24 ; 23
|
|
|
|
while(1){
|
2012-10-12 18:28:45 +02:00
|
|
|
PORTB = SC;
|
|
|
|
38: 88 e7 ldi r24, 0x78 ; 120
|
2012-10-10 22:54:49 +02:00
|
|
|
3a: 88 bb out 0x18, r24 ; 24
|
|
|
|
#else
|
|
|
|
//round up by default
|
|
|
|
__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
__builtin_avr_delay_cycles(__ticks_dc);
|
|
|
|
3c: 2f ef ldi r18, 0xFF ; 255
|
|
|
|
3e: 34 e3 ldi r19, 0x34 ; 52
|
|
|
|
40: 4c e0 ldi r20, 0x0C ; 12
|
|
|
|
42: 21 50 subi r18, 0x01 ; 1
|
|
|
|
44: 30 40 sbci r19, 0x00 ; 0
|
|
|
|
46: 40 40 sbci r20, 0x00 ; 0
|
|
|
|
48: e1 f7 brne .-8 ; 0x42 <__SREG__+0x3>
|
|
|
|
4a: 00 c0 rjmp .+0 ; 0x4c <__SREG__+0xd>
|
|
|
|
4c: 00 00 nop
|
|
|
|
_delay_ms(500);
|
|
|
|
PORTB = 0;
|
|
|
|
4e: 18 ba out 0x18, r1 ; 24
|
|
|
|
50: 2f ef ldi r18, 0xFF ; 255
|
|
|
|
52: 34 e3 ldi r19, 0x34 ; 52
|
|
|
|
54: 4c e0 ldi r20, 0x0C ; 12
|
|
|
|
56: 21 50 subi r18, 0x01 ; 1
|
|
|
|
58: 30 40 sbci r19, 0x00 ; 0
|
|
|
|
5a: 40 40 sbci r20, 0x00 ; 0
|
|
|
|
5c: e1 f7 brne .-8 ; 0x56 <__SREG__+0x17>
|
|
|
|
5e: 00 c0 rjmp .+0 ; 0x60 <__SREG__+0x21>
|
|
|
|
60: 00 00 nop
|
|
|
|
62: eb cf rjmp .-42 ; 0x3a <main+0x6>
|
|
|
|
|
|
|
|
00000064 <_exit>:
|
|
|
|
64: f8 94 cli
|
|
|
|
|
|
|
|
00000066 <__stop_program>:
|
|
|
|
66: ff cf rjmp .-2 ; 0x66 <__stop_program>
|