Hey. I'm working on indirect addressing. Actually
I'm trying to clear some of "working registers", -> (R0-R29)
This is the code:
#include "m16def.inc" clr ZL clr ZH Loop: st ZH,Z inc ZL cpi ZL,30 brne Loop
I get an error on the line:
"st ZH,Z" and it says invalid register.
I'm using AVR studio 4, for ATmega16 8-bit microcontroller.
So my question is why I get this error, how to avoid this error, so basically what I am doing wrong.
One additional question even it's not for this topic.
I am working in AVR studio 4 editor, but I would like to see the numbers of my lines on the left side. Is that possible and If It is, how to turn it on.