This commit is contained in:
Dorian Zedler 2018-07-16 17:16:13 +02:00
parent 481546040f
commit 0b30e830bf
7 changed files with 23 additions and 25 deletions

Binary file not shown.

View file

@ -18,8 +18,8 @@
:1001100082E0DEDF9CDF0895CF93DF931F92CDB79F :1001100082E0DEDF9CDF0895CF93DF931F92CDB79F
:10012000DD2784E4898389819FEF980F9983882351 :10012000DD2784E4898389819FEF980F9983882351
:1001300041F08981898189819FEF980F998381118D :1001300041F08981898189819FEF980F998381118D
:10014000F8CF0F90DF91CF9108958FEF87BBC5DF78 :10014000F8CF0F90DF91CF9108958FEF87BB8AEAA8
:1001500040E060E670E080E081DF8AEA88BBFECFA5 :1001500088BBC3DF40E060E670E080E07FDFFFCF78
:04016000F894FFCF41 :04016000F894FFCF41
:02016400740025 :02016400740025
:00000001FF :00000001FF

View file

@ -17,15 +17,15 @@ Idx Name Size VMA LMA File off Algn
CONTENTS, READONLY, DEBUGGING CONTENTS, READONLY, DEBUGGING
6 .debug_abbrev 00000631 00000000 00000000 00000be3 2**0 6 .debug_abbrev 00000631 00000000 00000000 00000be3 2**0
CONTENTS, READONLY, DEBUGGING CONTENTS, READONLY, DEBUGGING
7 .debug_line 00000522 00000000 00000000 00001214 2**0 7 .debug_line 00000517 00000000 00000000 00001214 2**0
CONTENTS, READONLY, DEBUGGING CONTENTS, READONLY, DEBUGGING
8 .debug_frame 000000f4 00000000 00000000 00001738 2**2 8 .debug_frame 000000f4 00000000 00000000 0000172c 2**2
CONTENTS, READONLY, DEBUGGING CONTENTS, READONLY, DEBUGGING
9 .debug_str 0000035c 00000000 00000000 0000182c 2**0 9 .debug_str 0000035c 00000000 00000000 00001820 2**0
CONTENTS, READONLY, DEBUGGING CONTENTS, READONLY, DEBUGGING
10 .debug_loc 0000028c 00000000 00000000 00001b88 2**0 10 .debug_loc 0000028c 00000000 00000000 00001b7c 2**0
CONTENTS, READONLY, DEBUGGING CONTENTS, READONLY, DEBUGGING
11 .debug_ranges 00000058 00000000 00000000 00001e14 2**0 11 .debug_ranges 00000058 00000000 00000000 00001e08 2**0
CONTENTS, READONLY, DEBUGGING CONTENTS, READONLY, DEBUGGING
Disassembly of section .text: Disassembly of section .text:
@ -320,21 +320,18 @@ int main(void)
DDRB = 0xff; DDRB = 0xff;
14a: 8f ef ldi r24, 0xFF ; 255 14a: 8f ef ldi r24, 0xFF ; 255
14c: 87 bb out 0x17, r24 ; 23 14c: 87 bb out 0x17, r24 ; 23
PORTB = 0xAA;
14e: 8a ea ldi r24, 0xAA ; 170
150: 88 bb out 0x18, r24 ; 24
lcd_init(); lcd_init();
14e: c5 df rcall .-118 ; 0xda <lcd_init> 152: c3 df rcall .-122 ; 0xda <lcd_init>
lcd_write(here, "t", 0); lcd_write(here, "t", 0);
150: 40 e0 ldi r20, 0x00 ; 0 154: 40 e0 ldi r20, 0x00 ; 0
152: 60 e6 ldi r22, 0x60 ; 96 156: 60 e6 ldi r22, 0x60 ; 96
154: 70 e0 ldi r23, 0x00 ; 0 158: 70 e0 ldi r23, 0x00 ; 0
156: 80 e0 ldi r24, 0x00 ; 0 15a: 80 e0 ldi r24, 0x00 ; 0
158: 81 df rcall .-254 ; 0x5c <lcd_write> 15c: 7f df rcall .-258 ; 0x5c <lcd_write>
/* Replace with your application code */ 15e: ff cf rjmp .-2 ; 0x15e <main+0x14>
while (1)
{
PORTB = 0xAA;
15a: 8a ea ldi r24, 0xAA ; 170
15c: 88 bb out 0x18, r24 ; 24
15e: fe cf rjmp .-4 ; 0x15c <main+0x12>
00000160 <_exit>: 00000160 <_exit>:
160: f8 94 cli 160: f8 94 cli

View file

@ -422,12 +422,12 @@ END GROUP
.debug_abbrev 0x00000519 0x72 lcd_wait.o .debug_abbrev 0x00000519 0x72 lcd_wait.o
.debug_abbrev 0x0000058b 0xa6 main.o .debug_abbrev 0x0000058b 0xa6 main.o
.debug_line 0x00000000 0x522 .debug_line 0x00000000 0x517
*(.debug_line .debug_line.* .debug_line_end) *(.debug_line .debug_line.* .debug_line_end)
.debug_line 0x00000000 0x10c C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATtiny_DFP/1.3.172/gcc/dev/attiny2313a/avr25/tiny-stack/crtattiny2313a.o .debug_line 0x00000000 0x10c C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATtiny_DFP/1.3.172/gcc/dev/attiny2313a/avr25/tiny-stack/crtattiny2313a.o
.debug_line 0x0000010c 0x291 lcd4.o .debug_line 0x0000010c 0x291 lcd4.o
.debug_line 0x0000039d 0xbd lcd_wait.o .debug_line 0x0000039d 0xbd lcd_wait.o
.debug_line 0x0000045a 0xc8 main.o .debug_line 0x0000045a 0xbd main.o
.debug_frame 0x00000000 0xf4 .debug_frame 0x00000000 0xf4
*(.debug_frame) *(.debug_frame)

View file

@ -19,8 +19,8 @@ S1130100E7DF87B3807F87BB8CE0E2DF86E0E0DF58
S113011082E0DEDF9CDF0895CF93DF931F92CDB79B S113011082E0DEDF9CDF0895CF93DF931F92CDB79B
S1130120DD2784E4898389819FEF980F998388234D S1130120DD2784E4898389819FEF980F998388234D
S113013041F08981898189819FEF980F9983811189 S113013041F08981898189819FEF980F9983811189
S1130140F8CF0F90DF91CF9108958FEF87BBC5DF74 S1130140F8CF0F90DF91CF9108958FEF87BB8AEAA4
S113015040E060E670E080E081DF8AEA88BBFECFA1 S113015088BBC3DF40E060E670E080E07FDFFFCF74
S1070160F894FFCF3D S1070160F894FFCF3D
S1050164740021 S1050164740021
S9030000FC S9030000FC

Binary file not shown.

3
main.c
View file

@ -12,12 +12,13 @@
int main(void) int main(void)
{ {
DDRB = 0xff; DDRB = 0xff;
PORTB = 0xAA;
lcd_init(); lcd_init();
lcd_write(here, "t", 0); lcd_write(here, "t", 0);
/* Replace with your application code */ /* Replace with your application code */
while (1) while (1)
{ {
PORTB = 0xAA;
} }
} }