Skip to content
Snippets Groups Projects
Commit 7a2a30c9 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Korrektur in Beispiel, 19.4.2023

parent 755aaa08
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ int main (void) ...@@ -10,7 +10,7 @@ int main (void)
while (1) while (1)
{ {
_delay_ms (250); _delay_ms (250);
PORTB = 0x00 /* Hexadezimalzahl. Binär: 0000 0000 */; PORTB = 0x00; /* Hexadezimalzahl. Binär: 0000 0000 */
_delay_ms (250); _delay_ms (250);
PORTB = 0x20; /* Hexadezimalzahl. Binär: 0010 0000 */ PORTB = 0x20; /* Hexadezimalzahl. Binär: 0010 0000 */
} /* Bits zählen: ^ ^ ^------ Bit 0 */ } /* Bits zählen: ^ ^ ^------ Bit 0 */
......
...@@ -29,7 +29,7 @@ main: ...@@ -29,7 +29,7 @@ main:
out 0x5,__zero_reg__ ; while (1) out 0x5,__zero_reg__ ; while (1)
ldi r18,lo8(799999) ; { ldi r18,lo8(799999) ; {
ldi r19,hi8(799999) ; _delay_ms (250); ldi r19,hi8(799999) ; _delay_ms (250);
ldi r25,hlo8(799999) ; PORTB = 0x00 /* Hexadezimalzahl. Binär: 0000 0000 */; ldi r25,hlo8(799999) ; PORTB = 0x00; /* Hexadezimalzahl. Binär: 0000 0000 */
1: subi r18,1 ; _delay_ms (250); 1: subi r18,1 ; _delay_ms (250);
sbci r19,0 ; PORTB = 0x20; /* Hexadezimalzahl. Binär: 0010 0000 */ sbci r19,0 ; PORTB = 0x20; /* Hexadezimalzahl. Binär: 0010 0000 */
sbci r25,0 ; } /* Bits zählen: ^ ^ ^------ Bit 0 */ sbci r25,0 ; } /* Bits zählen: ^ ^ ^------ Bit 0 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment