I am trying to build a simple switch LED circuit program using the assembly language without using SBI and SBIS.
L1: LDI R20,0
NEXT: LDI R16,0x08
When the two numbers are equal the LED would light up. The problem is I do not know how to read from a pin. If I could get the input I can compare it with 0 as above(Correct me if I am wrong). Is it possible to read from a single pin using IN and ANDI command?