Files
MIC-KM/MIC-Week1/Debug/MIC-Week1.lss
T
2016-02-02 15:57:02 +01:00

205 lines
6.6 KiB
Plaintext

MIC-Week1.elf: file format elf32-avr
Sections:
Idx Name Size VMA LMA File off Algn
0 .data 00000000 00800100 00800100 0000013e 2**0
CONTENTS, ALLOC, LOAD, DATA
1 .text 000000ea 00000000 00000000 00000054 2**1
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .comment 00000030 00000000 00000000 0000013e 2**0
CONTENTS, READONLY
3 .note.gnu.avr.deviceinfo 0000003c 00000000 00000000 00000170 2**2
CONTENTS, READONLY
4 .debug_aranges 00000040 00000000 00000000 000001ac 2**0
CONTENTS, READONLY, DEBUGGING
5 .debug_info 00000242 00000000 00000000 000001ec 2**0
CONTENTS, READONLY, DEBUGGING
6 .debug_abbrev 00000161 00000000 00000000 0000042e 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_line 000001cf 00000000 00000000 0000058f 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_frame 00000070 00000000 00000000 00000760 2**2
CONTENTS, READONLY, DEBUGGING
9 .debug_str 00000194 00000000 00000000 000007d0 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_loc 000000cf 00000000 00000000 00000964 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_ranges 00000030 00000000 00000000 00000a33 2**0
CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:
00000000 <__vectors>:
0: 45 c0 rjmp .+138 ; 0x8c <__ctors_end>
2: 00 00 nop
4: 4b c0 rjmp .+150 ; 0x9c <__bad_interrupt>
6: 00 00 nop
8: 49 c0 rjmp .+146 ; 0x9c <__bad_interrupt>
a: 00 00 nop
c: 47 c0 rjmp .+142 ; 0x9c <__bad_interrupt>
e: 00 00 nop
10: 45 c0 rjmp .+138 ; 0x9c <__bad_interrupt>
12: 00 00 nop
14: 43 c0 rjmp .+134 ; 0x9c <__bad_interrupt>
16: 00 00 nop
18: 41 c0 rjmp .+130 ; 0x9c <__bad_interrupt>
1a: 00 00 nop
1c: 3f c0 rjmp .+126 ; 0x9c <__bad_interrupt>
1e: 00 00 nop
20: 3d c0 rjmp .+122 ; 0x9c <__bad_interrupt>
22: 00 00 nop
24: 3b c0 rjmp .+118 ; 0x9c <__bad_interrupt>
26: 00 00 nop
28: 39 c0 rjmp .+114 ; 0x9c <__bad_interrupt>
2a: 00 00 nop
2c: 37 c0 rjmp .+110 ; 0x9c <__bad_interrupt>
2e: 00 00 nop
30: 35 c0 rjmp .+106 ; 0x9c <__bad_interrupt>
32: 00 00 nop
34: 33 c0 rjmp .+102 ; 0x9c <__bad_interrupt>
36: 00 00 nop
38: 31 c0 rjmp .+98 ; 0x9c <__bad_interrupt>
3a: 00 00 nop
3c: 2f c0 rjmp .+94 ; 0x9c <__bad_interrupt>
3e: 00 00 nop
40: 2d c0 rjmp .+90 ; 0x9c <__bad_interrupt>
42: 00 00 nop
44: 2b c0 rjmp .+86 ; 0x9c <__bad_interrupt>
46: 00 00 nop
48: 29 c0 rjmp .+82 ; 0x9c <__bad_interrupt>
4a: 00 00 nop
4c: 27 c0 rjmp .+78 ; 0x9c <__bad_interrupt>
4e: 00 00 nop
50: 25 c0 rjmp .+74 ; 0x9c <__bad_interrupt>
52: 00 00 nop
54: 23 c0 rjmp .+70 ; 0x9c <__bad_interrupt>
56: 00 00 nop
58: 21 c0 rjmp .+66 ; 0x9c <__bad_interrupt>
5a: 00 00 nop
5c: 1f c0 rjmp .+62 ; 0x9c <__bad_interrupt>
5e: 00 00 nop
60: 1d c0 rjmp .+58 ; 0x9c <__bad_interrupt>
62: 00 00 nop
64: 1b c0 rjmp .+54 ; 0x9c <__bad_interrupt>
66: 00 00 nop
68: 19 c0 rjmp .+50 ; 0x9c <__bad_interrupt>
6a: 00 00 nop
6c: 17 c0 rjmp .+46 ; 0x9c <__bad_interrupt>
6e: 00 00 nop
70: 15 c0 rjmp .+42 ; 0x9c <__bad_interrupt>
72: 00 00 nop
74: 13 c0 rjmp .+38 ; 0x9c <__bad_interrupt>
76: 00 00 nop
78: 11 c0 rjmp .+34 ; 0x9c <__bad_interrupt>
7a: 00 00 nop
7c: 0f c0 rjmp .+30 ; 0x9c <__bad_interrupt>
7e: 00 00 nop
80: 0d c0 rjmp .+26 ; 0x9c <__bad_interrupt>
82: 00 00 nop
84: 0b c0 rjmp .+22 ; 0x9c <__bad_interrupt>
86: 00 00 nop
88: 09 c0 rjmp .+18 ; 0x9c <__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
98: 1f d0 rcall .+62 ; 0xd8 <main>
9a: 25 c0 rjmp .+74 ; 0xe6 <_exit>
0000009c <__bad_interrupt>:
9c: b1 cf rjmp .-158 ; 0x0 <__vectors>
0000009e <wait>:
void opgave1(void)
{
PORTD = 0b10000000;
wait( 500 );
PORTD = 0b01000000;
wait ( 500 );
9e: 18 16 cp r1, r24
a0: 19 06 cpc r1, r25
a2: 6c f4 brge .+26 ; 0xbe <wait+0x20>
a4: 20 e0 ldi r18, 0x00 ; 0
a6: 30 e0 ldi r19, 0x00 ; 0
a8: ef ec ldi r30, 0xCF ; 207
aa: f7 e0 ldi r31, 0x07 ; 7
ac: 31 97 sbiw r30, 0x01 ; 1
ae: f1 f7 brne .-4 ; 0xac <wait+0xe>
b0: 00 c0 rjmp .+0 ; 0xb2 <wait+0x14>
b2: 00 00 nop
b4: 2f 5f subi r18, 0xFF ; 255
b6: 3f 4f sbci r19, 0xFF ; 255
b8: 28 17 cp r18, r24
ba: 39 07 cpc r19, r25
bc: a9 f7 brne .-22 ; 0xa8 <wait+0xa>
be: 08 95 ret
000000c0 <opgave4>:
}
void opgave4(void)
{
wait( 50 );
c0: 82 e3 ldi r24, 0x32 ; 50
c2: 90 e0 ldi r25, 0x00 ; 0
c4: ec df rcall .-40 ; 0x9e <wait>
if (PORTC>= 0x80)
c6: af 9b sbis 0x15, 7 ; 21
c8: 03 c0 rjmp .+6 ; 0xd0 <opgave4+0x10>
{
PORTC= 0x1;
ca: 81 e0 ldi r24, 0x01 ; 1
cc: 85 bb out 0x15, r24 ; 21
ce: 08 95 ret
}
else
{
PORTC = (PORTC<<1);
d0: 85 b3 in r24, 0x15 ; 21
d2: 88 0f add r24, r24
d4: 85 bb out 0x15, r24 ; 21
d6: 08 95 ret
000000d8 <main>:
}
}
int main(void)
{
DDRD = 0b00000000; //input
d8: 11 ba out 0x11, r1 ; 17
DDRC = 0b11111111; //output
da: 8f ef ldi r24, 0xFF ; 255
dc: 84 bb out 0x14, r24 ; 20
//Alleen voor opgave 4
PORTC = 0x1;
de: 81 e0 ldi r24, 0x01 ; 1
e0: 85 bb out 0x15, r24 ; 21
while (1)
{
//opgave1();
//opgave2();
//opgave3();
opgave4();
e2: ee df rcall .-36 ; 0xc0 <opgave4>
if( (PIND) != 0 )
{
speaker( PIND );
}
*/
}
e4: fe cf rjmp .-4 ; 0xe2 <main+0xa>
000000e6 <_exit>:
e6: f8 94 cli
000000e8 <__stop_program>:
e8: ff cf rjmp .-2 ; 0xe8 <__stop_program>