I'm new in assembly language and to have a little practice I'm programming Arduino using only avr assembler and avr_gcc. I was trying to use ST and LD instructions and in every example, that I had found address is loading to X, Y or Z register directly for example:
ldi r30, 0x00
ldi r31, 0x06
But is there (in avr_gcc) any way to put to Z register address of variable? I know that in masm for that purpose was OFFSET directive.