Example I was testing, configuring outbound ports and inbound ports to be able to perform a sum, but they are not working:
ldi r21, 0x0a
ldi r22, 0x0b
out PINB, r16
out DDRB, r16
out PORTB, r17
add r21, r22
mov r17, r21
Example I was testing, configuring outbound ports and inbound ports to be able to perform a sum, but they are not working:
ldi r21, 0x0a
ldi r22, 0x0b
out PINB, r16
out DDRB, r16
out PORTB, r17
add r21, r22
mov r17, r21
To read a port, the correct one is:
In r16, pinb