From 48687a94984456f3cd5c2bd86dd5816f31917383 Mon Sep 17 00:00:00 2001 From: lucic71 Date: Wed, 3 Jun 2020 16:49:09 +0300 Subject: [PATCH] Modified a wrong explaination --- hello_world/hello_world.s | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hello_world/hello_world.s b/hello_world/hello_world.s index 86e8a04..1417983 100644 --- a/hello_world/hello_world.s +++ b/hello_world/hello_world.s @@ -36,9 +36,15 @@ MAIN: ldi r16, hi8(RAMEND) out SPH, r16 - ; Set port bits to output mode. We will use LED 5, so we need to set the fifth bit - ; in DDRB (Data Direction Register B). Check this link for more details: + ; Set port bits to output mode. We will use BUILTIN_LED, so we need to set + ; the fifth bit in DDRB (Data Direction Register B). Check this link for + ; more details: ; https://web.ics.purdue.edu/~jricha14/Port_Stuff/PortB_general.htm [3] + ; + ; Also an important thing to note is that PORTB handles digital PINs from + ; 8 to 13 so by setting the fifth bit of DDRB actually sets PIN 13 for + ; output: + ; https://www.arduino.cc/en/Reference/PortManipulation ldi r16, 0x20 out DDRB, r16