1
In the following paragraph:
ldi r16,255
out IO(DDRB),r16
ldi r30,1
subi r30,lo8(-(array))
sbci r31,hi8(-(array))
ld r24,Z
out IO(PORTB),r24
Why is there a -(array) within both lo8 and Hi8 ? And why are the instructions up and subci used here ? How can the address for the 2nd element be obtained from this ? I’m using the avr-gcc.